From bc26b000da8fc942dd3350357ae27281e98ce079 Mon Sep 17 00:00:00 2001 From: Christoph Hofmann Date: Sun, 24 Mar 2024 19:39:36 +0100 Subject: [PATCH] Removed test rest client --- .../Rest/Actions/ActionsRequestBuilder.cs | 37 --- .../Item/WithActionUItemRequestBuilder.cs | 82 ----- .../Item/Item/WithActionUPostRequestBody.cs | 43 --- .../Item/WithThingUItemRequestBuilder.cs | 88 ------ .../Core/Rest/Addons/AddonsRequestBuilder.cs | 123 -------- .../Item/Config/ConfigPutRequestBody.cs | 43 --- .../Item/Config/ConfigRequestBuilder.cs | 151 --------- .../Item/Install/InstallRequestBuilder.cs | 91 ------ .../Item/Uninstall/UninstallRequestBuilder.cs | 91 ------ .../Item/WithAddonItemRequestBuilder.cs | 108 ------- .../Addons/Services/ServicesRequestBuilder.cs | 79 ----- .../Suggestions/SuggestionsRequestBuilder.cs | 79 ----- .../Rest/Addons/Types/TypesRequestBuilder.cs | 94 ------ .../Url/Item/Install/InstallRequestBuilder.cs | 76 ----- .../Url/Item/WithUrlItemRequestBuilder.cs | 33 -- .../Core/Rest/Addons/Url/UrlRequestBuilder.cs | 37 --- .../Core/Rest/Audio/AudioRequestBuilder.cs | 48 --- .../Defaultsink/DefaultsinkRequestBuilder.cs | 78 ----- .../DefaultsourceRequestBuilder.cs | 78 ----- .../Rest/Audio/Sinks/SinksRequestBuilder.cs | 79 ----- .../Audio/Sources/SourcesRequestBuilder.cs | 79 ----- .../Auth/Apitokens/ApitokensRequestBuilder.cs | 88 ------ .../Item/WithNameItemRequestBuilder.cs | 76 ----- .../Core/Rest/Auth/AuthRequestBuilder.cs | 48 --- .../Rest/Auth/Logout/LogoutPostRequestBody.cs | 63 ---- .../Rest/Auth/Logout/LogoutRequestBuilder.cs | 81 ----- .../Auth/Sessions/SessionsRequestBuilder.cs | 79 ----- .../Rest/Auth/Token/TokenPostRequestBody.cs | 103 ------ .../Rest/Auth/Token/TokenRequestBuilder.cs | 90 ------ .../ChannelTypesRequestBuilder.cs | 103 ------ .../LinkableItemTypesRequestBuilder.cs | 78 ----- .../WithChannelTypeUItemRequestBuilder.cs | 83 ----- .../ConfigDescriptionsRequestBuilder.cs | 103 ------ .../Item/WithUriItemRequestBuilder.cs | 78 ----- .../Bindings/BindingsRequestBuilder.cs | 37 --- .../Bindings/Item/Scan/ScanRequestBuilder.cs | 77 ----- .../Item/WithBindingItemRequestBuilder.cs | 33 -- .../Rest/Discovery/DiscoveryRequestBuilder.cs | 83 ----- .../Core/Rest/Events/EventsRequestBuilder.cs | 96 ------ .../Item/WithConnectionItemRequestBuilder.cs | 81 ----- .../Events/States/StatesRequestBuilder.cs | 85 ----- .../Attributes/AttributesRequestBuilder.cs | 78 ----- .../Rest/Habot/Cards/CardsRequestBuilder.cs | 137 -------- .../Item/Bookmark/BookmarkRequestBuilder.cs | 114 ------- .../Item/Timestamp/TimestampRequestBuilder.cs | 76 ----- .../Cards/Item/WithCardUItemRequestBuilder.cs | 170 ---------- .../Cards/Recent/RecentRequestBuilder.cs | 88 ------ .../Rest/Habot/Chat/ChatRequestBuilder.cs | 83 ----- .../Habot/Compat/Cards/CardsRequestBuilder.cs | 92 ------ .../Cards/Item/Delete/DeleteRequestBuilder.cs | 78 ----- .../Unbookmark/UnbookmarkRequestBuilder.cs | 76 ----- .../Cards/Item/WithCardUItemRequestBuilder.cs | 93 ------ .../Rest/Habot/Compat/CompatRequestBuilder.cs | 33 -- .../Rest/Habot/Greet/GreetRequestBuilder.cs | 78 ----- .../Core/Rest/Habot/HabotRequestBuilder.cs | 58 ---- .../NotificationsRequestBuilder.cs | 38 --- .../Subscribe/SubscribeRequestBuilder.cs | 81 ----- .../Vapid/VapidRequestBuilder.cs | 77 ----- .../Rest/Iconsets/IconsetsRequestBuilder.cs | 79 ----- .../Core/Rest/Inbox/InboxRequestBuilder.cs | 88 ------ .../Item/Approve/ApproveRequestBuilder.cs | 96 ------ .../Inbox/Item/Ignore/IgnoreRequestBuilder.cs | 76 ----- .../Item/Unignore/UnignoreRequestBuilder.cs | 76 ----- .../Item/WithThingUItemRequestBuilder.cs | 91 ------ .../Items/Item/ItemNameItemRequestBuilder.cs | 53 ---- .../WithMemberItemNameItemRequestBuilder.cs | 114 ------- .../Item/Members/MembersRequestBuilder.cs | 37 --- .../Item/WithNamespaceItemRequestBuilder.cs | 119 ------- .../Item/Metadata/MetadataRequestBuilder.cs | 42 --- .../Namespaces/NamespacesRequestBuilder.cs | 77 ----- .../WithSemanticClassItemRequestBuilder.cs | 76 ----- .../Item/Semantic/SemanticRequestBuilder.cs | 37 --- .../Items/Item/State/StateRequestBuilder.cs | 119 ------- .../Tags/Item/WithTagItemRequestBuilder.cs | 114 ------- .../Items/Item/Tags/TagsRequestBuilder.cs | 37 --- .../Core/Rest/Items/ItemsRequestBuilder.cs | 188 ----------- .../Items/Metadata/MetadataRequestBuilder.cs | 33 -- .../Metadata/Purge/PurgeRequestBuilder.cs | 76 ----- .../Item/WithChannelUItemRequestBuilder.cs | 159 ---------- .../Item/WithItemNameItemRequestBuilder.cs | 37 --- .../Core/Rest/Links/LinksRequestBuilder.cs | 118 ------- .../Rest/Links/Purge/PurgeRequestBuilder.cs | 76 ----- .../Item/WithLoggerNameItemRequestBuilder.cs | 159 ---------- .../Rest/Logging/LoggingRequestBuilder.cs | 87 ----- Rest/OpenHAB/Core/Rest/Models/ActionDTO.cs | 103 ------ .../Rest/Models/ActionDTO_configuration.cs | 43 --- .../Core/Rest/Models/ActionDTO_inputs.cs | 43 --- Rest/OpenHAB/Core/Rest/Models/ActionObject.cs | 103 ------ .../OpenHAB/Core/Rest/Models/Action_inputs.cs | 43 --- Rest/OpenHAB/Core/Rest/Models/Addon.cs | 255 --------------- Rest/OpenHAB/Core/Rest/Models/AddonType.cs | 63 ---- .../Core/Rest/Models/Addon_properties.cs | 43 --- Rest/OpenHAB/Core/Rest/Models/AudioSinkDTO.cs | 63 ---- .../Core/Rest/Models/AudioSourceDTO.cs | 63 ---- Rest/OpenHAB/Core/Rest/Models/Card.cs | 157 --------- Rest/OpenHAB/Core/Rest/Models/Card_config.cs | 43 --- Rest/OpenHAB/Core/Rest/Models/Card_slots.cs | 43 --- Rest/OpenHAB/Core/Rest/Models/ChannelDTO.cs | 153 --------- .../Rest/Models/ChannelDTO_configuration.cs | 43 --- .../Core/Rest/Models/ChannelDTO_properties.cs | 43 --- .../Core/Rest/Models/ChannelDefinitionDTO.cs | 127 -------- .../Models/ChannelDefinitionDTO_properties.cs | 43 --- .../Rest/Models/ChannelGroupDefinitionDTO.cs | 83 ----- .../Core/Rest/Models/ChannelTypeDTO.cs | 157 --------- Rest/OpenHAB/Core/Rest/Models/ChatReply.cs | 123 -------- .../Core/Rest/Models/CommandDescription.cs | 53 ---- .../OpenHAB/Core/Rest/Models/CommandOption.cs | 63 ---- Rest/OpenHAB/Core/Rest/Models/Condition.cs | 103 ------ Rest/OpenHAB/Core/Rest/Models/ConditionDTO.cs | 103 ------ .../Rest/Models/ConditionDTO_configuration.cs | 43 --- .../Core/Rest/Models/ConditionDTO_inputs.cs | 43 --- .../Core/Rest/Models/Condition_inputs.cs | 43 --- .../Core/Rest/Models/ConfigDescriptionDTO.cs | 73 ----- .../Rest/Models/ConfigDescriptionParameter.cs | 197 ------------ .../Models/ConfigDescriptionParameterDTO.cs | 197 ------------ .../ConfigDescriptionParameterDTO_type.cs | 15 - .../ConfigDescriptionParameterGroupDTO.cs | 87 ----- .../Models/ConfigDescriptionParameter_type.cs | 15 - .../Core/Rest/Models/ConfigStatusMessage.cs | 71 ----- .../Rest/Models/ConfigStatusMessage_type.cs | 15 - .../Rest/Models/ConfigurableServiceDTO.cs | 87 ----- .../OpenHAB/Core/Rest/Models/Configuration.cs | 53 ---- .../Rest/Models/Configuration_properties.cs | 43 --- .../OpenHAB/Core/Rest/Models/DimensionInfo.cs | 63 ---- .../Core/Rest/Models/DiscoveryResultDTO.cs | 107 ------- .../Rest/Models/DiscoveryResultDTO_flag.cs | 11 - .../Models/DiscoveryResultDTO_properties.cs | 43 --- .../Core/Rest/Models/EnrichedChannelDTO.cs | 163 ---------- .../EnrichedChannelDTO_configuration.cs | 43 --- .../Models/EnrichedChannelDTO_properties.cs | 43 --- .../Rest/Models/EnrichedItemChannelLinkDTO.cs | 77 ----- ...nrichedItemChannelLinkDTO_configuration.cs | 43 --- .../Core/Rest/Models/EnrichedItemDTO.cs | 177 ----------- .../Rest/Models/EnrichedItemDTO_metadata.cs | 43 --- .../Core/Rest/Models/EnrichedRuleDTO.cs | 161 ---------- .../Models/EnrichedRuleDTO_configuration.cs | 43 --- .../Rest/Models/EnrichedRuleDTO_visibility.cs | 13 - .../Rest/Models/EnrichedSemanticTagDTO.cs | 43 --- .../Core/Rest/Models/EnrichedThingDTO.cs | 147 --------- .../Models/EnrichedThingDTO_configuration.cs | 43 --- .../Models/EnrichedThingDTO_properties.cs | 43 --- .../Core/Rest/Models/FilterCriteria.cs | 63 ---- .../Core/Rest/Models/FilterCriteriaDTO.cs | 63 ---- Rest/OpenHAB/Core/Rest/Models/FirmwareDTO.cs | 117 ------- .../Core/Rest/Models/FirmwareStatusDTO.cs | 63 ---- .../Core/Rest/Models/GroupFunctionDTO.cs | 63 ---- Rest/OpenHAB/Core/Rest/Models/GroupItemDTO.cs | 123 -------- .../Core/Rest/Models/HistoryDataBean.cs | 57 ---- .../Models/HumanLanguageInterpreterDTO.cs | 73 ----- Rest/OpenHAB/Core/Rest/Models/IconSet.cs | 83 ----- .../Core/Rest/Models/IconSet_formats.cs | 11 - Rest/OpenHAB/Core/Rest/Models/Input.cs | 117 ------- Rest/OpenHAB/Core/Rest/Models/Intent.cs | 63 ---- .../Core/Rest/Models/Intent_entities.cs | 43 --- .../Core/Rest/Models/ItemChannelLinkDTO.cs | 73 ----- .../ItemChannelLinkDTO_configuration.cs | 43 --- .../Core/Rest/Models/ItemHistoryDTO.cs | 83 ----- Rest/OpenHAB/Core/Rest/Models/Links.cs | 63 ---- Rest/OpenHAB/Core/Rest/Models/LoggerBean.cs | 53 ---- Rest/OpenHAB/Core/Rest/Models/LoggerInfo.cs | 63 ---- Rest/OpenHAB/Core/Rest/Models/MappingDTO.cs | 81 ----- Rest/OpenHAB/Core/Rest/Models/MetadataDTO.cs | 63 ---- .../Core/Rest/Models/MetadataDTO_config.cs | 43 --- Rest/OpenHAB/Core/Rest/Models/Module.cs | 93 ------ Rest/OpenHAB/Core/Rest/Models/ModuleDTO.cs | 93 ------ .../Rest/Models/ModuleDTO_configuration.cs | 43 --- .../OpenHAB/Core/Rest/Models/ModuleTypeDTO.cs | 97 ------ .../Rest/Models/ModuleTypeDTO_visibility.cs | 13 - Rest/OpenHAB/Core/Rest/Models/Output.cs | 113 ------- Rest/OpenHAB/Core/Rest/Models/PageDTO.cs | 111 ------- .../Core/Rest/Models/ParameterOption.cs | 63 ---- .../Core/Rest/Models/ParameterOptionDTO.cs | 63 ---- .../Rest/Models/PersistenceCronStrategyDTO.cs | 63 ---- .../Core/Rest/Models/PersistenceFilterDTO.cs | 93 ------ .../Models/PersistenceItemConfigurationDTO.cs | 83 ----- .../Core/Rest/Models/PersistenceItemInfo.cs | 65 ---- .../PersistenceServiceConfigurationDTO.cs | 127 -------- .../Core/Rest/Models/PersistenceServiceDTO.cs | 73 ----- .../Core/Rest/Models/ProfileTypeDTO.cs | 83 ----- Rest/OpenHAB/Core/Rest/Models/RootBean.cs | 93 ------ .../Core/Rest/Models/RootUIComponent.cs | 117 ------- .../Rest/Models/RootUIComponent_config.cs | 43 --- .../Core/Rest/Models/RootUIComponent_slots.cs | 43 --- Rest/OpenHAB/Core/Rest/Models/Rule.cs | 157 --------- Rest/OpenHAB/Core/Rest/Models/RuleDTO.cs | 147 --------- .../Core/Rest/Models/RuleDTO_configuration.cs | 43 --- .../Core/Rest/Models/RuleDTO_visibility.cs | 13 - .../OpenHAB/Core/Rest/Models/RuleExecution.cs | 57 ---- .../Core/Rest/Models/RuleStatusInfo.cs | 61 ---- .../Core/Rest/Models/RuleStatusInfo_status.cs | 15 - .../Models/RuleStatusInfo_statusDetail.cs | 21 -- .../Core/Rest/Models/Rule_visibility.cs | 13 - Rest/OpenHAB/Core/Rest/Models/RuntimeInfo.cs | 63 ---- Rest/OpenHAB/Core/Rest/Models/SitemapDTO.cs | 93 ------ .../Core/Rest/Models/StateDescription.cs | 79 ----- Rest/OpenHAB/Core/Rest/Models/StateOption.cs | 63 ---- .../Core/Rest/Models/StrippedThingTypeDTO.cs | 101 ------ Rest/OpenHAB/Core/Rest/Models/SystemInfo.cs | 153 --------- .../Core/Rest/Models/SystemInfoBean.cs | 53 ---- Rest/OpenHAB/Core/Rest/Models/Template.cs | 87 ----- .../Core/Rest/Models/Template_visibility.cs | 13 - .../Core/Rest/Models/ThingActionDTO.cs | 93 ------ Rest/OpenHAB/Core/Rest/Models/ThingDTO.cs | 123 -------- .../Rest/Models/ThingDTO_configuration.cs | 43 --- .../Core/Rest/Models/ThingDTO_properties.cs | 43 --- .../Core/Rest/Models/ThingStatusInfo.cs | 61 ---- .../Rest/Models/ThingStatusInfo_status.cs | 21 -- .../Models/ThingStatusInfo_statusDetail.cs | 37 --- Rest/OpenHAB/Core/Rest/Models/ThingTypeDTO.cs | 161 ---------- .../Rest/Models/ThingTypeDTO_properties.cs | 43 --- Rest/OpenHAB/Core/Rest/Models/TileDTO.cs | 83 ----- .../Core/Rest/Models/TokenResponseDTO.cs | 97 ------ .../Core/Rest/Models/Transformation.cs | 83 ----- .../Core/Rest/Models/TransformationDTO.cs | 87 ----- .../Models/TransformationDTO_configuration.cs | 43 --- .../Models/Transformation_configuration.cs | 43 --- Rest/OpenHAB/Core/Rest/Models/Trigger.cs | 93 ------ Rest/OpenHAB/Core/Rest/Models/TriggerDTO.cs | 93 ------ .../Rest/Models/TriggerDTO_configuration.cs | 43 --- Rest/OpenHAB/Core/Rest/Models/UoMInfo.cs | 53 ---- Rest/OpenHAB/Core/Rest/Models/UoMInfoBean.cs | 53 ---- .../Core/Rest/Models/UserApiTokenDTO.cs | 67 ---- Rest/OpenHAB/Core/Rest/Models/UserDTO.cs | 63 ---- .../Core/Rest/Models/UserSessionDTO.cs | 81 ----- Rest/OpenHAB/Core/Rest/Models/VoiceDTO.cs | 73 ----- Rest/OpenHAB/Core/Rest/Models/WidgetDTO.cs | 297 ------------------ .../Item/WithModuleTypeUItemRequestBuilder.cs | 78 ----- .../ModuleTypes/ModuleTypesRequestBuilder.cs | 113 ------- Rest/OpenHAB/Core/Rest/OpenHABClient.cs | 223 ------------- .../Item/WithServiceItemRequestBuilder.cs | 160 ---------- .../Item/WithItemnameItemRequestBuilder.cs | 270 ---------------- .../Persistence/Items/ItemsRequestBuilder.cs | 103 ------ .../Persistence/PersistenceRequestBuilder.cs | 93 ------ .../ProfileTypesRequestBuilder.cs | 104 ------ .../Item/Actions/ActionsRequestBuilder.cs | 79 ----- .../Conditions/ConditionsRequestBuilder.cs | 79 ----- .../Rules/Item/Config/ConfigPutRequestBody.cs | 43 --- .../Rules/Item/Config/ConfigRequestBuilder.cs | 120 ------- .../Rules/Item/Enable/EnableRequestBuilder.cs | 81 ----- .../Item/Item/Config/ConfigRequestBuilder.cs | 86 ----- .../Item/WithParamItemRequestBuilder.cs | 120 ------- .../Item/ModuleCategoryItemRequestBuilder.cs | 83 ----- .../WithModuleCategoryItemRequestBuilder.cs | 37 --- .../Item/Runnow/RunnowPostRequestBody.cs | 43 --- .../Rules/Item/Runnow/RunnowRequestBuilder.cs | 81 ----- .../Item/Triggers/TriggersRequestBuilder.cs | 79 ----- .../Rules/Item/WithRuleUItemRequestBuilder.cs | 198 ------------ .../Core/Rest/Rules/RulesRequestBuilder.cs | 164 ---------- .../Rules/Schedule/ScheduleRequestBuilder.cs | 33 -- .../Simulations/SimulationsRequestBuilder.cs | 104 ------ .../Item/Config/ConfigPutRequestBody.cs | 43 --- .../Item/Config/ConfigRequestBuilder.cs | 160 ---------- .../Item/Contexts/ContextsRequestBuilder.cs | 79 ----- .../Item/WithServiceItemRequestBuilder.cs | 88 ------ .../Rest/Services/ServicesRequestBuilder.cs | 88 ------ .../Sitemaps/Events/EventsRequestBuilder.cs | 42 --- .../WithSubscriptionItemRequestBuilder.cs | 101 ------ .../Subscribe/SubscribeRequestBuilder.cs | 75 ----- .../Item/Item/WithPageItemRequestBuilder.cs | 96 ------ .../Item/WithSitemapnameItemRequestBuilder.cs | 113 ------- .../Rest/Sitemaps/SitemapsRequestBuilder.cs | 93 ------ .../Systeminfo/SysteminfoRequestBuilder.cs | 83 ----- .../Rest/Systeminfo/Uom/UomRequestBuilder.cs | 78 ----- .../Tags/Item/WithTagItemRequestBuilder.cs | 161 ---------- .../Core/Rest/Tags/TagsRequestBuilder.cs | 132 -------- .../Item/WithTemplateUItemRequestBuilder.cs | 78 ----- .../Rest/Templates/TemplatesRequestBuilder.cs | 88 ------ .../Item/WithThingTypeUItemRequestBuilder.cs | 78 ----- .../ThingTypes/ThingTypesRequestBuilder.cs | 103 ------ .../Item/Config/ConfigPutRequestBody.cs | 43 --- .../Item/Config/ConfigRequestBuilder.cs | 88 ------ .../Config/Status/StatusRequestBuilder.cs | 79 ----- .../Item/Enable/EnableRequestBuilder.cs | 83 ----- .../Item/Firmware/FirmwareRequestBuilder.cs | 42 --- .../WithFirmwareVersionItemRequestBuilder.cs | 76 ----- .../Firmware/Status/StatusRequestBuilder.cs | 78 ----- .../Item/Firmwares/FirmwaresRequestBuilder.cs | 79 ----- .../Item/Status/StatusRequestBuilder.cs | 78 ----- .../Item/WithThingUItemRequestBuilder.cs | 192 ----------- .../Core/Rest/Things/ThingsRequestBuilder.cs | 143 --------- .../Item/WithUItemRequestBuilder.cs | 159 ---------- .../Services/ServicesRequestBuilder.cs | 78 ----- .../TransformationsRequestBuilder.cs | 93 ------ .../Ui/Components/ComponentsRequestBuilder.cs | 37 --- .../Item/WithComponentUItemRequestBuilder.cs | 160 ---------- .../Item/WithNamespaceItemRequestBuilder.cs | 140 --------- .../Core/Rest/Ui/Tiles/TilesRequestBuilder.cs | 79 ----- Rest/OpenHAB/Core/Rest/Ui/UiRequestBuilder.cs | 38 --- .../Core/Rest/Uuid/UuidRequestBuilder.cs | 77 ----- .../DefaultvoiceRequestBuilder.cs | 78 ----- .../Rest/Voice/Dialog/DialogRequestBuilder.cs | 38 --- .../Voice/Dialog/Start/StartRequestBuilder.cs | 171 ---------- .../Voice/Dialog/Stop/StopRequestBuilder.cs | 91 ------ .../InterpretersRequestBuilder.cs | 122 ------- .../ListenandanswerRequestBuilder.cs | 151 --------- .../Core/Rest/Voice/Say/SayRequestBuilder.cs | 116 ------- .../Core/Rest/Voice/VoiceRequestBuilder.cs | 58 ---- .../Rest/Voice/Voices/VoicesRequestBuilder.cs | 79 ----- Rest/kiota-lock.json | 182 ----------- 299 files changed, 24909 deletions(-) delete mode 100644 Rest/OpenHAB/Core/Rest/Actions/ActionsRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Actions/Item/Item/WithActionUItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Actions/Item/Item/WithActionUPostRequestBody.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Actions/Item/WithThingUItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Addons/AddonsRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Addons/Item/Config/ConfigPutRequestBody.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Addons/Item/Config/ConfigRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Addons/Item/Install/InstallRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Addons/Item/Uninstall/UninstallRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Addons/Item/WithAddonItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Addons/Services/ServicesRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Addons/Suggestions/SuggestionsRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Addons/Types/TypesRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Addons/Url/Item/Install/InstallRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Addons/Url/Item/WithUrlItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Addons/Url/UrlRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Audio/AudioRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Audio/Defaultsink/DefaultsinkRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Audio/Defaultsource/DefaultsourceRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Audio/Sinks/SinksRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Audio/Sources/SourcesRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Auth/Apitokens/ApitokensRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Auth/Apitokens/Item/WithNameItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Auth/AuthRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Auth/Logout/LogoutPostRequestBody.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Auth/Logout/LogoutRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Auth/Sessions/SessionsRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Auth/Token/TokenPostRequestBody.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Auth/Token/TokenRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/ChannelTypes/ChannelTypesRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/ChannelTypes/Item/LinkableItemTypes/LinkableItemTypesRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/ChannelTypes/Item/WithChannelTypeUItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/ConfigDescriptions/ConfigDescriptionsRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/ConfigDescriptions/Item/WithUriItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Discovery/Bindings/BindingsRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Discovery/Bindings/Item/Scan/ScanRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Discovery/Bindings/Item/WithBindingItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Discovery/DiscoveryRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Events/EventsRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Events/States/Item/WithConnectionItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Events/States/StatesRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Habot/Attributes/AttributesRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Habot/Cards/CardsRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Habot/Cards/Item/Bookmark/BookmarkRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Habot/Cards/Item/Timestamp/TimestampRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Habot/Cards/Item/WithCardUItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Habot/Cards/Recent/RecentRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Habot/Chat/ChatRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Habot/Compat/Cards/CardsRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Habot/Compat/Cards/Item/Delete/DeleteRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Habot/Compat/Cards/Item/Unbookmark/UnbookmarkRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Habot/Compat/Cards/Item/WithCardUItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Habot/Compat/CompatRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Habot/Greet/GreetRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Habot/HabotRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Habot/Notifications/NotificationsRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Habot/Notifications/Subscribe/SubscribeRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Habot/Notifications/Vapid/VapidRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Iconsets/IconsetsRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Inbox/InboxRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Inbox/Item/Approve/ApproveRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Inbox/Item/Ignore/IgnoreRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Inbox/Item/Unignore/UnignoreRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Inbox/Item/WithThingUItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Items/Item/ItemNameItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Items/Item/Members/Item/WithMemberItemNameItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Items/Item/Members/MembersRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Items/Item/Metadata/Item/WithNamespaceItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Items/Item/Metadata/MetadataRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Items/Item/Metadata/Namespaces/NamespacesRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Items/Item/Semantic/Item/WithSemanticClassItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Items/Item/Semantic/SemanticRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Items/Item/State/StateRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Items/Item/Tags/Item/WithTagItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Items/Item/Tags/TagsRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Items/ItemsRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Items/Metadata/MetadataRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Items/Metadata/Purge/PurgeRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Links/Item/Item/WithChannelUItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Links/Item/WithItemNameItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Links/LinksRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Links/Purge/PurgeRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Logging/Item/WithLoggerNameItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Logging/LoggingRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ActionDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ActionDTO_configuration.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ActionDTO_inputs.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ActionObject.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/Action_inputs.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/Addon.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/AddonType.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/Addon_properties.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/AudioSinkDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/AudioSourceDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/Card.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/Card_config.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/Card_slots.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ChannelDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ChannelDTO_configuration.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ChannelDTO_properties.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ChannelDefinitionDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ChannelDefinitionDTO_properties.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ChannelGroupDefinitionDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ChannelTypeDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ChatReply.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/CommandDescription.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/CommandOption.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/Condition.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ConditionDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ConditionDTO_configuration.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ConditionDTO_inputs.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/Condition_inputs.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ConfigDescriptionDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ConfigDescriptionParameter.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ConfigDescriptionParameterDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ConfigDescriptionParameterDTO_type.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ConfigDescriptionParameterGroupDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ConfigDescriptionParameter_type.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ConfigStatusMessage.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ConfigStatusMessage_type.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ConfigurableServiceDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/Configuration.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/Configuration_properties.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/DimensionInfo.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/DiscoveryResultDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/DiscoveryResultDTO_flag.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/DiscoveryResultDTO_properties.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/EnrichedChannelDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/EnrichedChannelDTO_configuration.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/EnrichedChannelDTO_properties.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/EnrichedItemChannelLinkDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/EnrichedItemChannelLinkDTO_configuration.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/EnrichedItemDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/EnrichedItemDTO_metadata.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/EnrichedRuleDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/EnrichedRuleDTO_configuration.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/EnrichedRuleDTO_visibility.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/EnrichedSemanticTagDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/EnrichedThingDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/EnrichedThingDTO_configuration.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/EnrichedThingDTO_properties.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/FilterCriteria.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/FilterCriteriaDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/FirmwareDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/FirmwareStatusDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/GroupFunctionDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/GroupItemDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/HistoryDataBean.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/HumanLanguageInterpreterDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/IconSet.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/IconSet_formats.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/Input.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/Intent.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/Intent_entities.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ItemChannelLinkDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ItemChannelLinkDTO_configuration.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ItemHistoryDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/Links.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/LoggerBean.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/LoggerInfo.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/MappingDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/MetadataDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/MetadataDTO_config.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/Module.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ModuleDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ModuleDTO_configuration.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ModuleTypeDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ModuleTypeDTO_visibility.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/Output.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/PageDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ParameterOption.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ParameterOptionDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/PersistenceCronStrategyDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/PersistenceFilterDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/PersistenceItemConfigurationDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/PersistenceItemInfo.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/PersistenceServiceConfigurationDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/PersistenceServiceDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ProfileTypeDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/RootBean.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/RootUIComponent.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/RootUIComponent_config.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/RootUIComponent_slots.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/Rule.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/RuleDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/RuleDTO_configuration.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/RuleDTO_visibility.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/RuleExecution.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/RuleStatusInfo.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/RuleStatusInfo_status.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/RuleStatusInfo_statusDetail.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/Rule_visibility.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/RuntimeInfo.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/SitemapDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/StateDescription.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/StateOption.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/StrippedThingTypeDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/SystemInfo.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/SystemInfoBean.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/Template.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/Template_visibility.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ThingActionDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ThingDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ThingDTO_configuration.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ThingDTO_properties.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ThingStatusInfo.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ThingStatusInfo_status.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ThingStatusInfo_statusDetail.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ThingTypeDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/ThingTypeDTO_properties.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/TileDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/TokenResponseDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/Transformation.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/TransformationDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/TransformationDTO_configuration.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/Transformation_configuration.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/Trigger.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/TriggerDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/TriggerDTO_configuration.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/UoMInfo.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/UoMInfoBean.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/UserApiTokenDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/UserDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/UserSessionDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/VoiceDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Models/WidgetDTO.cs delete mode 100644 Rest/OpenHAB/Core/Rest/ModuleTypes/Item/WithModuleTypeUItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/ModuleTypes/ModuleTypesRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/OpenHABClient.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Persistence/Item/WithServiceItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Persistence/Items/Item/WithItemnameItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Persistence/Items/ItemsRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Persistence/PersistenceRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/ProfileTypes/ProfileTypesRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Rules/Item/Actions/ActionsRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Rules/Item/Conditions/ConditionsRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Rules/Item/Config/ConfigPutRequestBody.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Rules/Item/Config/ConfigRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Rules/Item/Enable/EnableRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Rules/Item/Item/Item/Config/ConfigRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Rules/Item/Item/Item/Config/Item/WithParamItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Rules/Item/Item/Item/ModuleCategoryItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Rules/Item/Item/WithModuleCategoryItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Rules/Item/Runnow/RunnowPostRequestBody.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Rules/Item/Runnow/RunnowRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Rules/Item/Triggers/TriggersRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Rules/Item/WithRuleUItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Rules/RulesRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Rules/Schedule/ScheduleRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Rules/Schedule/Simulations/SimulationsRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Services/Item/Config/ConfigPutRequestBody.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Services/Item/Config/ConfigRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Services/Item/Contexts/ContextsRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Services/Item/WithServiceItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Services/ServicesRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Sitemaps/Events/EventsRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Sitemaps/Events/Item/WithSubscriptionItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Sitemaps/Events/Subscribe/SubscribeRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Sitemaps/Item/Item/WithPageItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Sitemaps/Item/WithSitemapnameItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Sitemaps/SitemapsRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Systeminfo/SysteminfoRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Systeminfo/Uom/UomRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Tags/Item/WithTagItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Tags/TagsRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Templates/Item/WithTemplateUItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Templates/TemplatesRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/ThingTypes/Item/WithThingTypeUItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/ThingTypes/ThingTypesRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Things/Item/Config/ConfigPutRequestBody.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Things/Item/Config/ConfigRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Things/Item/Config/Status/StatusRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Things/Item/Enable/EnableRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Things/Item/Firmware/FirmwareRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Things/Item/Firmware/Item/WithFirmwareVersionItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Things/Item/Firmware/Status/StatusRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Things/Item/Firmwares/FirmwaresRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Things/Item/Status/StatusRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Things/Item/WithThingUItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Things/ThingsRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Transformations/Item/WithUItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Transformations/Services/ServicesRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Transformations/TransformationsRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Ui/Components/ComponentsRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Ui/Components/Item/Item/WithComponentUItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Ui/Components/Item/WithNamespaceItemRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Ui/Tiles/TilesRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Ui/UiRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Uuid/UuidRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Voice/Defaultvoice/DefaultvoiceRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Voice/Dialog/DialogRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Voice/Dialog/Start/StartRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Voice/Dialog/Stop/StopRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Voice/Interpreters/InterpretersRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Voice/Listenandanswer/ListenandanswerRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Voice/Say/SayRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Voice/VoiceRequestBuilder.cs delete mode 100644 Rest/OpenHAB/Core/Rest/Voice/Voices/VoicesRequestBuilder.cs delete mode 100644 Rest/kiota-lock.json 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 and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithUriItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/config-descriptions/{uri}", rawUrl) { - } - /// - /// Gets a config description by URI. - /// - /// 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, ConfigDescriptionDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Gets a config description by URI. - /// - /// 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 WithUriItemRequestBuilder WithUrl(string rawUrl) { - return new WithUriItemRequestBuilder(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 WithUriItemRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Discovery/Bindings/BindingsRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Discovery/Bindings/BindingsRequestBuilder.cs deleted file mode 100644 index 3c66556..0000000 --- a/Rest/OpenHAB/Core/Rest/Discovery/Bindings/BindingsRequestBuilder.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Discovery.Bindings.Item; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System; -namespace OpenHAB.Core.Rest.Discovery.Bindings { - /// - /// Builds and executes requests for operations under \discovery\bindings - /// - public class BindingsRequestBuilder : BaseRequestBuilder { - /// Gets an item from the openHAB.Core.Rest.discovery.bindings.item collection - /// bindingId - /// A - public WithBindingItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("bindingId", position); - return new WithBindingItemRequestBuilder(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 BindingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/discovery/bindings", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public BindingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/discovery/bindings", rawUrl) { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Discovery/Bindings/Item/Scan/ScanRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Discovery/Bindings/Item/Scan/ScanRequestBuilder.cs deleted file mode 100644 index 59e0d4f..0000000 --- a/Rest/OpenHAB/Core/Rest/Discovery/Bindings/Item/Scan/ScanRequestBuilder.cs +++ /dev/null @@ -1,77 +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.Discovery.Bindings.Item.Scan { - /// - /// Builds and executes requests for operations under \discovery\bindings\{bindingId}\scan - /// - public class ScanRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ScanRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/discovery/bindings/{bindingId}/scan", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ScanRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/discovery/bindings/{bindingId}/scan", rawUrl) { - } - /// - /// Starts asynchronous discovery process for a binding and returns the timeout in seconds of the discovery operation. - /// - /// 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); - } - /// - /// Starts asynchronous discovery process for a binding and returns the timeout in seconds of the discovery operation. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public ScanRequestBuilder WithUrl(string rawUrl) { - return new ScanRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ScanRequestBuilderPostRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Discovery/Bindings/Item/WithBindingItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Discovery/Bindings/Item/WithBindingItemRequestBuilder.cs deleted file mode 100644 index ba98846..0000000 --- a/Rest/OpenHAB/Core/Rest/Discovery/Bindings/Item/WithBindingItemRequestBuilder.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Discovery.Bindings.Item.Scan; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System; -namespace OpenHAB.Core.Rest.Discovery.Bindings.Item { - /// - /// Builds and executes requests for operations under \discovery\bindings\{bindingId} - /// - public class WithBindingItemRequestBuilder : BaseRequestBuilder { - /// The scan property - public ScanRequestBuilder Scan { get => - new ScanRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithBindingItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/discovery/bindings/{bindingId}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithBindingItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/discovery/bindings/{bindingId}", rawUrl) { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Discovery/DiscoveryRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Discovery/DiscoveryRequestBuilder.cs deleted file mode 100644 index 05493d6..0000000 --- a/Rest/OpenHAB/Core/Rest/Discovery/DiscoveryRequestBuilder.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Discovery.Bindings; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace OpenHAB.Core.Rest.Discovery { - /// - /// Builds and executes requests for operations under \discovery - /// - public class DiscoveryRequestBuilder : BaseRequestBuilder { - /// The bindings property - public BindingsRequestBuilder Bindings { get => - new BindingsRequestBuilder(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 DiscoveryRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/discovery", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DiscoveryRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/discovery", rawUrl) { - } - /// - /// Gets all bindings that support discovery. - /// - /// 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 all bindings that support discovery. - /// - /// 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 DiscoveryRequestBuilder WithUrl(string rawUrl) { - return new DiscoveryRequestBuilder(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 DiscoveryRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Events/EventsRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Events/EventsRequestBuilder.cs deleted file mode 100644 index 132abbc..0000000 --- a/Rest/OpenHAB/Core/Rest/Events/EventsRequestBuilder.cs +++ /dev/null @@ -1,96 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Events.States; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace OpenHAB.Core.Rest.Events { - /// - /// Builds and executes requests for operations under \events - /// - public class EventsRequestBuilder : BaseRequestBuilder { - /// The states property - public StatesRequestBuilder States { get => - new StatesRequestBuilder(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 EventsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/events{?topics*}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/events{?topics*}", rawUrl) { - } - /// - /// Get all events. - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get all events. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public EventsRequestBuilder WithUrl(string rawUrl) { - return new EventsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Get all events. - /// - public class EventsRequestBuilderGetQueryParameters { - /// topics -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("topics")] - public string? Topics { get; set; } -#nullable restore -#else - [QueryParameter("topics")] - public string Topics { 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 EventsRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Events/States/Item/WithConnectionItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Events/States/Item/WithConnectionItemRequestBuilder.cs deleted file mode 100644 index db90fc8..0000000 --- a/Rest/OpenHAB/Core/Rest/Events/States/Item/WithConnectionItemRequestBuilder.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.Events.States.Item { - /// - /// Builds and executes requests for operations under \events\states\{connectionId} - /// - public class WithConnectionItemRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithConnectionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/events/states/{connectionId}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithConnectionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/events/states/{connectionId}", rawUrl) { - } - /// - /// Changes the list of items a SSE connection will receive state updates to. - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PostAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Changes the list of items a SSE connection will receive state updates to. - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(List body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(List body, Action> requestConfiguration = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromScalarCollection(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public WithConnectionItemRequestBuilder WithUrl(string rawUrl) { - return new WithConnectionItemRequestBuilder(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 WithConnectionItemRequestBuilderPostRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Events/States/StatesRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Events/States/StatesRequestBuilder.cs deleted file mode 100644 index 4654b04..0000000 --- a/Rest/OpenHAB/Core/Rest/Events/States/StatesRequestBuilder.cs +++ /dev/null @@ -1,85 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Events.States.Item; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace OpenHAB.Core.Rest.Events.States { - /// - /// Builds and executes requests for operations under \events\states - /// - public class StatesRequestBuilder : BaseRequestBuilder { - /// Gets an item from the openHAB.Core.Rest.events.states.item collection - /// Unique identifier of the item - /// A - public WithConnectionItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("connectionId", position); - return new WithConnectionItemRequestBuilder(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 StatesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/events/states", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public StatesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/events/states", rawUrl) { - } - /// - /// Initiates a new item state tracker connection - /// - /// 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); - } - /// - /// Initiates a new item state tracker connection - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public StatesRequestBuilder WithUrl(string rawUrl) { - return new StatesRequestBuilder(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 StatesRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Habot/Attributes/AttributesRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Habot/Attributes/AttributesRequestBuilder.cs deleted file mode 100644 index 92fdddf..0000000 --- a/Rest/OpenHAB/Core/Rest/Habot/Attributes/AttributesRequestBuilder.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.Habot.Attributes { - /// - /// Builds and executes requests for operations under \habot\attributes - /// - public class AttributesRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public AttributesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/attributes", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public AttributesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/attributes", rawUrl) { - } - /// - /// Gets all item named attributes. - /// - /// 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, ChatReply.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Gets all item named attributes. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public AttributesRequestBuilder WithUrl(string rawUrl) { - return new AttributesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class AttributesRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Habot/Cards/CardsRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Habot/Cards/CardsRequestBuilder.cs deleted file mode 100644 index afbbd3a..0000000 --- a/Rest/OpenHAB/Core/Rest/Habot/Cards/CardsRequestBuilder.cs +++ /dev/null @@ -1,137 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Habot.Cards.Item; -using OpenHAB.Core.Rest.Habot.Cards.Recent; -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.Habot.Cards { - /// - /// Builds and executes requests for operations under \habot\cards - /// - public class CardsRequestBuilder : BaseRequestBuilder { - /// The recent property - public RecentRequestBuilder Recent { get => - new RecentRequestBuilder(PathParameters, RequestAdapter); - } - /// Gets an item from the openHAB.Core.Rest.habot.cards.item collection - /// cardUID - /// A - public WithCardUItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("cardUID", position); - return new WithCardUItemRequestBuilder(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 CardsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/cards", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public CardsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/cards", rawUrl) { - } - /// - /// Gets all cards of the card deck. - /// - /// A List<Card> - /// 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, Card.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); - } - /// - /// Creates a new card in the card deck. - /// - /// 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(Card body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PostAsync(Card body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, Card.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Gets all cards of the card deck. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Creates a new card in the card deck. - /// - /// 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(Card body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(Card 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 CardsRequestBuilder WithUrl(string rawUrl) { - return new CardsRequestBuilder(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 CardsRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class CardsRequestBuilderPostRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Habot/Cards/Item/Bookmark/BookmarkRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Habot/Cards/Item/Bookmark/BookmarkRequestBuilder.cs deleted file mode 100644 index 002b52f..0000000 --- a/Rest/OpenHAB/Core/Rest/Habot/Cards/Item/Bookmark/BookmarkRequestBuilder.cs +++ /dev/null @@ -1,114 +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.Habot.Cards.Item.Bookmark { - /// - /// Builds and executes requests for operations under \habot\cards\{cardUID}\bookmark - /// - public class BookmarkRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public BookmarkRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/cards/{cardUID}/bookmark", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public BookmarkRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/cards/{cardUID}/bookmark", rawUrl) { - } - /// - /// Removes the bookmark on a card. - /// - /// 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); - } - /// - /// Sets a bookmark on a card. - /// - /// 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 PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToPutRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Removes the bookmark on a card. - /// - /// 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; - } - /// - /// Sets a bookmark on a card. - /// - /// 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 ToPutRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.PUT, 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 BookmarkRequestBuilder WithUrl(string rawUrl) { - return new BookmarkRequestBuilder(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 BookmarkRequestBuilderDeleteRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class BookmarkRequestBuilderPutRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Habot/Cards/Item/Timestamp/TimestampRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Habot/Cards/Item/Timestamp/TimestampRequestBuilder.cs deleted file mode 100644 index 33c02bf..0000000 --- a/Rest/OpenHAB/Core/Rest/Habot/Cards/Item/Timestamp/TimestampRequestBuilder.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.Habot.Cards.Item.Timestamp { - /// - /// Builds and executes requests for operations under \habot\cards\{cardUID}\timestamp - /// - public class TimestampRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public TimestampRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/cards/{cardUID}/timestamp", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public TimestampRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/cards/{cardUID}/timestamp", rawUrl) { - } - /// - /// Updates the timestamp on a card to the current time - /// - /// 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 PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToPutRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Updates the timestamp on a card to the current time - /// - /// 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 ToPutRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.PUT, 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 TimestampRequestBuilder WithUrl(string rawUrl) { - return new TimestampRequestBuilder(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 TimestampRequestBuilderPutRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Habot/Cards/Item/WithCardUItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Habot/Cards/Item/WithCardUItemRequestBuilder.cs deleted file mode 100644 index 011bf46..0000000 --- a/Rest/OpenHAB/Core/Rest/Habot/Cards/Item/WithCardUItemRequestBuilder.cs +++ /dev/null @@ -1,170 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Habot.Cards.Item.Bookmark; -using OpenHAB.Core.Rest.Habot.Cards.Item.Timestamp; -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.Habot.Cards.Item { - /// - /// Builds and executes requests for operations under \habot\cards\{cardUID} - /// - public class WithCardUItemRequestBuilder : BaseRequestBuilder { - /// The bookmark property - public BookmarkRequestBuilder Bookmark { get => - new BookmarkRequestBuilder(PathParameters, RequestAdapter); - } - /// The timestamp property - public TimestampRequestBuilder Timestamp { get => - new TimestampRequestBuilder(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 WithCardUItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/cards/{cardUID}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithCardUItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/cards/{cardUID}", rawUrl) { - } - /// - /// Deletes a card from the card deck. - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Gets a card from the card deck by its 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, Card.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Updates a card in the card deck. - /// - /// 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(Card body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PutAsync(Card body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, Card.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Deletes a card from the card deck. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Gets a card from the card deck by its 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; - } - /// - /// Updates a card in the card deck. - /// - /// 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(Card body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(Card 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 WithCardUItemRequestBuilder WithUrl(string rawUrl) { - return new WithCardUItemRequestBuilder(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 WithCardUItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class WithCardUItemRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class WithCardUItemRequestBuilderPutRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Habot/Cards/Recent/RecentRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Habot/Cards/Recent/RecentRequestBuilder.cs deleted file mode 100644 index b6a5202..0000000 --- a/Rest/OpenHAB/Core/Rest/Habot/Cards/Recent/RecentRequestBuilder.cs +++ /dev/null @@ -1,88 +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.Habot.Cards.Recent { - /// - /// Builds and executes requests for operations under \habot\cards\recent - /// - public class RecentRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RecentRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/cards/recent{?count*,skip*}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RecentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/cards/recent{?count*,skip*}", rawUrl) { - } - /// - /// Gets the most recent cards from the card deck - /// - /// A List<Card> - /// 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, Card.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); - } - /// - /// Gets the most recent cards from the card deck - /// - /// 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 RecentRequestBuilder WithUrl(string rawUrl) { - return new RecentRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Gets the most recent cards from the card deck - /// - public class RecentRequestBuilderGetQueryParameters { - [QueryParameter("count")] - public int? Count { get; set; } - [QueryParameter("skip")] - public int? Skip { 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 RecentRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Habot/Chat/ChatRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Habot/Chat/ChatRequestBuilder.cs deleted file mode 100644 index 44499e9..0000000 --- a/Rest/OpenHAB/Core/Rest/Habot/Chat/ChatRequestBuilder.cs +++ /dev/null @@ -1,83 +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.Habot.Chat { - /// - /// Builds and executes requests for operations under \habot\chat - /// - public class ChatRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ChatRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/chat", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ChatRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/chat", rawUrl) { - } - /// - /// Send a query to HABot to interpret. - /// - /// 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(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, ChatReply.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Send a query to HABot to interpret. - /// - /// 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(string body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) { -#endif - if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromScalar(RequestAdapter, "text/plain", 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 ChatRequestBuilder WithUrl(string rawUrl) { - return new ChatRequestBuilder(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 ChatRequestBuilderPostRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Habot/Compat/Cards/CardsRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Habot/Compat/Cards/CardsRequestBuilder.cs deleted file mode 100644 index c49dd9b..0000000 --- a/Rest/OpenHAB/Core/Rest/Habot/Compat/Cards/CardsRequestBuilder.cs +++ /dev/null @@ -1,92 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Habot.Compat.Cards.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.Habot.Compat.Cards { - /// - /// Builds and executes requests for operations under \habot\compat\cards - /// - public class CardsRequestBuilder : BaseRequestBuilder { - /// Gets an item from the openHAB.Core.Rest.habot.compat.cards.item collection - /// cardUID - /// A - public WithCardUItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("cardUID", position); - return new WithCardUItemRequestBuilder(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 CardsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/compat/cards", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public CardsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/compat/cards", rawUrl) { - } - /// - /// Creates a new card in the card deck (compatibility endpoint). - /// - /// 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(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, Card.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Creates a new card in the card deck (compatibility endpoint). - /// - /// 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(string body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) { -#endif - if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromScalar(RequestAdapter, "text/plain", 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 CardsRequestBuilder WithUrl(string rawUrl) { - return new CardsRequestBuilder(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 CardsRequestBuilderPostRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Habot/Compat/Cards/Item/Delete/DeleteRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Habot/Compat/Cards/Item/Delete/DeleteRequestBuilder.cs deleted file mode 100644 index d6a05fb..0000000 --- a/Rest/OpenHAB/Core/Rest/Habot/Compat/Cards/Item/Delete/DeleteRequestBuilder.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.Habot.Compat.Cards.Item.Delete { - /// - /// Builds and executes requests for operations under \habot\compat\cards\{cardUID}\delete - /// - public class DeleteRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public DeleteRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/compat/cards/{cardUID}/delete", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public DeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/compat/cards/{cardUID}/delete", rawUrl) { - } - /// - /// Deletes a card from the card deck (compatibility endpoint). - /// - /// 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.SendAsync(requestInfo, Card.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Deletes a card from the card deck (compatibility endpoint). - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPostRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public DeleteRequestBuilder WithUrl(string rawUrl) { - return new DeleteRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class DeleteRequestBuilderPostRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Habot/Compat/Cards/Item/Unbookmark/UnbookmarkRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Habot/Compat/Cards/Item/Unbookmark/UnbookmarkRequestBuilder.cs deleted file mode 100644 index 50691a1..0000000 --- a/Rest/OpenHAB/Core/Rest/Habot/Compat/Cards/Item/Unbookmark/UnbookmarkRequestBuilder.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.Habot.Compat.Cards.Item.Unbookmark { - /// - /// Builds and executes requests for operations under \habot\compat\cards\{cardUID}\unbookmark - /// - public class UnbookmarkRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public UnbookmarkRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/compat/cards/{cardUID}/unbookmark", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public UnbookmarkRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/compat/cards/{cardUID}/unbookmark", rawUrl) { - } - /// - /// Removes the bookmark on a card (compatibility endpoint). - /// - /// 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); - } - /// - /// Removes the bookmark on a card (compatibility endpoint). - /// - /// 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 UnbookmarkRequestBuilder WithUrl(string rawUrl) { - return new UnbookmarkRequestBuilder(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 UnbookmarkRequestBuilderPostRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Habot/Compat/Cards/Item/WithCardUItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Habot/Compat/Cards/Item/WithCardUItemRequestBuilder.cs deleted file mode 100644 index dab3e89..0000000 --- a/Rest/OpenHAB/Core/Rest/Habot/Compat/Cards/Item/WithCardUItemRequestBuilder.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Habot.Compat.Cards.Item.Delete; -using OpenHAB.Core.Rest.Habot.Compat.Cards.Item.Unbookmark; -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.Habot.Compat.Cards.Item { - /// - /// Builds and executes requests for operations under \habot\compat\cards\{cardUID} - /// - public class WithCardUItemRequestBuilder : BaseRequestBuilder { - /// The deletePath property - public DeleteRequestBuilder DeletePath { get => - new DeleteRequestBuilder(PathParameters, RequestAdapter); - } - /// The unbookmark property - public UnbookmarkRequestBuilder Unbookmark { get => - new UnbookmarkRequestBuilder(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 WithCardUItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/compat/cards/{cardUID}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithCardUItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/compat/cards/{cardUID}", rawUrl) { - } - /// - /// Updates a card in the card deck (compatibility endpoint). - /// - /// 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(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, Card.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Updates a card in the card deck (compatibility endpoint). - /// - /// 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(string body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) { -#endif - if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetContentFromScalar(RequestAdapter, "text/plain", 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 WithCardUItemRequestBuilder WithUrl(string rawUrl) { - return new WithCardUItemRequestBuilder(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 WithCardUItemRequestBuilderPostRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Habot/Compat/CompatRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Habot/Compat/CompatRequestBuilder.cs deleted file mode 100644 index 4410dc9..0000000 --- a/Rest/OpenHAB/Core/Rest/Habot/Compat/CompatRequestBuilder.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Habot.Compat.Cards; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System; -namespace OpenHAB.Core.Rest.Habot.Compat { - /// - /// Builds and executes requests for operations under \habot\compat - /// - public class CompatRequestBuilder : BaseRequestBuilder { - /// The cards property - public CardsRequestBuilder Cards { get => - new CardsRequestBuilder(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 CompatRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/compat", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public CompatRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/compat", rawUrl) { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Habot/Greet/GreetRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Habot/Greet/GreetRequestBuilder.cs deleted file mode 100644 index 63aa47b..0000000 --- a/Rest/OpenHAB/Core/Rest/Habot/Greet/GreetRequestBuilder.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.Habot.Greet { - /// - /// Builds and executes requests for operations under \habot\greet - /// - public class GreetRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public GreetRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/greet", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public GreetRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/greet", rawUrl) { - } - /// - /// Retrieves a first greeting message from the bot in the specified or configured language. - /// - /// 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, ChatReply.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Retrieves a first greeting message from the bot in the specified or configured language. - /// - /// 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 GreetRequestBuilder WithUrl(string rawUrl) { - return new GreetRequestBuilder(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 GreetRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Habot/HabotRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Habot/HabotRequestBuilder.cs deleted file mode 100644 index dfcc369..0000000 --- a/Rest/OpenHAB/Core/Rest/Habot/HabotRequestBuilder.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Habot.Attributes; -using OpenHAB.Core.Rest.Habot.Cards; -using OpenHAB.Core.Rest.Habot.Chat; -using OpenHAB.Core.Rest.Habot.Compat; -using OpenHAB.Core.Rest.Habot.Greet; -using OpenHAB.Core.Rest.Habot.Notifications; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System; -namespace OpenHAB.Core.Rest.Habot { - /// - /// Builds and executes requests for operations under \habot - /// - public class HabotRequestBuilder : BaseRequestBuilder { - /// The attributes property - public AttributesRequestBuilder Attributes { get => - new AttributesRequestBuilder(PathParameters, RequestAdapter); - } - /// The cards property - public CardsRequestBuilder Cards { get => - new CardsRequestBuilder(PathParameters, RequestAdapter); - } - /// The chat property - public ChatRequestBuilder Chat { get => - new ChatRequestBuilder(PathParameters, RequestAdapter); - } - /// The compat property - public CompatRequestBuilder Compat { get => - new CompatRequestBuilder(PathParameters, RequestAdapter); - } - /// The greet property - public GreetRequestBuilder Greet { get => - new GreetRequestBuilder(PathParameters, RequestAdapter); - } - /// The notifications property - public NotificationsRequestBuilder Notifications { get => - new NotificationsRequestBuilder(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 HabotRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public HabotRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot", rawUrl) { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Habot/Notifications/NotificationsRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Habot/Notifications/NotificationsRequestBuilder.cs deleted file mode 100644 index e6513dc..0000000 --- a/Rest/OpenHAB/Core/Rest/Habot/Notifications/NotificationsRequestBuilder.cs +++ /dev/null @@ -1,38 +0,0 @@ -// -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Habot.Notifications.Subscribe; -using OpenHAB.Core.Rest.Habot.Notifications.Vapid; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System; -namespace OpenHAB.Core.Rest.Habot.Notifications { - /// - /// Builds and executes requests for operations under \habot\notifications - /// - public class NotificationsRequestBuilder : BaseRequestBuilder { - /// The subscribe property - public SubscribeRequestBuilder Subscribe { get => - new SubscribeRequestBuilder(PathParameters, RequestAdapter); - } - /// The vapid property - public VapidRequestBuilder Vapid { get => - new VapidRequestBuilder(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 NotificationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/notifications", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public NotificationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/notifications", rawUrl) { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Habot/Notifications/Subscribe/SubscribeRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Habot/Notifications/Subscribe/SubscribeRequestBuilder.cs deleted file mode 100644 index b7a9f4c..0000000 --- a/Rest/OpenHAB/Core/Rest/Habot/Notifications/Subscribe/SubscribeRequestBuilder.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.Habot.Notifications.Subscribe { - /// - /// Builds and executes requests for operations under \habot\notifications\subscribe - /// - public class SubscribeRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public SubscribeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/notifications/subscribe", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public SubscribeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/notifications/subscribe", rawUrl) { - } - /// - /// Subscribes a new client for push notifications. - /// - /// 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(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Subscribes a new client for push notifications. - /// - /// 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(string body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) { -#endif - if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromScalar(RequestAdapter, "text/plain", 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 SubscribeRequestBuilder WithUrl(string rawUrl) { - return new SubscribeRequestBuilder(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 SubscribeRequestBuilderPostRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Habot/Notifications/Vapid/VapidRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Habot/Notifications/Vapid/VapidRequestBuilder.cs deleted file mode 100644 index ea19bef..0000000 --- a/Rest/OpenHAB/Core/Rest/Habot/Notifications/Vapid/VapidRequestBuilder.cs +++ /dev/null @@ -1,77 +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.Habot.Notifications.Vapid { - /// - /// Builds and executes requests for operations under \habot\notifications\vapid - /// - public class VapidRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public VapidRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/notifications/vapid", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public VapidRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/habot/notifications/vapid", rawUrl) { - } - /// - /// Gets or generates the public VAPID key used for push notifications. - /// - /// 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); - } - /// - /// Gets or generates the public VAPID key used for push notifications. - /// - /// 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 VapidRequestBuilder WithUrl(string rawUrl) { - return new VapidRequestBuilder(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 VapidRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Iconsets/IconsetsRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Iconsets/IconsetsRequestBuilder.cs deleted file mode 100644 index c140f3e..0000000 --- a/Rest/OpenHAB/Core/Rest/Iconsets/IconsetsRequestBuilder.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.Iconsets { - /// - /// Builds and executes requests for operations under \iconsets - /// - public class IconsetsRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public IconsetsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/iconsets", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public IconsetsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/iconsets", rawUrl) { - } - /// - /// Gets all icon sets. - /// - /// A List<IconSet> - /// 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, IconSet.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); - } - /// - /// Gets all icon sets. - /// - /// 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 IconsetsRequestBuilder WithUrl(string rawUrl) { - return new IconsetsRequestBuilder(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 IconsetsRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Inbox/InboxRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Inbox/InboxRequestBuilder.cs deleted file mode 100644 index d25f127..0000000 --- a/Rest/OpenHAB/Core/Rest/Inbox/InboxRequestBuilder.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Inbox.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.Inbox { - /// - /// Builds and executes requests for operations under \inbox - /// - public class InboxRequestBuilder : BaseRequestBuilder { - /// Gets an item from the openHAB.Core.Rest.inbox.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 InboxRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/inbox", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public InboxRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/inbox", rawUrl) { - } - /// - /// Get all discovered things. - /// - /// A List<DiscoveryResultDTO> - /// 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, DiscoveryResultDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); - } - /// - /// Get all discovered things. - /// - /// 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 InboxRequestBuilder WithUrl(string rawUrl) { - return new InboxRequestBuilder(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 InboxRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Inbox/Item/Approve/ApproveRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Inbox/Item/Approve/ApproveRequestBuilder.cs deleted file mode 100644 index e1c3ac1..0000000 --- a/Rest/OpenHAB/Core/Rest/Inbox/Item/Approve/ApproveRequestBuilder.cs +++ /dev/null @@ -1,96 +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.Inbox.Item.Approve { - /// - /// Builds and executes requests for operations under \inbox\{thingUID}\approve - /// - public class ApproveRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ApproveRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/inbox/{thingUID}/approve{?newThingId*}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ApproveRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/inbox/{thingUID}/approve{?newThingId*}", rawUrl) { - } - /// - /// Approves the discovery result by adding the thing to the registry. - /// - /// 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(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Approves the discovery result by adding the thing to the registry. - /// - /// 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(string body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) { -#endif - if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromScalar(RequestAdapter, "text/plain", 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 ApproveRequestBuilder WithUrl(string rawUrl) { - return new ApproveRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Approves the discovery result by adding the thing to the registry. - /// - public class ApproveRequestBuilderPostQueryParameters { - /// new thing ID -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("newThingId")] - public string? NewThingId { get; set; } -#nullable restore -#else - [QueryParameter("newThingId")] - public string NewThingId { 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 ApproveRequestBuilderPostRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Inbox/Item/Ignore/IgnoreRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Inbox/Item/Ignore/IgnoreRequestBuilder.cs deleted file mode 100644 index 2590944..0000000 --- a/Rest/OpenHAB/Core/Rest/Inbox/Item/Ignore/IgnoreRequestBuilder.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.Inbox.Item.Ignore { - /// - /// Builds and executes requests for operations under \inbox\{thingUID}\ignore - /// - public class IgnoreRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public IgnoreRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/inbox/{thingUID}/ignore", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public IgnoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/inbox/{thingUID}/ignore", rawUrl) { - } - /// - /// Flags a discovery result as ignored for further processing. - /// - /// 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); - } - /// - /// Flags a discovery result as ignored for further processing. - /// - /// 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 IgnoreRequestBuilder WithUrl(string rawUrl) { - return new IgnoreRequestBuilder(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 IgnoreRequestBuilderPostRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Inbox/Item/Unignore/UnignoreRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Inbox/Item/Unignore/UnignoreRequestBuilder.cs deleted file mode 100644 index 8185be4..0000000 --- a/Rest/OpenHAB/Core/Rest/Inbox/Item/Unignore/UnignoreRequestBuilder.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.Inbox.Item.Unignore { - /// - /// Builds and executes requests for operations under \inbox\{thingUID}\unignore - /// - public class UnignoreRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public UnignoreRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/inbox/{thingUID}/unignore", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public UnignoreRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/inbox/{thingUID}/unignore", rawUrl) { - } - /// - /// Removes ignore flag from a discovery result. - /// - /// 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); - } - /// - /// Removes ignore flag from a discovery result. - /// - /// 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 UnignoreRequestBuilder WithUrl(string rawUrl) { - return new UnignoreRequestBuilder(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 UnignoreRequestBuilderPostRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Inbox/Item/WithThingUItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Inbox/Item/WithThingUItemRequestBuilder.cs deleted file mode 100644 index 60af366..0000000 --- a/Rest/OpenHAB/Core/Rest/Inbox/Item/WithThingUItemRequestBuilder.cs +++ /dev/null @@ -1,91 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Inbox.Item.Approve; -using OpenHAB.Core.Rest.Inbox.Item.Ignore; -using OpenHAB.Core.Rest.Inbox.Item.Unignore; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace OpenHAB.Core.Rest.Inbox.Item { - /// - /// Builds and executes requests for operations under \inbox\{thingUID} - /// - public class WithThingUItemRequestBuilder : BaseRequestBuilder { - /// The approve property - public ApproveRequestBuilder Approve { get => - new ApproveRequestBuilder(PathParameters, RequestAdapter); - } - /// The ignore property - public IgnoreRequestBuilder Ignore { get => - new IgnoreRequestBuilder(PathParameters, RequestAdapter); - } - /// The unignore property - public UnignoreRequestBuilder Unignore { get => - new UnignoreRequestBuilder(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 WithThingUItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/inbox/{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}/inbox/{thingUID}", rawUrl) { - } - /// - /// Removes the discovery result from the inbox. - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Removes the discovery result from the inbox. - /// - /// 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 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 WithThingUItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Items/Item/ItemNameItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Items/Item/ItemNameItemRequestBuilder.cs deleted file mode 100644 index 89e8f42..0000000 --- a/Rest/OpenHAB/Core/Rest/Items/Item/ItemNameItemRequestBuilder.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Items.Item.Members; -using OpenHAB.Core.Rest.Items.Item.Metadata; -using OpenHAB.Core.Rest.Items.Item.Semantic; -using OpenHAB.Core.Rest.Items.Item.State; -using OpenHAB.Core.Rest.Items.Item.Tags; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System; -namespace OpenHAB.Core.Rest.Items.Item { - /// - /// Builds and executes requests for operations under \items\{itemName-id} - /// - public class ItemNameItemRequestBuilder : BaseRequestBuilder { - /// The members property - public MembersRequestBuilder Members { get => - new MembersRequestBuilder(PathParameters, RequestAdapter); - } - /// The metadata property - public MetadataRequestBuilder Metadata { get => - new MetadataRequestBuilder(PathParameters, RequestAdapter); - } - /// The semantic property - public SemanticRequestBuilder Semantic { get => - new SemanticRequestBuilder(PathParameters, RequestAdapter); - } - /// The state property - public StateRequestBuilder State { get => - new StateRequestBuilder(PathParameters, RequestAdapter); - } - /// The tags property - public TagsRequestBuilder Tags { get => - new TagsRequestBuilder(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 ItemNameItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/{itemName%2Did}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ItemNameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/{itemName%2Did}", rawUrl) { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Items/Item/Members/Item/WithMemberItemNameItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Items/Item/Members/Item/WithMemberItemNameItemRequestBuilder.cs deleted file mode 100644 index c3e0a78..0000000 --- a/Rest/OpenHAB/Core/Rest/Items/Item/Members/Item/WithMemberItemNameItemRequestBuilder.cs +++ /dev/null @@ -1,114 +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.Items.Item.Members.Item { - /// - /// Builds and executes requests for operations under \items\{itemName-id}\members\{memberItemName} - /// - public class WithMemberItemNameItemRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithMemberItemNameItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/{itemName%2Did}/members/{memberItemName}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithMemberItemNameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/{itemName%2Did}/members/{memberItemName}", rawUrl) { - } - /// - /// Removes an existing member from a group item. - /// - /// 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); - } - /// - /// Adds a new member to a group item. - /// - /// 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 PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToPutRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Removes an existing member from a group item. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Adds a new member to a group item. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.PUT, 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 WithMemberItemNameItemRequestBuilder WithUrl(string rawUrl) { - return new WithMemberItemNameItemRequestBuilder(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 WithMemberItemNameItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class WithMemberItemNameItemRequestBuilderPutRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Items/Item/Members/MembersRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Items/Item/Members/MembersRequestBuilder.cs deleted file mode 100644 index 15d6936..0000000 --- a/Rest/OpenHAB/Core/Rest/Items/Item/Members/MembersRequestBuilder.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Items.Item.Members.Item; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System; -namespace OpenHAB.Core.Rest.Items.Item.Members { - /// - /// Builds and executes requests for operations under \items\{itemName-id}\members - /// - public class MembersRequestBuilder : BaseRequestBuilder { - /// Gets an item from the openHAB.Core.Rest.items.item.members.item collection - /// member item name - /// A - public WithMemberItemNameItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("memberItemName", position); - return new WithMemberItemNameItemRequestBuilder(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 MembersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/{itemName%2Did}/members", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public MembersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/{itemName%2Did}/members", rawUrl) { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Items/Item/Metadata/Item/WithNamespaceItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Items/Item/Metadata/Item/WithNamespaceItemRequestBuilder.cs deleted file mode 100644 index d4b7fdb..0000000 --- a/Rest/OpenHAB/Core/Rest/Items/Item/Metadata/Item/WithNamespaceItemRequestBuilder.cs +++ /dev/null @@ -1,119 +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.Items.Item.Metadata.Item { - /// - /// Builds and executes requests for operations under \items\{itemName-id}\metadata\{namespace} - /// - public class WithNamespaceItemRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithNamespaceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/{itemName%2Did}/metadata/{namespace}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithNamespaceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/{itemName%2Did}/metadata/{namespace}", rawUrl) { - } - /// - /// Removes metadata from an item. - /// - /// 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); - } - /// - /// Adds metadata to an item. - /// - /// 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(MetadataDTO body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PutAsync(MetadataDTO body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Removes metadata from an item. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Adds metadata to an item. - /// - /// 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(MetadataDTO body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(MetadataDTO body, Action> requestConfiguration = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public WithNamespaceItemRequestBuilder WithUrl(string rawUrl) { - return new WithNamespaceItemRequestBuilder(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 WithNamespaceItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class WithNamespaceItemRequestBuilderPutRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Items/Item/Metadata/MetadataRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Items/Item/Metadata/MetadataRequestBuilder.cs deleted file mode 100644 index 60d1f96..0000000 --- a/Rest/OpenHAB/Core/Rest/Items/Item/Metadata/MetadataRequestBuilder.cs +++ /dev/null @@ -1,42 +0,0 @@ -// -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Items.Item.Metadata.Item; -using OpenHAB.Core.Rest.Items.Item.Metadata.Namespaces; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System; -namespace OpenHAB.Core.Rest.Items.Item.Metadata { - /// - /// Builds and executes requests for operations under \items\{itemName-id}\metadata - /// - public class MetadataRequestBuilder : BaseRequestBuilder { - /// The namespaces property - public NamespacesRequestBuilder Namespaces { get => - new NamespacesRequestBuilder(PathParameters, RequestAdapter); - } - /// Gets an item from the openHAB.Core.Rest.items.item.metadata.item collection - /// namespace - /// A - public WithNamespaceItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("namespace", position); - return new WithNamespaceItemRequestBuilder(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 MetadataRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/{itemName%2Did}/metadata", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public MetadataRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/{itemName%2Did}/metadata", rawUrl) { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Items/Item/Metadata/Namespaces/NamespacesRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Items/Item/Metadata/Namespaces/NamespacesRequestBuilder.cs deleted file mode 100644 index b525497..0000000 --- a/Rest/OpenHAB/Core/Rest/Items/Item/Metadata/Namespaces/NamespacesRequestBuilder.cs +++ /dev/null @@ -1,77 +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.Items.Item.Metadata.Namespaces { - /// - /// Builds and executes requests for operations under \items\{itemName-id}\metadata\namespaces - /// - public class NamespacesRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public NamespacesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/{itemName%2Did}/metadata/namespaces", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public NamespacesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/{itemName%2Did}/metadata/namespaces", rawUrl) { - } - /// - /// Gets the namespace of an item. - /// - /// 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); - } - /// - /// Gets the namespace of an item. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation 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 NamespacesRequestBuilder WithUrl(string rawUrl) { - return new NamespacesRequestBuilder(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 NamespacesRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Items/Item/Semantic/Item/WithSemanticClassItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Items/Item/Semantic/Item/WithSemanticClassItemRequestBuilder.cs deleted file mode 100644 index 6187e9d..0000000 --- a/Rest/OpenHAB/Core/Rest/Items/Item/Semantic/Item/WithSemanticClassItemRequestBuilder.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.Items.Item.Semantic.Item { - /// - /// Builds and executes requests for operations under \items\{itemName-id}\semantic\{semanticClass} - /// - public class WithSemanticClassItemRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithSemanticClassItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/{itemName%2Did}/semantic/{semanticClass}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithSemanticClassItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/{itemName%2Did}/semantic/{semanticClass}", rawUrl) { - } - /// - /// Gets the item which defines the requested semantics of an item. - /// - /// 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); - } - /// - /// Gets the item which defines the requested semantics of an item. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public WithSemanticClassItemRequestBuilder WithUrl(string rawUrl) { - return new WithSemanticClassItemRequestBuilder(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 WithSemanticClassItemRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Items/Item/Semantic/SemanticRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Items/Item/Semantic/SemanticRequestBuilder.cs deleted file mode 100644 index eea9d18..0000000 --- a/Rest/OpenHAB/Core/Rest/Items/Item/Semantic/SemanticRequestBuilder.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Items.Item.Semantic.Item; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System; -namespace OpenHAB.Core.Rest.Items.Item.Semantic { - /// - /// Builds and executes requests for operations under \items\{itemName-id}\semantic - /// - public class SemanticRequestBuilder : BaseRequestBuilder { - /// Gets an item from the openHAB.Core.Rest.items.item.semantic.item collection - /// semantic class - /// A - public WithSemanticClassItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("semanticClass", position); - return new WithSemanticClassItemRequestBuilder(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 SemanticRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/{itemName%2Did}/semantic", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public SemanticRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/{itemName%2Did}/semantic", rawUrl) { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Items/Item/State/StateRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Items/Item/State/StateRequestBuilder.cs deleted file mode 100644 index 77a9694..0000000 --- a/Rest/OpenHAB/Core/Rest/Items/Item/State/StateRequestBuilder.cs +++ /dev/null @@ -1,119 +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.Items.Item.State { - /// - /// Builds and executes requests for operations under \items\{itemName-id}\state - /// - public class StateRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public StateRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/{itemName%2Did}/state", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public StateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/{itemName%2Did}/state", rawUrl) { - } - /// - /// Gets the state of an item. - /// - /// 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 the state of an item. - /// - /// 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(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PutAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Gets the state of an item. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); - return requestInfo; - } - /// - /// Updates the state of an item. - /// - /// 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(string body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(string body, Action> requestConfiguration = default) { -#endif - if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromScalar(RequestAdapter, "text/plain", 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 StateRequestBuilder WithUrl(string rawUrl) { - return new StateRequestBuilder(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 StateRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class StateRequestBuilderPutRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Items/Item/Tags/Item/WithTagItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Items/Item/Tags/Item/WithTagItemRequestBuilder.cs deleted file mode 100644 index d570c35..0000000 --- a/Rest/OpenHAB/Core/Rest/Items/Item/Tags/Item/WithTagItemRequestBuilder.cs +++ /dev/null @@ -1,114 +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.Items.Item.Tags.Item { - /// - /// Builds and executes requests for operations under \items\{itemName-id}\tags\{tag} - /// - public class WithTagItemRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithTagItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/{itemName%2Did}/tags/{tag}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithTagItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/{itemName%2Did}/tags/{tag}", rawUrl) { - } - /// - /// Removes a tag from an item. - /// - /// 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); - } - /// - /// Adds a tag to an item. - /// - /// 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 PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToPutRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Removes a tag from an item. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Adds a tag to an item. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPutRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.PUT, 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 WithTagItemRequestBuilder WithUrl(string rawUrl) { - return new WithTagItemRequestBuilder(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 WithTagItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class WithTagItemRequestBuilderPutRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Items/Item/Tags/TagsRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Items/Item/Tags/TagsRequestBuilder.cs deleted file mode 100644 index 35fce6d..0000000 --- a/Rest/OpenHAB/Core/Rest/Items/Item/Tags/TagsRequestBuilder.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Items.Item.Tags.Item; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System; -namespace OpenHAB.Core.Rest.Items.Item.Tags { - /// - /// Builds and executes requests for operations under \items\{itemName-id}\tags - /// - public class TagsRequestBuilder : BaseRequestBuilder { - /// Gets an item from the openHAB.Core.Rest.items.item.tags.item collection - /// tag - /// A - public WithTagItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("tag", position); - return new WithTagItemRequestBuilder(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 TagsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/{itemName%2Did}/tags", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public TagsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/{itemName%2Did}/tags", rawUrl) { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Items/ItemsRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Items/ItemsRequestBuilder.cs deleted file mode 100644 index 03bba6f..0000000 --- a/Rest/OpenHAB/Core/Rest/Items/ItemsRequestBuilder.cs +++ /dev/null @@ -1,188 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Items.Item; -using OpenHAB.Core.Rest.Items.Metadata; -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.Items { - /// - /// Builds and executes requests for operations under \items - /// - public class ItemsRequestBuilder : BaseRequestBuilder { - /// The metadata property - public MetadataRequestBuilder Metadata { get => - new MetadataRequestBuilder(PathParameters, RequestAdapter); - } - /// Gets an item from the openHAB.Core.Rest.items.item collection - /// item name - /// A - public ItemNameItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("itemName%2Did", position); - return new ItemNameItemRequestBuilder(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 ItemsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items{?fields*,metadata*,recursive*,staticDataOnly*,tags*,type*}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ItemsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items{?fields*,metadata*,recursive*,staticDataOnly*,tags*,type*}", rawUrl) { - } - /// - /// Get all available items. - /// - /// A List<EnrichedItemDTO> - /// 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, EnrichedItemDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); - } - /// - /// Adds a list of items to the registry or updates the existing items. - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PutAsync(List body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PutAsync(List body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get all available items. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Adds a list of items to the registry or updates the existing items. - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPutRequestInformation(List body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(List body, Action> requestConfiguration = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, "{+baseurl}/items", 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 ItemsRequestBuilder WithUrl(string rawUrl) { - return new ItemsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Get all available items. - /// - public class ItemsRequestBuilderGetQueryParameters { - /// limit output to the given fields (comma separated) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("fields")] - public string? Fields { get; set; } -#nullable restore -#else - [QueryParameter("fields")] - public string Fields { get; set; } -#endif - /// metadata selector - a comma separated list or a regular expression (returns all if no value given) -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("metadata")] - public string? Metadata { get; set; } -#nullable restore -#else - [QueryParameter("metadata")] - public string Metadata { get; set; } -#endif - /// get member items recursively - [QueryParameter("recursive")] - public bool? Recursive { get; set; } - /// provides a cacheable list of values not expected to change regularly and checks the If-Modified-Since header, all other parameters are ignored except "metadata" - [QueryParameter("staticDataOnly")] - public bool? StaticDataOnly { get; set; } - /// item tag filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("tags")] - public string? Tags { get; set; } -#nullable restore -#else - [QueryParameter("tags")] - public string Tags { get; set; } -#endif - /// item type filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("type")] - public string? Type { get; set; } -#nullable restore -#else - [QueryParameter("type")] - public string Type { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ItemsRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ItemsRequestBuilderPutRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Items/Metadata/MetadataRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Items/Metadata/MetadataRequestBuilder.cs deleted file mode 100644 index 7041461..0000000 --- a/Rest/OpenHAB/Core/Rest/Items/Metadata/MetadataRequestBuilder.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Items.Metadata.Purge; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System; -namespace OpenHAB.Core.Rest.Items.Metadata { - /// - /// Builds and executes requests for operations under \items\metadata - /// - public class MetadataRequestBuilder : BaseRequestBuilder { - /// The purge property - public PurgeRequestBuilder Purge { get => - new PurgeRequestBuilder(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 MetadataRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/metadata", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public MetadataRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/metadata", rawUrl) { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Items/Metadata/Purge/PurgeRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Items/Metadata/Purge/PurgeRequestBuilder.cs deleted file mode 100644 index 24345db..0000000 --- a/Rest/OpenHAB/Core/Rest/Items/Metadata/Purge/PurgeRequestBuilder.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.Items.Metadata.Purge { - /// - /// Builds and executes requests for operations under \items\metadata\purge - /// - public class PurgeRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public PurgeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/metadata/purge", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public PurgeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/items/metadata/purge", rawUrl) { - } - /// - /// Remove unused/orphaned metadata. - /// - /// 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); - } - /// - /// Remove unused/orphaned metadata. - /// - /// 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 PurgeRequestBuilder WithUrl(string rawUrl) { - return new PurgeRequestBuilder(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 PurgeRequestBuilderPostRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Links/Item/Item/WithChannelUItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Links/Item/Item/WithChannelUItemRequestBuilder.cs deleted file mode 100644 index 642f2f6..0000000 --- a/Rest/OpenHAB/Core/Rest/Links/Item/Item/WithChannelUItemRequestBuilder.cs +++ /dev/null @@ -1,159 +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.Links.Item.Item { - /// - /// Builds and executes requests for operations under \links\{itemName}\{channelUID} - /// - public class WithChannelUItemRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithChannelUItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/links/{itemName}/{channelUID}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithChannelUItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/links/{itemName}/{channelUID}", rawUrl) { - } - /// - /// Unlinks an item from a channel. - /// - /// 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); - } - /// - /// Retrieves an individual link. - /// - /// 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, EnrichedItemChannelLinkDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Links an item to a channel. - /// - /// 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(ItemChannelLinkDTO body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PutAsync(ItemChannelLinkDTO 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); - } - /// - /// Unlinks an item from a channel. - /// - /// 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; - } - /// - /// Retrieves an individual link. - /// - /// 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; - } - /// - /// Links an item to a channel. - /// - /// 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(ItemChannelLinkDTO body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(ItemChannelLinkDTO body, Action> requestConfiguration = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public WithChannelUItemRequestBuilder WithUrl(string rawUrl) { - return new WithChannelUItemRequestBuilder(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 WithChannelUItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class WithChannelUItemRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class WithChannelUItemRequestBuilderPutRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Links/Item/WithItemNameItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Links/Item/WithItemNameItemRequestBuilder.cs deleted file mode 100644 index b084006..0000000 --- a/Rest/OpenHAB/Core/Rest/Links/Item/WithItemNameItemRequestBuilder.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Links.Item.Item; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System; -namespace OpenHAB.Core.Rest.Links.Item { - /// - /// Builds and executes requests for operations under \links\{itemName} - /// - public class WithItemNameItemRequestBuilder : BaseRequestBuilder { - /// Gets an item from the openHAB.Core.Rest.links.item.item collection - /// channel UID - /// A - public WithChannelUItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("channelUID", position); - return new WithChannelUItemRequestBuilder(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 WithItemNameItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/links/{itemName}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithItemNameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/links/{itemName}", rawUrl) { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Links/LinksRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Links/LinksRequestBuilder.cs deleted file mode 100644 index 76617f7..0000000 --- a/Rest/OpenHAB/Core/Rest/Links/LinksRequestBuilder.cs +++ /dev/null @@ -1,118 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Links.Item; -using OpenHAB.Core.Rest.Links.Purge; -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.Links { - /// - /// Builds and executes requests for operations under \links - /// - public class LinksRequestBuilder : BaseRequestBuilder { - /// The purge property - public PurgeRequestBuilder Purge { get => - new PurgeRequestBuilder(PathParameters, RequestAdapter); - } - /// Gets an item from the openHAB.Core.Rest.links.item collection - /// item name - /// A - public WithItemNameItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("itemName", position); - return new WithItemNameItemRequestBuilder(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 LinksRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/links{?channelUID*,itemName*}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public LinksRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/links{?channelUID*,itemName*}", rawUrl) { - } - /// - /// Gets all available links. - /// - /// A List<EnrichedItemChannelLinkDTO> - /// 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, EnrichedItemChannelLinkDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); - } - /// - /// Gets all available links. - /// - /// 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 LinksRequestBuilder WithUrl(string rawUrl) { - return new LinksRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Gets all available links. - /// - public class LinksRequestBuilderGetQueryParameters { - /// filter by channel UID -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("channelUID")] - public string? ChannelUID { get; set; } -#nullable restore -#else - [QueryParameter("channelUID")] - public string ChannelUID { get; set; } -#endif - /// filter by item name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("itemName")] - public string? ItemName { get; set; } -#nullable restore -#else - [QueryParameter("itemName")] - public string ItemName { 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 LinksRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Links/Purge/PurgeRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Links/Purge/PurgeRequestBuilder.cs deleted file mode 100644 index cb17a3f..0000000 --- a/Rest/OpenHAB/Core/Rest/Links/Purge/PurgeRequestBuilder.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.Links.Purge { - /// - /// Builds and executes requests for operations under \links\purge - /// - public class PurgeRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public PurgeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/links/purge", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public PurgeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/links/purge", rawUrl) { - } - /// - /// Remove unused/orphaned links. - /// - /// 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); - } - /// - /// Remove unused/orphaned links. - /// - /// 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 PurgeRequestBuilder WithUrl(string rawUrl) { - return new PurgeRequestBuilder(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 PurgeRequestBuilderPostRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Logging/Item/WithLoggerNameItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Logging/Item/WithLoggerNameItemRequestBuilder.cs deleted file mode 100644 index 0d6c9a8..0000000 --- a/Rest/OpenHAB/Core/Rest/Logging/Item/WithLoggerNameItemRequestBuilder.cs +++ /dev/null @@ -1,159 +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.Logging.Item { - /// - /// Builds and executes requests for operations under \logging\{loggerName} - /// - public class WithLoggerNameItemRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithLoggerNameItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/logging/{loggerName}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithLoggerNameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/logging/{loggerName}", rawUrl) { - } - /// - /// Remove a single logger. - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get a single logger. - /// - /// 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, LoggerInfo.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Modify or add logger - /// - /// 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(LoggerInfo body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PutAsync(LoggerInfo 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); - } - /// - /// Remove a single logger. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Get a single logger. - /// - /// 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; - } - /// - /// Modify or add logger - /// - /// 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(LoggerInfo body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(LoggerInfo body, Action> requestConfiguration = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public WithLoggerNameItemRequestBuilder WithUrl(string rawUrl) { - return new WithLoggerNameItemRequestBuilder(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 WithLoggerNameItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class WithLoggerNameItemRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class WithLoggerNameItemRequestBuilderPutRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Logging/LoggingRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Logging/LoggingRequestBuilder.cs deleted file mode 100644 index 9aa13fe..0000000 --- a/Rest/OpenHAB/Core/Rest/Logging/LoggingRequestBuilder.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Logging.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.Logging { - /// - /// Builds and executes requests for operations under \logging - /// - public class LoggingRequestBuilder : BaseRequestBuilder { - /// Gets an item from the openHAB.Core.Rest.logging.item collection - /// logger name - /// A - public WithLoggerNameItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("loggerName", position); - return new WithLoggerNameItemRequestBuilder(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 LoggingRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/logging", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public LoggingRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/logging", rawUrl) { - } - /// - /// Get all loggers - /// - /// 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, LoggerBean.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get all loggers - /// - /// 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 LoggingRequestBuilder WithUrl(string rawUrl) { - return new LoggingRequestBuilder(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 LoggingRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ActionDTO.cs b/Rest/OpenHAB/Core/Rest/Models/ActionDTO.cs deleted file mode 100644 index dbf4e01..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ActionDTO.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.Models { - public class ActionDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The configuration property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public ActionDTO_configuration? Configuration { get; set; } -#nullable restore -#else - public ActionDTO_configuration Configuration { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The id property -#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 inputs property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public ActionDTO_inputs? Inputs { get; set; } -#nullable restore -#else - public ActionDTO_inputs Inputs { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ActionDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ActionDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ActionDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"configuration", n => { Configuration = n.GetObjectValue(ActionDTO_configuration.CreateFromDiscriminatorValue); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"inputs", n => { Inputs = n.GetObjectValue(ActionDTO_inputs.CreateFromDiscriminatorValue); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("configuration", Configuration); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("id", Id); - writer.WriteObjectValue("inputs", Inputs); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ActionDTO_configuration.cs b/Rest/OpenHAB/Core/Rest/Models/ActionDTO_configuration.cs deleted file mode 100644 index 4199a79..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ActionDTO_configuration.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.Models { - public class ActionDTO_configuration : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ActionDTO_configuration() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ActionDTO_configuration CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ActionDTO_configuration(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/ActionDTO_inputs.cs b/Rest/OpenHAB/Core/Rest/Models/ActionDTO_inputs.cs deleted file mode 100644 index 82043e4..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ActionDTO_inputs.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.Models { - public class ActionDTO_inputs : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ActionDTO_inputs() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ActionDTO_inputs CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ActionDTO_inputs(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/ActionObject.cs b/Rest/OpenHAB/Core/Rest/Models/ActionObject.cs deleted file mode 100644 index 932ae5c..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ActionObject.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.Models { - public class ActionObject : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The configuration property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public OpenHAB.Core.Rest.Models.Configuration? Configuration { get; set; } -#nullable restore -#else - public OpenHAB.Core.Rest.Models.Configuration Configuration { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The id property -#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 inputs property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public Action_inputs? Inputs { get; set; } -#nullable restore -#else - public Action_inputs Inputs { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The typeUID property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TypeUID { get; set; } -#nullable restore -#else - public string TypeUID { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ActionObject() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ActionObject CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ActionObject(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"configuration", n => { Configuration = n.GetObjectValue(OpenHAB.Core.Rest.Models.Configuration.CreateFromDiscriminatorValue); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"inputs", n => { Inputs = n.GetObjectValue(Action_inputs.CreateFromDiscriminatorValue); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"typeUID", n => { TypeUID = 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.WriteObjectValue("configuration", Configuration); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("id", Id); - writer.WriteObjectValue("inputs", Inputs); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("typeUID", TypeUID); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/Action_inputs.cs b/Rest/OpenHAB/Core/Rest/Models/Action_inputs.cs deleted file mode 100644 index f8a5bab..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/Action_inputs.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.Models { - public class Action_inputs : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Action_inputs() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static Action_inputs CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Action_inputs(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/Addon.cs b/Rest/OpenHAB/Core/Rest/Models/Addon.cs deleted file mode 100644 index daa8077..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/Addon.cs +++ /dev/null @@ -1,255 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class Addon : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The author property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Author { get; set; } -#nullable restore -#else - public string Author { get; set; } -#endif - /// The backgroundColor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? BackgroundColor { get; set; } -#nullable restore -#else - public string BackgroundColor { get; set; } -#endif - /// The compatible property - public bool? Compatible { get; set; } - /// The configDescriptionURI property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ConfigDescriptionURI { get; set; } -#nullable restore -#else - public string ConfigDescriptionURI { get; set; } -#endif - /// The connection property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Connection { get; set; } -#nullable restore -#else - public string Connection { get; set; } -#endif - /// The contentType property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ContentType { get; set; } -#nullable restore -#else - public string ContentType { get; set; } -#endif - /// The countries property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Countries { get; set; } -#nullable restore -#else - public List Countries { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The detailedDescription property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DetailedDescription { get; set; } -#nullable restore -#else - public string DetailedDescription { get; set; } -#endif - /// 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 imageLink property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ImageLink { get; set; } -#nullable restore -#else - public string ImageLink { get; set; } -#endif - /// The installed property - public bool? Installed { get; set; } - /// The keywords property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Keywords { get; set; } -#nullable restore -#else - public string Keywords { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The license property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? License { get; set; } -#nullable restore -#else - public string License { get; set; } -#endif - /// The link property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Link { get; set; } -#nullable restore -#else - public string Link { get; set; } -#endif - /// The loggerPackages property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? LoggerPackages { get; set; } -#nullable restore -#else - public List LoggerPackages { get; set; } -#endif - /// The maturity property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Maturity { get; set; } -#nullable restore -#else - public string Maturity { get; set; } -#endif - /// The properties property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public Addon_properties? Properties { get; set; } -#nullable restore -#else - public Addon_properties Properties { get; set; } -#endif - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// The uid property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Uid { get; set; } -#nullable restore -#else - public string Uid { get; set; } -#endif - /// The verifiedAuthor property - public bool? VerifiedAuthor { get; set; } - /// The version property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Version { get; set; } -#nullable restore -#else - public string Version { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Addon() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static Addon CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Addon(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"author", n => { Author = n.GetStringValue(); } }, - {"backgroundColor", n => { BackgroundColor = n.GetStringValue(); } }, - {"compatible", n => { Compatible = n.GetBoolValue(); } }, - {"configDescriptionURI", n => { ConfigDescriptionURI = n.GetStringValue(); } }, - {"connection", n => { Connection = n.GetStringValue(); } }, - {"contentType", n => { ContentType = n.GetStringValue(); } }, - {"countries", n => { Countries = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"detailedDescription", n => { DetailedDescription = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"imageLink", n => { ImageLink = n.GetStringValue(); } }, - {"installed", n => { Installed = n.GetBoolValue(); } }, - {"keywords", n => { Keywords = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"license", n => { License = n.GetStringValue(); } }, - {"link", n => { Link = n.GetStringValue(); } }, - {"loggerPackages", n => { LoggerPackages = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"maturity", n => { Maturity = n.GetStringValue(); } }, - {"properties", n => { Properties = n.GetObjectValue(Addon_properties.CreateFromDiscriminatorValue); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"uid", n => { Uid = n.GetStringValue(); } }, - {"verifiedAuthor", n => { VerifiedAuthor = n.GetBoolValue(); } }, - {"version", n => { Version = 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("author", Author); - writer.WriteStringValue("backgroundColor", BackgroundColor); - writer.WriteBoolValue("compatible", Compatible); - writer.WriteStringValue("configDescriptionURI", ConfigDescriptionURI); - writer.WriteStringValue("connection", Connection); - writer.WriteStringValue("contentType", ContentType); - writer.WriteCollectionOfPrimitiveValues("countries", Countries); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("detailedDescription", DetailedDescription); - writer.WriteStringValue("id", Id); - writer.WriteStringValue("imageLink", ImageLink); - writer.WriteBoolValue("installed", Installed); - writer.WriteStringValue("keywords", Keywords); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("license", License); - writer.WriteStringValue("link", Link); - writer.WriteCollectionOfPrimitiveValues("loggerPackages", LoggerPackages); - writer.WriteStringValue("maturity", Maturity); - writer.WriteObjectValue("properties", Properties); - writer.WriteStringValue("type", Type); - writer.WriteStringValue("uid", Uid); - writer.WriteBoolValue("verifiedAuthor", VerifiedAuthor); - writer.WriteStringValue("version", Version); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/AddonType.cs b/Rest/OpenHAB/Core/Rest/Models/AddonType.cs deleted file mode 100644 index ff5ff58..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/AddonType.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.Models { - public class AddonType : IAdditionalDataHolder, IParsable { - /// Stores 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 label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public AddonType() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static AddonType CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AddonType(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"id", n => { Id = n.GetStringValue(); } }, - {"label", n => { Label = 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("label", Label); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/Addon_properties.cs b/Rest/OpenHAB/Core/Rest/Models/Addon_properties.cs deleted file mode 100644 index aa2c092..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/Addon_properties.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.Models { - public class Addon_properties : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Addon_properties() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static Addon_properties CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Addon_properties(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/AudioSinkDTO.cs b/Rest/OpenHAB/Core/Rest/Models/AudioSinkDTO.cs deleted file mode 100644 index 9942aeb..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/AudioSinkDTO.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.Models { - public class AudioSinkDTO : IAdditionalDataHolder, IParsable { - /// Stores 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 label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public AudioSinkDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static AudioSinkDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AudioSinkDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"id", n => { Id = n.GetStringValue(); } }, - {"label", n => { Label = 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("label", Label); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/AudioSourceDTO.cs b/Rest/OpenHAB/Core/Rest/Models/AudioSourceDTO.cs deleted file mode 100644 index 6c50ad5..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/AudioSourceDTO.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.Models { - public class AudioSourceDTO : IAdditionalDataHolder, IParsable { - /// Stores 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 label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public AudioSourceDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static AudioSourceDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AudioSourceDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"id", n => { Id = n.GetStringValue(); } }, - {"label", n => { Label = 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("label", Label); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/Card.cs b/Rest/OpenHAB/Core/Rest/Models/Card.cs deleted file mode 100644 index 6c32ff2..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/Card.cs +++ /dev/null @@ -1,157 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class Card : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The addToDeckDenied property - public bool? AddToDeckDenied { get; set; } - /// The bookmark property - public bool? Bookmark { get; set; } - /// The bookmarked property - public bool? Bookmarked { get; set; } - /// The config property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public Card_config? Config { get; set; } -#nullable restore -#else - public Card_config Config { get; set; } -#endif - /// The ephemeral property - public bool? Ephemeral { get; set; } - /// The locationAttributes property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? LocationAttributes { get; set; } -#nullable restore -#else - public List LocationAttributes { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The notReuseableInChat property - public bool? NotReuseableInChat { get; set; } - /// The objectAttributes property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ObjectAttributes { get; set; } -#nullable restore -#else - public List ObjectAttributes { get; set; } -#endif - /// The slots property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public Card_slots? Slots { get; set; } -#nullable restore -#else - public Card_slots Slots { get; set; } -#endif - /// The subtitle property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Subtitle { get; set; } -#nullable restore -#else - public string Subtitle { get; set; } -#endif - /// The tags property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// The timestamp property - public DateTimeOffset? Timestamp { get; set; } - /// The title property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Title { get; set; } -#nullable restore -#else - public string Title { get; set; } -#endif - /// The uid property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Uid { get; set; } -#nullable restore -#else - public string Uid { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Card() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static Card CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Card(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"addToDeckDenied", n => { AddToDeckDenied = n.GetBoolValue(); } }, - {"bookmark", n => { Bookmark = n.GetBoolValue(); } }, - {"bookmarked", n => { Bookmarked = n.GetBoolValue(); } }, - {"config", n => { Config = n.GetObjectValue(Card_config.CreateFromDiscriminatorValue); } }, - {"ephemeral", n => { Ephemeral = n.GetBoolValue(); } }, - {"locationAttributes", n => { LocationAttributes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"notReuseableInChat", n => { NotReuseableInChat = n.GetBoolValue(); } }, - {"objectAttributes", n => { ObjectAttributes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"slots", n => { Slots = n.GetObjectValue(Card_slots.CreateFromDiscriminatorValue); } }, - {"subtitle", n => { Subtitle = n.GetStringValue(); } }, - {"tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"timestamp", n => { Timestamp = n.GetDateTimeOffsetValue(); } }, - {"title", n => { Title = n.GetStringValue(); } }, - {"uid", n => { Uid = 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.WriteBoolValue("addToDeckDenied", AddToDeckDenied); - writer.WriteBoolValue("bookmark", Bookmark); - writer.WriteBoolValue("bookmarked", Bookmarked); - writer.WriteObjectValue("config", Config); - writer.WriteBoolValue("ephemeral", Ephemeral); - writer.WriteCollectionOfPrimitiveValues("locationAttributes", LocationAttributes); - writer.WriteStringValue("name", Name); - writer.WriteBoolValue("notReuseableInChat", NotReuseableInChat); - writer.WriteCollectionOfPrimitiveValues("objectAttributes", ObjectAttributes); - writer.WriteObjectValue("slots", Slots); - writer.WriteStringValue("subtitle", Subtitle); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDateTimeOffsetValue("timestamp", Timestamp); - writer.WriteStringValue("title", Title); - writer.WriteStringValue("uid", Uid); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/Card_config.cs b/Rest/OpenHAB/Core/Rest/Models/Card_config.cs deleted file mode 100644 index 2fc09e6..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/Card_config.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.Models { - public class Card_config : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Card_config() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static Card_config CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Card_config(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/Card_slots.cs b/Rest/OpenHAB/Core/Rest/Models/Card_slots.cs deleted file mode 100644 index c693667..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/Card_slots.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.Models { - public class Card_slots : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Card_slots() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static Card_slots CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Card_slots(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/ChannelDTO.cs b/Rest/OpenHAB/Core/Rest/Models/ChannelDTO.cs deleted file mode 100644 index 1d8b23d..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ChannelDTO.cs +++ /dev/null @@ -1,153 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class ChannelDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The autoUpdatePolicy property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? AutoUpdatePolicy { get; set; } -#nullable restore -#else - public string AutoUpdatePolicy { get; set; } -#endif - /// The channelTypeUID property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ChannelTypeUID { get; set; } -#nullable restore -#else - public string ChannelTypeUID { get; set; } -#endif - /// The configuration property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public ChannelDTO_configuration? Configuration { get; set; } -#nullable restore -#else - public ChannelDTO_configuration Configuration { get; set; } -#endif - /// The defaultTags property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? DefaultTags { get; set; } -#nullable restore -#else - public List DefaultTags { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The id property -#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 itemType property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ItemType { get; set; } -#nullable restore -#else - public string ItemType { get; set; } -#endif - /// The kind property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Kind { get; set; } -#nullable restore -#else - public string Kind { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The properties property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public ChannelDTO_properties? Properties { get; set; } -#nullable restore -#else - public ChannelDTO_properties Properties { get; set; } -#endif - /// The uid property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Uid { get; set; } -#nullable restore -#else - public string Uid { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ChannelDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ChannelDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ChannelDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"autoUpdatePolicy", n => { AutoUpdatePolicy = n.GetStringValue(); } }, - {"channelTypeUID", n => { ChannelTypeUID = n.GetStringValue(); } }, - {"configuration", n => { Configuration = n.GetObjectValue(ChannelDTO_configuration.CreateFromDiscriminatorValue); } }, - {"defaultTags", n => { DefaultTags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"itemType", n => { ItemType = n.GetStringValue(); } }, - {"kind", n => { Kind = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"properties", n => { Properties = n.GetObjectValue(ChannelDTO_properties.CreateFromDiscriminatorValue); } }, - {"uid", n => { Uid = 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("autoUpdatePolicy", AutoUpdatePolicy); - writer.WriteStringValue("channelTypeUID", ChannelTypeUID); - writer.WriteObjectValue("configuration", Configuration); - writer.WriteCollectionOfPrimitiveValues("defaultTags", DefaultTags); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("id", Id); - writer.WriteStringValue("itemType", ItemType); - writer.WriteStringValue("kind", Kind); - writer.WriteStringValue("label", Label); - writer.WriteObjectValue("properties", Properties); - writer.WriteStringValue("uid", Uid); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ChannelDTO_configuration.cs b/Rest/OpenHAB/Core/Rest/Models/ChannelDTO_configuration.cs deleted file mode 100644 index b0997ae..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ChannelDTO_configuration.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.Models { - public class ChannelDTO_configuration : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ChannelDTO_configuration() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ChannelDTO_configuration CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ChannelDTO_configuration(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/ChannelDTO_properties.cs b/Rest/OpenHAB/Core/Rest/Models/ChannelDTO_properties.cs deleted file mode 100644 index 4a83396..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ChannelDTO_properties.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.Models { - public class ChannelDTO_properties : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ChannelDTO_properties() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ChannelDTO_properties CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ChannelDTO_properties(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/ChannelDefinitionDTO.cs b/Rest/OpenHAB/Core/Rest/Models/ChannelDefinitionDTO.cs deleted file mode 100644 index 43270d0..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ChannelDefinitionDTO.cs +++ /dev/null @@ -1,127 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class ChannelDefinitionDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The advanced property - public bool? Advanced { get; set; } - /// The category property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Category { get; set; } -#nullable restore -#else - public string Category { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The id property -#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 label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The properties property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public ChannelDefinitionDTO_properties? Properties { get; set; } -#nullable restore -#else - public ChannelDefinitionDTO_properties Properties { get; set; } -#endif - /// The stateDescription property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public OpenHAB.Core.Rest.Models.StateDescription? StateDescription { get; set; } -#nullable restore -#else - public OpenHAB.Core.Rest.Models.StateDescription StateDescription { get; set; } -#endif - /// The tags property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// The typeUID property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TypeUID { get; set; } -#nullable restore -#else - public string TypeUID { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ChannelDefinitionDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ChannelDefinitionDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ChannelDefinitionDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"advanced", n => { Advanced = n.GetBoolValue(); } }, - {"category", n => { Category = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"properties", n => { Properties = n.GetObjectValue(ChannelDefinitionDTO_properties.CreateFromDiscriminatorValue); } }, - {"stateDescription", n => { StateDescription = n.GetObjectValue(OpenHAB.Core.Rest.Models.StateDescription.CreateFromDiscriminatorValue); } }, - {"tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"typeUID", n => { TypeUID = 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.WriteBoolValue("advanced", Advanced); - writer.WriteStringValue("category", Category); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("id", Id); - writer.WriteStringValue("label", Label); - writer.WriteObjectValue("properties", Properties); - writer.WriteObjectValue("stateDescription", StateDescription); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteStringValue("typeUID", TypeUID); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ChannelDefinitionDTO_properties.cs b/Rest/OpenHAB/Core/Rest/Models/ChannelDefinitionDTO_properties.cs deleted file mode 100644 index 87e6bf9..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ChannelDefinitionDTO_properties.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.Models { - public class ChannelDefinitionDTO_properties : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ChannelDefinitionDTO_properties() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ChannelDefinitionDTO_properties CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ChannelDefinitionDTO_properties(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/ChannelGroupDefinitionDTO.cs b/Rest/OpenHAB/Core/Rest/Models/ChannelGroupDefinitionDTO.cs deleted file mode 100644 index dcf5750..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ChannelGroupDefinitionDTO.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class ChannelGroupDefinitionDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The channels property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Channels { get; set; } -#nullable restore -#else - public List Channels { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The id property -#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 label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ChannelGroupDefinitionDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ChannelGroupDefinitionDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ChannelGroupDefinitionDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"channels", n => { Channels = n.GetCollectionOfObjectValues(ChannelDefinitionDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"label", n => { Label = 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.WriteCollectionOfObjectValues("channels", Channels); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("id", Id); - writer.WriteStringValue("label", Label); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ChannelTypeDTO.cs b/Rest/OpenHAB/Core/Rest/Models/ChannelTypeDTO.cs deleted file mode 100644 index 3f273a2..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ChannelTypeDTO.cs +++ /dev/null @@ -1,157 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class ChannelTypeDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The advanced property - public bool? Advanced { get; set; } - /// The category property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Category { get; set; } -#nullable restore -#else - public string Category { get; set; } -#endif - /// The commandDescription property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public OpenHAB.Core.Rest.Models.CommandDescription? CommandDescription { get; set; } -#nullable restore -#else - public OpenHAB.Core.Rest.Models.CommandDescription CommandDescription { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The itemType property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ItemType { get; set; } -#nullable restore -#else - public string ItemType { get; set; } -#endif - /// The kind property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Kind { get; set; } -#nullable restore -#else - public string Kind { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The parameterGroups property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ParameterGroups { get; set; } -#nullable restore -#else - public List ParameterGroups { get; set; } -#endif - /// The parameters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Parameters { get; set; } -#nullable restore -#else - public List Parameters { get; set; } -#endif - /// The stateDescription property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public OpenHAB.Core.Rest.Models.StateDescription? StateDescription { get; set; } -#nullable restore -#else - public OpenHAB.Core.Rest.Models.StateDescription StateDescription { get; set; } -#endif - /// The tags property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// The UID property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UID { get; set; } -#nullable restore -#else - public string UID { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ChannelTypeDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ChannelTypeDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ChannelTypeDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"advanced", n => { Advanced = n.GetBoolValue(); } }, - {"category", n => { Category = n.GetStringValue(); } }, - {"commandDescription", n => { CommandDescription = n.GetObjectValue(OpenHAB.Core.Rest.Models.CommandDescription.CreateFromDiscriminatorValue); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"itemType", n => { ItemType = n.GetStringValue(); } }, - {"kind", n => { Kind = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"parameterGroups", n => { ParameterGroups = n.GetCollectionOfObjectValues(ConfigDescriptionParameterGroupDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"parameters", n => { Parameters = n.GetCollectionOfObjectValues(ConfigDescriptionParameterDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"stateDescription", n => { StateDescription = n.GetObjectValue(OpenHAB.Core.Rest.Models.StateDescription.CreateFromDiscriminatorValue); } }, - {"tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"UID", n => { UID = 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.WriteBoolValue("advanced", Advanced); - writer.WriteStringValue("category", Category); - writer.WriteObjectValue("commandDescription", CommandDescription); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("itemType", ItemType); - writer.WriteStringValue("kind", Kind); - writer.WriteStringValue("label", Label); - writer.WriteCollectionOfObjectValues("parameterGroups", ParameterGroups); - writer.WriteCollectionOfObjectValues("parameters", Parameters); - writer.WriteObjectValue("stateDescription", StateDescription); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteStringValue("UID", UID); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ChatReply.cs b/Rest/OpenHAB/Core/Rest/Models/ChatReply.cs deleted file mode 100644 index a1c3753..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ChatReply.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class ChatReply : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The answer property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Answer { get; set; } -#nullable restore -#else - public string Answer { get; set; } -#endif - /// The card property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public OpenHAB.Core.Rest.Models.Card? Card { get; set; } -#nullable restore -#else - public OpenHAB.Core.Rest.Models.Card Card { get; set; } -#endif - /// The hint property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Hint { get; set; } -#nullable restore -#else - public string Hint { get; set; } -#endif - /// The intent property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public OpenHAB.Core.Rest.Models.Intent? Intent { get; set; } -#nullable restore -#else - public OpenHAB.Core.Rest.Models.Intent Intent { get; set; } -#endif - /// The language property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Language { get; set; } -#nullable restore -#else - public string Language { get; set; } -#endif - /// The matchedItemNames property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? MatchedItemNames { get; set; } -#nullable restore -#else - public List MatchedItemNames { get; set; } -#endif - /// The matchedItems property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? MatchedItems { get; set; } -#nullable restore -#else - public List MatchedItems { get; set; } -#endif - /// The query property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Query { get; set; } -#nullable restore -#else - public string Query { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ChatReply() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ChatReply CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ChatReply(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"answer", n => { Answer = n.GetStringValue(); } }, - {"card", n => { Card = n.GetObjectValue(OpenHAB.Core.Rest.Models.Card.CreateFromDiscriminatorValue); } }, - {"hint", n => { Hint = n.GetStringValue(); } }, - {"intent", n => { Intent = n.GetObjectValue(OpenHAB.Core.Rest.Models.Intent.CreateFromDiscriminatorValue); } }, - {"language", n => { Language = n.GetStringValue(); } }, - {"matchedItemNames", n => { MatchedItemNames = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"matchedItems", n => { MatchedItems = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"query", n => { Query = 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("answer", Answer); - writer.WriteObjectValue("card", Card); - writer.WriteStringValue("hint", Hint); - writer.WriteObjectValue("intent", Intent); - writer.WriteStringValue("language", Language); - writer.WriteCollectionOfPrimitiveValues("matchedItemNames", MatchedItemNames); - writer.WriteCollectionOfPrimitiveValues("matchedItems", MatchedItems); - writer.WriteStringValue("query", Query); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/CommandDescription.cs b/Rest/OpenHAB/Core/Rest/Models/CommandDescription.cs deleted file mode 100644 index a765fad..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/CommandDescription.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class CommandDescription : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The commandOptions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? CommandOptions { get; set; } -#nullable restore -#else - public List CommandOptions { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CommandDescription() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static CommandDescription CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommandDescription(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"commandOptions", n => { CommandOptions = n.GetCollectionOfObjectValues(CommandOption.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// 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.WriteCollectionOfObjectValues("commandOptions", CommandOptions); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/CommandOption.cs b/Rest/OpenHAB/Core/Rest/Models/CommandOption.cs deleted file mode 100644 index 06ed636..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/CommandOption.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.Models { - public class CommandOption : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The command property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Command { get; set; } -#nullable restore -#else - public string Command { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public CommandOption() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static CommandOption CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new CommandOption(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"command", n => { Command = n.GetStringValue(); } }, - {"label", n => { Label = 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("command", Command); - writer.WriteStringValue("label", Label); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/Condition.cs b/Rest/OpenHAB/Core/Rest/Models/Condition.cs deleted file mode 100644 index 9983561..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/Condition.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.Models { - public class Condition : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The configuration property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public OpenHAB.Core.Rest.Models.Configuration? Configuration { get; set; } -#nullable restore -#else - public OpenHAB.Core.Rest.Models.Configuration Configuration { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The id property -#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 inputs property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public Condition_inputs? Inputs { get; set; } -#nullable restore -#else - public Condition_inputs Inputs { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The typeUID property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TypeUID { get; set; } -#nullable restore -#else - public string TypeUID { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Condition() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static Condition CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Condition(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"configuration", n => { Configuration = n.GetObjectValue(OpenHAB.Core.Rest.Models.Configuration.CreateFromDiscriminatorValue); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"inputs", n => { Inputs = n.GetObjectValue(Condition_inputs.CreateFromDiscriminatorValue); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"typeUID", n => { TypeUID = 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.WriteObjectValue("configuration", Configuration); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("id", Id); - writer.WriteObjectValue("inputs", Inputs); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("typeUID", TypeUID); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ConditionDTO.cs b/Rest/OpenHAB/Core/Rest/Models/ConditionDTO.cs deleted file mode 100644 index 0c193d6..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ConditionDTO.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.Models { - public class ConditionDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The configuration property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public ConditionDTO_configuration? Configuration { get; set; } -#nullable restore -#else - public ConditionDTO_configuration Configuration { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The id property -#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 inputs property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public ConditionDTO_inputs? Inputs { get; set; } -#nullable restore -#else - public ConditionDTO_inputs Inputs { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ConditionDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ConditionDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ConditionDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"configuration", n => { Configuration = n.GetObjectValue(ConditionDTO_configuration.CreateFromDiscriminatorValue); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"inputs", n => { Inputs = n.GetObjectValue(ConditionDTO_inputs.CreateFromDiscriminatorValue); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("configuration", Configuration); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("id", Id); - writer.WriteObjectValue("inputs", Inputs); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ConditionDTO_configuration.cs b/Rest/OpenHAB/Core/Rest/Models/ConditionDTO_configuration.cs deleted file mode 100644 index bb71634..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ConditionDTO_configuration.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.Models { - public class ConditionDTO_configuration : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ConditionDTO_configuration() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ConditionDTO_configuration CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ConditionDTO_configuration(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/ConditionDTO_inputs.cs b/Rest/OpenHAB/Core/Rest/Models/ConditionDTO_inputs.cs deleted file mode 100644 index 45c5c6b..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ConditionDTO_inputs.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.Models { - public class ConditionDTO_inputs : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ConditionDTO_inputs() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ConditionDTO_inputs CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ConditionDTO_inputs(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/Condition_inputs.cs b/Rest/OpenHAB/Core/Rest/Models/Condition_inputs.cs deleted file mode 100644 index 95b310e..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/Condition_inputs.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.Models { - public class Condition_inputs : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Condition_inputs() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static Condition_inputs CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Condition_inputs(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/ConfigDescriptionDTO.cs b/Rest/OpenHAB/Core/Rest/Models/ConfigDescriptionDTO.cs deleted file mode 100644 index caa2631..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ConfigDescriptionDTO.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class ConfigDescriptionDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The parameterGroups property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ParameterGroups { get; set; } -#nullable restore -#else - public List ParameterGroups { get; set; } -#endif - /// The parameters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Parameters { get; set; } -#nullable restore -#else - public List Parameters { get; set; } -#endif - /// The uri property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Uri { get; set; } -#nullable restore -#else - public string Uri { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ConfigDescriptionDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ConfigDescriptionDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ConfigDescriptionDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"parameterGroups", n => { ParameterGroups = n.GetCollectionOfObjectValues(ConfigDescriptionParameterGroupDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"parameters", n => { Parameters = n.GetCollectionOfObjectValues(ConfigDescriptionParameterDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"uri", n => { Uri = 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.WriteCollectionOfObjectValues("parameterGroups", ParameterGroups); - writer.WriteCollectionOfObjectValues("parameters", Parameters); - writer.WriteStringValue("uri", Uri); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ConfigDescriptionParameter.cs b/Rest/OpenHAB/Core/Rest/Models/ConfigDescriptionParameter.cs deleted file mode 100644 index e7f07cc..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ConfigDescriptionParameter.cs +++ /dev/null @@ -1,197 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class ConfigDescriptionParameter : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The advanced property - public bool? Advanced { get; set; } - /// The context property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Context { get; set; } -#nullable restore -#else - public string Context { get; set; } -#endif - /// The default property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Default { get; set; } -#nullable restore -#else - public string Default { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The filterCriteria property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? FilterCriteria { get; set; } -#nullable restore -#else - public List FilterCriteria { get; set; } -#endif - /// The groupName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? GroupName { get; set; } -#nullable restore -#else - public string GroupName { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The limitToOptions property - public bool? LimitToOptions { get; set; } - /// The maximum property - public double? Maximum { get; set; } - /// The minimum property - public double? Minimum { get; set; } - /// The multiple property - public bool? Multiple { get; set; } - /// The multipleLimit property - public int? MultipleLimit { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The options property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Options { get; set; } -#nullable restore -#else - public List Options { get; set; } -#endif - /// The pattern property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Pattern { get; set; } -#nullable restore -#else - public string Pattern { get; set; } -#endif - /// The readOnly property - public bool? ReadOnly { get; set; } - /// The required property - public bool? Required { get; set; } - /// The stepSize property - public double? StepSize { get; set; } - /// The type property - public ConfigDescriptionParameter_type? Type { get; set; } - /// The unit property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Unit { get; set; } -#nullable restore -#else - public string Unit { get; set; } -#endif - /// The unitLabel property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UnitLabel { get; set; } -#nullable restore -#else - public string UnitLabel { get; set; } -#endif - /// The verifyable property - public bool? Verifyable { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ConfigDescriptionParameter() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ConfigDescriptionParameter CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ConfigDescriptionParameter(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"advanced", n => { Advanced = n.GetBoolValue(); } }, - {"context", n => { Context = n.GetStringValue(); } }, - {"default", n => { Default = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"filterCriteria", n => { FilterCriteria = n.GetCollectionOfObjectValues(OpenHAB.Core.Rest.Models.FilterCriteria.CreateFromDiscriminatorValue)?.ToList(); } }, - {"groupName", n => { GroupName = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"limitToOptions", n => { LimitToOptions = n.GetBoolValue(); } }, - {"maximum", n => { Maximum = n.GetDoubleValue(); } }, - {"minimum", n => { Minimum = n.GetDoubleValue(); } }, - {"multiple", n => { Multiple = n.GetBoolValue(); } }, - {"multipleLimit", n => { MultipleLimit = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"options", n => { Options = n.GetCollectionOfObjectValues(ParameterOption.CreateFromDiscriminatorValue)?.ToList(); } }, - {"pattern", n => { Pattern = n.GetStringValue(); } }, - {"readOnly", n => { ReadOnly = n.GetBoolValue(); } }, - {"required", n => { Required = n.GetBoolValue(); } }, - {"stepSize", n => { StepSize = n.GetDoubleValue(); } }, - {"type", n => { Type = n.GetEnumValue(); } }, - {"unit", n => { Unit = n.GetStringValue(); } }, - {"unitLabel", n => { UnitLabel = n.GetStringValue(); } }, - {"verifyable", n => { Verifyable = n.GetBoolValue(); } }, - }; - } - /// - /// 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.WriteBoolValue("advanced", Advanced); - writer.WriteStringValue("context", Context); - writer.WriteStringValue("default", Default); - writer.WriteStringValue("description", Description); - writer.WriteCollectionOfObjectValues("filterCriteria", FilterCriteria); - writer.WriteStringValue("groupName", GroupName); - writer.WriteStringValue("label", Label); - writer.WriteBoolValue("limitToOptions", LimitToOptions); - writer.WriteDoubleValue("maximum", Maximum); - writer.WriteDoubleValue("minimum", Minimum); - writer.WriteBoolValue("multiple", Multiple); - writer.WriteIntValue("multipleLimit", MultipleLimit); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfObjectValues("options", Options); - writer.WriteStringValue("pattern", Pattern); - writer.WriteBoolValue("readOnly", ReadOnly); - writer.WriteBoolValue("required", Required); - writer.WriteDoubleValue("stepSize", StepSize); - writer.WriteEnumValue("type", Type); - writer.WriteStringValue("unit", Unit); - writer.WriteStringValue("unitLabel", UnitLabel); - writer.WriteBoolValue("verifyable", Verifyable); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ConfigDescriptionParameterDTO.cs b/Rest/OpenHAB/Core/Rest/Models/ConfigDescriptionParameterDTO.cs deleted file mode 100644 index 5e884a7..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ConfigDescriptionParameterDTO.cs +++ /dev/null @@ -1,197 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class ConfigDescriptionParameterDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The advanced property - public bool? Advanced { get; set; } - /// The context property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Context { get; set; } -#nullable restore -#else - public string Context { get; set; } -#endif - /// The defaultValue property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DefaultValue { get; set; } -#nullable restore -#else - public string DefaultValue { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The filterCriteria property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? FilterCriteria { get; set; } -#nullable restore -#else - public List FilterCriteria { get; set; } -#endif - /// The groupName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? GroupName { get; set; } -#nullable restore -#else - public string GroupName { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The limitToOptions property - public bool? LimitToOptions { get; set; } - /// The max property - public double? Max { get; set; } - /// The min property - public double? Min { get; set; } - /// The multiple property - public bool? Multiple { get; set; } - /// The multipleLimit property - public int? MultipleLimit { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The options property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Options { get; set; } -#nullable restore -#else - public List Options { get; set; } -#endif - /// The pattern property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Pattern { get; set; } -#nullable restore -#else - public string Pattern { get; set; } -#endif - /// The readOnly property - public bool? ReadOnly { get; set; } - /// The required property - public bool? Required { get; set; } - /// The stepsize property - public double? Stepsize { get; set; } - /// The type property - public ConfigDescriptionParameterDTO_type? Type { get; set; } - /// The unit property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Unit { get; set; } -#nullable restore -#else - public string Unit { get; set; } -#endif - /// The unitLabel property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UnitLabel { get; set; } -#nullable restore -#else - public string UnitLabel { get; set; } -#endif - /// The verify property - public bool? Verify { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ConfigDescriptionParameterDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ConfigDescriptionParameterDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ConfigDescriptionParameterDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"advanced", n => { Advanced = n.GetBoolValue(); } }, - {"context", n => { Context = n.GetStringValue(); } }, - {"defaultValue", n => { DefaultValue = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"filterCriteria", n => { FilterCriteria = n.GetCollectionOfObjectValues(FilterCriteriaDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"groupName", n => { GroupName = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"limitToOptions", n => { LimitToOptions = n.GetBoolValue(); } }, - {"max", n => { Max = n.GetDoubleValue(); } }, - {"min", n => { Min = n.GetDoubleValue(); } }, - {"multiple", n => { Multiple = n.GetBoolValue(); } }, - {"multipleLimit", n => { MultipleLimit = n.GetIntValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"options", n => { Options = n.GetCollectionOfObjectValues(ParameterOptionDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"pattern", n => { Pattern = n.GetStringValue(); } }, - {"readOnly", n => { ReadOnly = n.GetBoolValue(); } }, - {"required", n => { Required = n.GetBoolValue(); } }, - {"stepsize", n => { Stepsize = n.GetDoubleValue(); } }, - {"type", n => { Type = n.GetEnumValue(); } }, - {"unit", n => { Unit = n.GetStringValue(); } }, - {"unitLabel", n => { UnitLabel = n.GetStringValue(); } }, - {"verify", n => { Verify = n.GetBoolValue(); } }, - }; - } - /// - /// 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.WriteBoolValue("advanced", Advanced); - writer.WriteStringValue("context", Context); - writer.WriteStringValue("defaultValue", DefaultValue); - writer.WriteStringValue("description", Description); - writer.WriteCollectionOfObjectValues("filterCriteria", FilterCriteria); - writer.WriteStringValue("groupName", GroupName); - writer.WriteStringValue("label", Label); - writer.WriteBoolValue("limitToOptions", LimitToOptions); - writer.WriteDoubleValue("max", Max); - writer.WriteDoubleValue("min", Min); - writer.WriteBoolValue("multiple", Multiple); - writer.WriteIntValue("multipleLimit", MultipleLimit); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfObjectValues("options", Options); - writer.WriteStringValue("pattern", Pattern); - writer.WriteBoolValue("readOnly", ReadOnly); - writer.WriteBoolValue("required", Required); - writer.WriteDoubleValue("stepsize", Stepsize); - writer.WriteEnumValue("type", Type); - writer.WriteStringValue("unit", Unit); - writer.WriteStringValue("unitLabel", UnitLabel); - writer.WriteBoolValue("verify", Verify); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ConfigDescriptionParameterDTO_type.cs b/Rest/OpenHAB/Core/Rest/Models/ConfigDescriptionParameterDTO_type.cs deleted file mode 100644 index e4f2dca..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ConfigDescriptionParameterDTO_type.cs +++ /dev/null @@ -1,15 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace OpenHAB.Core.Rest.Models { - public enum ConfigDescriptionParameterDTO_type { - [EnumMember(Value = "TEXT")] - TEXT, - [EnumMember(Value = "INTEGER")] - INTEGER, - [EnumMember(Value = "DECIMAL")] - DECIMAL, - [EnumMember(Value = "BOOLEAN")] - BOOLEAN, - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ConfigDescriptionParameterGroupDTO.cs b/Rest/OpenHAB/Core/Rest/Models/ConfigDescriptionParameterGroupDTO.cs deleted file mode 100644 index 6a8636b..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ConfigDescriptionParameterGroupDTO.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class ConfigDescriptionParameterGroupDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The advanced property - public bool? Advanced { get; set; } - /// The context property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Context { get; set; } -#nullable restore -#else - public string Context { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ConfigDescriptionParameterGroupDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ConfigDescriptionParameterGroupDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ConfigDescriptionParameterGroupDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"advanced", n => { Advanced = n.GetBoolValue(); } }, - {"context", n => { Context = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteBoolValue("advanced", Advanced); - writer.WriteStringValue("context", Context); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ConfigDescriptionParameter_type.cs b/Rest/OpenHAB/Core/Rest/Models/ConfigDescriptionParameter_type.cs deleted file mode 100644 index 2260554..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ConfigDescriptionParameter_type.cs +++ /dev/null @@ -1,15 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace OpenHAB.Core.Rest.Models { - public enum ConfigDescriptionParameter_type { - [EnumMember(Value = "TEXT")] - TEXT, - [EnumMember(Value = "INTEGER")] - INTEGER, - [EnumMember(Value = "DECIMAL")] - DECIMAL, - [EnumMember(Value = "BOOLEAN")] - BOOLEAN, - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ConfigStatusMessage.cs b/Rest/OpenHAB/Core/Rest/Models/ConfigStatusMessage.cs deleted file mode 100644 index 5580499..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ConfigStatusMessage.cs +++ /dev/null @@ -1,71 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class ConfigStatusMessage : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The message property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Message { get; set; } -#nullable restore -#else - public string Message { get; set; } -#endif - /// The parameterName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ParameterName { get; set; } -#nullable restore -#else - public string ParameterName { get; set; } -#endif - /// The statusCode property - public int? StatusCode { get; set; } - /// The type property - public ConfigStatusMessage_type? Type { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ConfigStatusMessage() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ConfigStatusMessage CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ConfigStatusMessage(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"message", n => { Message = n.GetStringValue(); } }, - {"parameterName", n => { ParameterName = n.GetStringValue(); } }, - {"statusCode", n => { StatusCode = n.GetIntValue(); } }, - {"type", n => { Type = n.GetEnumValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("message", Message); - writer.WriteStringValue("parameterName", ParameterName); - writer.WriteIntValue("statusCode", StatusCode); - writer.WriteEnumValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ConfigStatusMessage_type.cs b/Rest/OpenHAB/Core/Rest/Models/ConfigStatusMessage_type.cs deleted file mode 100644 index 9283549..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ConfigStatusMessage_type.cs +++ /dev/null @@ -1,15 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace OpenHAB.Core.Rest.Models { - public enum ConfigStatusMessage_type { - [EnumMember(Value = "INFORMATION")] - INFORMATION, - [EnumMember(Value = "WARNING")] - WARNING, - [EnumMember(Value = "ERROR")] - ERROR, - [EnumMember(Value = "PENDING")] - PENDING, - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ConfigurableServiceDTO.cs b/Rest/OpenHAB/Core/Rest/Models/ConfigurableServiceDTO.cs deleted file mode 100644 index 5757628..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ConfigurableServiceDTO.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class ConfigurableServiceDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The category property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Category { get; set; } -#nullable restore -#else - public string Category { get; set; } -#endif - /// The configDescriptionURI property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ConfigDescriptionURI { get; set; } -#nullable restore -#else - public string ConfigDescriptionURI { get; set; } -#endif - /// 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 label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The multiple property - public bool? Multiple { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ConfigurableServiceDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ConfigurableServiceDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ConfigurableServiceDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"category", n => { Category = n.GetStringValue(); } }, - {"configDescriptionURI", n => { ConfigDescriptionURI = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"multiple", n => { Multiple = n.GetBoolValue(); } }, - }; - } - /// - /// 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("category", Category); - writer.WriteStringValue("configDescriptionURI", ConfigDescriptionURI); - writer.WriteStringValue("id", Id); - writer.WriteStringValue("label", Label); - writer.WriteBoolValue("multiple", Multiple); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/Configuration.cs b/Rest/OpenHAB/Core/Rest/Models/Configuration.cs deleted file mode 100644 index 754ad28..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/Configuration.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class Configuration : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The properties property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public Configuration_properties? Properties { get; set; } -#nullable restore -#else - public Configuration_properties Properties { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Configuration() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static Configuration CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Configuration(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"properties", n => { Properties = n.GetObjectValue(Configuration_properties.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// 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.WriteObjectValue("properties", Properties); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/Configuration_properties.cs b/Rest/OpenHAB/Core/Rest/Models/Configuration_properties.cs deleted file mode 100644 index 89bc107..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/Configuration_properties.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.Models { - public class Configuration_properties : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Configuration_properties() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static Configuration_properties CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Configuration_properties(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/DimensionInfo.cs b/Rest/OpenHAB/Core/Rest/Models/DimensionInfo.cs deleted file mode 100644 index ed876d1..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/DimensionInfo.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.Models { - public class DimensionInfo : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The dimension property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Dimension { get; set; } -#nullable restore -#else - public string Dimension { get; set; } -#endif - /// The systemUnit property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SystemUnit { get; set; } -#nullable restore -#else - public string SystemUnit { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DimensionInfo() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static DimensionInfo CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DimensionInfo(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"dimension", n => { Dimension = n.GetStringValue(); } }, - {"systemUnit", n => { SystemUnit = 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("dimension", Dimension); - writer.WriteStringValue("systemUnit", SystemUnit); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/DiscoveryResultDTO.cs b/Rest/OpenHAB/Core/Rest/Models/DiscoveryResultDTO.cs deleted file mode 100644 index 81261f7..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/DiscoveryResultDTO.cs +++ /dev/null @@ -1,107 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class DiscoveryResultDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The bridgeUID property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? BridgeUID { get; set; } -#nullable restore -#else - public string BridgeUID { get; set; } -#endif - /// The flag property - public DiscoveryResultDTO_flag? Flag { get; set; } - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The properties property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public DiscoveryResultDTO_properties? Properties { get; set; } -#nullable restore -#else - public DiscoveryResultDTO_properties Properties { get; set; } -#endif - /// The representationProperty property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? RepresentationProperty { get; set; } -#nullable restore -#else - public string RepresentationProperty { get; set; } -#endif - /// The thingTypeUID property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ThingTypeUID { get; set; } -#nullable restore -#else - public string ThingTypeUID { get; set; } -#endif - /// The thingUID property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ThingUID { get; set; } -#nullable restore -#else - public string ThingUID { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public DiscoveryResultDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static DiscoveryResultDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DiscoveryResultDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"bridgeUID", n => { BridgeUID = n.GetStringValue(); } }, - {"flag", n => { Flag = n.GetEnumValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"properties", n => { Properties = n.GetObjectValue(DiscoveryResultDTO_properties.CreateFromDiscriminatorValue); } }, - {"representationProperty", n => { RepresentationProperty = n.GetStringValue(); } }, - {"thingTypeUID", n => { ThingTypeUID = n.GetStringValue(); } }, - {"thingUID", n => { ThingUID = 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("bridgeUID", BridgeUID); - writer.WriteEnumValue("flag", Flag); - writer.WriteStringValue("label", Label); - writer.WriteObjectValue("properties", Properties); - writer.WriteStringValue("representationProperty", RepresentationProperty); - writer.WriteStringValue("thingTypeUID", ThingTypeUID); - writer.WriteStringValue("thingUID", ThingUID); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/DiscoveryResultDTO_flag.cs b/Rest/OpenHAB/Core/Rest/Models/DiscoveryResultDTO_flag.cs deleted file mode 100644 index c3bcc75..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/DiscoveryResultDTO_flag.cs +++ /dev/null @@ -1,11 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace OpenHAB.Core.Rest.Models { - public enum DiscoveryResultDTO_flag { - [EnumMember(Value = "NEW")] - NEW, - [EnumMember(Value = "IGNORED")] - IGNORED, - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/DiscoveryResultDTO_properties.cs b/Rest/OpenHAB/Core/Rest/Models/DiscoveryResultDTO_properties.cs deleted file mode 100644 index c49427f..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/DiscoveryResultDTO_properties.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.Models { - public class DiscoveryResultDTO_properties : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public DiscoveryResultDTO_properties() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static DiscoveryResultDTO_properties CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DiscoveryResultDTO_properties(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/EnrichedChannelDTO.cs b/Rest/OpenHAB/Core/Rest/Models/EnrichedChannelDTO.cs deleted file mode 100644 index f6ee96a..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/EnrichedChannelDTO.cs +++ /dev/null @@ -1,163 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class EnrichedChannelDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The autoUpdatePolicy property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? AutoUpdatePolicy { get; set; } -#nullable restore -#else - public string AutoUpdatePolicy { get; set; } -#endif - /// The channelTypeUID property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ChannelTypeUID { get; set; } -#nullable restore -#else - public string ChannelTypeUID { get; set; } -#endif - /// The configuration property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public EnrichedChannelDTO_configuration? Configuration { get; set; } -#nullable restore -#else - public EnrichedChannelDTO_configuration Configuration { get; set; } -#endif - /// The defaultTags property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? DefaultTags { get; set; } -#nullable restore -#else - public List DefaultTags { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The id property -#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 itemType property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ItemType { get; set; } -#nullable restore -#else - public string ItemType { get; set; } -#endif - /// The kind property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Kind { get; set; } -#nullable restore -#else - public string Kind { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The linkedItems property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? LinkedItems { get; set; } -#nullable restore -#else - public List LinkedItems { get; set; } -#endif - /// The properties property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public EnrichedChannelDTO_properties? Properties { get; set; } -#nullable restore -#else - public EnrichedChannelDTO_properties Properties { get; set; } -#endif - /// The uid property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Uid { get; set; } -#nullable restore -#else - public string Uid { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public EnrichedChannelDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static EnrichedChannelDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EnrichedChannelDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"autoUpdatePolicy", n => { AutoUpdatePolicy = n.GetStringValue(); } }, - {"channelTypeUID", n => { ChannelTypeUID = n.GetStringValue(); } }, - {"configuration", n => { Configuration = n.GetObjectValue(EnrichedChannelDTO_configuration.CreateFromDiscriminatorValue); } }, - {"defaultTags", n => { DefaultTags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"itemType", n => { ItemType = n.GetStringValue(); } }, - {"kind", n => { Kind = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"linkedItems", n => { LinkedItems = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"properties", n => { Properties = n.GetObjectValue(EnrichedChannelDTO_properties.CreateFromDiscriminatorValue); } }, - {"uid", n => { Uid = 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("autoUpdatePolicy", AutoUpdatePolicy); - writer.WriteStringValue("channelTypeUID", ChannelTypeUID); - writer.WriteObjectValue("configuration", Configuration); - writer.WriteCollectionOfPrimitiveValues("defaultTags", DefaultTags); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("id", Id); - writer.WriteStringValue("itemType", ItemType); - writer.WriteStringValue("kind", Kind); - writer.WriteStringValue("label", Label); - writer.WriteCollectionOfPrimitiveValues("linkedItems", LinkedItems); - writer.WriteObjectValue("properties", Properties); - writer.WriteStringValue("uid", Uid); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/EnrichedChannelDTO_configuration.cs b/Rest/OpenHAB/Core/Rest/Models/EnrichedChannelDTO_configuration.cs deleted file mode 100644 index f4f33c8..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/EnrichedChannelDTO_configuration.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.Models { - public class EnrichedChannelDTO_configuration : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public EnrichedChannelDTO_configuration() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static EnrichedChannelDTO_configuration CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EnrichedChannelDTO_configuration(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/EnrichedChannelDTO_properties.cs b/Rest/OpenHAB/Core/Rest/Models/EnrichedChannelDTO_properties.cs deleted file mode 100644 index 60fafd4..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/EnrichedChannelDTO_properties.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.Models { - public class EnrichedChannelDTO_properties : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public EnrichedChannelDTO_properties() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static EnrichedChannelDTO_properties CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EnrichedChannelDTO_properties(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/EnrichedItemChannelLinkDTO.cs b/Rest/OpenHAB/Core/Rest/Models/EnrichedItemChannelLinkDTO.cs deleted file mode 100644 index 220da67..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/EnrichedItemChannelLinkDTO.cs +++ /dev/null @@ -1,77 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class EnrichedItemChannelLinkDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The channelUID property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ChannelUID { get; set; } -#nullable restore -#else - public string ChannelUID { get; set; } -#endif - /// The configuration property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public EnrichedItemChannelLinkDTO_configuration? Configuration { get; set; } -#nullable restore -#else - public EnrichedItemChannelLinkDTO_configuration Configuration { get; set; } -#endif - /// The editable property - public bool? Editable { get; set; } - /// The itemName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ItemName { get; set; } -#nullable restore -#else - public string ItemName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public EnrichedItemChannelLinkDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static EnrichedItemChannelLinkDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EnrichedItemChannelLinkDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"channelUID", n => { ChannelUID = n.GetStringValue(); } }, - {"configuration", n => { Configuration = n.GetObjectValue(EnrichedItemChannelLinkDTO_configuration.CreateFromDiscriminatorValue); } }, - {"editable", n => { Editable = n.GetBoolValue(); } }, - {"itemName", n => { ItemName = 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("channelUID", ChannelUID); - writer.WriteObjectValue("configuration", Configuration); - writer.WriteBoolValue("editable", Editable); - writer.WriteStringValue("itemName", ItemName); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/EnrichedItemChannelLinkDTO_configuration.cs b/Rest/OpenHAB/Core/Rest/Models/EnrichedItemChannelLinkDTO_configuration.cs deleted file mode 100644 index a8207bf..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/EnrichedItemChannelLinkDTO_configuration.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.Models { - public class EnrichedItemChannelLinkDTO_configuration : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public EnrichedItemChannelLinkDTO_configuration() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static EnrichedItemChannelLinkDTO_configuration CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EnrichedItemChannelLinkDTO_configuration(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/EnrichedItemDTO.cs b/Rest/OpenHAB/Core/Rest/Models/EnrichedItemDTO.cs deleted file mode 100644 index c6fff04..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/EnrichedItemDTO.cs +++ /dev/null @@ -1,177 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class EnrichedItemDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The category property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Category { get; set; } -#nullable restore -#else - public string Category { get; set; } -#endif - /// The commandDescription property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public OpenHAB.Core.Rest.Models.CommandDescription? CommandDescription { get; set; } -#nullable restore -#else - public OpenHAB.Core.Rest.Models.CommandDescription CommandDescription { get; set; } -#endif - /// The editable property - public bool? Editable { get; set; } - /// The groupNames property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? GroupNames { get; set; } -#nullable restore -#else - public List GroupNames { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The link property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Link { get; set; } -#nullable restore -#else - public string Link { get; set; } -#endif - /// The metadata property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public EnrichedItemDTO_metadata? Metadata { get; set; } -#nullable restore -#else - public EnrichedItemDTO_metadata Metadata { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The state property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? State { get; set; } -#nullable restore -#else - public string State { get; set; } -#endif - /// The stateDescription property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public OpenHAB.Core.Rest.Models.StateDescription? StateDescription { get; set; } -#nullable restore -#else - public OpenHAB.Core.Rest.Models.StateDescription StateDescription { get; set; } -#endif - /// The tags property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// The transformedState property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TransformedState { get; set; } -#nullable restore -#else - public string TransformedState { get; set; } -#endif - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// The unitSymbol property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UnitSymbol { get; set; } -#nullable restore -#else - public string UnitSymbol { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public EnrichedItemDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static EnrichedItemDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EnrichedItemDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"category", n => { Category = n.GetStringValue(); } }, - {"commandDescription", n => { CommandDescription = n.GetObjectValue(OpenHAB.Core.Rest.Models.CommandDescription.CreateFromDiscriminatorValue); } }, - {"editable", n => { Editable = n.GetBoolValue(); } }, - {"groupNames", n => { GroupNames = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"link", n => { Link = n.GetStringValue(); } }, - {"metadata", n => { Metadata = n.GetObjectValue(EnrichedItemDTO_metadata.CreateFromDiscriminatorValue); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"state", n => { State = n.GetStringValue(); } }, - {"stateDescription", n => { StateDescription = n.GetObjectValue(OpenHAB.Core.Rest.Models.StateDescription.CreateFromDiscriminatorValue); } }, - {"tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"transformedState", n => { TransformedState = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"unitSymbol", n => { UnitSymbol = 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("category", Category); - writer.WriteObjectValue("commandDescription", CommandDescription); - writer.WriteBoolValue("editable", Editable); - writer.WriteCollectionOfPrimitiveValues("groupNames", GroupNames); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("link", Link); - writer.WriteObjectValue("metadata", Metadata); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("state", State); - writer.WriteObjectValue("stateDescription", StateDescription); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteStringValue("transformedState", TransformedState); - writer.WriteStringValue("type", Type); - writer.WriteStringValue("unitSymbol", UnitSymbol); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/EnrichedItemDTO_metadata.cs b/Rest/OpenHAB/Core/Rest/Models/EnrichedItemDTO_metadata.cs deleted file mode 100644 index 2f450e1..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/EnrichedItemDTO_metadata.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.Models { - public class EnrichedItemDTO_metadata : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public EnrichedItemDTO_metadata() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static EnrichedItemDTO_metadata CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EnrichedItemDTO_metadata(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/EnrichedRuleDTO.cs b/Rest/OpenHAB/Core/Rest/Models/EnrichedRuleDTO.cs deleted file mode 100644 index 69bab90..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/EnrichedRuleDTO.cs +++ /dev/null @@ -1,161 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class EnrichedRuleDTO : IAdditionalDataHolder, IParsable { - /// The actions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Actions { get; set; } -#nullable restore -#else - public List Actions { get; set; } -#endif - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The conditions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Conditions { get; set; } -#nullable restore -#else - public List Conditions { get; set; } -#endif - /// The configDescriptions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ConfigDescriptions { get; set; } -#nullable restore -#else - public List ConfigDescriptions { get; set; } -#endif - /// The configuration property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public EnrichedRuleDTO_configuration? Configuration { get; set; } -#nullable restore -#else - public EnrichedRuleDTO_configuration Configuration { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The editable property - public bool? Editable { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The status property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RuleStatusInfo? Status { get; set; } -#nullable restore -#else - public RuleStatusInfo Status { get; set; } -#endif - /// The tags property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// The templateUID property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TemplateUID { get; set; } -#nullable restore -#else - public string TemplateUID { get; set; } -#endif - /// The triggers property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Triggers { get; set; } -#nullable restore -#else - public List Triggers { get; set; } -#endif - /// The uid property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Uid { get; set; } -#nullable restore -#else - public string Uid { get; set; } -#endif - /// The visibility property - public EnrichedRuleDTO_visibility? Visibility { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public EnrichedRuleDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static EnrichedRuleDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EnrichedRuleDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"actions", n => { Actions = n.GetCollectionOfObjectValues(ActionDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"conditions", n => { Conditions = n.GetCollectionOfObjectValues(ConditionDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"configDescriptions", n => { ConfigDescriptions = n.GetCollectionOfObjectValues(ConfigDescriptionParameterDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"configuration", n => { Configuration = n.GetObjectValue(EnrichedRuleDTO_configuration.CreateFromDiscriminatorValue); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"editable", n => { Editable = n.GetBoolValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"status", n => { Status = n.GetObjectValue(RuleStatusInfo.CreateFromDiscriminatorValue); } }, - {"tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"templateUID", n => { TemplateUID = n.GetStringValue(); } }, - {"triggers", n => { Triggers = n.GetCollectionOfObjectValues(TriggerDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"uid", n => { Uid = n.GetStringValue(); } }, - {"visibility", n => { Visibility = n.GetEnumValue(); } }, - }; - } - /// - /// 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.WriteCollectionOfObjectValues("actions", Actions); - writer.WriteCollectionOfObjectValues("conditions", Conditions); - writer.WriteCollectionOfObjectValues("configDescriptions", ConfigDescriptions); - writer.WriteObjectValue("configuration", Configuration); - writer.WriteStringValue("description", Description); - writer.WriteBoolValue("editable", Editable); - writer.WriteStringValue("name", Name); - writer.WriteObjectValue("status", Status); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteStringValue("templateUID", TemplateUID); - writer.WriteCollectionOfObjectValues("triggers", Triggers); - writer.WriteStringValue("uid", Uid); - writer.WriteEnumValue("visibility", Visibility); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/EnrichedRuleDTO_configuration.cs b/Rest/OpenHAB/Core/Rest/Models/EnrichedRuleDTO_configuration.cs deleted file mode 100644 index 50c2045..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/EnrichedRuleDTO_configuration.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.Models { - public class EnrichedRuleDTO_configuration : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public EnrichedRuleDTO_configuration() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static EnrichedRuleDTO_configuration CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EnrichedRuleDTO_configuration(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/EnrichedRuleDTO_visibility.cs b/Rest/OpenHAB/Core/Rest/Models/EnrichedRuleDTO_visibility.cs deleted file mode 100644 index dbe99a9..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/EnrichedRuleDTO_visibility.cs +++ /dev/null @@ -1,13 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace OpenHAB.Core.Rest.Models { - public enum EnrichedRuleDTO_visibility { - [EnumMember(Value = "VISIBLE")] - VISIBLE, - [EnumMember(Value = "HIDDEN")] - HIDDEN, - [EnumMember(Value = "EXPERT")] - EXPERT, - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/EnrichedSemanticTagDTO.cs b/Rest/OpenHAB/Core/Rest/Models/EnrichedSemanticTagDTO.cs deleted file mode 100644 index cbb10a4..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/EnrichedSemanticTagDTO.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.Models { - public class EnrichedSemanticTagDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public EnrichedSemanticTagDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static EnrichedSemanticTagDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EnrichedSemanticTagDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/EnrichedThingDTO.cs b/Rest/OpenHAB/Core/Rest/Models/EnrichedThingDTO.cs deleted file mode 100644 index 8b6f1b8..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/EnrichedThingDTO.cs +++ /dev/null @@ -1,147 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class EnrichedThingDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The bridgeUID property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? BridgeUID { get; set; } -#nullable restore -#else - public string BridgeUID { get; set; } -#endif - /// The channels property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Channels { get; set; } -#nullable restore -#else - public List Channels { get; set; } -#endif - /// The configuration property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public EnrichedThingDTO_configuration? Configuration { get; set; } -#nullable restore -#else - public EnrichedThingDTO_configuration Configuration { get; set; } -#endif - /// The editable property - public bool? Editable { get; set; } - /// The firmwareStatus property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public FirmwareStatusDTO? FirmwareStatus { get; set; } -#nullable restore -#else - public FirmwareStatusDTO FirmwareStatus { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The location property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Location { get; set; } -#nullable restore -#else - public string Location { get; set; } -#endif - /// The properties property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public EnrichedThingDTO_properties? Properties { get; set; } -#nullable restore -#else - public EnrichedThingDTO_properties Properties { get; set; } -#endif - /// The statusInfo property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public ThingStatusInfo? StatusInfo { get; set; } -#nullable restore -#else - public ThingStatusInfo StatusInfo { get; set; } -#endif - /// The thingTypeUID property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ThingTypeUID { get; set; } -#nullable restore -#else - public string ThingTypeUID { get; set; } -#endif - /// The UID property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UID { get; set; } -#nullable restore -#else - public string UID { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public EnrichedThingDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static EnrichedThingDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EnrichedThingDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"bridgeUID", n => { BridgeUID = n.GetStringValue(); } }, - {"channels", n => { Channels = n.GetCollectionOfObjectValues(EnrichedChannelDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"configuration", n => { Configuration = n.GetObjectValue(EnrichedThingDTO_configuration.CreateFromDiscriminatorValue); } }, - {"editable", n => { Editable = n.GetBoolValue(); } }, - {"firmwareStatus", n => { FirmwareStatus = n.GetObjectValue(FirmwareStatusDTO.CreateFromDiscriminatorValue); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"location", n => { Location = n.GetStringValue(); } }, - {"properties", n => { Properties = n.GetObjectValue(EnrichedThingDTO_properties.CreateFromDiscriminatorValue); } }, - {"statusInfo", n => { StatusInfo = n.GetObjectValue(ThingStatusInfo.CreateFromDiscriminatorValue); } }, - {"thingTypeUID", n => { ThingTypeUID = n.GetStringValue(); } }, - {"UID", n => { UID = 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("bridgeUID", BridgeUID); - writer.WriteCollectionOfObjectValues("channels", Channels); - writer.WriteObjectValue("configuration", Configuration); - writer.WriteBoolValue("editable", Editable); - writer.WriteObjectValue("firmwareStatus", FirmwareStatus); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("location", Location); - writer.WriteObjectValue("properties", Properties); - writer.WriteObjectValue("statusInfo", StatusInfo); - writer.WriteStringValue("thingTypeUID", ThingTypeUID); - writer.WriteStringValue("UID", UID); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/EnrichedThingDTO_configuration.cs b/Rest/OpenHAB/Core/Rest/Models/EnrichedThingDTO_configuration.cs deleted file mode 100644 index 2750699..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/EnrichedThingDTO_configuration.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.Models { - public class EnrichedThingDTO_configuration : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public EnrichedThingDTO_configuration() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static EnrichedThingDTO_configuration CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EnrichedThingDTO_configuration(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/EnrichedThingDTO_properties.cs b/Rest/OpenHAB/Core/Rest/Models/EnrichedThingDTO_properties.cs deleted file mode 100644 index bd49e18..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/EnrichedThingDTO_properties.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.Models { - public class EnrichedThingDTO_properties : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public EnrichedThingDTO_properties() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static EnrichedThingDTO_properties CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EnrichedThingDTO_properties(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/FilterCriteria.cs b/Rest/OpenHAB/Core/Rest/Models/FilterCriteria.cs deleted file mode 100644 index 3384f45..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/FilterCriteria.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.Models { - public class FilterCriteria : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public FilterCriteria() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static FilterCriteria CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FilterCriteria(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/FilterCriteriaDTO.cs b/Rest/OpenHAB/Core/Rest/Models/FilterCriteriaDTO.cs deleted file mode 100644 index 2b78230..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/FilterCriteriaDTO.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.Models { - public class FilterCriteriaDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public FilterCriteriaDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static FilterCriteriaDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FilterCriteriaDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/FirmwareDTO.cs b/Rest/OpenHAB/Core/Rest/Models/FirmwareDTO.cs deleted file mode 100644 index d6ec66b..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/FirmwareDTO.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class FirmwareDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The changelog property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Changelog { get; set; } -#nullable restore -#else - public string Changelog { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The model property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Model { get; set; } -#nullable restore -#else - public string Model { get; set; } -#endif - /// The modelRestricted property - public bool? ModelRestricted { get; set; } - /// The prerequisiteVersion property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? PrerequisiteVersion { get; set; } -#nullable restore -#else - public string PrerequisiteVersion { get; set; } -#endif - /// The thingTypeUID property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ThingTypeUID { get; set; } -#nullable restore -#else - public string ThingTypeUID { get; set; } -#endif - /// The vendor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Vendor { get; set; } -#nullable restore -#else - public string Vendor { get; set; } -#endif - /// The version property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Version { get; set; } -#nullable restore -#else - public string Version { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public FirmwareDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static FirmwareDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FirmwareDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"changelog", n => { Changelog = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"model", n => { Model = n.GetStringValue(); } }, - {"modelRestricted", n => { ModelRestricted = n.GetBoolValue(); } }, - {"prerequisiteVersion", n => { PrerequisiteVersion = n.GetStringValue(); } }, - {"thingTypeUID", n => { ThingTypeUID = n.GetStringValue(); } }, - {"vendor", n => { Vendor = n.GetStringValue(); } }, - {"version", n => { Version = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("changelog", Changelog); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("model", Model); - writer.WriteBoolValue("modelRestricted", ModelRestricted); - writer.WriteStringValue("prerequisiteVersion", PrerequisiteVersion); - writer.WriteStringValue("thingTypeUID", ThingTypeUID); - writer.WriteStringValue("vendor", Vendor); - writer.WriteStringValue("version", Version); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/FirmwareStatusDTO.cs b/Rest/OpenHAB/Core/Rest/Models/FirmwareStatusDTO.cs deleted file mode 100644 index ae41959..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/FirmwareStatusDTO.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.Models { - public class FirmwareStatusDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The status property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Status { get; set; } -#nullable restore -#else - public string Status { get; set; } -#endif - /// The updatableVersion property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UpdatableVersion { get; set; } -#nullable restore -#else - public string UpdatableVersion { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public FirmwareStatusDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static FirmwareStatusDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FirmwareStatusDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"status", n => { Status = n.GetStringValue(); } }, - {"updatableVersion", n => { UpdatableVersion = 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("status", Status); - writer.WriteStringValue("updatableVersion", UpdatableVersion); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/GroupFunctionDTO.cs b/Rest/OpenHAB/Core/Rest/Models/GroupFunctionDTO.cs deleted file mode 100644 index 52c99b2..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/GroupFunctionDTO.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.Models { - public class GroupFunctionDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The params property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Params { get; set; } -#nullable restore -#else - public List Params { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public GroupFunctionDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static GroupFunctionDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GroupFunctionDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, - {"params", n => { Params = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// 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("name", Name); - writer.WriteCollectionOfPrimitiveValues("params", Params); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/GroupItemDTO.cs b/Rest/OpenHAB/Core/Rest/Models/GroupItemDTO.cs deleted file mode 100644 index 5cb2ff4..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/GroupItemDTO.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class GroupItemDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The category property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Category { get; set; } -#nullable restore -#else - public string Category { get; set; } -#endif - /// The function property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public GroupFunctionDTO? Function { get; set; } -#nullable restore -#else - public GroupFunctionDTO Function { get; set; } -#endif - /// The groupNames property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? GroupNames { get; set; } -#nullable restore -#else - public List GroupNames { get; set; } -#endif - /// The groupType property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? GroupType { get; set; } -#nullable restore -#else - public string GroupType { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The tags property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public GroupItemDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static GroupItemDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new GroupItemDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"category", n => { Category = n.GetStringValue(); } }, - {"function", n => { Function = n.GetObjectValue(GroupFunctionDTO.CreateFromDiscriminatorValue); } }, - {"groupNames", n => { GroupNames = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"groupType", n => { GroupType = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"type", n => { Type = 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("category", Category); - writer.WriteObjectValue("function", Function); - writer.WriteCollectionOfPrimitiveValues("groupNames", GroupNames); - writer.WriteStringValue("groupType", GroupType); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/HistoryDataBean.cs b/Rest/OpenHAB/Core/Rest/Models/HistoryDataBean.cs deleted file mode 100644 index 02556b0..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/HistoryDataBean.cs +++ /dev/null @@ -1,57 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class HistoryDataBean : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The state property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? State { get; set; } -#nullable restore -#else - public string State { get; set; } -#endif - /// The time property - public long? Time { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public HistoryDataBean() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static HistoryDataBean CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new HistoryDataBean(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"state", n => { State = n.GetStringValue(); } }, - {"time", n => { Time = n.GetLongValue(); } }, - }; - } - /// - /// 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("state", State); - writer.WriteLongValue("time", Time); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/HumanLanguageInterpreterDTO.cs b/Rest/OpenHAB/Core/Rest/Models/HumanLanguageInterpreterDTO.cs deleted file mode 100644 index 41df66d..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/HumanLanguageInterpreterDTO.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class HumanLanguageInterpreterDTO : IAdditionalDataHolder, IParsable { - /// Stores 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 label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The locales property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Locales { get; set; } -#nullable restore -#else - public List Locales { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public HumanLanguageInterpreterDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static HumanLanguageInterpreterDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new HumanLanguageInterpreterDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"id", n => { Id = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"locales", n => { Locales = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// 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("label", Label); - writer.WriteCollectionOfPrimitiveValues("locales", Locales); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/IconSet.cs b/Rest/OpenHAB/Core/Rest/Models/IconSet.cs deleted file mode 100644 index 2b63958..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/IconSet.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class IconSet : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The formats property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Formats { get; set; } -#nullable restore -#else - public List Formats { get; set; } -#endif - /// 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 label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public IconSet() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static IconSet CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new IconSet(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"description", n => { Description = n.GetStringValue(); } }, - {"formats", n => { Formats = n.GetCollectionOfEnumValues()?.ToList(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"label", n => { Label = 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("description", Description); - writer.WriteCollectionOfEnumValues("formats", Formats); - writer.WriteStringValue("id", Id); - writer.WriteStringValue("label", Label); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/IconSet_formats.cs b/Rest/OpenHAB/Core/Rest/Models/IconSet_formats.cs deleted file mode 100644 index dcba910..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/IconSet_formats.cs +++ /dev/null @@ -1,11 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace OpenHAB.Core.Rest.Models { - public enum IconSet_formats { - [EnumMember(Value = "PNG")] - PNG, - [EnumMember(Value = "SVG")] - SVG, - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/Input.cs b/Rest/OpenHAB/Core/Rest/Models/Input.cs deleted file mode 100644 index 7b27c28..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/Input.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class Input : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The defaultValue property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DefaultValue { get; set; } -#nullable restore -#else - public string DefaultValue { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The reference property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Reference { get; set; } -#nullable restore -#else - public string Reference { get; set; } -#endif - /// The required property - public bool? Required { get; set; } - /// The tags property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Input() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static Input CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Input(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"defaultValue", n => { DefaultValue = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"reference", n => { Reference = n.GetStringValue(); } }, - {"required", n => { Required = n.GetBoolValue(); } }, - {"tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"type", n => { Type = 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("defaultValue", DefaultValue); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("reference", Reference); - writer.WriteBoolValue("required", Required); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/Intent.cs b/Rest/OpenHAB/Core/Rest/Models/Intent.cs deleted file mode 100644 index 52f5c03..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/Intent.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.Models { - public class Intent : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The entities property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public Intent_entities? Entities { get; set; } -#nullable restore -#else - public Intent_entities Entities { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Intent() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static Intent CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Intent(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"entities", n => { Entities = n.GetObjectValue(Intent_entities.CreateFromDiscriminatorValue); } }, - {"name", n => { Name = 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.WriteObjectValue("entities", Entities); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/Intent_entities.cs b/Rest/OpenHAB/Core/Rest/Models/Intent_entities.cs deleted file mode 100644 index de6676a..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/Intent_entities.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.Models { - public class Intent_entities : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Intent_entities() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static Intent_entities CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Intent_entities(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/ItemChannelLinkDTO.cs b/Rest/OpenHAB/Core/Rest/Models/ItemChannelLinkDTO.cs deleted file mode 100644 index f4c0bb5..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ItemChannelLinkDTO.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class ItemChannelLinkDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The channelUID property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ChannelUID { get; set; } -#nullable restore -#else - public string ChannelUID { get; set; } -#endif - /// The configuration property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public ItemChannelLinkDTO_configuration? Configuration { get; set; } -#nullable restore -#else - public ItemChannelLinkDTO_configuration Configuration { get; set; } -#endif - /// The itemName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ItemName { get; set; } -#nullable restore -#else - public string ItemName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ItemChannelLinkDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ItemChannelLinkDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ItemChannelLinkDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"channelUID", n => { ChannelUID = n.GetStringValue(); } }, - {"configuration", n => { Configuration = n.GetObjectValue(ItemChannelLinkDTO_configuration.CreateFromDiscriminatorValue); } }, - {"itemName", n => { ItemName = 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("channelUID", ChannelUID); - writer.WriteObjectValue("configuration", Configuration); - writer.WriteStringValue("itemName", ItemName); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ItemChannelLinkDTO_configuration.cs b/Rest/OpenHAB/Core/Rest/Models/ItemChannelLinkDTO_configuration.cs deleted file mode 100644 index ce58098..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ItemChannelLinkDTO_configuration.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.Models { - public class ItemChannelLinkDTO_configuration : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ItemChannelLinkDTO_configuration() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ItemChannelLinkDTO_configuration CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ItemChannelLinkDTO_configuration(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/ItemHistoryDTO.cs b/Rest/OpenHAB/Core/Rest/Models/ItemHistoryDTO.cs deleted file mode 100644 index 652a3a4..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ItemHistoryDTO.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class ItemHistoryDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The data property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Data { get; set; } -#nullable restore -#else - public List Data { get; set; } -#endif - /// The datapoints property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Datapoints { get; set; } -#nullable restore -#else - public string Datapoints { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The totalrecords property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Totalrecords { get; set; } -#nullable restore -#else - public string Totalrecords { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ItemHistoryDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ItemHistoryDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ItemHistoryDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"data", n => { Data = n.GetCollectionOfObjectValues(HistoryDataBean.CreateFromDiscriminatorValue)?.ToList(); } }, - {"datapoints", n => { Datapoints = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"totalrecords", n => { Totalrecords = 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.WriteCollectionOfObjectValues("data", Data); - writer.WriteStringValue("datapoints", Datapoints); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("totalrecords", Totalrecords); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/Links.cs b/Rest/OpenHAB/Core/Rest/Models/Links.cs deleted file mode 100644 index d1d3f94..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/Links.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.Models { - public class Links : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// The url property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Url { get; set; } -#nullable restore -#else - public string Url { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Links() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static Links CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Links(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"type", n => { Type = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("type", Type); - writer.WriteStringValue("url", Url); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/LoggerBean.cs b/Rest/OpenHAB/Core/Rest/Models/LoggerBean.cs deleted file mode 100644 index 42633fb..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/LoggerBean.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class LoggerBean : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The loggers property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Loggers { get; set; } -#nullable restore -#else - public List Loggers { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public LoggerBean() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static LoggerBean CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LoggerBean(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"loggers", n => { Loggers = n.GetCollectionOfObjectValues(LoggerInfo.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// 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.WriteCollectionOfObjectValues("loggers", Loggers); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/LoggerInfo.cs b/Rest/OpenHAB/Core/Rest/Models/LoggerInfo.cs deleted file mode 100644 index adc67ce..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/LoggerInfo.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.Models { - public class LoggerInfo : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The level property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Level { get; set; } -#nullable restore -#else - public string Level { get; set; } -#endif - /// The loggerName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LoggerName { get; set; } -#nullable restore -#else - public string LoggerName { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public LoggerInfo() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static LoggerInfo CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new LoggerInfo(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"level", n => { Level = n.GetStringValue(); } }, - {"loggerName", n => { LoggerName = 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("level", Level); - writer.WriteStringValue("loggerName", LoggerName); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/MappingDTO.cs b/Rest/OpenHAB/Core/Rest/Models/MappingDTO.cs deleted file mode 100644 index f664532..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/MappingDTO.cs +++ /dev/null @@ -1,81 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class MappingDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The column property - public int? Column { get; set; } - /// The command property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Command { get; set; } -#nullable restore -#else - public string Command { get; set; } -#endif - /// The icon property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Icon { get; set; } -#nullable restore -#else - public string Icon { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The row property - public int? Row { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public MappingDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static MappingDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MappingDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"column", n => { Column = n.GetIntValue(); } }, - {"command", n => { Command = n.GetStringValue(); } }, - {"icon", n => { Icon = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"row", n => { Row = n.GetIntValue(); } }, - }; - } - /// - /// 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.WriteIntValue("column", Column); - writer.WriteStringValue("command", Command); - writer.WriteStringValue("icon", Icon); - writer.WriteStringValue("label", Label); - writer.WriteIntValue("row", Row); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/MetadataDTO.cs b/Rest/OpenHAB/Core/Rest/Models/MetadataDTO.cs deleted file mode 100644 index 7372227..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/MetadataDTO.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.Models { - public class MetadataDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The config property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public MetadataDTO_config? Config { get; set; } -#nullable restore -#else - public MetadataDTO_config Config { get; set; } -#endif - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public MetadataDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static MetadataDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MetadataDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"config", n => { Config = n.GetObjectValue(MetadataDTO_config.CreateFromDiscriminatorValue); } }, - {"value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("config", Config); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/MetadataDTO_config.cs b/Rest/OpenHAB/Core/Rest/Models/MetadataDTO_config.cs deleted file mode 100644 index 1a7ab3e..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/MetadataDTO_config.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.Models { - public class MetadataDTO_config : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public MetadataDTO_config() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static MetadataDTO_config CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MetadataDTO_config(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/Module.cs b/Rest/OpenHAB/Core/Rest/Models/Module.cs deleted file mode 100644 index fb7622f..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/Module.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class Module : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The configuration property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public OpenHAB.Core.Rest.Models.Configuration? Configuration { get; set; } -#nullable restore -#else - public OpenHAB.Core.Rest.Models.Configuration Configuration { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The id property -#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 label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The typeUID property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TypeUID { get; set; } -#nullable restore -#else - public string TypeUID { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Module() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static Module CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Module(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"configuration", n => { Configuration = n.GetObjectValue(OpenHAB.Core.Rest.Models.Configuration.CreateFromDiscriminatorValue); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"typeUID", n => { TypeUID = 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.WriteObjectValue("configuration", Configuration); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("id", Id); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("typeUID", TypeUID); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ModuleDTO.cs b/Rest/OpenHAB/Core/Rest/Models/ModuleDTO.cs deleted file mode 100644 index 65f1727..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ModuleDTO.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class ModuleDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The configuration property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public ModuleDTO_configuration? Configuration { get; set; } -#nullable restore -#else - public ModuleDTO_configuration Configuration { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The id property -#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 label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ModuleDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ModuleDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ModuleDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"configuration", n => { Configuration = n.GetObjectValue(ModuleDTO_configuration.CreateFromDiscriminatorValue); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("configuration", Configuration); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("id", Id); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ModuleDTO_configuration.cs b/Rest/OpenHAB/Core/Rest/Models/ModuleDTO_configuration.cs deleted file mode 100644 index 69cba23..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ModuleDTO_configuration.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.Models { - public class ModuleDTO_configuration : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ModuleDTO_configuration() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ModuleDTO_configuration CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ModuleDTO_configuration(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/ModuleTypeDTO.cs b/Rest/OpenHAB/Core/Rest/Models/ModuleTypeDTO.cs deleted file mode 100644 index 45bedee..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ModuleTypeDTO.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class ModuleTypeDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The configDescriptions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ConfigDescriptions { get; set; } -#nullable restore -#else - public List ConfigDescriptions { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The tags property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// The uid property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Uid { get; set; } -#nullable restore -#else - public string Uid { get; set; } -#endif - /// The visibility property - public ModuleTypeDTO_visibility? Visibility { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ModuleTypeDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ModuleTypeDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ModuleTypeDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"configDescriptions", n => { ConfigDescriptions = n.GetCollectionOfObjectValues(ConfigDescriptionParameterDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"uid", n => { Uid = n.GetStringValue(); } }, - {"visibility", n => { Visibility = n.GetEnumValue(); } }, - }; - } - /// - /// 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.WriteCollectionOfObjectValues("configDescriptions", ConfigDescriptions); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("label", Label); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteStringValue("uid", Uid); - writer.WriteEnumValue("visibility", Visibility); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ModuleTypeDTO_visibility.cs b/Rest/OpenHAB/Core/Rest/Models/ModuleTypeDTO_visibility.cs deleted file mode 100644 index 500b02b..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ModuleTypeDTO_visibility.cs +++ /dev/null @@ -1,13 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace OpenHAB.Core.Rest.Models { - public enum ModuleTypeDTO_visibility { - [EnumMember(Value = "VISIBLE")] - VISIBLE, - [EnumMember(Value = "HIDDEN")] - HIDDEN, - [EnumMember(Value = "EXPERT")] - EXPERT, - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/Output.cs b/Rest/OpenHAB/Core/Rest/Models/Output.cs deleted file mode 100644 index ed193b6..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/Output.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class Output : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The defaultValue property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? DefaultValue { get; set; } -#nullable restore -#else - public string DefaultValue { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The reference property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Reference { get; set; } -#nullable restore -#else - public string Reference { get; set; } -#endif - /// The tags property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Output() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static Output CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Output(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"defaultValue", n => { DefaultValue = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"reference", n => { Reference = n.GetStringValue(); } }, - {"tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"type", n => { Type = 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("defaultValue", DefaultValue); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("reference", Reference); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/PageDTO.cs b/Rest/OpenHAB/Core/Rest/Models/PageDTO.cs deleted file mode 100644 index a32d83d..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/PageDTO.cs +++ /dev/null @@ -1,111 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class PageDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The icon property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Icon { get; set; } -#nullable restore -#else - public string Icon { get; set; } -#endif - /// 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 leaf property - public bool? Leaf { get; set; } - /// The link property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Link { get; set; } -#nullable restore -#else - public string Link { get; set; } -#endif - /// The parent property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public PageDTO? Parent { get; set; } -#nullable restore -#else - public PageDTO Parent { get; set; } -#endif - /// The timeout property - public bool? Timeout { get; set; } - /// The title property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Title { get; set; } -#nullable restore -#else - public string Title { get; set; } -#endif - /// The widgets property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Widgets { get; set; } -#nullable restore -#else - public List Widgets { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public PageDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static PageDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PageDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"icon", n => { Icon = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"leaf", n => { Leaf = n.GetBoolValue(); } }, - {"link", n => { Link = n.GetStringValue(); } }, - {"parent", n => { Parent = n.GetObjectValue(PageDTO.CreateFromDiscriminatorValue); } }, - {"timeout", n => { Timeout = n.GetBoolValue(); } }, - {"title", n => { Title = n.GetStringValue(); } }, - {"widgets", n => { Widgets = n.GetCollectionOfObjectValues(WidgetDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// 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("icon", Icon); - writer.WriteStringValue("id", Id); - writer.WriteBoolValue("leaf", Leaf); - writer.WriteStringValue("link", Link); - writer.WriteObjectValue("parent", Parent); - writer.WriteBoolValue("timeout", Timeout); - writer.WriteStringValue("title", Title); - writer.WriteCollectionOfObjectValues("widgets", Widgets); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ParameterOption.cs b/Rest/OpenHAB/Core/Rest/Models/ParameterOption.cs deleted file mode 100644 index 62aef13..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ParameterOption.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.Models { - public class ParameterOption : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ParameterOption() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ParameterOption CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ParameterOption(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"label", n => { Label = n.GetStringValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ParameterOptionDTO.cs b/Rest/OpenHAB/Core/Rest/Models/ParameterOptionDTO.cs deleted file mode 100644 index 05ec49f..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ParameterOptionDTO.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.Models { - public class ParameterOptionDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ParameterOptionDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ParameterOptionDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ParameterOptionDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"label", n => { Label = n.GetStringValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/PersistenceCronStrategyDTO.cs b/Rest/OpenHAB/Core/Rest/Models/PersistenceCronStrategyDTO.cs deleted file mode 100644 index ef261c8..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/PersistenceCronStrategyDTO.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.Models { - public class PersistenceCronStrategyDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The cronExpression property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? CronExpression { get; set; } -#nullable restore -#else - public string CronExpression { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public PersistenceCronStrategyDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static PersistenceCronStrategyDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PersistenceCronStrategyDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"cronExpression", n => { CronExpression = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("cronExpression", CronExpression); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/PersistenceFilterDTO.cs b/Rest/OpenHAB/Core/Rest/Models/PersistenceFilterDTO.cs deleted file mode 100644 index 6040f14..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/PersistenceFilterDTO.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class PersistenceFilterDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The inverted property - public bool? Inverted { get; set; } - /// The lower property - public double? Lower { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The relative property - public bool? Relative { get; set; } - /// The unit property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Unit { get; set; } -#nullable restore -#else - public string Unit { get; set; } -#endif - /// The upper property - public double? Upper { get; set; } - /// The value property - public double? Value { get; set; } - /// The values property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Values { get; set; } -#nullable restore -#else - public List Values { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public PersistenceFilterDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static PersistenceFilterDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PersistenceFilterDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"inverted", n => { Inverted = n.GetBoolValue(); } }, - {"lower", n => { Lower = n.GetDoubleValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"relative", n => { Relative = n.GetBoolValue(); } }, - {"unit", n => { Unit = n.GetStringValue(); } }, - {"upper", n => { Upper = n.GetDoubleValue(); } }, - {"value", n => { Value = n.GetDoubleValue(); } }, - {"values", n => { Values = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// 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.WriteBoolValue("inverted", Inverted); - writer.WriteDoubleValue("lower", Lower); - writer.WriteStringValue("name", Name); - writer.WriteBoolValue("relative", Relative); - writer.WriteStringValue("unit", Unit); - writer.WriteDoubleValue("upper", Upper); - writer.WriteDoubleValue("value", Value); - writer.WriteCollectionOfPrimitiveValues("values", Values); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/PersistenceItemConfigurationDTO.cs b/Rest/OpenHAB/Core/Rest/Models/PersistenceItemConfigurationDTO.cs deleted file mode 100644 index 3d4c248..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/PersistenceItemConfigurationDTO.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class PersistenceItemConfigurationDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The alias property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Alias { get; set; } -#nullable restore -#else - public string Alias { get; set; } -#endif - /// The filters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Filters { get; set; } -#nullable restore -#else - public List Filters { get; set; } -#endif - /// The items property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Items { get; set; } -#nullable restore -#else - public List Items { get; set; } -#endif - /// The strategies property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Strategies { get; set; } -#nullable restore -#else - public List Strategies { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public PersistenceItemConfigurationDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static PersistenceItemConfigurationDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PersistenceItemConfigurationDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"alias", n => { Alias = n.GetStringValue(); } }, - {"filters", n => { Filters = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"items", n => { Items = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"strategies", n => { Strategies = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// 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("alias", Alias); - writer.WriteCollectionOfPrimitiveValues("filters", Filters); - writer.WriteCollectionOfPrimitiveValues("items", Items); - writer.WriteCollectionOfPrimitiveValues("strategies", Strategies); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/PersistenceItemInfo.cs b/Rest/OpenHAB/Core/Rest/Models/PersistenceItemInfo.cs deleted file mode 100644 index 2e3400d..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/PersistenceItemInfo.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class PersistenceItemInfo : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The count property - public int? Count { get; set; } - /// The earliest property - public DateTimeOffset? Earliest { get; set; } - /// The latest property - public DateTimeOffset? Latest { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public PersistenceItemInfo() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static PersistenceItemInfo CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PersistenceItemInfo(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"count", n => { Count = n.GetIntValue(); } }, - {"earliest", n => { Earliest = n.GetDateTimeOffsetValue(); } }, - {"latest", n => { Latest = n.GetDateTimeOffsetValue(); } }, - {"name", n => { Name = 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.WriteIntValue("count", Count); - writer.WriteDateTimeOffsetValue("earliest", Earliest); - writer.WriteDateTimeOffsetValue("latest", Latest); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/PersistenceServiceConfigurationDTO.cs b/Rest/OpenHAB/Core/Rest/Models/PersistenceServiceConfigurationDTO.cs deleted file mode 100644 index 8baf777..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/PersistenceServiceConfigurationDTO.cs +++ /dev/null @@ -1,127 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class PersistenceServiceConfigurationDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The configs property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Configs { get; set; } -#nullable restore -#else - public List Configs { get; set; } -#endif - /// The cronStrategies property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? CronStrategies { get; set; } -#nullable restore -#else - public List CronStrategies { get; set; } -#endif - /// The defaults property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Defaults { get; set; } -#nullable restore -#else - public List Defaults { get; set; } -#endif - /// The editable property - public bool? Editable { get; set; } - /// The equalsFilters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? EqualsFilters { get; set; } -#nullable restore -#else - public List EqualsFilters { get; set; } -#endif - /// The includeFilters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? IncludeFilters { get; set; } -#nullable restore -#else - public List IncludeFilters { get; set; } -#endif - /// The serviceId property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ServiceId { get; set; } -#nullable restore -#else - public string ServiceId { get; set; } -#endif - /// The thresholdFilters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ThresholdFilters { get; set; } -#nullable restore -#else - public List ThresholdFilters { get; set; } -#endif - /// The timeFilters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? TimeFilters { get; set; } -#nullable restore -#else - public List TimeFilters { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public PersistenceServiceConfigurationDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static PersistenceServiceConfigurationDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PersistenceServiceConfigurationDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"configs", n => { Configs = n.GetCollectionOfObjectValues(PersistenceItemConfigurationDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"cronStrategies", n => { CronStrategies = n.GetCollectionOfObjectValues(PersistenceCronStrategyDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"defaults", n => { Defaults = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"editable", n => { Editable = n.GetBoolValue(); } }, - {"equalsFilters", n => { EqualsFilters = n.GetCollectionOfObjectValues(PersistenceFilterDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"includeFilters", n => { IncludeFilters = n.GetCollectionOfObjectValues(PersistenceFilterDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"serviceId", n => { ServiceId = n.GetStringValue(); } }, - {"thresholdFilters", n => { ThresholdFilters = n.GetCollectionOfObjectValues(PersistenceFilterDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"timeFilters", n => { TimeFilters = n.GetCollectionOfObjectValues(PersistenceFilterDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// 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.WriteCollectionOfObjectValues("configs", Configs); - writer.WriteCollectionOfObjectValues("cronStrategies", CronStrategies); - writer.WriteCollectionOfPrimitiveValues("defaults", Defaults); - writer.WriteBoolValue("editable", Editable); - writer.WriteCollectionOfObjectValues("equalsFilters", EqualsFilters); - writer.WriteCollectionOfObjectValues("includeFilters", IncludeFilters); - writer.WriteStringValue("serviceId", ServiceId); - writer.WriteCollectionOfObjectValues("thresholdFilters", ThresholdFilters); - writer.WriteCollectionOfObjectValues("timeFilters", TimeFilters); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/PersistenceServiceDTO.cs b/Rest/OpenHAB/Core/Rest/Models/PersistenceServiceDTO.cs deleted file mode 100644 index 042b1f8..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/PersistenceServiceDTO.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class PersistenceServiceDTO : IAdditionalDataHolder, IParsable { - /// Stores 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 label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public PersistenceServiceDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static PersistenceServiceDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new PersistenceServiceDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"id", n => { Id = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("id", Id); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ProfileTypeDTO.cs b/Rest/OpenHAB/Core/Rest/Models/ProfileTypeDTO.cs deleted file mode 100644 index 38120a5..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ProfileTypeDTO.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class ProfileTypeDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The kind property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Kind { get; set; } -#nullable restore -#else - public string Kind { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The supportedItemTypes property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? SupportedItemTypes { get; set; } -#nullable restore -#else - public List SupportedItemTypes { get; set; } -#endif - /// The uid property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Uid { get; set; } -#nullable restore -#else - public string Uid { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ProfileTypeDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ProfileTypeDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ProfileTypeDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"kind", n => { Kind = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"supportedItemTypes", n => { SupportedItemTypes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"uid", n => { Uid = 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("kind", Kind); - writer.WriteStringValue("label", Label); - writer.WriteCollectionOfPrimitiveValues("supportedItemTypes", SupportedItemTypes); - writer.WriteStringValue("uid", Uid); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/RootBean.cs b/Rest/OpenHAB/Core/Rest/Models/RootBean.cs deleted file mode 100644 index 84c904f..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/RootBean.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class RootBean : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The links property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Links { get; set; } -#nullable restore -#else - public List Links { get; set; } -#endif - /// The locale property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Locale { get; set; } -#nullable restore -#else - public string Locale { get; set; } -#endif - /// The measurementSystem property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? MeasurementSystem { get; set; } -#nullable restore -#else - public string MeasurementSystem { get; set; } -#endif - /// The runtimeInfo property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public OpenHAB.Core.Rest.Models.RuntimeInfo? RuntimeInfo { get; set; } -#nullable restore -#else - public OpenHAB.Core.Rest.Models.RuntimeInfo RuntimeInfo { get; set; } -#endif - /// The version property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Version { get; set; } -#nullable restore -#else - public string Version { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public RootBean() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static RootBean CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RootBean(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"links", n => { Links = n.GetCollectionOfObjectValues(OpenHAB.Core.Rest.Models.Links.CreateFromDiscriminatorValue)?.ToList(); } }, - {"locale", n => { Locale = n.GetStringValue(); } }, - {"measurementSystem", n => { MeasurementSystem = n.GetStringValue(); } }, - {"runtimeInfo", n => { RuntimeInfo = n.GetObjectValue(OpenHAB.Core.Rest.Models.RuntimeInfo.CreateFromDiscriminatorValue); } }, - {"version", n => { Version = 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.WriteCollectionOfObjectValues("links", Links); - writer.WriteStringValue("locale", Locale); - writer.WriteStringValue("measurementSystem", MeasurementSystem); - writer.WriteObjectValue("runtimeInfo", RuntimeInfo); - writer.WriteStringValue("version", Version); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/RootUIComponent.cs b/Rest/OpenHAB/Core/Rest/Models/RootUIComponent.cs deleted file mode 100644 index 282b74b..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/RootUIComponent.cs +++ /dev/null @@ -1,117 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class RootUIComponent : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The component property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Component { get; set; } -#nullable restore -#else - public string Component { get; set; } -#endif - /// The config property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RootUIComponent_config? Config { get; set; } -#nullable restore -#else - public RootUIComponent_config Config { get; set; } -#endif - /// The props property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public ConfigDescriptionDTO? Props { get; set; } -#nullable restore -#else - public ConfigDescriptionDTO Props { get; set; } -#endif - /// The slots property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RootUIComponent_slots? Slots { get; set; } -#nullable restore -#else - public RootUIComponent_slots Slots { get; set; } -#endif - /// The tags property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// The timestamp property - public DateTimeOffset? Timestamp { get; set; } - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// The uid property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Uid { get; set; } -#nullable restore -#else - public string Uid { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public RootUIComponent() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static RootUIComponent CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RootUIComponent(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"component", n => { Component = n.GetStringValue(); } }, - {"config", n => { Config = n.GetObjectValue(RootUIComponent_config.CreateFromDiscriminatorValue); } }, - {"props", n => { Props = n.GetObjectValue(ConfigDescriptionDTO.CreateFromDiscriminatorValue); } }, - {"slots", n => { Slots = n.GetObjectValue(RootUIComponent_slots.CreateFromDiscriminatorValue); } }, - {"tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"timestamp", n => { Timestamp = n.GetDateTimeOffsetValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"uid", n => { Uid = 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("component", Component); - writer.WriteObjectValue("config", Config); - writer.WriteObjectValue("props", Props); - writer.WriteObjectValue("slots", Slots); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteDateTimeOffsetValue("timestamp", Timestamp); - writer.WriteStringValue("type", Type); - writer.WriteStringValue("uid", Uid); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/RootUIComponent_config.cs b/Rest/OpenHAB/Core/Rest/Models/RootUIComponent_config.cs deleted file mode 100644 index 863c250..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/RootUIComponent_config.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.Models { - public class RootUIComponent_config : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RootUIComponent_config() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static RootUIComponent_config CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RootUIComponent_config(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/RootUIComponent_slots.cs b/Rest/OpenHAB/Core/Rest/Models/RootUIComponent_slots.cs deleted file mode 100644 index fc98e73..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/RootUIComponent_slots.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.Models { - public class RootUIComponent_slots : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RootUIComponent_slots() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static RootUIComponent_slots CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RootUIComponent_slots(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/Rule.cs b/Rest/OpenHAB/Core/Rest/Models/Rule.cs deleted file mode 100644 index 6998ab0..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/Rule.cs +++ /dev/null @@ -1,157 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class Rule : IAdditionalDataHolder, IParsable { - /// The actions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Actions { get; set; } -#nullable restore -#else - public List Actions { get; set; } -#endif - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The conditions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Conditions { get; set; } -#nullable restore -#else - public List Conditions { get; set; } -#endif - /// The configuration property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public OpenHAB.Core.Rest.Models.Configuration? Configuration { get; set; } -#nullable restore -#else - public OpenHAB.Core.Rest.Models.Configuration Configuration { get; set; } -#endif - /// The configurationDescriptions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ConfigurationDescriptions { get; set; } -#nullable restore -#else - public List ConfigurationDescriptions { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The modules property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Modules { get; set; } -#nullable restore -#else - public List Modules { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The tags property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// The templateUID property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TemplateUID { get; set; } -#nullable restore -#else - public string TemplateUID { get; set; } -#endif - /// The triggers property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Triggers { get; set; } -#nullable restore -#else - public List Triggers { get; set; } -#endif - /// The uid property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Uid { get; set; } -#nullable restore -#else - public string Uid { get; set; } -#endif - /// The visibility property - public Rule_visibility? Visibility { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Rule() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static Rule CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Rule(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"actions", n => { Actions = n.GetCollectionOfObjectValues(ActionObject.CreateFromDiscriminatorValue)?.ToList(); } }, - {"conditions", n => { Conditions = n.GetCollectionOfObjectValues(Condition.CreateFromDiscriminatorValue)?.ToList(); } }, - {"configuration", n => { Configuration = n.GetObjectValue(OpenHAB.Core.Rest.Models.Configuration.CreateFromDiscriminatorValue); } }, - {"configurationDescriptions", n => { ConfigurationDescriptions = n.GetCollectionOfObjectValues(ConfigDescriptionParameter.CreateFromDiscriminatorValue)?.ToList(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"modules", n => { Modules = n.GetCollectionOfObjectValues(Module.CreateFromDiscriminatorValue)?.ToList(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"templateUID", n => { TemplateUID = n.GetStringValue(); } }, - {"triggers", n => { Triggers = n.GetCollectionOfObjectValues(Trigger.CreateFromDiscriminatorValue)?.ToList(); } }, - {"uid", n => { Uid = n.GetStringValue(); } }, - {"visibility", n => { Visibility = n.GetEnumValue(); } }, - }; - } - /// - /// 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.WriteCollectionOfObjectValues("actions", Actions); - writer.WriteCollectionOfObjectValues("conditions", Conditions); - writer.WriteObjectValue("configuration", Configuration); - writer.WriteCollectionOfObjectValues("configurationDescriptions", ConfigurationDescriptions); - writer.WriteStringValue("description", Description); - writer.WriteCollectionOfObjectValues("modules", Modules); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteStringValue("templateUID", TemplateUID); - writer.WriteCollectionOfObjectValues("triggers", Triggers); - writer.WriteStringValue("uid", Uid); - writer.WriteEnumValue("visibility", Visibility); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/RuleDTO.cs b/Rest/OpenHAB/Core/Rest/Models/RuleDTO.cs deleted file mode 100644 index 57c1319..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/RuleDTO.cs +++ /dev/null @@ -1,147 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class RuleDTO : IAdditionalDataHolder, IParsable { - /// The actions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Actions { get; set; } -#nullable restore -#else - public List Actions { get; set; } -#endif - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The conditions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Conditions { get; set; } -#nullable restore -#else - public List Conditions { get; set; } -#endif - /// The configDescriptions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ConfigDescriptions { get; set; } -#nullable restore -#else - public List ConfigDescriptions { get; set; } -#endif - /// The configuration property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RuleDTO_configuration? Configuration { get; set; } -#nullable restore -#else - public RuleDTO_configuration Configuration { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The tags property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// The templateUID property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TemplateUID { get; set; } -#nullable restore -#else - public string TemplateUID { get; set; } -#endif - /// The triggers property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Triggers { get; set; } -#nullable restore -#else - public List Triggers { get; set; } -#endif - /// The uid property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Uid { get; set; } -#nullable restore -#else - public string Uid { get; set; } -#endif - /// The visibility property - public RuleDTO_visibility? Visibility { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RuleDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static RuleDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RuleDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"actions", n => { Actions = n.GetCollectionOfObjectValues(ActionDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"conditions", n => { Conditions = n.GetCollectionOfObjectValues(ConditionDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"configDescriptions", n => { ConfigDescriptions = n.GetCollectionOfObjectValues(ConfigDescriptionParameterDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"configuration", n => { Configuration = n.GetObjectValue(RuleDTO_configuration.CreateFromDiscriminatorValue); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"templateUID", n => { TemplateUID = n.GetStringValue(); } }, - {"triggers", n => { Triggers = n.GetCollectionOfObjectValues(TriggerDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"uid", n => { Uid = n.GetStringValue(); } }, - {"visibility", n => { Visibility = n.GetEnumValue(); } }, - }; - } - /// - /// 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.WriteCollectionOfObjectValues("actions", Actions); - writer.WriteCollectionOfObjectValues("conditions", Conditions); - writer.WriteCollectionOfObjectValues("configDescriptions", ConfigDescriptions); - writer.WriteObjectValue("configuration", Configuration); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("name", Name); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteStringValue("templateUID", TemplateUID); - writer.WriteCollectionOfObjectValues("triggers", Triggers); - writer.WriteStringValue("uid", Uid); - writer.WriteEnumValue("visibility", Visibility); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/RuleDTO_configuration.cs b/Rest/OpenHAB/Core/Rest/Models/RuleDTO_configuration.cs deleted file mode 100644 index 4df98f0..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/RuleDTO_configuration.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.Models { - public class RuleDTO_configuration : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RuleDTO_configuration() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static RuleDTO_configuration CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RuleDTO_configuration(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/RuleDTO_visibility.cs b/Rest/OpenHAB/Core/Rest/Models/RuleDTO_visibility.cs deleted file mode 100644 index 5721951..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/RuleDTO_visibility.cs +++ /dev/null @@ -1,13 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace OpenHAB.Core.Rest.Models { - public enum RuleDTO_visibility { - [EnumMember(Value = "VISIBLE")] - VISIBLE, - [EnumMember(Value = "HIDDEN")] - HIDDEN, - [EnumMember(Value = "EXPERT")] - EXPERT, - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/RuleExecution.cs b/Rest/OpenHAB/Core/Rest/Models/RuleExecution.cs deleted file mode 100644 index 5b2042a..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/RuleExecution.cs +++ /dev/null @@ -1,57 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class RuleExecution : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The date property - public DateTimeOffset? Date { get; set; } - /// The rule property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public OpenHAB.Core.Rest.Models.Rule? Rule { get; set; } -#nullable restore -#else - public OpenHAB.Core.Rest.Models.Rule Rule { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public RuleExecution() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static RuleExecution CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RuleExecution(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"date", n => { Date = n.GetDateTimeOffsetValue(); } }, - {"rule", n => { Rule = n.GetObjectValue(OpenHAB.Core.Rest.Models.Rule.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// 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.WriteDateTimeOffsetValue("date", Date); - writer.WriteObjectValue("rule", Rule); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/RuleStatusInfo.cs b/Rest/OpenHAB/Core/Rest/Models/RuleStatusInfo.cs deleted file mode 100644 index 4e279d2..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/RuleStatusInfo.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class RuleStatusInfo : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The status property - public RuleStatusInfo_status? Status { get; set; } - /// The statusDetail property - public RuleStatusInfo_statusDetail? StatusDetail { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RuleStatusInfo() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static RuleStatusInfo CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RuleStatusInfo(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"description", n => { Description = n.GetStringValue(); } }, - {"status", n => { Status = n.GetEnumValue(); } }, - {"statusDetail", n => { StatusDetail = n.GetEnumValue(); } }, - }; - } - /// - /// 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("description", Description); - writer.WriteEnumValue("status", Status); - writer.WriteEnumValue("statusDetail", StatusDetail); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/RuleStatusInfo_status.cs b/Rest/OpenHAB/Core/Rest/Models/RuleStatusInfo_status.cs deleted file mode 100644 index 3059bce..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/RuleStatusInfo_status.cs +++ /dev/null @@ -1,15 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace OpenHAB.Core.Rest.Models { - public enum RuleStatusInfo_status { - [EnumMember(Value = "UNINITIALIZED")] - UNINITIALIZED, - [EnumMember(Value = "INITIALIZING")] - INITIALIZING, - [EnumMember(Value = "IDLE")] - IDLE, - [EnumMember(Value = "RUNNING")] - RUNNING, - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/RuleStatusInfo_statusDetail.cs b/Rest/OpenHAB/Core/Rest/Models/RuleStatusInfo_statusDetail.cs deleted file mode 100644 index f366325..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/RuleStatusInfo_statusDetail.cs +++ /dev/null @@ -1,21 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace OpenHAB.Core.Rest.Models { - public enum RuleStatusInfo_statusDetail { - [EnumMember(Value = "NONE")] - NONE, - [EnumMember(Value = "HANDLER_MISSING_ERROR")] - HANDLER_MISSING_ERROR, - [EnumMember(Value = "HANDLER_INITIALIZING_ERROR")] - HANDLER_INITIALIZING_ERROR, - [EnumMember(Value = "CONFIGURATION_ERROR")] - CONFIGURATION_ERROR, - [EnumMember(Value = "TEMPLATE_MISSING_ERROR")] - TEMPLATE_MISSING_ERROR, - [EnumMember(Value = "INVALID_RULE")] - INVALID_RULE, - [EnumMember(Value = "DISABLED")] - DISABLED, - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/Rule_visibility.cs b/Rest/OpenHAB/Core/Rest/Models/Rule_visibility.cs deleted file mode 100644 index 63687ae..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/Rule_visibility.cs +++ /dev/null @@ -1,13 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace OpenHAB.Core.Rest.Models { - public enum Rule_visibility { - [EnumMember(Value = "VISIBLE")] - VISIBLE, - [EnumMember(Value = "HIDDEN")] - HIDDEN, - [EnumMember(Value = "EXPERT")] - EXPERT, - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/RuntimeInfo.cs b/Rest/OpenHAB/Core/Rest/Models/RuntimeInfo.cs deleted file mode 100644 index 311f792..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/RuntimeInfo.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.Models { - public class RuntimeInfo : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The buildString property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? BuildString { get; set; } -#nullable restore -#else - public string BuildString { get; set; } -#endif - /// The version property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Version { get; set; } -#nullable restore -#else - public string Version { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public RuntimeInfo() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static RuntimeInfo CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RuntimeInfo(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"buildString", n => { BuildString = n.GetStringValue(); } }, - {"version", n => { Version = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("buildString", BuildString); - writer.WriteStringValue("version", Version); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/SitemapDTO.cs b/Rest/OpenHAB/Core/Rest/Models/SitemapDTO.cs deleted file mode 100644 index a7650ae..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/SitemapDTO.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class SitemapDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The homepage property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public PageDTO? Homepage { get; set; } -#nullable restore -#else - public PageDTO Homepage { get; set; } -#endif - /// The icon property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Icon { get; set; } -#nullable restore -#else - public string Icon { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The link property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Link { get; set; } -#nullable restore -#else - public string Link { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public SitemapDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static SitemapDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SitemapDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"homepage", n => { Homepage = n.GetObjectValue(PageDTO.CreateFromDiscriminatorValue); } }, - {"icon", n => { Icon = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"link", n => { Link = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("homepage", Homepage); - writer.WriteStringValue("icon", Icon); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("link", Link); - writer.WriteStringValue("name", Name); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/StateDescription.cs b/Rest/OpenHAB/Core/Rest/Models/StateDescription.cs deleted file mode 100644 index d0a07af..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/StateDescription.cs +++ /dev/null @@ -1,79 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class StateDescription : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The maximum property - public double? Maximum { get; set; } - /// The minimum property - public double? Minimum { get; set; } - /// The options property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Options { get; set; } -#nullable restore -#else - public List Options { get; set; } -#endif - /// The pattern property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Pattern { get; set; } -#nullable restore -#else - public string Pattern { get; set; } -#endif - /// The readOnly property - public bool? ReadOnly { get; set; } - /// The step property - public double? Step { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public StateDescription() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static StateDescription CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new StateDescription(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"maximum", n => { Maximum = n.GetDoubleValue(); } }, - {"minimum", n => { Minimum = n.GetDoubleValue(); } }, - {"options", n => { Options = n.GetCollectionOfObjectValues(StateOption.CreateFromDiscriminatorValue)?.ToList(); } }, - {"pattern", n => { Pattern = n.GetStringValue(); } }, - {"readOnly", n => { ReadOnly = n.GetBoolValue(); } }, - {"step", n => { Step = n.GetDoubleValue(); } }, - }; - } - /// - /// 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.WriteDoubleValue("maximum", Maximum); - writer.WriteDoubleValue("minimum", Minimum); - writer.WriteCollectionOfObjectValues("options", Options); - writer.WriteStringValue("pattern", Pattern); - writer.WriteBoolValue("readOnly", ReadOnly); - writer.WriteDoubleValue("step", Step); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/StateOption.cs b/Rest/OpenHAB/Core/Rest/Models/StateOption.cs deleted file mode 100644 index cb81613..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/StateOption.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.Models { - public class StateOption : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The value property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Value { get; set; } -#nullable restore -#else - public string Value { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public StateOption() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static StateOption CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new StateOption(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"label", n => { Label = n.GetStringValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("value", Value); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/StrippedThingTypeDTO.cs b/Rest/OpenHAB/Core/Rest/Models/StrippedThingTypeDTO.cs deleted file mode 100644 index 3248985..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/StrippedThingTypeDTO.cs +++ /dev/null @@ -1,101 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class StrippedThingTypeDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The bridge property - public bool? Bridge { get; set; } - /// The category property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Category { get; set; } -#nullable restore -#else - public string Category { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The listed property - public bool? Listed { get; set; } - /// The supportedBridgeTypeUIDs property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? SupportedBridgeTypeUIDs { get; set; } -#nullable restore -#else - public List SupportedBridgeTypeUIDs { get; set; } -#endif - /// The UID property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UID { get; set; } -#nullable restore -#else - public string UID { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public StrippedThingTypeDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static StrippedThingTypeDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new StrippedThingTypeDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"bridge", n => { Bridge = n.GetBoolValue(); } }, - {"category", n => { Category = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"listed", n => { Listed = n.GetBoolValue(); } }, - {"supportedBridgeTypeUIDs", n => { SupportedBridgeTypeUIDs = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"UID", n => { UID = 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.WriteBoolValue("bridge", Bridge); - writer.WriteStringValue("category", Category); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("label", Label); - writer.WriteBoolValue("listed", Listed); - writer.WriteCollectionOfPrimitiveValues("supportedBridgeTypeUIDs", SupportedBridgeTypeUIDs); - writer.WriteStringValue("UID", UID); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/SystemInfo.cs b/Rest/OpenHAB/Core/Rest/Models/SystemInfo.cs deleted file mode 100644 index ae3fd09..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/SystemInfo.cs +++ /dev/null @@ -1,153 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class SystemInfo : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The availableProcessors property - public int? AvailableProcessors { get; set; } - /// The configFolder property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ConfigFolder { get; set; } -#nullable restore -#else - public string ConfigFolder { get; set; } -#endif - /// The freeMemory property - public long? FreeMemory { get; set; } - /// The javaVendor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? JavaVendor { get; set; } -#nullable restore -#else - public string JavaVendor { get; set; } -#endif - /// The javaVendorVersion property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? JavaVendorVersion { get; set; } -#nullable restore -#else - public string JavaVendorVersion { get; set; } -#endif - /// The javaVersion property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? JavaVersion { get; set; } -#nullable restore -#else - public string JavaVersion { get; set; } -#endif - /// The logFolder property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LogFolder { get; set; } -#nullable restore -#else - public string LogFolder { get; set; } -#endif - /// The osArchitecture property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? OsArchitecture { get; set; } -#nullable restore -#else - public string OsArchitecture { get; set; } -#endif - /// The osName property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? OsName { get; set; } -#nullable restore -#else - public string OsName { get; set; } -#endif - /// The osVersion property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? OsVersion { get; set; } -#nullable restore -#else - public string OsVersion { get; set; } -#endif - /// The startLevel property - public int? StartLevel { get; set; } - /// The totalMemory property - public long? TotalMemory { get; set; } - /// The uptime property - public long? Uptime { get; set; } - /// The userdataFolder property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UserdataFolder { get; set; } -#nullable restore -#else - public string UserdataFolder { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public SystemInfo() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static SystemInfo CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SystemInfo(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"availableProcessors", n => { AvailableProcessors = n.GetIntValue(); } }, - {"configFolder", n => { ConfigFolder = n.GetStringValue(); } }, - {"freeMemory", n => { FreeMemory = n.GetLongValue(); } }, - {"javaVendor", n => { JavaVendor = n.GetStringValue(); } }, - {"javaVendorVersion", n => { JavaVendorVersion = n.GetStringValue(); } }, - {"javaVersion", n => { JavaVersion = n.GetStringValue(); } }, - {"logFolder", n => { LogFolder = n.GetStringValue(); } }, - {"osArchitecture", n => { OsArchitecture = n.GetStringValue(); } }, - {"osName", n => { OsName = n.GetStringValue(); } }, - {"osVersion", n => { OsVersion = n.GetStringValue(); } }, - {"startLevel", n => { StartLevel = n.GetIntValue(); } }, - {"totalMemory", n => { TotalMemory = n.GetLongValue(); } }, - {"uptime", n => { Uptime = n.GetLongValue(); } }, - {"userdataFolder", n => { UserdataFolder = 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.WriteIntValue("availableProcessors", AvailableProcessors); - writer.WriteStringValue("configFolder", ConfigFolder); - writer.WriteLongValue("freeMemory", FreeMemory); - writer.WriteStringValue("javaVendor", JavaVendor); - writer.WriteStringValue("javaVendorVersion", JavaVendorVersion); - writer.WriteStringValue("javaVersion", JavaVersion); - writer.WriteStringValue("logFolder", LogFolder); - writer.WriteStringValue("osArchitecture", OsArchitecture); - writer.WriteStringValue("osName", OsName); - writer.WriteStringValue("osVersion", OsVersion); - writer.WriteIntValue("startLevel", StartLevel); - writer.WriteLongValue("totalMemory", TotalMemory); - writer.WriteLongValue("uptime", Uptime); - writer.WriteStringValue("userdataFolder", UserdataFolder); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/SystemInfoBean.cs b/Rest/OpenHAB/Core/Rest/Models/SystemInfoBean.cs deleted file mode 100644 index d6e8e97..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/SystemInfoBean.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class SystemInfoBean : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The systemInfo property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public OpenHAB.Core.Rest.Models.SystemInfo? SystemInfo { get; set; } -#nullable restore -#else - public OpenHAB.Core.Rest.Models.SystemInfo SystemInfo { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public SystemInfoBean() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static SystemInfoBean CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SystemInfoBean(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"systemInfo", n => { SystemInfo = n.GetObjectValue(OpenHAB.Core.Rest.Models.SystemInfo.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// 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.WriteObjectValue("systemInfo", SystemInfo); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/Template.cs b/Rest/OpenHAB/Core/Rest/Models/Template.cs deleted file mode 100644 index 9e5a8d4..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/Template.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class Template : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The tags property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Tags { get; set; } -#nullable restore -#else - public List Tags { get; set; } -#endif - /// The uid property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Uid { get; set; } -#nullable restore -#else - public string Uid { get; set; } -#endif - /// The visibility property - public Template_visibility? Visibility { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Template() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static Template CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Template(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"description", n => { Description = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"uid", n => { Uid = n.GetStringValue(); } }, - {"visibility", n => { Visibility = n.GetEnumValue(); } }, - }; - } - /// - /// 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("description", Description); - writer.WriteStringValue("label", Label); - writer.WriteCollectionOfPrimitiveValues("tags", Tags); - writer.WriteStringValue("uid", Uid); - writer.WriteEnumValue("visibility", Visibility); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/Template_visibility.cs b/Rest/OpenHAB/Core/Rest/Models/Template_visibility.cs deleted file mode 100644 index 3572c39..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/Template_visibility.cs +++ /dev/null @@ -1,13 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace OpenHAB.Core.Rest.Models { - public enum Template_visibility { - [EnumMember(Value = "VISIBLE")] - VISIBLE, - [EnumMember(Value = "HIDDEN")] - HIDDEN, - [EnumMember(Value = "EXPERT")] - EXPERT, - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ThingActionDTO.cs b/Rest/OpenHAB/Core/Rest/Models/ThingActionDTO.cs deleted file mode 100644 index 4631266..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ThingActionDTO.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class ThingActionDTO : IAdditionalDataHolder, IParsable { - /// The actionUid property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ActionUid { get; set; } -#nullable restore -#else - public string ActionUid { get; set; } -#endif - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The inputs property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Inputs { get; set; } -#nullable restore -#else - public List Inputs { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The outputs property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Outputs { get; set; } -#nullable restore -#else - public List Outputs { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ThingActionDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ThingActionDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ThingActionDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"actionUid", n => { ActionUid = n.GetStringValue(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"inputs", n => { Inputs = n.GetCollectionOfObjectValues(Input.CreateFromDiscriminatorValue)?.ToList(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"outputs", n => { Outputs = n.GetCollectionOfObjectValues(Output.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// 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("actionUid", ActionUid); - writer.WriteStringValue("description", Description); - writer.WriteCollectionOfObjectValues("inputs", Inputs); - writer.WriteStringValue("label", Label); - writer.WriteCollectionOfObjectValues("outputs", Outputs); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ThingDTO.cs b/Rest/OpenHAB/Core/Rest/Models/ThingDTO.cs deleted file mode 100644 index 501e5c6..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ThingDTO.cs +++ /dev/null @@ -1,123 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class ThingDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The bridgeUID property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? BridgeUID { get; set; } -#nullable restore -#else - public string BridgeUID { get; set; } -#endif - /// The channels property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Channels { get; set; } -#nullable restore -#else - public List Channels { get; set; } -#endif - /// The configuration property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public ThingDTO_configuration? Configuration { get; set; } -#nullable restore -#else - public ThingDTO_configuration Configuration { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The location property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Location { get; set; } -#nullable restore -#else - public string Location { get; set; } -#endif - /// The properties property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public ThingDTO_properties? Properties { get; set; } -#nullable restore -#else - public ThingDTO_properties Properties { get; set; } -#endif - /// The thingTypeUID property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ThingTypeUID { get; set; } -#nullable restore -#else - public string ThingTypeUID { get; set; } -#endif - /// The UID property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UID { get; set; } -#nullable restore -#else - public string UID { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ThingDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ThingDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ThingDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"bridgeUID", n => { BridgeUID = n.GetStringValue(); } }, - {"channels", n => { Channels = n.GetCollectionOfObjectValues(ChannelDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"configuration", n => { Configuration = n.GetObjectValue(ThingDTO_configuration.CreateFromDiscriminatorValue); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"location", n => { Location = n.GetStringValue(); } }, - {"properties", n => { Properties = n.GetObjectValue(ThingDTO_properties.CreateFromDiscriminatorValue); } }, - {"thingTypeUID", n => { ThingTypeUID = n.GetStringValue(); } }, - {"UID", n => { UID = 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("bridgeUID", BridgeUID); - writer.WriteCollectionOfObjectValues("channels", Channels); - writer.WriteObjectValue("configuration", Configuration); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("location", Location); - writer.WriteObjectValue("properties", Properties); - writer.WriteStringValue("thingTypeUID", ThingTypeUID); - writer.WriteStringValue("UID", UID); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ThingDTO_configuration.cs b/Rest/OpenHAB/Core/Rest/Models/ThingDTO_configuration.cs deleted file mode 100644 index 1d2256f..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ThingDTO_configuration.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.Models { - public class ThingDTO_configuration : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ThingDTO_configuration() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ThingDTO_configuration CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ThingDTO_configuration(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/ThingDTO_properties.cs b/Rest/OpenHAB/Core/Rest/Models/ThingDTO_properties.cs deleted file mode 100644 index 3fcaec9..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ThingDTO_properties.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.Models { - public class ThingDTO_properties : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ThingDTO_properties() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ThingDTO_properties CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ThingDTO_properties(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/ThingStatusInfo.cs b/Rest/OpenHAB/Core/Rest/Models/ThingStatusInfo.cs deleted file mode 100644 index e6b7a7f..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ThingStatusInfo.cs +++ /dev/null @@ -1,61 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class ThingStatusInfo : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The status property - public ThingStatusInfo_status? Status { get; set; } - /// The statusDetail property - public ThingStatusInfo_statusDetail? StatusDetail { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ThingStatusInfo() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ThingStatusInfo CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ThingStatusInfo(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"description", n => { Description = n.GetStringValue(); } }, - {"status", n => { Status = n.GetEnumValue(); } }, - {"statusDetail", n => { StatusDetail = n.GetEnumValue(); } }, - }; - } - /// - /// 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("description", Description); - writer.WriteEnumValue("status", Status); - writer.WriteEnumValue("statusDetail", StatusDetail); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ThingStatusInfo_status.cs b/Rest/OpenHAB/Core/Rest/Models/ThingStatusInfo_status.cs deleted file mode 100644 index 9d3b7d9..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ThingStatusInfo_status.cs +++ /dev/null @@ -1,21 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace OpenHAB.Core.Rest.Models { - public enum ThingStatusInfo_status { - [EnumMember(Value = "UNINITIALIZED")] - UNINITIALIZED, - [EnumMember(Value = "INITIALIZING")] - INITIALIZING, - [EnumMember(Value = "UNKNOWN")] - UNKNOWN, - [EnumMember(Value = "ONLINE")] - ONLINE, - [EnumMember(Value = "OFFLINE")] - OFFLINE, - [EnumMember(Value = "REMOVING")] - REMOVING, - [EnumMember(Value = "REMOVED")] - REMOVED, - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ThingStatusInfo_statusDetail.cs b/Rest/OpenHAB/Core/Rest/Models/ThingStatusInfo_statusDetail.cs deleted file mode 100644 index a3be22d..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ThingStatusInfo_statusDetail.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -using System.Runtime.Serialization; -using System; -namespace OpenHAB.Core.Rest.Models { - public enum ThingStatusInfo_statusDetail { - [EnumMember(Value = "NONE")] - NONE, - [EnumMember(Value = "NOT_YET_READY")] - NOT_YET_READY, - [EnumMember(Value = "HANDLER_MISSING_ERROR")] - HANDLER_MISSING_ERROR, - [EnumMember(Value = "HANDLER_REGISTERING_ERROR")] - HANDLER_REGISTERING_ERROR, - [EnumMember(Value = "HANDLER_INITIALIZING_ERROR")] - HANDLER_INITIALIZING_ERROR, - [EnumMember(Value = "HANDLER_CONFIGURATION_PENDING")] - HANDLER_CONFIGURATION_PENDING, - [EnumMember(Value = "CONFIGURATION_PENDING")] - CONFIGURATION_PENDING, - [EnumMember(Value = "COMMUNICATION_ERROR")] - COMMUNICATION_ERROR, - [EnumMember(Value = "CONFIGURATION_ERROR")] - CONFIGURATION_ERROR, - [EnumMember(Value = "BRIDGE_OFFLINE")] - BRIDGE_OFFLINE, - [EnumMember(Value = "FIRMWARE_UPDATING")] - FIRMWARE_UPDATING, - [EnumMember(Value = "DUTY_CYCLE")] - DUTY_CYCLE, - [EnumMember(Value = "BRIDGE_UNINITIALIZED")] - BRIDGE_UNINITIALIZED, - [EnumMember(Value = "GONE")] - GONE, - [EnumMember(Value = "DISABLED")] - DISABLED, - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ThingTypeDTO.cs b/Rest/OpenHAB/Core/Rest/Models/ThingTypeDTO.cs deleted file mode 100644 index 826dedb..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ThingTypeDTO.cs +++ /dev/null @@ -1,161 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class ThingTypeDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The bridge property - public bool? Bridge { get; set; } - /// The category property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Category { get; set; } -#nullable restore -#else - public string Category { get; set; } -#endif - /// The channelGroups property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ChannelGroups { get; set; } -#nullable restore -#else - public List ChannelGroups { get; set; } -#endif - /// The channels property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Channels { get; set; } -#nullable restore -#else - public List Channels { get; set; } -#endif - /// The configParameters property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ConfigParameters { get; set; } -#nullable restore -#else - public List ConfigParameters { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The extensibleChannelTypeIds property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ExtensibleChannelTypeIds { get; set; } -#nullable restore -#else - public List ExtensibleChannelTypeIds { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The listed property - public bool? Listed { get; set; } - /// The parameterGroups property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? ParameterGroups { get; set; } -#nullable restore -#else - public List ParameterGroups { get; set; } -#endif - /// The properties property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public ThingTypeDTO_properties? Properties { get; set; } -#nullable restore -#else - public ThingTypeDTO_properties Properties { get; set; } -#endif - /// The supportedBridgeTypeUIDs property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? SupportedBridgeTypeUIDs { get; set; } -#nullable restore -#else - public List SupportedBridgeTypeUIDs { get; set; } -#endif - /// The UID property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? UID { get; set; } -#nullable restore -#else - public string UID { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public ThingTypeDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ThingTypeDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ThingTypeDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"bridge", n => { Bridge = n.GetBoolValue(); } }, - {"category", n => { Category = n.GetStringValue(); } }, - {"channelGroups", n => { ChannelGroups = n.GetCollectionOfObjectValues(ChannelGroupDefinitionDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"channels", n => { Channels = n.GetCollectionOfObjectValues(ChannelDefinitionDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"configParameters", n => { ConfigParameters = n.GetCollectionOfObjectValues(ConfigDescriptionParameterDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"extensibleChannelTypeIds", n => { ExtensibleChannelTypeIds = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"listed", n => { Listed = n.GetBoolValue(); } }, - {"parameterGroups", n => { ParameterGroups = n.GetCollectionOfObjectValues(ConfigDescriptionParameterGroupDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"properties", n => { Properties = n.GetObjectValue(ThingTypeDTO_properties.CreateFromDiscriminatorValue); } }, - {"supportedBridgeTypeUIDs", n => { SupportedBridgeTypeUIDs = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"UID", n => { UID = 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.WriteBoolValue("bridge", Bridge); - writer.WriteStringValue("category", Category); - writer.WriteCollectionOfObjectValues("channelGroups", ChannelGroups); - writer.WriteCollectionOfObjectValues("channels", Channels); - writer.WriteCollectionOfObjectValues("configParameters", ConfigParameters); - writer.WriteStringValue("description", Description); - writer.WriteCollectionOfPrimitiveValues("extensibleChannelTypeIds", ExtensibleChannelTypeIds); - writer.WriteStringValue("label", Label); - writer.WriteBoolValue("listed", Listed); - writer.WriteCollectionOfObjectValues("parameterGroups", ParameterGroups); - writer.WriteObjectValue("properties", Properties); - writer.WriteCollectionOfPrimitiveValues("supportedBridgeTypeUIDs", SupportedBridgeTypeUIDs); - writer.WriteStringValue("UID", UID); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/ThingTypeDTO_properties.cs b/Rest/OpenHAB/Core/Rest/Models/ThingTypeDTO_properties.cs deleted file mode 100644 index 5a024f1..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/ThingTypeDTO_properties.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.Models { - public class ThingTypeDTO_properties : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public ThingTypeDTO_properties() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static ThingTypeDTO_properties CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ThingTypeDTO_properties(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/TileDTO.cs b/Rest/OpenHAB/Core/Rest/Models/TileDTO.cs deleted file mode 100644 index 28386f4..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/TileDTO.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class TileDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The imageUrl property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? ImageUrl { get; set; } -#nullable restore -#else - public string ImageUrl { get; set; } -#endif - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The overlay property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Overlay { get; set; } -#nullable restore -#else - public string Overlay { get; set; } -#endif - /// The url property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Url { get; set; } -#nullable restore -#else - public string Url { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TileDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static TileDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TileDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"imageUrl", n => { ImageUrl = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"overlay", n => { Overlay = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteStringValue("imageUrl", ImageUrl); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("overlay", Overlay); - writer.WriteStringValue("url", Url); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/TokenResponseDTO.cs b/Rest/OpenHAB/Core/Rest/Models/TokenResponseDTO.cs deleted file mode 100644 index 09ddcc2..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/TokenResponseDTO.cs +++ /dev/null @@ -1,97 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class TokenResponseDTO : IAdditionalDataHolder, IParsable { - /// The access_token property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? AccessToken { get; set; } -#nullable restore -#else - public string AccessToken { get; set; } -#endif - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The expires_in property - public int? ExpiresIn { get; set; } - /// 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 - /// The scope property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Scope { get; set; } -#nullable restore -#else - public string Scope { get; set; } -#endif - /// The token_type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TokenType { get; set; } -#nullable restore -#else - public string TokenType { get; set; } -#endif - /// The user property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public UserDTO? User { get; set; } -#nullable restore -#else - public UserDTO User { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TokenResponseDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static TokenResponseDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TokenResponseDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"access_token", n => { AccessToken = n.GetStringValue(); } }, - {"expires_in", n => { ExpiresIn = n.GetIntValue(); } }, - {"refresh_token", n => { RefreshToken = n.GetStringValue(); } }, - {"scope", n => { Scope = n.GetStringValue(); } }, - {"token_type", n => { TokenType = n.GetStringValue(); } }, - {"user", n => { User = n.GetObjectValue(UserDTO.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// 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("access_token", AccessToken); - writer.WriteIntValue("expires_in", ExpiresIn); - writer.WriteStringValue("refresh_token", RefreshToken); - writer.WriteStringValue("scope", Scope); - writer.WriteStringValue("token_type", TokenType); - writer.WriteObjectValue("user", User); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/Transformation.cs b/Rest/OpenHAB/Core/Rest/Models/Transformation.cs deleted file mode 100644 index f01add5..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/Transformation.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class Transformation : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The configuration property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public Transformation_configuration? Configuration { get; set; } -#nullable restore -#else - public Transformation_configuration Configuration { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// The uid property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Uid { get; set; } -#nullable restore -#else - public string Uid { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Transformation() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static Transformation CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Transformation(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"configuration", n => { Configuration = n.GetObjectValue(Transformation_configuration.CreateFromDiscriminatorValue); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"uid", n => { Uid = 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.WriteObjectValue("configuration", Configuration); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("type", Type); - writer.WriteStringValue("uid", Uid); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/TransformationDTO.cs b/Rest/OpenHAB/Core/Rest/Models/TransformationDTO.cs deleted file mode 100644 index 03b8727..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/TransformationDTO.cs +++ /dev/null @@ -1,87 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class TransformationDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The configuration property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public TransformationDTO_configuration? Configuration { get; set; } -#nullable restore -#else - public TransformationDTO_configuration Configuration { get; set; } -#endif - /// The editable property - public bool? Editable { get; set; } - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// The uid property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Uid { get; set; } -#nullable restore -#else - public string Uid { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TransformationDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static TransformationDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TransformationDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"configuration", n => { Configuration = n.GetObjectValue(TransformationDTO_configuration.CreateFromDiscriminatorValue); } }, - {"editable", n => { Editable = n.GetBoolValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"uid", n => { Uid = 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.WriteObjectValue("configuration", Configuration); - writer.WriteBoolValue("editable", Editable); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("type", Type); - writer.WriteStringValue("uid", Uid); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/TransformationDTO_configuration.cs b/Rest/OpenHAB/Core/Rest/Models/TransformationDTO_configuration.cs deleted file mode 100644 index dc0dce2..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/TransformationDTO_configuration.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.Models { - public class TransformationDTO_configuration : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TransformationDTO_configuration() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static TransformationDTO_configuration CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TransformationDTO_configuration(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/Transformation_configuration.cs b/Rest/OpenHAB/Core/Rest/Models/Transformation_configuration.cs deleted file mode 100644 index d6e4717..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/Transformation_configuration.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.Models { - public class Transformation_configuration : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public Transformation_configuration() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static Transformation_configuration CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Transformation_configuration(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/Trigger.cs b/Rest/OpenHAB/Core/Rest/Models/Trigger.cs deleted file mode 100644 index db53d30..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/Trigger.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class Trigger : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The configuration property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public OpenHAB.Core.Rest.Models.Configuration? Configuration { get; set; } -#nullable restore -#else - public OpenHAB.Core.Rest.Models.Configuration Configuration { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The id property -#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 label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The typeUID property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? TypeUID { get; set; } -#nullable restore -#else - public string TypeUID { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public Trigger() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static Trigger CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Trigger(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"configuration", n => { Configuration = n.GetObjectValue(OpenHAB.Core.Rest.Models.Configuration.CreateFromDiscriminatorValue); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"typeUID", n => { TypeUID = 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.WriteObjectValue("configuration", Configuration); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("id", Id); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("typeUID", TypeUID); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/TriggerDTO.cs b/Rest/OpenHAB/Core/Rest/Models/TriggerDTO.cs deleted file mode 100644 index f1ba6a3..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/TriggerDTO.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class TriggerDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The configuration property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public TriggerDTO_configuration? Configuration { get; set; } -#nullable restore -#else - public TriggerDTO_configuration Configuration { get; set; } -#endif - /// The description property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Description { get; set; } -#nullable restore -#else - public string Description { get; set; } -#endif - /// The id property -#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 label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public TriggerDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static TriggerDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TriggerDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"configuration", n => { Configuration = n.GetObjectValue(TriggerDTO_configuration.CreateFromDiscriminatorValue); } }, - {"description", n => { Description = n.GetStringValue(); } }, - {"id", n => { Id = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - }; - } - /// - /// Serializes information the current object - /// - /// Serialization writer to use to serialize this model - public virtual void Serialize(ISerializationWriter writer) { - _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("configuration", Configuration); - writer.WriteStringValue("description", Description); - writer.WriteStringValue("id", Id); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("type", Type); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/TriggerDTO_configuration.cs b/Rest/OpenHAB/Core/Rest/Models/TriggerDTO_configuration.cs deleted file mode 100644 index 2c27a4d..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/TriggerDTO_configuration.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.Models { - public class TriggerDTO_configuration : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public TriggerDTO_configuration() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static TriggerDTO_configuration CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new TriggerDTO_configuration(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Models/UoMInfo.cs b/Rest/OpenHAB/Core/Rest/Models/UoMInfo.cs deleted file mode 100644 index 1a525b7..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/UoMInfo.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class UoMInfo : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The dimensions property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Dimensions { get; set; } -#nullable restore -#else - public List Dimensions { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public UoMInfo() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static UoMInfo CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UoMInfo(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"dimensions", n => { Dimensions = n.GetCollectionOfObjectValues(DimensionInfo.CreateFromDiscriminatorValue)?.ToList(); } }, - }; - } - /// - /// 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.WriteCollectionOfObjectValues("dimensions", Dimensions); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/UoMInfoBean.cs b/Rest/OpenHAB/Core/Rest/Models/UoMInfoBean.cs deleted file mode 100644 index 8841f8d..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/UoMInfoBean.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class UoMInfoBean : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The uomInfo property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public OpenHAB.Core.Rest.Models.UoMInfo? UomInfo { get; set; } -#nullable restore -#else - public OpenHAB.Core.Rest.Models.UoMInfo UomInfo { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public UoMInfoBean() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static UoMInfoBean CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UoMInfoBean(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"uomInfo", n => { UomInfo = n.GetObjectValue(OpenHAB.Core.Rest.Models.UoMInfo.CreateFromDiscriminatorValue); } }, - }; - } - /// - /// 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.WriteObjectValue("uomInfo", UomInfo); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/UserApiTokenDTO.cs b/Rest/OpenHAB/Core/Rest/Models/UserApiTokenDTO.cs deleted file mode 100644 index 21500c0..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/UserApiTokenDTO.cs +++ /dev/null @@ -1,67 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class UserApiTokenDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The createdTime property - public DateTimeOffset? CreatedTime { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The scope property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Scope { get; set; } -#nullable restore -#else - public string Scope { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public UserApiTokenDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static UserApiTokenDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserApiTokenDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"createdTime", n => { CreatedTime = n.GetDateTimeOffsetValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"scope", n => { Scope = 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.WriteDateTimeOffsetValue("createdTime", CreatedTime); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("scope", Scope); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/UserDTO.cs b/Rest/OpenHAB/Core/Rest/Models/UserDTO.cs deleted file mode 100644 index 78b5c8d..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/UserDTO.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.Models { - public class UserDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The roles property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Roles { get; set; } -#nullable restore -#else - public List Roles { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public UserDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static UserDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, - {"roles", n => { Roles = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - }; - } - /// - /// 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("name", Name); - writer.WriteCollectionOfPrimitiveValues("roles", Roles); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/UserSessionDTO.cs b/Rest/OpenHAB/Core/Rest/Models/UserSessionDTO.cs deleted file mode 100644 index 12e7f81..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/UserSessionDTO.cs +++ /dev/null @@ -1,81 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class UserSessionDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The clientId property -#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 createdTime property - public DateTimeOffset? CreatedTime { get; set; } - /// The lastRefreshTime property - public DateTimeOffset? LastRefreshTime { get; set; } - /// The scope property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Scope { get; set; } -#nullable restore -#else - public string Scope { get; set; } -#endif - /// The sessionId property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? SessionId { get; set; } -#nullable restore -#else - public string SessionId { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public UserSessionDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static UserSessionDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new UserSessionDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"clientId", n => { ClientId = n.GetStringValue(); } }, - {"createdTime", n => { CreatedTime = n.GetDateTimeOffsetValue(); } }, - {"lastRefreshTime", n => { LastRefreshTime = n.GetDateTimeOffsetValue(); } }, - {"scope", n => { Scope = n.GetStringValue(); } }, - {"sessionId", n => { SessionId = 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("clientId", ClientId); - writer.WriteDateTimeOffsetValue("createdTime", CreatedTime); - writer.WriteDateTimeOffsetValue("lastRefreshTime", LastRefreshTime); - writer.WriteStringValue("scope", Scope); - writer.WriteStringValue("sessionId", SessionId); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/VoiceDTO.cs b/Rest/OpenHAB/Core/Rest/Models/VoiceDTO.cs deleted file mode 100644 index 2933108..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/VoiceDTO.cs +++ /dev/null @@ -1,73 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class VoiceDTO : IAdditionalDataHolder, IParsable { - /// Stores 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 label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The locale property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Locale { get; set; } -#nullable restore -#else - public string Locale { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public VoiceDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static VoiceDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new VoiceDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"id", n => { Id = n.GetStringValue(); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"locale", n => { Locale = 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("label", Label); - writer.WriteStringValue("locale", Locale); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Models/WidgetDTO.cs b/Rest/OpenHAB/Core/Rest/Models/WidgetDTO.cs deleted file mode 100644 index 379a48c..0000000 --- a/Rest/OpenHAB/Core/Rest/Models/WidgetDTO.cs +++ /dev/null @@ -1,297 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System; -namespace OpenHAB.Core.Rest.Models { - public class WidgetDTO : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// The encoding property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Encoding { get; set; } -#nullable restore -#else - public string Encoding { get; set; } -#endif - /// The forceAsItem property - public bool? ForceAsItem { get; set; } - /// The height property - public int? Height { get; set; } - /// The icon property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Icon { get; set; } -#nullable restore -#else - public string Icon { get; set; } -#endif - /// The iconcolor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Iconcolor { get; set; } -#nullable restore -#else - public string Iconcolor { get; set; } -#endif - /// The inputHint property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? InputHint { get; set; } -#nullable restore -#else - public string InputHint { get; set; } -#endif - /// The item property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public EnrichedItemDTO? Item { get; set; } -#nullable restore -#else - public EnrichedItemDTO Item { get; set; } -#endif - /// The label property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Label { get; set; } -#nullable restore -#else - public string Label { get; set; } -#endif - /// The labelcolor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Labelcolor { get; set; } -#nullable restore -#else - public string Labelcolor { get; set; } -#endif - /// The labelSource property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? LabelSource { get; set; } -#nullable restore -#else - public string LabelSource { get; set; } -#endif - /// The legend property - public bool? Legend { get; set; } - /// The linkedPage property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public PageDTO? LinkedPage { get; set; } -#nullable restore -#else - public PageDTO LinkedPage { get; set; } -#endif - /// The mappings property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public List? Mappings { get; set; } -#nullable restore -#else - public List Mappings { get; set; } -#endif - /// The maxValue property - public double? MaxValue { get; set; } - /// The minValue property - public double? MinValue { get; set; } - /// The name property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Name { get; set; } -#nullable restore -#else - public string Name { get; set; } -#endif - /// The pattern property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Pattern { get; set; } -#nullable restore -#else - public string Pattern { get; set; } -#endif - /// The period property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Period { get; set; } -#nullable restore -#else - public string Period { get; set; } -#endif - /// The refresh property - public int? Refresh { get; set; } - /// The sendFrequency property - public int? SendFrequency { get; set; } - /// The service property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Service { get; set; } -#nullable restore -#else - public string Service { get; set; } -#endif - /// The state property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? State { get; set; } -#nullable restore -#else - public string State { get; set; } -#endif - /// The staticIcon property - public bool? StaticIcon { get; set; } - /// The step property - public double? Step { get; set; } - /// The switchSupport property - public bool? SwitchSupport { get; set; } - /// The type property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Type { get; set; } -#nullable restore -#else - public string Type { get; set; } -#endif - /// The unit property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Unit { get; set; } -#nullable restore -#else - public string Unit { get; set; } -#endif - /// The url property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Url { get; set; } -#nullable restore -#else - public string Url { get; set; } -#endif - /// The valuecolor property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? Valuecolor { get; set; } -#nullable restore -#else - public string Valuecolor { get; set; } -#endif - /// The visibility property - public bool? Visibility { get; set; } - /// The widgetId property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? WidgetId { get; set; } -#nullable restore -#else - public string WidgetId { get; set; } -#endif - /// The yAxisDecimalPattern property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public string? YAxisDecimalPattern { get; set; } -#nullable restore -#else - public string YAxisDecimalPattern { get; set; } -#endif - /// - /// Instantiates a new and sets the default values. - /// - public WidgetDTO() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static WidgetDTO CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new WidgetDTO(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual IDictionary> GetFieldDeserializers() { - return new Dictionary> { - {"encoding", n => { Encoding = n.GetStringValue(); } }, - {"forceAsItem", n => { ForceAsItem = n.GetBoolValue(); } }, - {"height", n => { Height = n.GetIntValue(); } }, - {"icon", n => { Icon = n.GetStringValue(); } }, - {"iconcolor", n => { Iconcolor = n.GetStringValue(); } }, - {"inputHint", n => { InputHint = n.GetStringValue(); } }, - {"item", n => { Item = n.GetObjectValue(EnrichedItemDTO.CreateFromDiscriminatorValue); } }, - {"label", n => { Label = n.GetStringValue(); } }, - {"labelSource", n => { LabelSource = n.GetStringValue(); } }, - {"labelcolor", n => { Labelcolor = n.GetStringValue(); } }, - {"legend", n => { Legend = n.GetBoolValue(); } }, - {"linkedPage", n => { LinkedPage = n.GetObjectValue(PageDTO.CreateFromDiscriminatorValue); } }, - {"mappings", n => { Mappings = n.GetCollectionOfObjectValues(MappingDTO.CreateFromDiscriminatorValue)?.ToList(); } }, - {"maxValue", n => { MaxValue = n.GetDoubleValue(); } }, - {"minValue", n => { MinValue = n.GetDoubleValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"pattern", n => { Pattern = n.GetStringValue(); } }, - {"period", n => { Period = n.GetStringValue(); } }, - {"refresh", n => { Refresh = n.GetIntValue(); } }, - {"sendFrequency", n => { SendFrequency = n.GetIntValue(); } }, - {"service", n => { Service = n.GetStringValue(); } }, - {"state", n => { State = n.GetStringValue(); } }, - {"staticIcon", n => { StaticIcon = n.GetBoolValue(); } }, - {"step", n => { Step = n.GetDoubleValue(); } }, - {"switchSupport", n => { SwitchSupport = n.GetBoolValue(); } }, - {"type", n => { Type = n.GetStringValue(); } }, - {"unit", n => { Unit = n.GetStringValue(); } }, - {"url", n => { Url = n.GetStringValue(); } }, - {"valuecolor", n => { Valuecolor = n.GetStringValue(); } }, - {"visibility", n => { Visibility = n.GetBoolValue(); } }, - {"widgetId", n => { WidgetId = n.GetStringValue(); } }, - {"yAxisDecimalPattern", n => { YAxisDecimalPattern = 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("encoding", Encoding); - writer.WriteBoolValue("forceAsItem", ForceAsItem); - writer.WriteIntValue("height", Height); - writer.WriteStringValue("icon", Icon); - writer.WriteStringValue("iconcolor", Iconcolor); - writer.WriteStringValue("inputHint", InputHint); - writer.WriteObjectValue("item", Item); - writer.WriteStringValue("label", Label); - writer.WriteStringValue("labelcolor", Labelcolor); - writer.WriteStringValue("labelSource", LabelSource); - writer.WriteBoolValue("legend", Legend); - writer.WriteObjectValue("linkedPage", LinkedPage); - writer.WriteCollectionOfObjectValues("mappings", Mappings); - writer.WriteDoubleValue("maxValue", MaxValue); - writer.WriteDoubleValue("minValue", MinValue); - writer.WriteStringValue("name", Name); - writer.WriteStringValue("pattern", Pattern); - writer.WriteStringValue("period", Period); - writer.WriteIntValue("refresh", Refresh); - writer.WriteIntValue("sendFrequency", SendFrequency); - writer.WriteStringValue("service", Service); - writer.WriteStringValue("state", State); - writer.WriteBoolValue("staticIcon", StaticIcon); - writer.WriteDoubleValue("step", Step); - writer.WriteBoolValue("switchSupport", SwitchSupport); - writer.WriteStringValue("type", Type); - writer.WriteStringValue("unit", Unit); - writer.WriteStringValue("url", Url); - writer.WriteStringValue("valuecolor", Valuecolor); - writer.WriteBoolValue("visibility", Visibility); - writer.WriteStringValue("widgetId", WidgetId); - writer.WriteStringValue("yAxisDecimalPattern", YAxisDecimalPattern); - writer.WriteAdditionalData(AdditionalData); - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/ModuleTypes/Item/WithModuleTypeUItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/ModuleTypes/Item/WithModuleTypeUItemRequestBuilder.cs deleted file mode 100644 index 0cbe09b..0000000 --- a/Rest/OpenHAB/Core/Rest/ModuleTypes/Item/WithModuleTypeUItemRequestBuilder.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.ModuleTypes.Item { - /// - /// Builds and executes requests for operations under \module-types\{moduleTypeUID} - /// - public class WithModuleTypeUItemRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithModuleTypeUItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/module-types/{moduleTypeUID}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithModuleTypeUItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/module-types/{moduleTypeUID}", rawUrl) { - } - /// - /// Gets a module type corresponding to the given 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, ModuleTypeDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Gets a module type corresponding to the given 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 WithModuleTypeUItemRequestBuilder WithUrl(string rawUrl) { - return new WithModuleTypeUItemRequestBuilder(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 WithModuleTypeUItemRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/ModuleTypes/ModuleTypesRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/ModuleTypes/ModuleTypesRequestBuilder.cs deleted file mode 100644 index 560ee36..0000000 --- a/Rest/OpenHAB/Core/Rest/ModuleTypes/ModuleTypesRequestBuilder.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Models; -using OpenHAB.Core.Rest.ModuleTypes.Item; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace OpenHAB.Core.Rest.ModuleTypes { - /// - /// Builds and executes requests for operations under \module-types - /// - public class ModuleTypesRequestBuilder : BaseRequestBuilder { - /// Gets an item from the openHAB.Core.Rest.moduleTypes.item collection - /// moduleTypeUID - /// A - public WithModuleTypeUItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("moduleTypeUID", position); - return new WithModuleTypeUItemRequestBuilder(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 ModuleTypesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/module-types{?tags*,type*}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ModuleTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/module-types{?tags*,type*}", rawUrl) { - } - /// - /// Get all available module types. - /// - /// A List<ModuleTypeDTO> - /// 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, ModuleTypeDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); - } - /// - /// Get all available module 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 ModuleTypesRequestBuilder WithUrl(string rawUrl) { - return new ModuleTypesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Get all available module types. - /// - public class ModuleTypesRequestBuilderGetQueryParameters { - /// tags for filtering -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("tags")] - public string? Tags { get; set; } -#nullable restore -#else - [QueryParameter("tags")] - public string Tags { get; set; } -#endif - /// filtering by action, condition or trigger -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("type")] - public string? Type { get; set; } -#nullable restore -#else - [QueryParameter("type")] - public string Type { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ModuleTypesRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/OpenHABClient.cs b/Rest/OpenHAB/Core/Rest/OpenHABClient.cs deleted file mode 100644 index a9d16e9..0000000 --- a/Rest/OpenHAB/Core/Rest/OpenHABClient.cs +++ /dev/null @@ -1,223 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Extensions; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Serialization.Form; -using Microsoft.Kiota.Serialization.Json; -using Microsoft.Kiota.Serialization.Multipart; -using Microsoft.Kiota.Serialization.Text; -using OpenHAB.Core.Rest.Actions; -using OpenHAB.Core.Rest.Addons; -using OpenHAB.Core.Rest.Audio; -using OpenHAB.Core.Rest.Auth; -using OpenHAB.Core.Rest.ChannelTypes; -using OpenHAB.Core.Rest.ConfigDescriptions; -using OpenHAB.Core.Rest.Discovery; -using OpenHAB.Core.Rest.Events; -using OpenHAB.Core.Rest.Habot; -using OpenHAB.Core.Rest.Iconsets; -using OpenHAB.Core.Rest.Inbox; -using OpenHAB.Core.Rest.Items; -using OpenHAB.Core.Rest.Links; -using OpenHAB.Core.Rest.Logging; -using OpenHAB.Core.Rest.Models; -using OpenHAB.Core.Rest.ModuleTypes; -using OpenHAB.Core.Rest.Persistence; -using OpenHAB.Core.Rest.ProfileTypes; -using OpenHAB.Core.Rest.Rules; -using OpenHAB.Core.Rest.Services; -using OpenHAB.Core.Rest.Sitemaps; -using OpenHAB.Core.Rest.Systeminfo; -using OpenHAB.Core.Rest.Tags; -using OpenHAB.Core.Rest.Templates; -using OpenHAB.Core.Rest.ThingTypes; -using OpenHAB.Core.Rest.Things; -using OpenHAB.Core.Rest.Transformations; -using OpenHAB.Core.Rest.Ui; -using OpenHAB.Core.Rest.Uuid; -using OpenHAB.Core.Rest.Voice; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace OpenHAB.Core.Rest { - /// - /// The main entry point of the SDK, exposes the configuration and the fluent API. - /// - public class OpenHABClient : BaseRequestBuilder { - /// The actions property - public ActionsRequestBuilder Actions { get => - new ActionsRequestBuilder(PathParameters, RequestAdapter); - } - /// The addons property - public AddonsRequestBuilder Addons { get => - new AddonsRequestBuilder(PathParameters, RequestAdapter); - } - /// The audio property - public AudioRequestBuilder Audio { get => - new AudioRequestBuilder(PathParameters, RequestAdapter); - } - /// The auth property - public AuthRequestBuilder Auth { get => - new AuthRequestBuilder(PathParameters, RequestAdapter); - } - /// The channelTypes property - public ChannelTypesRequestBuilder ChannelTypes { get => - new ChannelTypesRequestBuilder(PathParameters, RequestAdapter); - } - /// The configDescriptions property - public ConfigDescriptionsRequestBuilder ConfigDescriptions { get => - new ConfigDescriptionsRequestBuilder(PathParameters, RequestAdapter); - } - /// The discovery property - public DiscoveryRequestBuilder Discovery { get => - new DiscoveryRequestBuilder(PathParameters, RequestAdapter); - } - /// The events property - public EventsRequestBuilder Events { get => - new EventsRequestBuilder(PathParameters, RequestAdapter); - } - /// The habot property - public HabotRequestBuilder Habot { get => - new HabotRequestBuilder(PathParameters, RequestAdapter); - } - /// The iconsets property - public IconsetsRequestBuilder Iconsets { get => - new IconsetsRequestBuilder(PathParameters, RequestAdapter); - } - /// The inbox property - public InboxRequestBuilder Inbox { get => - new InboxRequestBuilder(PathParameters, RequestAdapter); - } - /// The items property - public ItemsRequestBuilder Items { get => - new ItemsRequestBuilder(PathParameters, RequestAdapter); - } - /// The links property - public LinksRequestBuilder Links { get => - new LinksRequestBuilder(PathParameters, RequestAdapter); - } - /// The logging property - public LoggingRequestBuilder Logging { get => - new LoggingRequestBuilder(PathParameters, RequestAdapter); - } - /// The moduleTypes property - public ModuleTypesRequestBuilder ModuleTypes { get => - new ModuleTypesRequestBuilder(PathParameters, RequestAdapter); - } - /// The persistence property - public PersistenceRequestBuilder Persistence { get => - new PersistenceRequestBuilder(PathParameters, RequestAdapter); - } - /// The profileTypes property - public ProfileTypesRequestBuilder ProfileTypes { get => - new ProfileTypesRequestBuilder(PathParameters, RequestAdapter); - } - /// The rules property - public RulesRequestBuilder Rules { get => - new RulesRequestBuilder(PathParameters, RequestAdapter); - } - /// The services property - public ServicesRequestBuilder Services { get => - new ServicesRequestBuilder(PathParameters, RequestAdapter); - } - /// The sitemaps property - public SitemapsRequestBuilder Sitemaps { get => - new SitemapsRequestBuilder(PathParameters, RequestAdapter); - } - /// The systeminfo property - public SysteminfoRequestBuilder Systeminfo { get => - new SysteminfoRequestBuilder(PathParameters, RequestAdapter); - } - /// The tags property - public TagsRequestBuilder Tags { get => - new TagsRequestBuilder(PathParameters, RequestAdapter); - } - /// The templates property - public TemplatesRequestBuilder Templates { get => - new TemplatesRequestBuilder(PathParameters, RequestAdapter); - } - /// The things property - public ThingsRequestBuilder Things { get => - new ThingsRequestBuilder(PathParameters, RequestAdapter); - } - /// The thingTypes property - public ThingTypesRequestBuilder ThingTypes { get => - new ThingTypesRequestBuilder(PathParameters, RequestAdapter); - } - /// The transformations property - public TransformationsRequestBuilder Transformations { get => - new TransformationsRequestBuilder(PathParameters, RequestAdapter); - } - /// The ui property - public UiRequestBuilder Ui { get => - new UiRequestBuilder(PathParameters, RequestAdapter); - } - /// The uuid property - public UuidRequestBuilder Uuid { get => - new UuidRequestBuilder(PathParameters, RequestAdapter); - } - /// The voice property - public VoiceRequestBuilder Voice { get => - new VoiceRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// The request adapter to use to execute the requests. - public OpenHABClient(IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}", new Dictionary()) { - ApiClientBuilder.RegisterDefaultSerializer(); - ApiClientBuilder.RegisterDefaultSerializer(); - ApiClientBuilder.RegisterDefaultSerializer(); - ApiClientBuilder.RegisterDefaultSerializer(); - ApiClientBuilder.RegisterDefaultDeserializer(); - ApiClientBuilder.RegisterDefaultDeserializer(); - ApiClientBuilder.RegisterDefaultDeserializer(); - if (string.IsNullOrEmpty(RequestAdapter.BaseUrl)) { - RequestAdapter.BaseUrl = "https://home.myopenhab.org/rest"; - } - PathParameters.TryAdd("baseurl", RequestAdapter.BaseUrl); - } - /// - /// Gets information about the runtime, the API version and links to resources. - /// - /// 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, RootBean.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Gets information about the runtime, the API version and links to resources. - /// - /// 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; - } - /// - /// Configuration for the 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 OpenHABClientGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Persistence/Item/WithServiceItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Persistence/Item/WithServiceItemRequestBuilder.cs deleted file mode 100644 index f713e42..0000000 --- a/Rest/OpenHAB/Core/Rest/Persistence/Item/WithServiceItemRequestBuilder.cs +++ /dev/null @@ -1,160 +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.Persistence.Item { - /// - /// Builds and executes requests for operations under \persistence\{serviceId} - /// - public class WithServiceItemRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithServiceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/persistence/{serviceId}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithServiceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/persistence/{serviceId}", rawUrl) { - } - /// - /// Deletes a persistence service configuration. - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Gets a persistence service configuration. - /// - /// 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, PersistenceServiceConfigurationDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Sets a persistence service 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(PersistenceServiceConfigurationDTO body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PutAsync(PersistenceServiceConfigurationDTO body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, PersistenceServiceConfigurationDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Deletes a persistence service configuration. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Gets a persistence service configuration. - /// - /// 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; - } - /// - /// Sets a persistence service 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(PersistenceServiceConfigurationDTO body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(PersistenceServiceConfigurationDTO 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 WithServiceItemRequestBuilder WithUrl(string rawUrl) { - return new WithServiceItemRequestBuilder(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 WithServiceItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class WithServiceItemRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class WithServiceItemRequestBuilderPutRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Persistence/Items/Item/WithItemnameItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Persistence/Items/Item/WithItemnameItemRequestBuilder.cs deleted file mode 100644 index 4e20802..0000000 --- a/Rest/OpenHAB/Core/Rest/Persistence/Items/Item/WithItemnameItemRequestBuilder.cs +++ /dev/null @@ -1,270 +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.Persistence.Items.Item { - /// - /// Builds and executes requests for operations under \persistence\items\{itemname} - /// - public class WithItemnameItemRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithItemnameItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/persistence/items/{itemname}{?boundary*,endtime*,page*,pagelength*,serviceId*,starttime*}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithItemnameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/persistence/items/{itemname}{?boundary*,endtime*,page*,pagelength*,serviceId*,starttime*}", rawUrl) { - } - /// - /// Deletes item persistence data from a specific persistence service in a given time range. - /// - /// 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?> DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task> DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - var collectionResult = await RequestAdapter.SendPrimitiveCollectionAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); - } - /// - /// Gets item persistence data from the persistence service. - /// - /// 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, ItemHistoryDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Stores item persistence data into the persistence service. - /// - /// 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 PutAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PutAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToPutRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Deletes item persistence data from a specific persistence service in a given time range. - /// - /// 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, "{+baseurl}/persistence/items/{itemname}?endtime={endtime}&serviceId={serviceId}&starttime={starttime}", PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Gets item persistence data from the persistence service. - /// - /// 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; - } - /// - /// Stores item persistence data into the persistence service. - /// - /// 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 ToPutRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.PUT, "{+baseurl}/persistence/items/{itemname}?state={state}&time={time}{&serviceId*}", 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 WithItemnameItemRequestBuilder WithUrl(string rawUrl) { - return new WithItemnameItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Deletes item persistence data from a specific persistence service in a given time range. - /// - public class WithItemnameItemRequestBuilderDeleteQueryParameters { - /// End of the time range to be deleted. [yyyy-MM-dd'T'HH:mm:ss.SSSZ] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("endtime")] - public string? Endtime { get; set; } -#nullable restore -#else - [QueryParameter("endtime")] - public string Endtime { get; set; } -#endif - /// Id of the persistence service. -#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 - /// Start of the time range to be deleted. [yyyy-MM-dd'T'HH:mm:ss.SSSZ] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("starttime")] - public string? Starttime { get; set; } -#nullable restore -#else - [QueryParameter("starttime")] - public string Starttime { 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 WithItemnameItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { - } - /// - /// Gets item persistence data from the persistence service. - /// - public class WithItemnameItemRequestBuilderGetQueryParameters { - /// Gets one value before and after the requested period. - [QueryParameter("boundary")] - public bool? Boundary { get; set; } - /// End time of the data to return. Will default to current time. [yyyy-MM-dd'T'HH:mm:ss.SSSZ] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("endtime")] - public string? Endtime { get; set; } -#nullable restore -#else - [QueryParameter("endtime")] - public string Endtime { get; set; } -#endif - /// Page number of data to return. This parameter will enable paging. - [QueryParameter("page")] - public int? Page { get; set; } - /// The length of each page. - [QueryParameter("pagelength")] - public int? Pagelength { get; set; } - /// Id of the persistence service. If not provided the default service will be used -#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 - /// Start time of the data to return. Will default to 1 day before endtime. [yyyy-MM-dd'T'HH:mm:ss.SSSZ] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("starttime")] - public string? Starttime { get; set; } -#nullable restore -#else - [QueryParameter("starttime")] - public string Starttime { 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 WithItemnameItemRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - /// - /// Stores item persistence data into the persistence service. - /// - public class WithItemnameItemRequestBuilderPutQueryParameters { - /// Id of the persistence service. If not provided the default service will be used -#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 - /// The state to store. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("state")] - public string? State { get; set; } -#nullable restore -#else - [QueryParameter("state")] - public string State { get; set; } -#endif - /// Time of the data to be stored. Will default to current time. [yyyy-MM-dd'T'HH:mm:ss.SSSZ] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("time")] - public string? Time { get; set; } -#nullable restore -#else - [QueryParameter("time")] - public string Time { 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 WithItemnameItemRequestBuilderPutRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Persistence/Items/ItemsRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Persistence/Items/ItemsRequestBuilder.cs deleted file mode 100644 index 72ca584..0000000 --- a/Rest/OpenHAB/Core/Rest/Persistence/Items/ItemsRequestBuilder.cs +++ /dev/null @@ -1,103 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Models; -using OpenHAB.Core.Rest.Persistence.Items.Item; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace OpenHAB.Core.Rest.Persistence.Items { - /// - /// Builds and executes requests for operations under \persistence\items - /// - public class ItemsRequestBuilder : BaseRequestBuilder { - /// Gets an item from the openHAB.Core.Rest.persistence.items.item collection - /// The item name - /// A - public WithItemnameItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("itemname", position); - return new WithItemnameItemRequestBuilder(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 ItemsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/persistence/items{?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 ItemsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/persistence/items{?serviceId*}", rawUrl) { - } - /// - /// Gets a list of items available via a specific persistence service. - /// - /// A List<PersistenceItemInfo> - /// 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, PersistenceItemInfo.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); - } - /// - /// Gets a list of items available via a specific persistence service. - /// - /// 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 ItemsRequestBuilder WithUrl(string rawUrl) { - return new ItemsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Gets a list of items available via a specific persistence service. - /// - public class ItemsRequestBuilderGetQueryParameters { - /// Id of the persistence service. If not provided the default service will be used -#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 ItemsRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Persistence/PersistenceRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Persistence/PersistenceRequestBuilder.cs deleted file mode 100644 index b122dd9..0000000 --- a/Rest/OpenHAB/Core/Rest/Persistence/PersistenceRequestBuilder.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Models; -using OpenHAB.Core.Rest.Persistence.Item; -using OpenHAB.Core.Rest.Persistence.Items; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace OpenHAB.Core.Rest.Persistence { - /// - /// Builds and executes requests for operations under \persistence - /// - public class PersistenceRequestBuilder : BaseRequestBuilder { - /// The items property - public ItemsRequestBuilder Items { get => - new ItemsRequestBuilder(PathParameters, RequestAdapter); - } - /// Gets an item from the openHAB.Core.Rest.persistence.item collection - /// Id of the persistence service. - /// A - public WithServiceItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("serviceId", position); - return new WithServiceItemRequestBuilder(urlTplParams, RequestAdapter); - } } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public PersistenceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/persistence", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public PersistenceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/persistence", rawUrl) { - } - /// - /// Gets a list of persistence services. - /// - /// A List<PersistenceServiceDTO> - /// 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, PersistenceServiceDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); - } - /// - /// Gets a list of persistence 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 PersistenceRequestBuilder WithUrl(string rawUrl) { - return new PersistenceRequestBuilder(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 PersistenceRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/ProfileTypes/ProfileTypesRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/ProfileTypes/ProfileTypesRequestBuilder.cs deleted file mode 100644 index c721f5b..0000000 --- a/Rest/OpenHAB/Core/Rest/ProfileTypes/ProfileTypesRequestBuilder.cs +++ /dev/null @@ -1,104 +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.ProfileTypes { - /// - /// Builds and executes requests for operations under \profile-types - /// - public class ProfileTypesRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ProfileTypesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/profile-types{?channelTypeUID*,itemType*}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ProfileTypesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/profile-types{?channelTypeUID*,itemType*}", rawUrl) { - } - /// - /// Gets all available profile types. - /// - /// A List<ProfileTypeDTO> - /// 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, ProfileTypeDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); - } - /// - /// Gets all available profile 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 ProfileTypesRequestBuilder WithUrl(string rawUrl) { - return new ProfileTypesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Gets all available profile types. - /// - public class ProfileTypesRequestBuilderGetQueryParameters { - /// channel type filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("channelTypeUID")] - public string? ChannelTypeUID { get; set; } -#nullable restore -#else - [QueryParameter("channelTypeUID")] - public string ChannelTypeUID { get; set; } -#endif - /// item type filter -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("itemType")] - public string? ItemType { get; set; } -#nullable restore -#else - [QueryParameter("itemType")] - public string ItemType { 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 ProfileTypesRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Rules/Item/Actions/ActionsRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Rules/Item/Actions/ActionsRequestBuilder.cs deleted file mode 100644 index 31608fd..0000000 --- a/Rest/OpenHAB/Core/Rest/Rules/Item/Actions/ActionsRequestBuilder.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.Rules.Item.Actions { - /// - /// Builds and executes requests for operations under \rules\{ruleUID}\actions - /// - public class ActionsRequestBuilder : BaseRequestBuilder { - /// - /// 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}/rules/{ruleUID}/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}/rules/{ruleUID}/actions", rawUrl) { - } - /// - /// Gets the rule actions. - /// - /// A List<ActionDTO> - /// 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, ActionDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); - } - /// - /// Gets the rule actions. - /// - /// 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 ActionsRequestBuilder WithUrl(string rawUrl) { - return new ActionsRequestBuilder(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 ActionsRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Rules/Item/Conditions/ConditionsRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Rules/Item/Conditions/ConditionsRequestBuilder.cs deleted file mode 100644 index 5d0b1e4..0000000 --- a/Rest/OpenHAB/Core/Rest/Rules/Item/Conditions/ConditionsRequestBuilder.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.Rules.Item.Conditions { - /// - /// Builds and executes requests for operations under \rules\{ruleUID}\conditions - /// - public class ConditionsRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ConditionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/rules/{ruleUID}/conditions", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ConditionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/rules/{ruleUID}/conditions", rawUrl) { - } - /// - /// Gets the rule conditions. - /// - /// A List<ConditionDTO> - /// 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, ConditionDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); - } - /// - /// Gets the rule conditions. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public ConditionsRequestBuilder WithUrl(string rawUrl) { - return new ConditionsRequestBuilder(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 ConditionsRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Rules/Item/Config/ConfigPutRequestBody.cs b/Rest/OpenHAB/Core/Rest/Rules/Item/Config/ConfigPutRequestBody.cs deleted file mode 100644 index 7889938..0000000 --- a/Rest/OpenHAB/Core/Rest/Rules/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.Rules.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/Rules/Item/Config/ConfigRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Rules/Item/Config/ConfigRequestBuilder.cs deleted file mode 100644 index 5d5d041..0000000 --- a/Rest/OpenHAB/Core/Rest/Rules/Item/Config/ConfigRequestBuilder.cs +++ /dev/null @@ -1,120 +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.Rules.Item.Config { - /// - /// Builds and executes requests for operations under \rules\{ruleUID}\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}/rules/{ruleUID}/config", pathParameters) { - } - /// - /// Instantiates a new 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}/rules/{ruleUID}/config", rawUrl) { - } - /// - /// Gets the rule configuration values. - /// - /// 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); - } - /// - /// Sets the rule configuration values. - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PutAsync(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); - } - /// - /// Gets the rule configuration values. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Sets the rule configuration values. - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPutRequestInformation(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.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); - } - /// - /// Configuration for the 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 { - } - /// - /// Configuration for the 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/Rules/Item/Enable/EnableRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Rules/Item/Enable/EnableRequestBuilder.cs deleted file mode 100644 index 0fd08e1..0000000 --- a/Rest/OpenHAB/Core/Rest/Rules/Item/Enable/EnableRequestBuilder.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.Rules.Item.Enable { - /// - /// Builds and executes requests for operations under \rules\{ruleUID}\enable - /// - public class EnableRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public EnableRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/rules/{ruleUID}/enable", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public EnableRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/rules/{ruleUID}/enable", rawUrl) { - } - /// - /// Sets the rule enabled status. - /// - /// 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(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PostAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Sets the rule enabled status. - /// - /// 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(string body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(string body, Action> requestConfiguration = default) { -#endif - if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromScalar(RequestAdapter, "text/plain", 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 EnableRequestBuilder WithUrl(string rawUrl) { - return new EnableRequestBuilder(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 EnableRequestBuilderPostRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Rules/Item/Item/Item/Config/ConfigRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Rules/Item/Item/Item/Config/ConfigRequestBuilder.cs deleted file mode 100644 index 45016f5..0000000 --- a/Rest/OpenHAB/Core/Rest/Rules/Item/Item/Item/Config/ConfigRequestBuilder.cs +++ /dev/null @@ -1,86 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Rules.Item.Item.Item.Config.Item; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace OpenHAB.Core.Rest.Rules.Item.Item.Item.Config { - /// - /// Builds and executes requests for operations under \rules\{ruleUID}\{moduleCategory}\{id}\config - /// - public class ConfigRequestBuilder : BaseRequestBuilder { - /// Gets an item from the openHAB.Core.Rest.rules.item.item.item.config.item collection - /// param - /// A - public WithParamItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("param", position); - return new WithParamItemRequestBuilder(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 ConfigRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/rules/{ruleUID}/{moduleCategory}/{id}/config", pathParameters) { - } - /// - /// Instantiates a new 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}/rules/{ruleUID}/{moduleCategory}/{id}/config", rawUrl) { - } - /// - /// Gets the module's configuration. - /// - /// 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); - } - /// - /// Gets the module's configuration. - /// - /// 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 ConfigRequestBuilder WithUrl(string rawUrl) { - return new ConfigRequestBuilder(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 ConfigRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Rules/Item/Item/Item/Config/Item/WithParamItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Rules/Item/Item/Item/Config/Item/WithParamItemRequestBuilder.cs deleted file mode 100644 index 9d96d74..0000000 --- a/Rest/OpenHAB/Core/Rest/Rules/Item/Item/Item/Config/Item/WithParamItemRequestBuilder.cs +++ /dev/null @@ -1,120 +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.Rules.Item.Item.Item.Config.Item { - /// - /// Builds and executes requests for operations under \rules\{ruleUID}\{moduleCategory}\{id}\config\{param} - /// - public class WithParamItemRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithParamItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/rules/{ruleUID}/{moduleCategory}/{id}/config/{param}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithParamItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/rules/{ruleUID}/{moduleCategory}/{id}/config/{param}", rawUrl) { - } - /// - /// Gets the module's configuration parameter. - /// - /// 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); - } - /// - /// Sets the module's configuration parameter value. - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PutAsync(string body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PutAsync(string body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Gets the module's configuration parameter. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9"); - return requestInfo; - } - /// - /// Sets the module's configuration parameter value. - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPutRequestInformation(string body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(string body, Action> requestConfiguration = default) { -#endif - if(string.IsNullOrEmpty(body)) throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromScalar(RequestAdapter, "text/plain", 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 WithParamItemRequestBuilder WithUrl(string rawUrl) { - return new WithParamItemRequestBuilder(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 WithParamItemRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class WithParamItemRequestBuilderPutRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Rules/Item/Item/Item/ModuleCategoryItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Rules/Item/Item/Item/ModuleCategoryItemRequestBuilder.cs deleted file mode 100644 index f5291b8..0000000 --- a/Rest/OpenHAB/Core/Rest/Rules/Item/Item/Item/ModuleCategoryItemRequestBuilder.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Models; -using OpenHAB.Core.Rest.Rules.Item.Item.Item.Config; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace OpenHAB.Core.Rest.Rules.Item.Item.Item { - /// - /// Builds and executes requests for operations under \rules\{ruleUID}\{moduleCategory}\{id} - /// - public class ModuleCategoryItemRequestBuilder : BaseRequestBuilder { - /// The config property - public ConfigRequestBuilder Config { get => - new ConfigRequestBuilder(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 ModuleCategoryItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/rules/{ruleUID}/{moduleCategory}/{id}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ModuleCategoryItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/rules/{ruleUID}/{moduleCategory}/{id}", rawUrl) { - } - /// - /// Gets the rule's module corresponding to the given Category and 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, ModuleDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Gets the rule's module corresponding to the given Category and 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 ModuleCategoryItemRequestBuilder WithUrl(string rawUrl) { - return new ModuleCategoryItemRequestBuilder(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 ModuleCategoryItemRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Rules/Item/Item/WithModuleCategoryItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Rules/Item/Item/WithModuleCategoryItemRequestBuilder.cs deleted file mode 100644 index 4305acf..0000000 --- a/Rest/OpenHAB/Core/Rest/Rules/Item/Item/WithModuleCategoryItemRequestBuilder.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Rules.Item.Item.Item; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System; -namespace OpenHAB.Core.Rest.Rules.Item.Item { - /// - /// Builds and executes requests for operations under \rules\{ruleUID}\{moduleCategory} - /// - public class WithModuleCategoryItemRequestBuilder : BaseRequestBuilder { - /// Gets an item from the openHAB.Core.Rest.rules.item.item.item collection - /// id - /// A - public ModuleCategoryItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("id", position); - return new ModuleCategoryItemRequestBuilder(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 WithModuleCategoryItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/rules/{ruleUID}/{moduleCategory}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithModuleCategoryItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/rules/{ruleUID}/{moduleCategory}", rawUrl) { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Rules/Item/Runnow/RunnowPostRequestBody.cs b/Rest/OpenHAB/Core/Rest/Rules/Item/Runnow/RunnowPostRequestBody.cs deleted file mode 100644 index c68b8b5..0000000 --- a/Rest/OpenHAB/Core/Rest/Rules/Item/Runnow/RunnowPostRequestBody.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.Rules.Item.Runnow { - public class RunnowPostRequestBody : IAdditionalDataHolder, IParsable { - /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. - public IDictionary AdditionalData { get; set; } - /// - /// Instantiates a new and sets the default values. - /// - public RunnowPostRequestBody() { - AdditionalData = new Dictionary(); - } - /// - /// Creates a new instance of the appropriate class based on discriminator value - /// - /// A - /// The parse node to use to read the discriminator value and create the object - public static RunnowPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { - _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new RunnowPostRequestBody(); - } - /// - /// The deserialization information for the current model - /// - /// A IDictionary<string, Action<IParseNode>> - public virtual 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/Rules/Item/Runnow/RunnowRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Rules/Item/Runnow/RunnowRequestBuilder.cs deleted file mode 100644 index 97bfd4b..0000000 --- a/Rest/OpenHAB/Core/Rest/Rules/Item/Runnow/RunnowRequestBuilder.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.Rules.Item.Runnow { - /// - /// Builds and executes requests for operations under \rules\{ruleUID}\runnow - /// - public class RunnowRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public RunnowRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/rules/{ruleUID}/runnow", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RunnowRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/rules/{ruleUID}/runnow", rawUrl) { - } - /// - /// Executes actions of the rule. - /// - /// 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(RunnowPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PostAsync(RunnowPostRequestBody 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 actions of the rule. - /// - /// 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(RunnowPostRequestBody body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(RunnowPostRequestBody 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/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 RunnowRequestBuilder WithUrl(string rawUrl) { - return new RunnowRequestBuilder(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 RunnowRequestBuilderPostRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Rules/Item/Triggers/TriggersRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Rules/Item/Triggers/TriggersRequestBuilder.cs deleted file mode 100644 index 90db34e..0000000 --- a/Rest/OpenHAB/Core/Rest/Rules/Item/Triggers/TriggersRequestBuilder.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.Rules.Item.Triggers { - /// - /// Builds and executes requests for operations under \rules\{ruleUID}\triggers - /// - public class TriggersRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public TriggersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/rules/{ruleUID}/triggers", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public TriggersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/rules/{ruleUID}/triggers", rawUrl) { - } - /// - /// Gets the rule triggers. - /// - /// A List<TriggerDTO> - /// 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, TriggerDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); - } - /// - /// Gets the rule triggers. - /// - /// 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 TriggersRequestBuilder WithUrl(string rawUrl) { - return new TriggersRequestBuilder(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 TriggersRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Rules/Item/WithRuleUItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Rules/Item/WithRuleUItemRequestBuilder.cs deleted file mode 100644 index 3223bcc..0000000 --- a/Rest/OpenHAB/Core/Rest/Rules/Item/WithRuleUItemRequestBuilder.cs +++ /dev/null @@ -1,198 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Models; -using OpenHAB.Core.Rest.Rules.Item.Actions; -using OpenHAB.Core.Rest.Rules.Item.Conditions; -using OpenHAB.Core.Rest.Rules.Item.Config; -using OpenHAB.Core.Rest.Rules.Item.Enable; -using OpenHAB.Core.Rest.Rules.Item.Item; -using OpenHAB.Core.Rest.Rules.Item.Runnow; -using OpenHAB.Core.Rest.Rules.Item.Triggers; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace OpenHAB.Core.Rest.Rules.Item { - /// - /// Builds and executes requests for operations under \rules\{ruleUID} - /// - public class WithRuleUItemRequestBuilder : BaseRequestBuilder { - /// The actions property - public ActionsRequestBuilder Actions { get => - new ActionsRequestBuilder(PathParameters, RequestAdapter); - } - /// The conditions property - public ConditionsRequestBuilder Conditions { get => - new ConditionsRequestBuilder(PathParameters, RequestAdapter); - } - /// The config property - public ConfigRequestBuilder Config { get => - new ConfigRequestBuilder(PathParameters, RequestAdapter); - } - /// The enable property - public EnableRequestBuilder Enable { get => - new EnableRequestBuilder(PathParameters, RequestAdapter); - } - /// The runnow property - public RunnowRequestBuilder Runnow { get => - new RunnowRequestBuilder(PathParameters, RequestAdapter); - } - /// The triggers property - public TriggersRequestBuilder Triggers { get => - new TriggersRequestBuilder(PathParameters, RequestAdapter); - } - /// Gets an item from the openHAB.Core.Rest.rules.item.item collection - /// moduleCategory - /// A - public WithModuleCategoryItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("moduleCategory", position); - return new WithModuleCategoryItemRequestBuilder(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 WithRuleUItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/rules/{ruleUID}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithRuleUItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/rules/{ruleUID}", rawUrl) { - } - /// - /// Removes an existing rule corresponding to the given UID. - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Gets the rule corresponding to the given 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, EnrichedRuleDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Updates an existing rule corresponding to the given UID. - /// - /// A - /// The request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PutAsync(RuleDTO body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PutAsync(RuleDTO 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); - } - /// - /// Removes an existing rule corresponding to the given UID. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Gets the rule corresponding to the given 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; - } - /// - /// Updates an existing rule corresponding to the given UID. - /// - /// A - /// The request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPutRequestInformation(RuleDTO body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(RuleDTO body, Action> requestConfiguration = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public WithRuleUItemRequestBuilder WithUrl(string rawUrl) { - return new WithRuleUItemRequestBuilder(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 WithRuleUItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class WithRuleUItemRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class WithRuleUItemRequestBuilderPutRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Rules/RulesRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Rules/RulesRequestBuilder.cs deleted file mode 100644 index 3471fe0..0000000 --- a/Rest/OpenHAB/Core/Rest/Rules/RulesRequestBuilder.cs +++ /dev/null @@ -1,164 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Models; -using OpenHAB.Core.Rest.Rules.Item; -using OpenHAB.Core.Rest.Rules.Schedule; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace OpenHAB.Core.Rest.Rules { - /// - /// Builds and executes requests for operations under \rules - /// - public class RulesRequestBuilder : BaseRequestBuilder { - /// The schedule property - public ScheduleRequestBuilder Schedule { get => - new ScheduleRequestBuilder(PathParameters, RequestAdapter); - } - /// Gets an item from the openHAB.Core.Rest.rules.item collection - /// ruleUID - /// A - public WithRuleUItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("ruleUID", position); - return new WithRuleUItemRequestBuilder(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 RulesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/rules{?prefix*,staticDataOnly*,summary*,tags*}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public RulesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/rules{?prefix*,staticDataOnly*,summary*,tags*}", rawUrl) { - } - /// - /// Get available rules, optionally filtered by tags and/or prefix. - /// - /// A List<EnrichedRuleDTO> - /// 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, EnrichedRuleDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); - } - /// - /// Creates a rule. - /// - /// 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(RuleDTO body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PostAsync(RuleDTO body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get available rules, optionally filtered by tags and/or prefix. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Creates a rule. - /// - /// 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(RuleDTO body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(RuleDTO body, Action> requestConfiguration = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/rules", PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public RulesRequestBuilder WithUrl(string rawUrl) { - return new RulesRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Get available rules, optionally filtered by tags and/or prefix. - /// - public class RulesRequestBuilderGetQueryParameters { -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("prefix")] - public string? Prefix { get; set; } -#nullable restore -#else - [QueryParameter("prefix")] - public string Prefix { get; set; } -#endif - /// provides a cacheable list of values not expected to change regularly and honors the If-Modified-Since header, all other parameters are ignored - [QueryParameter("staticDataOnly")] - public bool? StaticDataOnly { get; set; } - /// summary fields only - [QueryParameter("summary")] - public bool? Summary { get; set; } -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("tags")] - public string[]? Tags { get; set; } -#nullable restore -#else - [QueryParameter("tags")] - public string[] Tags { 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 RulesRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class RulesRequestBuilderPostRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Rules/Schedule/ScheduleRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Rules/Schedule/ScheduleRequestBuilder.cs deleted file mode 100644 index fae5c45..0000000 --- a/Rest/OpenHAB/Core/Rest/Rules/Schedule/ScheduleRequestBuilder.cs +++ /dev/null @@ -1,33 +0,0 @@ -// -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Rules.Schedule.Simulations; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System; -namespace OpenHAB.Core.Rest.Rules.Schedule { - /// - /// Builds and executes requests for operations under \rules\schedule - /// - public class ScheduleRequestBuilder : BaseRequestBuilder { - /// The simulations property - public SimulationsRequestBuilder Simulations { get => - new SimulationsRequestBuilder(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 ScheduleRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/rules/schedule", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ScheduleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/rules/schedule", rawUrl) { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Rules/Schedule/Simulations/SimulationsRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Rules/Schedule/Simulations/SimulationsRequestBuilder.cs deleted file mode 100644 index 9bf6cdb..0000000 --- a/Rest/OpenHAB/Core/Rest/Rules/Schedule/Simulations/SimulationsRequestBuilder.cs +++ /dev/null @@ -1,104 +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.Rules.Schedule.Simulations { - /// - /// Builds and executes requests for operations under \rules\schedule\simulations - /// - public class SimulationsRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public SimulationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/rules/schedule/simulations{?from*,until*}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public SimulationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/rules/schedule/simulations{?from*,until*}", rawUrl) { - } - /// - /// Simulates the executions of rules filtered by tag 'Schedule' within the given times. - /// - /// A List<RuleExecution> - /// 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, RuleExecution.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); - } - /// - /// Simulates the executions of rules filtered by tag 'Schedule' within the given times. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public SimulationsRequestBuilder WithUrl(string rawUrl) { - return new SimulationsRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Simulates the executions of rules filtered by tag 'Schedule' within the given times. - /// - public class SimulationsRequestBuilderGetQueryParameters { - /// Start time of the simulated rule executions. Will default to the current time. [yyyy-MM-dd'T'HH:mm:ss.SSSZ] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("from")] - public string? From { get; set; } -#nullable restore -#else - [QueryParameter("from")] - public string From { get; set; } -#endif - /// End time of the simulated rule executions. Will default to 30 days after the start time. Must be less than 180 days after the given start time. [yyyy-MM-dd'T'HH:mm:ss.SSSZ] -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("until")] - public string? Until { get; set; } -#nullable restore -#else - [QueryParameter("until")] - public string Until { 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 SimulationsRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Services/Item/Config/ConfigPutRequestBody.cs b/Rest/OpenHAB/Core/Rest/Services/Item/Config/ConfigPutRequestBody.cs deleted file mode 100644 index 196952e..0000000 --- a/Rest/OpenHAB/Core/Rest/Services/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.Services.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/Services/Item/Config/ConfigRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Services/Item/Config/ConfigRequestBuilder.cs deleted file mode 100644 index a3cb411..0000000 --- a/Rest/OpenHAB/Core/Rest/Services/Item/Config/ConfigRequestBuilder.cs +++ /dev/null @@ -1,160 +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.Services.Item.Config { - /// - /// Builds and executes requests for operations under \services\{serviceId}\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}/services/{serviceId}/config", pathParameters) { - } - /// - /// Instantiates a new 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}/services/{serviceId}/config", rawUrl) { - } - /// - /// Deletes a service configuration for given service ID and returns the old configuration. - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get service configuration for given service 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 a service configuration for given service 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); - } - /// - /// Deletes a service configuration for given service ID and returns the old configuration. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Get service configuration for given service 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 a service configuration for given service 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); - } - /// - /// Configuration for the 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 ConfigRequestBuilderDeleteRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ConfigRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ConfigRequestBuilderPutRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Services/Item/Contexts/ContextsRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Services/Item/Contexts/ContextsRequestBuilder.cs deleted file mode 100644 index 9e0a27d..0000000 --- a/Rest/OpenHAB/Core/Rest/Services/Item/Contexts/ContextsRequestBuilder.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.Services.Item.Contexts { - /// - /// Builds and executes requests for operations under \services\{serviceId}\contexts - /// - public class ContextsRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ContextsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/services/{serviceId}/contexts", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ContextsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/services/{serviceId}/contexts", rawUrl) { - } - /// - /// Get existing multiple context service configurations for the given factory PID. - /// - /// A List<ConfigurableServiceDTO> - /// 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, ConfigurableServiceDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); - } - /// - /// Get existing multiple context service configurations for the given factory PID. - /// - /// 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 ContextsRequestBuilder WithUrl(string rawUrl) { - return new ContextsRequestBuilder(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 ContextsRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Services/Item/WithServiceItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Services/Item/WithServiceItemRequestBuilder.cs deleted file mode 100644 index 2f8e56d..0000000 --- a/Rest/OpenHAB/Core/Rest/Services/Item/WithServiceItemRequestBuilder.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Models; -using OpenHAB.Core.Rest.Services.Item.Config; -using OpenHAB.Core.Rest.Services.Item.Contexts; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace OpenHAB.Core.Rest.Services.Item { - /// - /// Builds and executes requests for operations under \services\{serviceId} - /// - public class WithServiceItemRequestBuilder : BaseRequestBuilder { - /// The config property - public ConfigRequestBuilder Config { get => - new ConfigRequestBuilder(PathParameters, RequestAdapter); - } - /// The contexts property - public ContextsRequestBuilder Contexts { get => - new ContextsRequestBuilder(PathParameters, RequestAdapter); - } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithServiceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/services/{serviceId}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithServiceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/services/{serviceId}", rawUrl) { - } - /// - /// Get configurable service for given service 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, ConfigurableServiceDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get configurable service for given service 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 WithServiceItemRequestBuilder WithUrl(string rawUrl) { - return new WithServiceItemRequestBuilder(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 WithServiceItemRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Services/ServicesRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Services/ServicesRequestBuilder.cs deleted file mode 100644 index cce002f..0000000 --- a/Rest/OpenHAB/Core/Rest/Services/ServicesRequestBuilder.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Models; -using OpenHAB.Core.Rest.Services.Item; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace OpenHAB.Core.Rest.Services { - /// - /// Builds and executes requests for operations under \services - /// - public class ServicesRequestBuilder : BaseRequestBuilder { - /// Gets an item from the openHAB.Core.Rest.services.item collection - /// service ID - /// A - public WithServiceItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("serviceId", position); - return new WithServiceItemRequestBuilder(urlTplParams, RequestAdapter); - } } - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ServicesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/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}/services", rawUrl) { - } - /// - /// Get all configurable services. - /// - /// A List<ConfigurableServiceDTO> - /// 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, ConfigurableServiceDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); - } - /// - /// Get all configurable 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 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/Sitemaps/Events/EventsRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Sitemaps/Events/EventsRequestBuilder.cs deleted file mode 100644 index 624cebe..0000000 --- a/Rest/OpenHAB/Core/Rest/Sitemaps/Events/EventsRequestBuilder.cs +++ /dev/null @@ -1,42 +0,0 @@ -// -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Sitemaps.Events.Item; -using OpenHAB.Core.Rest.Sitemaps.Events.Subscribe; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System; -namespace OpenHAB.Core.Rest.Sitemaps.Events { - /// - /// Builds and executes requests for operations under \sitemaps\events - /// - public class EventsRequestBuilder : BaseRequestBuilder { - /// The subscribe property - public SubscribeRequestBuilder Subscribe { get => - new SubscribeRequestBuilder(PathParameters, RequestAdapter); - } - /// Gets an item from the openHAB.Core.Rest.sitemaps.events.item collection - /// subscription id - /// A - public WithSubscriptionItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("subscriptionid", position); - return new WithSubscriptionItemRequestBuilder(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 EventsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sitemaps/events", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sitemaps/events", rawUrl) { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Sitemaps/Events/Item/WithSubscriptionItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Sitemaps/Events/Item/WithSubscriptionItemRequestBuilder.cs deleted file mode 100644 index f2cc390..0000000 --- a/Rest/OpenHAB/Core/Rest/Sitemaps/Events/Item/WithSubscriptionItemRequestBuilder.cs +++ /dev/null @@ -1,101 +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.Sitemaps.Events.Item { - /// - /// Builds and executes requests for operations under \sitemaps\events\{subscriptionid} - /// - public class WithSubscriptionItemRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithSubscriptionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sitemaps/events/{subscriptionid}{?pageid*,sitemap*}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithSubscriptionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sitemaps/events/{subscriptionid}{?pageid*,sitemap*}", rawUrl) { - } - /// - /// Get sitemap events. - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get sitemap events. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public WithSubscriptionItemRequestBuilder WithUrl(string rawUrl) { - return new WithSubscriptionItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Get sitemap events. - /// - public class WithSubscriptionItemRequestBuilderGetQueryParameters { - /// page id -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("pageid")] - public string? Pageid { get; set; } -#nullable restore -#else - [QueryParameter("pageid")] - public string Pageid { get; set; } -#endif - /// sitemap name -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("sitemap")] - public string? Sitemap { get; set; } -#nullable restore -#else - [QueryParameter("sitemap")] - public string Sitemap { 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 WithSubscriptionItemRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Sitemaps/Events/Subscribe/SubscribeRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Sitemaps/Events/Subscribe/SubscribeRequestBuilder.cs deleted file mode 100644 index a29440b..0000000 --- a/Rest/OpenHAB/Core/Rest/Sitemaps/Events/Subscribe/SubscribeRequestBuilder.cs +++ /dev/null @@ -1,75 +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.Sitemaps.Events.Subscribe { - /// - /// Builds and executes requests for operations under \sitemaps\events\subscribe - /// - public class SubscribeRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public SubscribeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sitemaps/events/subscribe", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public SubscribeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sitemaps/events/subscribe", rawUrl) { - } - /// - /// Creates a sitemap event subscription. - /// - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PostAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PostAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToPostRequestInformation(requestConfiguration); - await RequestAdapter.SendNoContentAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Creates a sitemap event subscription. - /// - /// 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 SubscribeRequestBuilder WithUrl(string rawUrl) { - return new SubscribeRequestBuilder(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 SubscribeRequestBuilderPostRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Sitemaps/Item/Item/WithPageItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Sitemaps/Item/Item/WithPageItemRequestBuilder.cs deleted file mode 100644 index 8e3c1c6..0000000 --- a/Rest/OpenHAB/Core/Rest/Sitemaps/Item/Item/WithPageItemRequestBuilder.cs +++ /dev/null @@ -1,96 +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.Sitemaps.Item.Item { - /// - /// Builds and executes requests for operations under \sitemaps\{sitemapname}\{pageid} - /// - public class WithPageItemRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithPageItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sitemaps/{sitemapname}/{pageid}{?includeHidden*,subscriptionid*}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithPageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sitemaps/{sitemapname}/{pageid}{?includeHidden*,subscriptionid*}", rawUrl) { - } - /// - /// Polls the data for a sitemap. - /// - /// 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, PageDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Polls the data for a sitemap. - /// - /// 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 WithPageItemRequestBuilder WithUrl(string rawUrl) { - return new WithPageItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Polls the data for a sitemap. - /// - public class WithPageItemRequestBuilderGetQueryParameters { - /// include hidden widgets - [QueryParameter("includeHidden")] - public bool? IncludeHidden { get; set; } - /// subscriptionid -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("subscriptionid")] - public string? Subscriptionid { get; set; } -#nullable restore -#else - [QueryParameter("subscriptionid")] - public string Subscriptionid { 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 WithPageItemRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Sitemaps/Item/WithSitemapnameItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Sitemaps/Item/WithSitemapnameItemRequestBuilder.cs deleted file mode 100644 index 8bc0e46..0000000 --- a/Rest/OpenHAB/Core/Rest/Sitemaps/Item/WithSitemapnameItemRequestBuilder.cs +++ /dev/null @@ -1,113 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Models; -using OpenHAB.Core.Rest.Sitemaps.Item.Item; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace OpenHAB.Core.Rest.Sitemaps.Item { - /// - /// Builds and executes requests for operations under \sitemaps\{sitemapname} - /// - public class WithSitemapnameItemRequestBuilder : BaseRequestBuilder { - /// Gets an item from the openHAB.Core.Rest.sitemaps.item.item collection - /// page id - /// A - public WithPageItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("pageid", position); - return new WithPageItemRequestBuilder(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 WithSitemapnameItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sitemaps/{sitemapname}{?includeHidden*,jsoncallback*,type*}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithSitemapnameItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sitemaps/{sitemapname}{?includeHidden*,jsoncallback*,type*}", rawUrl) { - } - /// - /// Get sitemap by name. - /// - /// 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, SitemapDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get sitemap by name. - /// - /// 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 WithSitemapnameItemRequestBuilder WithUrl(string rawUrl) { - return new WithSitemapnameItemRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Get sitemap by name. - /// - public class WithSitemapnameItemRequestBuilderGetQueryParameters { - /// include hidden widgets - [QueryParameter("includeHidden")] - public bool? IncludeHidden { get; set; } -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("jsoncallback")] - public string? Jsoncallback { get; set; } -#nullable restore -#else - [QueryParameter("jsoncallback")] - public string Jsoncallback { get; set; } -#endif -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - [QueryParameter("type")] - public string? Type { get; set; } -#nullable restore -#else - [QueryParameter("type")] - public string Type { get; set; } -#endif - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class WithSitemapnameItemRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Sitemaps/SitemapsRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Sitemaps/SitemapsRequestBuilder.cs deleted file mode 100644 index 96c6169..0000000 --- a/Rest/OpenHAB/Core/Rest/Sitemaps/SitemapsRequestBuilder.cs +++ /dev/null @@ -1,93 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Models; -using OpenHAB.Core.Rest.Sitemaps.Events; -using OpenHAB.Core.Rest.Sitemaps.Item; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace OpenHAB.Core.Rest.Sitemaps { - /// - /// Builds and executes requests for operations under \sitemaps - /// - public class SitemapsRequestBuilder : BaseRequestBuilder { - /// The events property - public EventsRequestBuilder Events { get => - new EventsRequestBuilder(PathParameters, RequestAdapter); - } - /// Gets an item from the openHAB.Core.Rest.sitemaps.item collection - /// sitemap name - /// A - public WithSitemapnameItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("sitemapname", position); - return new WithSitemapnameItemRequestBuilder(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 SitemapsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sitemaps", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public SitemapsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sitemaps", rawUrl) { - } - /// - /// Get all available sitemaps. - /// - /// A List<SitemapDTO> - /// 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, SitemapDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); - } - /// - /// Get all available sitemaps. - /// - /// 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 SitemapsRequestBuilder WithUrl(string rawUrl) { - return new SitemapsRequestBuilder(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 SitemapsRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Systeminfo/SysteminfoRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Systeminfo/SysteminfoRequestBuilder.cs deleted file mode 100644 index 15ca738..0000000 --- a/Rest/OpenHAB/Core/Rest/Systeminfo/SysteminfoRequestBuilder.cs +++ /dev/null @@ -1,83 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Models; -using OpenHAB.Core.Rest.Systeminfo.Uom; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace OpenHAB.Core.Rest.Systeminfo { - /// - /// Builds and executes requests for operations under \systeminfo - /// - public class SysteminfoRequestBuilder : BaseRequestBuilder { - /// The uom property - public UomRequestBuilder Uom { get => - new UomRequestBuilder(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 SysteminfoRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/systeminfo", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public SysteminfoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/systeminfo", rawUrl) { - } - /// - /// Gets information about the system. - /// - /// 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, SystemInfoBean.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Gets information about the system. - /// - /// 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 SysteminfoRequestBuilder WithUrl(string rawUrl) { - return new SysteminfoRequestBuilder(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 SysteminfoRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Systeminfo/Uom/UomRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Systeminfo/Uom/UomRequestBuilder.cs deleted file mode 100644 index c6bf2a4..0000000 --- a/Rest/OpenHAB/Core/Rest/Systeminfo/Uom/UomRequestBuilder.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.Systeminfo.Uom { - /// - /// Builds and executes requests for operations under \systeminfo\uom - /// - public class UomRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public UomRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/systeminfo/uom", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public UomRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/systeminfo/uom", rawUrl) { - } - /// - /// Get all supported dimensions and their system units. - /// - /// 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, UoMInfoBean.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get all supported dimensions and their system units. - /// - /// 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 UomRequestBuilder WithUrl(string rawUrl) { - return new UomRequestBuilder(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 UomRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Tags/Item/WithTagItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Tags/Item/WithTagItemRequestBuilder.cs deleted file mode 100644 index 43dccd7..0000000 --- a/Rest/OpenHAB/Core/Rest/Tags/Item/WithTagItemRequestBuilder.cs +++ /dev/null @@ -1,161 +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.Tags.Item { - /// - /// Builds and executes requests for operations under \tags\{tagId} - /// - public class WithTagItemRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithTagItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/tags/{tagId}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithTagItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/tags/{tagId}", rawUrl) { - } - /// - /// Removes a semantic tag and its sub tags from the registry. - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToDeleteRequestInformation(requestConfiguration); - return await RequestAdapter.SendPrimitiveAsync(requestInfo, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Gets a semantic tag and its sub tags. - /// - /// A List<EnrichedSemanticTagDTO> - /// 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, EnrichedSemanticTagDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); - } - /// - /// Updates a semantic tag. - /// - /// 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(EnrichedSemanticTagDTO body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PutAsync(EnrichedSemanticTagDTO body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, EnrichedSemanticTagDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Removes a semantic tag and its sub tags from the registry. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - return requestInfo; - } - /// - /// Gets a semantic tag and its sub tags. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Updates a semantic tag. - /// - /// 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(EnrichedSemanticTagDTO body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(EnrichedSemanticTagDTO 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 WithTagItemRequestBuilder WithUrl(string rawUrl) { - return new WithTagItemRequestBuilder(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 WithTagItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class WithTagItemRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class WithTagItemRequestBuilderPutRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Tags/TagsRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Tags/TagsRequestBuilder.cs deleted file mode 100644 index 3622304..0000000 --- a/Rest/OpenHAB/Core/Rest/Tags/TagsRequestBuilder.cs +++ /dev/null @@ -1,132 +0,0 @@ -// -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using OpenHAB.Core.Rest.Models; -using OpenHAB.Core.Rest.Tags.Item; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace OpenHAB.Core.Rest.Tags { - /// - /// Builds and executes requests for operations under \tags - /// - public class TagsRequestBuilder : BaseRequestBuilder { - /// Gets an item from the openHAB.Core.Rest.tags.item collection - /// tag id - /// A - public WithTagItemRequestBuilder this[string position] { get { - var urlTplParams = new Dictionary(PathParameters); - urlTplParams.Add("tagId", position); - return new WithTagItemRequestBuilder(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 TagsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/tags", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public TagsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/tags", rawUrl) { - } - /// - /// Get all available semantic tags. - /// - /// A List<EnrichedSemanticTagDTO> - /// 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, EnrichedSemanticTagDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - return collectionResult?.ToList(); - } - /// - /// Creates a new semantic tag and adds it to the registry. - /// - /// 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(EnrichedSemanticTagDTO body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PostAsync(EnrichedSemanticTagDTO body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPostRequestInformation(body, requestConfiguration); - return await RequestAdapter.SendAsync(requestInfo, EnrichedSemanticTagDTO.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false); - } - /// - /// Get all available semantic tags. - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - return requestInfo; - } - /// - /// Creates a new semantic tag and adds it to the registry. - /// - /// 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(EnrichedSemanticTagDTO body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPostRequestInformation(EnrichedSemanticTagDTO 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 TagsRequestBuilder WithUrl(string rawUrl) { - return new TagsRequestBuilder(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 TagsRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class TagsRequestBuilderPostRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/Rest/OpenHAB/Core/Rest/Templates/Item/WithTemplateUItemRequestBuilder.cs b/Rest/OpenHAB/Core/Rest/Templates/Item/WithTemplateUItemRequestBuilder.cs deleted file mode 100644 index e0283a9..0000000 --- a/Rest/OpenHAB/Core/Rest/Templates/Item/WithTemplateUItemRequestBuilder.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.Templates.Item { - /// - /// Builds and executes requests for operations under \templates\{templateUID} - /// - public class WithTemplateUItemRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public WithTemplateUItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/templates/{templateUID}", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public WithTemplateUItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/templates/{templateUID}", rawUrl) { - } - /// - /// Gets a template corresponding to the given 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