diff --git a/samples/dotnet/README.md b/samples/dotnet/README.md
index fff50178..4b64ee54 100644
--- a/samples/dotnet/README.md
+++ b/samples/dotnet/README.md
@@ -9,7 +9,7 @@
|Streaming Agent |Streams OpenAI responses|[azure-ai-streaming](azure-ai-streaming/README.md)|
|Copilot Studio Client|Console app to consume a Copilot Studio Agent|[copilotstudio-client](copilotstudio-client/README.md)|
|Copilot Studio Skill |Call the echo bot from a Copilot Studio skill |[copilotstudio-skill](copilotstudio-skill/README.md)|
-|RetrievalBot Sample with Semantic Kernel|A simple Retrieval Agent that is hosted on an Asp.net core web service. |[RetrievalBot](RetrievalBot/README.md)|
+|RetrievalAgent Sample with Semantic Kernel|A simple Retrieval Agent that is hosted on an Asp.net core web service. |[RetrievalAgent](retrieval-agent/README.md)|
|MultiAgent|Demonstrates multiple AgentApplication in the same host|[MultiAgent](multiagent/README.md)|
|GenesysHandoff|Demonstrates how a Microsoft Copilot Studio Agent (bot) can seamlessly **hand off a conversation to a live agent** in **Genesys Cloud**.|[GenesysHandoff](genesys-handoff/README.md)|
|Proactive|Demonstrates the basics of a proactive conversation using in-code and Http triggers.|[Proactive](proactive/README.md)|
diff --git a/samples/dotnet/RetrievalBot/Controllers/BotController.cs b/samples/dotnet/RetrievalBot/Controllers/BotController.cs
deleted file mode 100644
index 1e0f1566..00000000
--- a/samples/dotnet/RetrievalBot/Controllers/BotController.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-using Microsoft.AspNetCore.Authorization;
-using Microsoft.AspNetCore.Mvc;
-using Microsoft.Agents.Hosting.AspNetCore;
-using System.Threading;
-using System.Threading.Tasks;
-using Microsoft.Agents.Builder;
-
-namespace RetrievalBot.Controllers
-{
- // ASP.Net Controller that receives incoming HTTP requests from the Azure Bot Service or other configured event activity protocol sources.
- // When called, the request has already been authorized and credentials and tokens validated.
- [Authorize]
- [ApiController]
- [Route("api/messages")]
- public class BotController(IAgentHttpAdapter adapter, IAgent bot) : ControllerBase
- {
- [HttpPost]
- public Task PostAsync(CancellationToken cancellationToken)
- => adapter.ProcessAsync(Request, Response, bot, cancellationToken);
-
- }
-}
diff --git a/samples/dotnet/RetrievalBot/RetrievalBot.sln b/samples/dotnet/RetrievalBot/RetrievalBot.sln
deleted file mode 100644
index a5037289..00000000
--- a/samples/dotnet/RetrievalBot/RetrievalBot.sln
+++ /dev/null
@@ -1,31 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 17
-VisualStudioVersion = 17.13.35913.81
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RetrievalBot", "RetrievalBot.csproj", "{C67F2E4A-03A6-D03B-DB25-9D9F47C88EA3}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Agents.M365Copilot.Beta", "dotnet\src\Microsoft.Agents.M365Copilot.Beta\Microsoft.Agents.M365Copilot.Beta.csproj", "{D5FF4444-2DC2-D20E-81EC-FA0300DCA244}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {C67F2E4A-03A6-D03B-DB25-9D9F47C88EA3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {C67F2E4A-03A6-D03B-DB25-9D9F47C88EA3}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {C67F2E4A-03A6-D03B-DB25-9D9F47C88EA3}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {C67F2E4A-03A6-D03B-DB25-9D9F47C88EA3}.Release|Any CPU.Build.0 = Release|Any CPU
- {D5FF4444-2DC2-D20E-81EC-FA0300DCA244}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {D5FF4444-2DC2-D20E-81EC-FA0300DCA244}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {D5FF4444-2DC2-D20E-81EC-FA0300DCA244}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {D5FF4444-2DC2-D20E-81EC-FA0300DCA244}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
- GlobalSection(ExtensibilityGlobals) = postSolution
- SolutionGuid = {4125E932-47FF-4100-AEFA-8A6F689C0294}
- EndGlobalSection
-EndGlobal
diff --git a/samples/dotnet/RetrievalBot/dotnet/.gitignore b/samples/dotnet/RetrievalBot/dotnet/.gitignore
deleted file mode 100644
index 60b2ea06..00000000
--- a/samples/dotnet/RetrievalBot/dotnet/.gitignore
+++ /dev/null
@@ -1,400 +0,0 @@
-## Ignore Visual Studio temporary files, build results, and
-## files generated by popular Visual Studio add-ons.
-##
-## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
-
-# User-specific files
-*.rsuser
-*.suo
-*.user
-*.userosscache
-*.sln.docstates
-
-# User-specific files (MonoDevelop/Xamarin Studio)
-*.userprefs
-
-# Mono auto generated files
-mono_crash.*
-
-# Build results
-[Dd]ebug/
-[Dd]ebugPublic/
-[Rr]elease/
-[Rr]eleases/
-x64/
-x86/
-[Ww][Ii][Nn]32/
-[Aa][Rr][Mm]/
-[Aa][Rr][Mm]64/
-bld/
-[Bb]in/
-[Oo]bj/
-[Ll]og/
-[Ll]ogs/
-
-# Visual Studio 2015/2017 cache/options directory
-.vs/
-# Uncomment if you have tasks that create the project's static files in wwwroot
-#wwwroot/
-
-# Visual Studio 2017 auto generated files
-Generated\ Files/
-
-# MSTest test Results
-[Tt]est[Rr]esult*/
-[Bb]uild[Ll]og.*
-
-# NUnit
-*.VisualState.xml
-TestResult.xml
-nunit-*.xml
-
-# Build Results of an ATL Project
-[Dd]ebugPS/
-[Rr]eleasePS/
-dlldata.c
-
-# Benchmark Results
-BenchmarkDotNet.Artifacts/
-
-# .NET Core
-project.lock.json
-project.fragment.lock.json
-artifacts/
-
-# ASP.NET Scaffolding
-ScaffoldingReadMe.txt
-
-# StyleCop
-StyleCopReport.xml
-
-# Files built by Visual Studio
-*_i.c
-*_p.c
-*_h.h
-*.ilk
-*.meta
-*.obj
-*.iobj
-*.pch
-*.pdb
-*.ipdb
-*.pgc
-*.pgd
-*.rsp
-# but not Directory.Build.rsp, as it configures directory-level build defaults
-!Directory.Build.rsp
-*.sbr
-*.tlb
-*.tli
-*.tlh
-*.tmp
-*.tmp_proj
-*_wpftmp.csproj
-*.log
-*.tlog
-*.vspscc
-*.vssscc
-.builds
-*.pidb
-*.svclog
-*.scc
-
-# Chutzpah Test files
-_Chutzpah*
-
-# Visual C++ cache files
-ipch/
-*.aps
-*.ncb
-*.opendb
-*.opensdf
-*.sdf
-*.cachefile
-*.VC.db
-*.VC.VC.opendb
-
-# Visual Studio profiler
-*.psess
-*.vsp
-*.vspx
-*.sap
-
-# Visual Studio Trace Files
-*.e2e
-
-# TFS 2012 Local Workspace
-$tf/
-
-# Guidance Automation Toolkit
-*.gpState
-
-# ReSharper is a .NET coding add-in
-_ReSharper*/
-*.[Rr]e[Ss]harper
-*.DotSettings.user
-
-# TeamCity is a build add-in
-_TeamCity*
-
-# DotCover is a Code Coverage Tool
-*.dotCover
-
-# AxoCover is a Code Coverage Tool
-.axoCover/*
-!.axoCover/settings.json
-
-# Coverlet is a free, cross platform Code Coverage Tool
-coverage*.json
-coverage*.xml
-coverage*.info
-
-# Visual Studio code coverage results
-*.coverage
-*.coveragexml
-
-# NCrunch
-_NCrunch_*
-.*crunch*.local.xml
-nCrunchTemp_*
-
-# MightyMoose
-*.mm.*
-AutoTest.Net/
-
-# Web workbench (sass)
-.sass-cache/
-
-# Installshield output folder
-[Ee]xpress/
-
-# DocProject is a documentation generator add-in
-DocProject/buildhelp/
-DocProject/Help/*.HxT
-DocProject/Help/*.HxC
-DocProject/Help/*.hhc
-DocProject/Help/*.hhk
-DocProject/Help/*.hhp
-DocProject/Help/Html2
-DocProject/Help/html
-
-# Click-Once directory
-publish/
-
-# Publish Web Output
-*.[Pp]ublish.xml
-*.azurePubxml
-# Note: Comment the next line if you want to checkin your web deploy settings,
-# but database connection strings (with potential passwords) will be unencrypted
-*.pubxml
-*.publishproj
-
-# Microsoft Azure Web App publish settings. Comment the next line if you want to
-# checkin your Azure Web App publish settings, but sensitive information contained
-# in these scripts will be unencrypted
-PublishScripts/
-
-# NuGet Packages
-*.nupkg
-# NuGet Symbol Packages
-*.snupkg
-# The packages folder can be ignored because of Package Restore
-**/[Pp]ackages/*
-# except build/, which is used as an MSBuild target.
-!**/[Pp]ackages/build/
-# Uncomment if necessary however generally it will be regenerated when needed
-#!**/[Pp]ackages/repositories.config
-# NuGet v3's project.json files produces more ignorable files
-*.nuget.props
-*.nuget.targets
-
-# Microsoft Azure Build Output
-csx/
-*.build.csdef
-
-# Microsoft Azure Emulator
-ecf/
-rcf/
-
-# Windows Store app package directories and files
-AppPackages/
-BundleArtifacts/
-Package.StoreAssociation.xml
-_pkginfo.txt
-*.appx
-*.appxbundle
-*.appxupload
-
-# Visual Studio cache files
-# files ending in .cache can be ignored
-*.[Cc]ache
-# but keep track of directories ending in .cache
-!?*.[Cc]ache/
-
-# Others
-ClientBin/
-~$*
-*~
-*.dbmdl
-*.dbproj.schemaview
-*.jfm
-*.pfx
-*.publishsettings
-orleans.codegen.cs
-
-# Including strong name files can present a security risk
-# (https://github.com/github/gitignore/pull/2483#issue-259490424)
-#*.snk
-
-# Since there are multiple workflows, uncomment next line to ignore bower_components
-# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
-#bower_components/
-
-# RIA/Silverlight projects
-Generated_Code/
-
-# Backup & report files from converting an old project file
-# to a newer Visual Studio version. Backup files are not needed,
-# because we have git ;-)
-_UpgradeReport_Files/
-Backup*/
-UpgradeLog*.XML
-UpgradeLog*.htm
-ServiceFabricBackup/
-*.rptproj.bak
-
-# SQL Server files
-*.mdf
-*.ldf
-*.ndf
-
-# Business Intelligence projects
-*.rdl.data
-*.bim.layout
-*.bim_*.settings
-*.rptproj.rsuser
-*- [Bb]ackup.rdl
-*- [Bb]ackup ([0-9]).rdl
-*- [Bb]ackup ([0-9][0-9]).rdl
-
-# Microsoft Fakes
-FakesAssemblies/
-
-# GhostDoc plugin setting file
-*.GhostDoc.xml
-
-# Node.js Tools for Visual Studio
-.ntvs_analysis.dat
-node_modules/
-
-# Visual Studio 6 build log
-*.plg
-
-# Visual Studio 6 workspace options file
-*.opt
-
-# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
-*.vbw
-
-# Visual Studio 6 auto-generated project file (contains which files were open etc.)
-*.vbp
-
-# Visual Studio 6 workspace and project file (working project files containing files to include in project)
-*.dsw
-*.dsp
-
-# Visual Studio 6 technical files
-*.ncb
-*.aps
-
-# Visual Studio LightSwitch build output
-**/*.HTMLClient/GeneratedArtifacts
-**/*.DesktopClient/GeneratedArtifacts
-**/*.DesktopClient/ModelManifest.xml
-**/*.Server/GeneratedArtifacts
-**/*.Server/ModelManifest.xml
-_Pvt_Extensions
-
-# Paket dependency manager
-.paket/paket.exe
-paket-files/
-
-# FAKE - F# Make
-.fake/
-
-# CodeRush personal settings
-.cr/personal
-
-# Python Tools for Visual Studio (PTVS)
-__pycache__/
-*.pyc
-
-# Cake - Uncomment if you are using it
-# tools/**
-# !tools/packages.config
-
-# Tabs Studio
-*.tss
-
-# Telerik's JustMock configuration file
-*.jmconfig
-
-# BizTalk build output
-*.btp.cs
-*.btm.cs
-*.odx.cs
-*.xsd.cs
-
-# OpenCover UI analysis results
-OpenCover/
-
-# Azure Stream Analytics local run output
-ASALocalRun/
-
-# MSBuild Binary and Structured Log
-*.binlog
-
-# NVidia Nsight GPU debugger configuration file
-*.nvuser
-
-# MFractors (Xamarin productivity tool) working folder
-.mfractor/
-
-# Local History for Visual Studio
-.localhistory/
-
-# Visual Studio History (VSHistory) files
-.vshistory/
-
-# BeatPulse healthcheck temp database
-healthchecksdb
-
-# Backup folder for Package Reference Convert tool in Visual Studio 2017
-MigrationBackup/
-
-# Ionide (cross platform F# VS Code tools) working folder
-.ionide/
-
-# Fody - auto-generated XML schema
-FodyWeavers.xsd
-
-# VS Code files for those working on multiple tools
-.vscode/*
-!.vscode/settings.json
-!.vscode/tasks.json
-!.vscode/launch.json
-!.vscode/extensions.json
-*.code-workspace
-
-# Local History for Visual Studio Code
-.history/
-
-# Windows Installer files from build outputs
-*.cab
-*.msi
-*.msix
-*.msm
-*.msp
-
-# JetBrains Rider
-*.sln.iml
\ No newline at end of file
diff --git a/samples/dotnet/RetrievalBot/dotnet/Microsoft.Agents.M365Copilot.sln b/samples/dotnet/RetrievalBot/dotnet/Microsoft.Agents.M365Copilot.sln
deleted file mode 100644
index 6258377d..00000000
--- a/samples/dotnet/RetrievalBot/dotnet/Microsoft.Agents.M365Copilot.sln
+++ /dev/null
@@ -1,27 +0,0 @@
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 17
-VisualStudioVersion = 17.12.35707.178
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Agents.M365Copilot.Beta", "src\Microsoft.Agents.M365Copilot.Beta\Microsoft.Agents.M365Copilot.Beta.csproj", "{745698F5-0395-C211-E34F-8A64640E0353}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Agents.M365Copilot.Beta.Tests", "tests\Microsoft.Agents.M365Copilot.Beta.Tests\Microsoft.Agents.M365Copilot.Beta.Tests.csproj", "{9217C9E9-5E31-5A43-F437-E92AB6EC971C}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {745698F5-0395-C211-E34F-8A64640E0353}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {745698F5-0395-C211-E34F-8A64640E0353}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {745698F5-0395-C211-E34F-8A64640E0353}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {745698F5-0395-C211-E34F-8A64640E0353}.Release|Any CPU.Build.0 = Release|Any CPU
- {9217C9E9-5E31-5A43-F437-E92AB6EC971C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {9217C9E9-5E31-5A43-F437-E92AB6EC971C}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {9217C9E9-5E31-5A43-F437-E92AB6EC971C}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {9217C9E9-5E31-5A43-F437-E92AB6EC971C}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal
diff --git a/samples/dotnet/RetrievalBot/dotnet/README.md b/samples/dotnet/RetrievalBot/dotnet/README.md
deleted file mode 100644
index e8adb57f..00000000
--- a/samples/dotnet/RetrievalBot/dotnet/README.md
+++ /dev/null
@@ -1 +0,0 @@
-# Dotnet SDK
diff --git a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/BaseM365CopilotClient.cs b/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/BaseM365CopilotClient.cs
deleted file mode 100644
index dd77b7a0..00000000
--- a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/BaseM365CopilotClient.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-//
-#pragma warning disable CS0618
-using Microsoft.Agents.M365Copilot.Beta.Copilot;
-using Microsoft.Kiota.Abstractions.Extensions;
-using Microsoft.Kiota.Abstractions.Store;
-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 System.Collections.Generic;
-using System.IO;
-using System.Threading.Tasks;
-using System;
-namespace Microsoft.Agents.M365Copilot.Beta
-{
- ///
- /// The main entry point of the SDK, exposes the configuration and the fluent API.
- ///
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class BaseM365CopilotClient : BaseRequestBuilder
- {
- /// The copilot property
- public global::Microsoft.Agents.M365Copilot.Beta.Copilot.CopilotRequestBuilder Copilot
- {
- get => new global::Microsoft.Agents.M365Copilot.Beta.Copilot.CopilotRequestBuilder(PathParameters, RequestAdapter);
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The backing store to use for the models.
- /// The request adapter to use to execute the requests.
- public BaseM365CopilotClient(IRequestAdapter requestAdapter, IBackingStoreFactory backingStore = default) : 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://graph.microsoft.com/beta";
- }
- PathParameters.TryAdd("baseurl", RequestAdapter.BaseUrl);
- RequestAdapter.EnableBackingStore(backingStore);
- }
- }
-}
-#pragma warning restore CS0618
diff --git a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/Admin/AdminRequestBuilder.cs b/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/Admin/AdminRequestBuilder.cs
deleted file mode 100644
index caa44994..00000000
--- a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/Admin/AdminRequestBuilder.cs
+++ /dev/null
@@ -1,235 +0,0 @@
-//
-#pragma warning disable CS0618
-using Microsoft.Agents.M365Copilot.Beta.Copilot.Admin.Settings;
-using Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors;
-using Microsoft.Agents.M365Copilot.Beta.Models;
-using Microsoft.Kiota.Abstractions.Extensions;
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace Microsoft.Agents.M365Copilot.Beta.Copilot.Admin
-{
- ///
- /// Provides operations to manage the admin property of the microsoft.graph.copilotRoot entity.
- ///
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class AdminRequestBuilder : BaseRequestBuilder
- {
- /// Provides operations to manage the settings property of the microsoft.graph.copilotAdmin entity.
- public global::Microsoft.Agents.M365Copilot.Beta.Copilot.Admin.Settings.SettingsRequestBuilder Settings
- {
- get => new global::Microsoft.Agents.M365Copilot.Beta.Copilot.Admin.Settings.SettingsRequestBuilder(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 AdminRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/copilot/admin{?%24expand,%24select}", pathParameters)
- {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public AdminRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/copilot/admin{?%24expand,%24select}", rawUrl)
- {
- }
- ///
- /// Delete navigation property admin for copilot
- ///
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 4XX or 5XX status code
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#nullable restore
-#else
- public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#endif
- var requestInfo = ToDeleteRequestInformation(requestConfiguration);
- var errorMapping = new Dictionary>
- {
- { "XXX", global::Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
- };
- await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Get admin from copilot
- ///
- /// A
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 4XX or 5XX status code
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#nullable restore
-#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#endif
- var requestInfo = ToGetRequestInformation(requestConfiguration);
- var errorMapping = new Dictionary>
- {
- { "XXX", global::Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
- };
- return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Agents.M365Copilot.Beta.Models.CopilotAdmin.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Update the navigation property admin in copilot
- ///
- /// A
- /// The request body
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 4XX or 5XX status code
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task PatchAsync(global::Microsoft.Agents.M365Copilot.Beta.Models.CopilotAdmin body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#nullable restore
-#else
- public async Task PatchAsync(global::Microsoft.Agents.M365Copilot.Beta.Models.CopilotAdmin body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
- var errorMapping = new Dictionary>
- {
- { "XXX", global::Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
- };
- return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Agents.M365Copilot.Beta.Models.CopilotAdmin.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Delete navigation property admin for copilot
- ///
- /// A
- /// Configuration 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 admin from copilot
- ///
- /// A
- /// Configuration for the request such as headers, query parameters, and middleware options.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
- {
-#nullable restore
-#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
- {
-#endif
- var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
- requestInfo.Configure(requestConfiguration);
- requestInfo.Headers.TryAdd("Accept", "application/json");
- return requestInfo;
- }
- ///
- /// Update the navigation property admin in copilot
- ///
- /// A
- /// The request body
- /// Configuration for the request such as headers, query parameters, and middleware options.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public RequestInformation ToPatchRequestInformation(global::Microsoft.Agents.M365Copilot.Beta.Models.CopilotAdmin body, Action>? requestConfiguration = default)
- {
-#nullable restore
-#else
- public RequestInformation ToPatchRequestInformation(global::Microsoft.Agents.M365Copilot.Beta.Models.CopilotAdmin body, Action> requestConfiguration = default)
- {
-#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
- requestInfo.Configure(requestConfiguration);
- requestInfo.Headers.TryAdd("Accept", "application/json");
- requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
- return requestInfo;
- }
- ///
- /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
- ///
- /// A
- /// The raw URL to use for the request builder.
- public global::Microsoft.Agents.M365Copilot.Beta.Copilot.Admin.AdminRequestBuilder WithUrl(string rawUrl)
- {
- return new global::Microsoft.Agents.M365Copilot.Beta.Copilot.Admin.AdminRequestBuilder(rawUrl, RequestAdapter);
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class AdminRequestBuilderDeleteRequestConfiguration : RequestConfiguration
- {
- }
- ///
- /// Get admin from copilot
- ///
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class AdminRequestBuilderGetQueryParameters
- {
- /// Expand related entities
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24expand")]
- public string[]? Expand { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24expand")]
- public string[] Expand { get; set; }
-#endif
- /// Select properties to be returned
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24select")]
- public string[]? Select { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24select")]
- public string[] Select { get; set; }
-#endif
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class AdminRequestBuilderGetRequestConfiguration : RequestConfiguration
- {
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class AdminRequestBuilderPatchRequestConfiguration : RequestConfiguration
- {
- }
- }
-}
-#pragma warning restore CS0618
diff --git a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/Admin/Settings/LimitedMode/LimitedModeRequestBuilder.cs b/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/Admin/Settings/LimitedMode/LimitedModeRequestBuilder.cs
deleted file mode 100644
index 27f109fd..00000000
--- a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/Admin/Settings/LimitedMode/LimitedModeRequestBuilder.cs
+++ /dev/null
@@ -1,229 +0,0 @@
-//
-#pragma warning disable CS0618
-using Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors;
-using Microsoft.Agents.M365Copilot.Beta.Models;
-using Microsoft.Kiota.Abstractions.Extensions;
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace Microsoft.Agents.M365Copilot.Beta.Copilot.Admin.Settings.LimitedMode
-{
- ///
- /// Provides operations to manage the limitedMode property of the microsoft.graph.copilotAdminSetting entity.
- ///
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class LimitedModeRequestBuilder : BaseRequestBuilder
- {
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public LimitedModeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/copilot/admin/settings/limitedMode{?%24expand,%24select}", pathParameters)
- {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public LimitedModeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/copilot/admin/settings/limitedMode{?%24expand,%24select}", rawUrl)
- {
- }
- ///
- /// Delete navigation property limitedMode for copilot
- ///
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 4XX or 5XX status code
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#nullable restore
-#else
- public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#endif
- var requestInfo = ToDeleteRequestInformation(requestConfiguration);
- var errorMapping = new Dictionary>
- {
- { "XXX", global::Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
- };
- await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Get limitedMode from copilot
- ///
- /// A
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 4XX or 5XX status code
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#nullable restore
-#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#endif
- var requestInfo = ToGetRequestInformation(requestConfiguration);
- var errorMapping = new Dictionary>
- {
- { "XXX", global::Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
- };
- return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Agents.M365Copilot.Beta.Models.CopilotAdminLimitedMode.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Update the navigation property limitedMode in copilot
- ///
- /// A
- /// The request body
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 4XX or 5XX status code
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task PatchAsync(global::Microsoft.Agents.M365Copilot.Beta.Models.CopilotAdminLimitedMode body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#nullable restore
-#else
- public async Task PatchAsync(global::Microsoft.Agents.M365Copilot.Beta.Models.CopilotAdminLimitedMode body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
- var errorMapping = new Dictionary>
- {
- { "XXX", global::Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
- };
- return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Agents.M365Copilot.Beta.Models.CopilotAdminLimitedMode.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Delete navigation property limitedMode for copilot
- ///
- /// A
- /// Configuration 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 limitedMode from copilot
- ///
- /// A
- /// Configuration for the request such as headers, query parameters, and middleware options.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
- {
-#nullable restore
-#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
- {
-#endif
- var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
- requestInfo.Configure(requestConfiguration);
- requestInfo.Headers.TryAdd("Accept", "application/json");
- return requestInfo;
- }
- ///
- /// Update the navigation property limitedMode in copilot
- ///
- /// A
- /// The request body
- /// Configuration for the request such as headers, query parameters, and middleware options.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public RequestInformation ToPatchRequestInformation(global::Microsoft.Agents.M365Copilot.Beta.Models.CopilotAdminLimitedMode body, Action>? requestConfiguration = default)
- {
-#nullable restore
-#else
- public RequestInformation ToPatchRequestInformation(global::Microsoft.Agents.M365Copilot.Beta.Models.CopilotAdminLimitedMode body, Action> requestConfiguration = default)
- {
-#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
- requestInfo.Configure(requestConfiguration);
- requestInfo.Headers.TryAdd("Accept", "application/json");
- requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
- return requestInfo;
- }
- ///
- /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
- ///
- /// A
- /// The raw URL to use for the request builder.
- public global::Microsoft.Agents.M365Copilot.Beta.Copilot.Admin.Settings.LimitedMode.LimitedModeRequestBuilder WithUrl(string rawUrl)
- {
- return new global::Microsoft.Agents.M365Copilot.Beta.Copilot.Admin.Settings.LimitedMode.LimitedModeRequestBuilder(rawUrl, RequestAdapter);
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class LimitedModeRequestBuilderDeleteRequestConfiguration : RequestConfiguration
- {
- }
- ///
- /// Get limitedMode from copilot
- ///
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class LimitedModeRequestBuilderGetQueryParameters
- {
- /// Expand related entities
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24expand")]
- public string[]? Expand { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24expand")]
- public string[] Expand { get; set; }
-#endif
- /// Select properties to be returned
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24select")]
- public string[]? Select { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24select")]
- public string[] Select { get; set; }
-#endif
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class LimitedModeRequestBuilderGetRequestConfiguration : RequestConfiguration
- {
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class LimitedModeRequestBuilderPatchRequestConfiguration : RequestConfiguration
- {
- }
- }
-}
-#pragma warning restore CS0618
diff --git a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/Admin/Settings/SettingsRequestBuilder.cs b/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/Admin/Settings/SettingsRequestBuilder.cs
deleted file mode 100644
index cda604ef..00000000
--- a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/Admin/Settings/SettingsRequestBuilder.cs
+++ /dev/null
@@ -1,235 +0,0 @@
-//
-#pragma warning disable CS0618
-using Microsoft.Agents.M365Copilot.Beta.Copilot.Admin.Settings.LimitedMode;
-using Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors;
-using Microsoft.Agents.M365Copilot.Beta.Models;
-using Microsoft.Kiota.Abstractions.Extensions;
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace Microsoft.Agents.M365Copilot.Beta.Copilot.Admin.Settings
-{
- ///
- /// Provides operations to manage the settings property of the microsoft.graph.copilotAdmin entity.
- ///
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class SettingsRequestBuilder : BaseRequestBuilder
- {
- /// Provides operations to manage the limitedMode property of the microsoft.graph.copilotAdminSetting entity.
- public global::Microsoft.Agents.M365Copilot.Beta.Copilot.Admin.Settings.LimitedMode.LimitedModeRequestBuilder LimitedMode
- {
- get => new global::Microsoft.Agents.M365Copilot.Beta.Copilot.Admin.Settings.LimitedMode.LimitedModeRequestBuilder(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 SettingsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/copilot/admin/settings{?%24expand,%24select}", pathParameters)
- {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public SettingsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/copilot/admin/settings{?%24expand,%24select}", rawUrl)
- {
- }
- ///
- /// Delete navigation property settings for copilot
- ///
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 4XX or 5XX status code
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#nullable restore
-#else
- public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#endif
- var requestInfo = ToDeleteRequestInformation(requestConfiguration);
- var errorMapping = new Dictionary>
- {
- { "XXX", global::Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
- };
- await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Get settings from copilot
- ///
- /// A
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 4XX or 5XX status code
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#nullable restore
-#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#endif
- var requestInfo = ToGetRequestInformation(requestConfiguration);
- var errorMapping = new Dictionary>
- {
- { "XXX", global::Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
- };
- return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Agents.M365Copilot.Beta.Models.CopilotAdminSetting.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Update the navigation property settings in copilot
- ///
- /// A
- /// The request body
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 4XX or 5XX status code
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task PatchAsync(global::Microsoft.Agents.M365Copilot.Beta.Models.CopilotAdminSetting body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#nullable restore
-#else
- public async Task PatchAsync(global::Microsoft.Agents.M365Copilot.Beta.Models.CopilotAdminSetting body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
- var errorMapping = new Dictionary>
- {
- { "XXX", global::Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
- };
- return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Agents.M365Copilot.Beta.Models.CopilotAdminSetting.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Delete navigation property settings for copilot
- ///
- /// A
- /// Configuration 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 settings from copilot
- ///
- /// A
- /// Configuration for the request such as headers, query parameters, and middleware options.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
- {
-#nullable restore
-#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
- {
-#endif
- var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
- requestInfo.Configure(requestConfiguration);
- requestInfo.Headers.TryAdd("Accept", "application/json");
- return requestInfo;
- }
- ///
- /// Update the navigation property settings in copilot
- ///
- /// A
- /// The request body
- /// Configuration for the request such as headers, query parameters, and middleware options.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public RequestInformation ToPatchRequestInformation(global::Microsoft.Agents.M365Copilot.Beta.Models.CopilotAdminSetting body, Action>? requestConfiguration = default)
- {
-#nullable restore
-#else
- public RequestInformation ToPatchRequestInformation(global::Microsoft.Agents.M365Copilot.Beta.Models.CopilotAdminSetting body, Action> requestConfiguration = default)
- {
-#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
- requestInfo.Configure(requestConfiguration);
- requestInfo.Headers.TryAdd("Accept", "application/json");
- requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
- return requestInfo;
- }
- ///
- /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
- ///
- /// A
- /// The raw URL to use for the request builder.
- public global::Microsoft.Agents.M365Copilot.Beta.Copilot.Admin.Settings.SettingsRequestBuilder WithUrl(string rawUrl)
- {
- return new global::Microsoft.Agents.M365Copilot.Beta.Copilot.Admin.Settings.SettingsRequestBuilder(rawUrl, RequestAdapter);
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class SettingsRequestBuilderDeleteRequestConfiguration : RequestConfiguration
- {
- }
- ///
- /// Get settings from copilot
- ///
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class SettingsRequestBuilderGetQueryParameters
- {
- /// Expand related entities
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24expand")]
- public string[]? Expand { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24expand")]
- public string[] Expand { get; set; }
-#endif
- /// Select properties to be returned
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24select")]
- public string[]? Select { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24select")]
- public string[] Select { get; set; }
-#endif
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class SettingsRequestBuilderGetRequestConfiguration : RequestConfiguration
- {
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class SettingsRequestBuilderPatchRequestConfiguration : RequestConfiguration
- {
- }
- }
-}
-#pragma warning restore CS0618
diff --git a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/CopilotRequestBuilder.cs b/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/CopilotRequestBuilder.cs
deleted file mode 100644
index ddf3e97b..00000000
--- a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/CopilotRequestBuilder.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-//
-#pragma warning disable CS0618
-using Microsoft.Agents.M365Copilot.Beta.Copilot.Admin;
-using Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory;
-using Microsoft.Agents.M365Copilot.Beta.Copilot.Retrieval;
-using Microsoft.Agents.M365Copilot.Beta.Copilot.Users;
-using Microsoft.Kiota.Abstractions.Extensions;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Threading.Tasks;
-using System;
-namespace Microsoft.Agents.M365Copilot.Beta.Copilot
-{
- ///
- /// Builds and executes requests for operations under \copilot
- ///
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class CopilotRequestBuilder : BaseRequestBuilder
- {
- /// Provides operations to manage the admin property of the microsoft.graph.copilotRoot entity.
- public global::Microsoft.Agents.M365Copilot.Beta.Copilot.Admin.AdminRequestBuilder Admin
- {
- get => new global::Microsoft.Agents.M365Copilot.Beta.Copilot.Admin.AdminRequestBuilder(PathParameters, RequestAdapter);
- }
- /// Provides operations to manage the interactionHistory property of the microsoft.graph.copilotRoot entity.
- public global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.InteractionHistoryRequestBuilder InteractionHistory
- {
- get => new global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.InteractionHistoryRequestBuilder(PathParameters, RequestAdapter);
- }
- /// Provides operations to call the retrieval method.
- public global::Microsoft.Agents.M365Copilot.Beta.Copilot.Retrieval.RetrievalRequestBuilder Retrieval
- {
- get => new global::Microsoft.Agents.M365Copilot.Beta.Copilot.Retrieval.RetrievalRequestBuilder(PathParameters, RequestAdapter);
- }
- /// Provides operations to manage the users property of the microsoft.graph.copilotRoot entity.
- public global::Microsoft.Agents.M365Copilot.Beta.Copilot.Users.UsersRequestBuilder Users
- {
- get => new global::Microsoft.Agents.M365Copilot.Beta.Copilot.Users.UsersRequestBuilder(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 CopilotRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/copilot", pathParameters)
- {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public CopilotRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/copilot", rawUrl)
- {
- }
- }
-}
-#pragma warning restore CS0618
diff --git a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/InteractionHistory/GetAllEnterpriseInteractions/GetAllEnterpriseInteractionsGetResponse.cs b/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/InteractionHistory/GetAllEnterpriseInteractions/GetAllEnterpriseInteractionsGetResponse.cs
deleted file mode 100644
index 8b7f8ba1..00000000
--- a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/InteractionHistory/GetAllEnterpriseInteractions/GetAllEnterpriseInteractionsGetResponse.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-//
-#pragma warning disable CS0618
-using Microsoft.Agents.M365Copilot.Beta.Models;
-using Microsoft.Kiota.Abstractions.Extensions;
-using Microsoft.Kiota.Abstractions.Serialization;
-using System.Collections.Generic;
-using System.IO;
-using System;
-namespace Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.GetAllEnterpriseInteractions
-{
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- #pragma warning disable CS1591
- public partial class GetAllEnterpriseInteractionsGetResponse : global::Microsoft.Agents.M365Copilot.Beta.Models.BaseCollectionPaginationCountResponse, IParsable
- #pragma warning restore CS1591
- {
- /// The value property
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public List? Value
- {
- get { return BackingStore?.Get?>("value"); }
- set { BackingStore?.Set("value", value); }
- }
-#nullable restore
-#else
- public List Value
- {
- get { return BackingStore?.Get>("value"); }
- set { BackingStore?.Set("value", value); }
- }
-#endif
- ///
- /// Creates a new instance of the appropriate class based on discriminator value
- ///
- /// A
- /// The parse node to use to read the discriminator value and create the object
- public static new global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.GetAllEnterpriseInteractions.GetAllEnterpriseInteractionsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode)
- {
- _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.GetAllEnterpriseInteractions.GetAllEnterpriseInteractionsGetResponse();
- }
- ///
- /// The deserialization information for the current model
- ///
- /// A IDictionary<string, Action<IParseNode>>
- public override IDictionary> GetFieldDeserializers()
- {
- return new Dictionary>(base.GetFieldDeserializers())
- {
- { "value", n => { Value = n.GetCollectionOfObjectValues(global::Microsoft.Agents.M365Copilot.Beta.Models.AiInteraction.CreateFromDiscriminatorValue)?.AsList(); } },
- };
- }
- ///
- /// Serializes information the current object
- ///
- /// Serialization writer to use to serialize this model
- public override void Serialize(ISerializationWriter writer)
- {
- _ = writer ?? throw new ArgumentNullException(nameof(writer));
- base.Serialize(writer);
- writer.WriteCollectionOfObjectValues("value", Value);
- }
- }
-}
-#pragma warning restore CS0618
diff --git a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/InteractionHistory/GetAllEnterpriseInteractions/GetAllEnterpriseInteractionsRequestBuilder.cs b/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/InteractionHistory/GetAllEnterpriseInteractions/GetAllEnterpriseInteractionsRequestBuilder.cs
deleted file mode 100644
index c5a04877..00000000
--- a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/InteractionHistory/GetAllEnterpriseInteractions/GetAllEnterpriseInteractionsRequestBuilder.cs
+++ /dev/null
@@ -1,187 +0,0 @@
-//
-#pragma warning disable CS0618
-using Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors;
-using Microsoft.Kiota.Abstractions.Extensions;
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.GetAllEnterpriseInteractions
-{
- ///
- /// Provides operations to call the getAllEnterpriseInteractions method.
- ///
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class GetAllEnterpriseInteractionsRequestBuilder : BaseRequestBuilder
- {
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public GetAllEnterpriseInteractionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/copilot/interactionHistory/getAllEnterpriseInteractions(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters)
- {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public GetAllEnterpriseInteractionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/copilot/interactionHistory/getAllEnterpriseInteractions(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
- {
- }
- ///
- /// Invoke function getAllEnterpriseInteractions
- ///
- /// A
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 4XX or 5XX status code
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task GetAsGetAllEnterpriseInteractionsGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#nullable restore
-#else
- public async Task GetAsGetAllEnterpriseInteractionsGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#endif
- var requestInfo = ToGetRequestInformation(requestConfiguration);
- var errorMapping = new Dictionary>
- {
- { "XXX", global::Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
- };
- return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.GetAllEnterpriseInteractions.GetAllEnterpriseInteractionsGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Invoke function getAllEnterpriseInteractions
- ///
- /// A
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 4XX or 5XX status code
- [Obsolete("This method is obsolete. Use GetAsGetAllEnterpriseInteractionsGetResponseAsync instead.")]
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#nullable restore
-#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#endif
- var requestInfo = ToGetRequestInformation(requestConfiguration);
- var errorMapping = new Dictionary>
- {
- { "XXX", global::Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
- };
- return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.GetAllEnterpriseInteractions.GetAllEnterpriseInteractionsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Invoke function getAllEnterpriseInteractions
- ///
- /// A
- /// Configuration for the request such as headers, query parameters, and middleware options.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
- {
-#nullable restore
-#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
- {
-#endif
- var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
- requestInfo.Configure(requestConfiguration);
- requestInfo.Headers.TryAdd("Accept", "application/json");
- return requestInfo;
- }
- ///
- /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
- ///
- /// A
- /// The raw URL to use for the request builder.
- public global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.GetAllEnterpriseInteractions.GetAllEnterpriseInteractionsRequestBuilder WithUrl(string rawUrl)
- {
- return new global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.GetAllEnterpriseInteractions.GetAllEnterpriseInteractionsRequestBuilder(rawUrl, RequestAdapter);
- }
- ///
- /// Invoke function getAllEnterpriseInteractions
- ///
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class GetAllEnterpriseInteractionsRequestBuilderGetQueryParameters
- {
- /// Include count of items
- [QueryParameter("%24count")]
- public bool? Count { get; set; }
- /// Expand related entities
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24expand")]
- public string[]? Expand { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24expand")]
- public string[] Expand { get; set; }
-#endif
- /// Filter items by property values
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24filter")]
- public string? Filter { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24filter")]
- public string Filter { get; set; }
-#endif
- /// Order items by property values
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24orderby")]
- public string[]? Orderby { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24orderby")]
- public string[] Orderby { get; set; }
-#endif
- /// Search items by search phrases
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24search")]
- public string? Search { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24search")]
- public string Search { get; set; }
-#endif
- /// Select properties to be returned
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24select")]
- public string[]? Select { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24select")]
- public string[] Select { get; set; }
-#endif
- /// Skip the first n items
- [QueryParameter("%24skip")]
- public int? Skip { get; set; }
- /// Show only the first n items
- [QueryParameter("%24top")]
- public int? Top { get; set; }
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class GetAllEnterpriseInteractionsRequestBuilderGetRequestConfiguration : RequestConfiguration
- {
- }
- }
-}
-#pragma warning restore CS0618
diff --git a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/InteractionHistory/GetAllEnterpriseInteractions/GetAllEnterpriseInteractionsResponse.cs b/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/InteractionHistory/GetAllEnterpriseInteractions/GetAllEnterpriseInteractionsResponse.cs
deleted file mode 100644
index ffb64c3d..00000000
--- a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/InteractionHistory/GetAllEnterpriseInteractions/GetAllEnterpriseInteractionsResponse.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-//
-#pragma warning disable CS0618
-using Microsoft.Kiota.Abstractions.Extensions;
-using Microsoft.Kiota.Abstractions.Serialization;
-using System.Collections.Generic;
-using System.IO;
-using System;
-namespace Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.GetAllEnterpriseInteractions
-{
- [Obsolete("This class is obsolete. Use GetAllEnterpriseInteractionsGetResponse instead.")]
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- #pragma warning disable CS1591
- public partial class GetAllEnterpriseInteractionsResponse : global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.GetAllEnterpriseInteractions.GetAllEnterpriseInteractionsGetResponse, IParsable
- #pragma warning restore CS1591
- {
- ///
- /// Creates a new instance of the appropriate class based on discriminator value
- ///
- /// A
- /// The parse node to use to read the discriminator value and create the object
- public static new global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.GetAllEnterpriseInteractions.GetAllEnterpriseInteractionsResponse CreateFromDiscriminatorValue(IParseNode parseNode)
- {
- _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.GetAllEnterpriseInteractions.GetAllEnterpriseInteractionsResponse();
- }
- }
-}
-#pragma warning restore CS0618
diff --git a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/InteractionHistory/InteractionHistoryRequestBuilder.cs b/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/InteractionHistory/InteractionHistoryRequestBuilder.cs
deleted file mode 100644
index 72764d40..00000000
--- a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/InteractionHistory/InteractionHistoryRequestBuilder.cs
+++ /dev/null
@@ -1,241 +0,0 @@
-//
-#pragma warning disable CS0618
-using Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.GetAllEnterpriseInteractions;
-using Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.Interactions;
-using Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors;
-using Microsoft.Agents.M365Copilot.Beta.Models;
-using Microsoft.Kiota.Abstractions.Extensions;
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory
-{
- ///
- /// Provides operations to manage the interactionHistory property of the microsoft.graph.copilotRoot entity.
- ///
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class InteractionHistoryRequestBuilder : BaseRequestBuilder
- {
- /// Provides operations to call the getAllEnterpriseInteractions method.
- public global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.GetAllEnterpriseInteractions.GetAllEnterpriseInteractionsRequestBuilder GetAllEnterpriseInteractions
- {
- get => new global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.GetAllEnterpriseInteractions.GetAllEnterpriseInteractionsRequestBuilder(PathParameters, RequestAdapter);
- }
- /// Provides operations to manage the interactions property of the microsoft.graph.aiInteractionHistory entity.
- public global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.Interactions.InteractionsRequestBuilder Interactions
- {
- get => new global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.Interactions.InteractionsRequestBuilder(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 InteractionHistoryRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/copilot/interactionHistory{?%24expand,%24select}", pathParameters)
- {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public InteractionHistoryRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/copilot/interactionHistory{?%24expand,%24select}", rawUrl)
- {
- }
- ///
- /// Delete navigation property interactionHistory for copilot
- ///
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 4XX or 5XX status code
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#nullable restore
-#else
- public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#endif
- var requestInfo = ToDeleteRequestInformation(requestConfiguration);
- var errorMapping = new Dictionary>
- {
- { "XXX", global::Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
- };
- await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Get interactionHistory from copilot
- ///
- /// A
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 4XX or 5XX status code
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#nullable restore
-#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#endif
- var requestInfo = ToGetRequestInformation(requestConfiguration);
- var errorMapping = new Dictionary>
- {
- { "XXX", global::Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
- };
- return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Agents.M365Copilot.Beta.Models.AiInteractionHistory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Update the navigation property interactionHistory in copilot
- ///
- /// A
- /// The request body
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 4XX or 5XX status code
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task PatchAsync(global::Microsoft.Agents.M365Copilot.Beta.Models.AiInteractionHistory body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#nullable restore
-#else
- public async Task PatchAsync(global::Microsoft.Agents.M365Copilot.Beta.Models.AiInteractionHistory body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
- var errorMapping = new Dictionary>
- {
- { "XXX", global::Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
- };
- return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Agents.M365Copilot.Beta.Models.AiInteractionHistory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Delete navigation property interactionHistory for copilot
- ///
- /// A
- /// Configuration 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 interactionHistory from copilot
- ///
- /// A
- /// Configuration for the request such as headers, query parameters, and middleware options.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
- {
-#nullable restore
-#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
- {
-#endif
- var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
- requestInfo.Configure(requestConfiguration);
- requestInfo.Headers.TryAdd("Accept", "application/json");
- return requestInfo;
- }
- ///
- /// Update the navigation property interactionHistory in copilot
- ///
- /// A
- /// The request body
- /// Configuration for the request such as headers, query parameters, and middleware options.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public RequestInformation ToPatchRequestInformation(global::Microsoft.Agents.M365Copilot.Beta.Models.AiInteractionHistory body, Action>? requestConfiguration = default)
- {
-#nullable restore
-#else
- public RequestInformation ToPatchRequestInformation(global::Microsoft.Agents.M365Copilot.Beta.Models.AiInteractionHistory body, Action> requestConfiguration = default)
- {
-#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
- requestInfo.Configure(requestConfiguration);
- requestInfo.Headers.TryAdd("Accept", "application/json");
- requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
- return requestInfo;
- }
- ///
- /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
- ///
- /// A
- /// The raw URL to use for the request builder.
- public global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.InteractionHistoryRequestBuilder WithUrl(string rawUrl)
- {
- return new global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.InteractionHistoryRequestBuilder(rawUrl, RequestAdapter);
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class InteractionHistoryRequestBuilderDeleteRequestConfiguration : RequestConfiguration
- {
- }
- ///
- /// Get interactionHistory from copilot
- ///
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class InteractionHistoryRequestBuilderGetQueryParameters
- {
- /// Expand related entities
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24expand")]
- public string[]? Expand { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24expand")]
- public string[] Expand { get; set; }
-#endif
- /// Select properties to be returned
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24select")]
- public string[]? Select { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24select")]
- public string[] Select { get; set; }
-#endif
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class InteractionHistoryRequestBuilderGetRequestConfiguration : RequestConfiguration
- {
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class InteractionHistoryRequestBuilderPatchRequestConfiguration : RequestConfiguration
- {
- }
- }
-}
-#pragma warning restore CS0618
diff --git a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/InteractionHistory/Interactions/Count/CountRequestBuilder.cs b/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/InteractionHistory/Interactions/Count/CountRequestBuilder.cs
deleted file mode 100644
index dabacd93..00000000
--- a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/InteractionHistory/Interactions/Count/CountRequestBuilder.cs
+++ /dev/null
@@ -1,124 +0,0 @@
-//
-#pragma warning disable CS0618
-using Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors;
-using Microsoft.Kiota.Abstractions.Extensions;
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.Interactions.Count
-{
- ///
- /// Provides operations to count the resources in the collection.
- ///
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class CountRequestBuilder : BaseRequestBuilder
- {
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/copilot/interactionHistory/interactions/$count{?%24filter,%24search}", pathParameters)
- {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/copilot/interactionHistory/interactions/$count{?%24filter,%24search}", rawUrl)
- {
- }
- ///
- /// Get the number of the resource
- ///
- /// A
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 4XX or 5XX status code
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#nullable restore
-#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#endif
- var requestInfo = ToGetRequestInformation(requestConfiguration);
- var errorMapping = new Dictionary>
- {
- { "XXX", global::Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
- };
- return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Get the number of the resource
- ///
- /// A
- /// Configuration for the request such as headers, query parameters, and middleware options.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
- {
-#nullable restore
-#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
- {
-#endif
- var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
- requestInfo.Configure(requestConfiguration);
- requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9");
- return requestInfo;
- }
- ///
- /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
- ///
- /// A
- /// The raw URL to use for the request builder.
- public global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.Interactions.Count.CountRequestBuilder WithUrl(string rawUrl)
- {
- return new global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.Interactions.Count.CountRequestBuilder(rawUrl, RequestAdapter);
- }
- ///
- /// Get the number of the resource
- ///
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class CountRequestBuilderGetQueryParameters
- {
- /// Filter items by property values
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24filter")]
- public string? Filter { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24filter")]
- public string Filter { get; set; }
-#endif
- /// Search items by search phrases
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24search")]
- public string? Search { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24search")]
- public string Search { get; set; }
-#endif
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration
- {
- }
- }
-}
-#pragma warning restore CS0618
diff --git a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/InteractionHistory/Interactions/InteractionsRequestBuilder.cs b/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/InteractionHistory/Interactions/InteractionsRequestBuilder.cs
deleted file mode 100644
index ef02b023..00000000
--- a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/InteractionHistory/Interactions/InteractionsRequestBuilder.cs
+++ /dev/null
@@ -1,238 +0,0 @@
-//
-#pragma warning disable CS0618
-using Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.Interactions.Count;
-using Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.Interactions.Item;
-using Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors;
-using Microsoft.Agents.M365Copilot.Beta.Models;
-using Microsoft.Kiota.Abstractions.Extensions;
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.Interactions
-{
- ///
- /// Provides operations to manage the interactions property of the microsoft.graph.aiInteractionHistory entity.
- ///
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class InteractionsRequestBuilder : BaseRequestBuilder
- {
- /// Provides operations to count the resources in the collection.
- public global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.Interactions.Count.CountRequestBuilder Count
- {
- get => new global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.Interactions.Count.CountRequestBuilder(PathParameters, RequestAdapter);
- }
- /// Provides operations to manage the interactions property of the microsoft.graph.aiInteractionHistory entity.
- /// The unique identifier of aiInteraction
- /// A
- public global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.Interactions.Item.AiInteractionItemRequestBuilder this[string position]
- {
- get
- {
- var urlTplParams = new Dictionary(PathParameters);
- urlTplParams.Add("aiInteraction%2Did", position);
- return new global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.Interactions.Item.AiInteractionItemRequestBuilder(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 InteractionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/copilot/interactionHistory/interactions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters)
- {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public InteractionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/copilot/interactionHistory/interactions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
- {
- }
- ///
- /// Get interactions from copilot
- ///
- /// A
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 4XX or 5XX status code
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#nullable restore
-#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#endif
- var requestInfo = ToGetRequestInformation(requestConfiguration);
- var errorMapping = new Dictionary>
- {
- { "XXX", global::Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
- };
- return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Agents.M365Copilot.Beta.Models.AiInteractionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Create new navigation property to interactions for copilot
- ///
- /// A
- /// The request body
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 4XX or 5XX status code
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task PostAsync(global::Microsoft.Agents.M365Copilot.Beta.Models.AiInteraction body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#nullable restore
-#else
- public async Task PostAsync(global::Microsoft.Agents.M365Copilot.Beta.Models.AiInteraction body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = ToPostRequestInformation(body, requestConfiguration);
- var errorMapping = new Dictionary>
- {
- { "XXX", global::Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
- };
- return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Agents.M365Copilot.Beta.Models.AiInteraction.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Get interactions from copilot
- ///
- /// A
- /// Configuration for the request such as headers, query parameters, and middleware options.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
- {
-#nullable restore
-#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
- {
-#endif
- var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
- requestInfo.Configure(requestConfiguration);
- requestInfo.Headers.TryAdd("Accept", "application/json");
- return requestInfo;
- }
- ///
- /// Create new navigation property to interactions for copilot
- ///
- /// A
- /// The request body
- /// Configuration for the request such as headers, query parameters, and middleware options.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public RequestInformation ToPostRequestInformation(global::Microsoft.Agents.M365Copilot.Beta.Models.AiInteraction body, Action>? requestConfiguration = default)
- {
-#nullable restore
-#else
- public RequestInformation ToPostRequestInformation(global::Microsoft.Agents.M365Copilot.Beta.Models.AiInteraction 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 global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.Interactions.InteractionsRequestBuilder WithUrl(string rawUrl)
- {
- return new global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.Interactions.InteractionsRequestBuilder(rawUrl, RequestAdapter);
- }
- ///
- /// Get interactions from copilot
- ///
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class InteractionsRequestBuilderGetQueryParameters
- {
- /// Include count of items
- [QueryParameter("%24count")]
- public bool? Count { get; set; }
- /// Expand related entities
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24expand")]
- public string[]? Expand { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24expand")]
- public string[] Expand { get; set; }
-#endif
- /// Filter items by property values
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24filter")]
- public string? Filter { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24filter")]
- public string Filter { get; set; }
-#endif
- /// Order items by property values
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24orderby")]
- public string[]? Orderby { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24orderby")]
- public string[] Orderby { get; set; }
-#endif
- /// Search items by search phrases
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24search")]
- public string? Search { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24search")]
- public string Search { get; set; }
-#endif
- /// Select properties to be returned
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24select")]
- public string[]? Select { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24select")]
- public string[] Select { get; set; }
-#endif
- /// Skip the first n items
- [QueryParameter("%24skip")]
- public int? Skip { get; set; }
- /// Show only the first n items
- [QueryParameter("%24top")]
- public int? Top { get; set; }
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class InteractionsRequestBuilderGetRequestConfiguration : RequestConfiguration
- {
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class InteractionsRequestBuilderPostRequestConfiguration : RequestConfiguration
- {
- }
- }
-}
-#pragma warning restore CS0618
diff --git a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/InteractionHistory/Interactions/Item/AiInteractionItemRequestBuilder.cs b/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/InteractionHistory/Interactions/Item/AiInteractionItemRequestBuilder.cs
deleted file mode 100644
index 97594a5e..00000000
--- a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/InteractionHistory/Interactions/Item/AiInteractionItemRequestBuilder.cs
+++ /dev/null
@@ -1,229 +0,0 @@
-//
-#pragma warning disable CS0618
-using Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors;
-using Microsoft.Agents.M365Copilot.Beta.Models;
-using Microsoft.Kiota.Abstractions.Extensions;
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.Interactions.Item
-{
- ///
- /// Provides operations to manage the interactions property of the microsoft.graph.aiInteractionHistory entity.
- ///
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class AiInteractionItemRequestBuilder : BaseRequestBuilder
- {
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public AiInteractionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/copilot/interactionHistory/interactions/{aiInteraction%2Did}{?%24expand,%24select}", pathParameters)
- {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public AiInteractionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/copilot/interactionHistory/interactions/{aiInteraction%2Did}{?%24expand,%24select}", rawUrl)
- {
- }
- ///
- /// Delete navigation property interactions for copilot
- ///
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 4XX or 5XX status code
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#nullable restore
-#else
- public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#endif
- var requestInfo = ToDeleteRequestInformation(requestConfiguration);
- var errorMapping = new Dictionary>
- {
- { "XXX", global::Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
- };
- await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Get interactions from copilot
- ///
- /// A
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 4XX or 5XX status code
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#nullable restore
-#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#endif
- var requestInfo = ToGetRequestInformation(requestConfiguration);
- var errorMapping = new Dictionary>
- {
- { "XXX", global::Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
- };
- return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Agents.M365Copilot.Beta.Models.AiInteraction.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Update the navigation property interactions in copilot
- ///
- /// A
- /// The request body
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 4XX or 5XX status code
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task PatchAsync(global::Microsoft.Agents.M365Copilot.Beta.Models.AiInteraction body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#nullable restore
-#else
- public async Task PatchAsync(global::Microsoft.Agents.M365Copilot.Beta.Models.AiInteraction body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
- var errorMapping = new Dictionary>
- {
- { "XXX", global::Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
- };
- return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Agents.M365Copilot.Beta.Models.AiInteraction.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Delete navigation property interactions for copilot
- ///
- /// A
- /// Configuration 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 interactions from copilot
- ///
- /// A
- /// Configuration for the request such as headers, query parameters, and middleware options.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
- {
-#nullable restore
-#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
- {
-#endif
- var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
- requestInfo.Configure(requestConfiguration);
- requestInfo.Headers.TryAdd("Accept", "application/json");
- return requestInfo;
- }
- ///
- /// Update the navigation property interactions in copilot
- ///
- /// A
- /// The request body
- /// Configuration for the request such as headers, query parameters, and middleware options.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public RequestInformation ToPatchRequestInformation(global::Microsoft.Agents.M365Copilot.Beta.Models.AiInteraction body, Action>? requestConfiguration = default)
- {
-#nullable restore
-#else
- public RequestInformation ToPatchRequestInformation(global::Microsoft.Agents.M365Copilot.Beta.Models.AiInteraction body, Action> requestConfiguration = default)
- {
-#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
- requestInfo.Configure(requestConfiguration);
- requestInfo.Headers.TryAdd("Accept", "application/json");
- requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
- return requestInfo;
- }
- ///
- /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
- ///
- /// A
- /// The raw URL to use for the request builder.
- public global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.Interactions.Item.AiInteractionItemRequestBuilder WithUrl(string rawUrl)
- {
- return new global::Microsoft.Agents.M365Copilot.Beta.Copilot.InteractionHistory.Interactions.Item.AiInteractionItemRequestBuilder(rawUrl, RequestAdapter);
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class AiInteractionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration
- {
- }
- ///
- /// Get interactions from copilot
- ///
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class AiInteractionItemRequestBuilderGetQueryParameters
- {
- /// Expand related entities
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24expand")]
- public string[]? Expand { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24expand")]
- public string[] Expand { get; set; }
-#endif
- /// Select properties to be returned
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24select")]
- public string[]? Select { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24select")]
- public string[] Select { get; set; }
-#endif
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class AiInteractionItemRequestBuilderGetRequestConfiguration : RequestConfiguration
- {
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class AiInteractionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration
- {
- }
- }
-}
-#pragma warning restore CS0618
diff --git a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/Retrieval/RetrievalPostRequestBody.cs b/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/Retrieval/RetrievalPostRequestBody.cs
deleted file mode 100644
index ed643ab9..00000000
--- a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/Retrieval/RetrievalPostRequestBody.cs
+++ /dev/null
@@ -1,125 +0,0 @@
-//
-#pragma warning disable CS0618
-using Microsoft.Kiota.Abstractions.Extensions;
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions.Store;
-using System.Collections.Generic;
-using System.IO;
-using System;
-namespace Microsoft.Agents.M365Copilot.Beta.Copilot.Retrieval
-{
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- #pragma warning disable CS1591
- public partial class RetrievalPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable
- #pragma warning restore CS1591
- {
- /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
- public IDictionary AdditionalData
- {
- get { return BackingStore.Get>("AdditionalData") ?? new Dictionary(); }
- set { BackingStore.Set("AdditionalData", value); }
- }
- /// Stores model information.
- public IBackingStore BackingStore { get; private set; }
- /// The filterExpression property
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public string? FilterExpression
- {
- get { return BackingStore?.Get("filterExpression"); }
- set { BackingStore?.Set("filterExpression", value); }
- }
-#nullable restore
-#else
- public string FilterExpression
- {
- get { return BackingStore?.Get("filterExpression"); }
- set { BackingStore?.Set("filterExpression", value); }
- }
-#endif
- /// The maximumNumberOfResults property
- public int? MaximumNumberOfResults
- {
- get { return BackingStore?.Get("maximumNumberOfResults"); }
- set { BackingStore?.Set("maximumNumberOfResults", value); }
- }
- /// The queryString property
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public string? QueryString
- {
- get { return BackingStore?.Get("queryString"); }
- set { BackingStore?.Set("queryString", value); }
- }
-#nullable restore
-#else
- public string QueryString
- {
- get { return BackingStore?.Get("queryString"); }
- set { BackingStore?.Set("queryString", value); }
- }
-#endif
- /// The resourceMetadata property
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public List? ResourceMetadata
- {
- get { return BackingStore?.Get?>("resourceMetadata"); }
- set { BackingStore?.Set("resourceMetadata", value); }
- }
-#nullable restore
-#else
- public List ResourceMetadata
- {
- get { return BackingStore?.Get>("resourceMetadata"); }
- set { BackingStore?.Set("resourceMetadata", value); }
- }
-#endif
- ///
- /// Instantiates a new and sets the default values.
- ///
- public RetrievalPostRequestBody()
- {
- BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
- AdditionalData = new Dictionary();
- }
- ///
- /// Creates a new instance of the appropriate class based on discriminator value
- ///
- /// A
- /// The parse node to use to read the discriminator value and create the object
- public static global::Microsoft.Agents.M365Copilot.Beta.Copilot.Retrieval.RetrievalPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode)
- {
- _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new global::Microsoft.Agents.M365Copilot.Beta.Copilot.Retrieval.RetrievalPostRequestBody();
- }
- ///
- /// The deserialization information for the current model
- ///
- /// A IDictionary<string, Action<IParseNode>>
- public virtual IDictionary> GetFieldDeserializers()
- {
- return new Dictionary>
- {
- { "filterExpression", n => { FilterExpression = n.GetStringValue(); } },
- { "maximumNumberOfResults", n => { MaximumNumberOfResults = n.GetIntValue(); } },
- { "queryString", n => { QueryString = n.GetStringValue(); } },
- { "resourceMetadata", n => { ResourceMetadata = n.GetCollectionOfPrimitiveValues()?.AsList(); } },
- };
- }
- ///
- /// 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("filterExpression", FilterExpression);
- writer.WriteIntValue("maximumNumberOfResults", MaximumNumberOfResults);
- writer.WriteStringValue("queryString", QueryString);
- writer.WriteCollectionOfPrimitiveValues("resourceMetadata", ResourceMetadata);
- writer.WriteAdditionalData(AdditionalData);
- }
- }
-}
-#pragma warning restore CS0618
diff --git a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/Retrieval/RetrievalRequestBuilder.cs b/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/Retrieval/RetrievalRequestBuilder.cs
deleted file mode 100644
index be7f613d..00000000
--- a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/Retrieval/RetrievalRequestBuilder.cs
+++ /dev/null
@@ -1,106 +0,0 @@
-//
-#pragma warning disable CS0618
-using Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors;
-using Microsoft.Agents.M365Copilot.Beta.Models;
-using Microsoft.Kiota.Abstractions.Extensions;
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace Microsoft.Agents.M365Copilot.Beta.Copilot.Retrieval
-{
- ///
- /// Provides operations to call the retrieval method.
- ///
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class RetrievalRequestBuilder : BaseRequestBuilder
- {
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public RetrievalRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/copilot/retrieval", pathParameters)
- {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public RetrievalRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/copilot/retrieval", rawUrl)
- {
- }
- ///
- /// Invoke action retrieval
- ///
- /// A
- /// The request body
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 4XX or 5XX status code
- [Obsolete(" as of 2024-12/PrivatePreview:retrievalAPI on 2024-02-23 and will be removed 2025-12-31")]
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task PostAsync(global::Microsoft.Agents.M365Copilot.Beta.Copilot.Retrieval.RetrievalPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#nullable restore
-#else
- public async Task PostAsync(global::Microsoft.Agents.M365Copilot.Beta.Copilot.Retrieval.RetrievalPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = ToPostRequestInformation(body, requestConfiguration);
- var errorMapping = new Dictionary>
- {
- { "XXX", global::Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
- };
- return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Agents.M365Copilot.Beta.Models.RetrievalResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Invoke action retrieval
- ///
- /// A
- /// The request body
- /// Configuration for the request such as headers, query parameters, and middleware options.
- [Obsolete(" as of 2024-12/PrivatePreview:retrievalAPI on 2024-02-23 and will be removed 2025-12-31")]
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public RequestInformation ToPostRequestInformation(global::Microsoft.Agents.M365Copilot.Beta.Copilot.Retrieval.RetrievalPostRequestBody body, Action>? requestConfiguration = default)
- {
-#nullable restore
-#else
- public RequestInformation ToPostRequestInformation(global::Microsoft.Agents.M365Copilot.Beta.Copilot.Retrieval.RetrievalPostRequestBody 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.
- [Obsolete(" as of 2024-12/PrivatePreview:retrievalAPI on 2024-02-23 and will be removed 2025-12-31")]
- public global::Microsoft.Agents.M365Copilot.Beta.Copilot.Retrieval.RetrievalRequestBuilder WithUrl(string rawUrl)
- {
- return new global::Microsoft.Agents.M365Copilot.Beta.Copilot.Retrieval.RetrievalRequestBuilder(rawUrl, RequestAdapter);
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class RetrievalRequestBuilderPostRequestConfiguration : RequestConfiguration
- {
- }
- }
-}
-#pragma warning restore CS0618
diff --git a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/Users/Count/CountRequestBuilder.cs b/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/Users/Count/CountRequestBuilder.cs
deleted file mode 100644
index 1a08c2d6..00000000
--- a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/Users/Count/CountRequestBuilder.cs
+++ /dev/null
@@ -1,124 +0,0 @@
-//
-#pragma warning disable CS0618
-using Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors;
-using Microsoft.Kiota.Abstractions.Extensions;
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace Microsoft.Agents.M365Copilot.Beta.Copilot.Users.Count
-{
- ///
- /// Provides operations to count the resources in the collection.
- ///
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class CountRequestBuilder : BaseRequestBuilder
- {
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/copilot/users/$count{?%24filter,%24search}", pathParameters)
- {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/copilot/users/$count{?%24filter,%24search}", rawUrl)
- {
- }
- ///
- /// Get the number of the resource
- ///
- /// A
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 4XX or 5XX status code
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#nullable restore
-#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#endif
- var requestInfo = ToGetRequestInformation(requestConfiguration);
- var errorMapping = new Dictionary>
- {
- { "XXX", global::Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
- };
- return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Get the number of the resource
- ///
- /// A
- /// Configuration for the request such as headers, query parameters, and middleware options.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
- {
-#nullable restore
-#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
- {
-#endif
- var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
- requestInfo.Configure(requestConfiguration);
- requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9");
- return requestInfo;
- }
- ///
- /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
- ///
- /// A
- /// The raw URL to use for the request builder.
- public global::Microsoft.Agents.M365Copilot.Beta.Copilot.Users.Count.CountRequestBuilder WithUrl(string rawUrl)
- {
- return new global::Microsoft.Agents.M365Copilot.Beta.Copilot.Users.Count.CountRequestBuilder(rawUrl, RequestAdapter);
- }
- ///
- /// Get the number of the resource
- ///
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class CountRequestBuilderGetQueryParameters
- {
- /// Filter items by property values
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24filter")]
- public string? Filter { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24filter")]
- public string Filter { get; set; }
-#endif
- /// Search items by search phrases
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24search")]
- public string? Search { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24search")]
- public string Search { get; set; }
-#endif
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration
- {
- }
- }
-}
-#pragma warning restore CS0618
diff --git a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/Users/Item/AiUserItemRequestBuilder.cs b/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/Users/Item/AiUserItemRequestBuilder.cs
deleted file mode 100644
index 00060ce2..00000000
--- a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/Users/Item/AiUserItemRequestBuilder.cs
+++ /dev/null
@@ -1,235 +0,0 @@
-//
-#pragma warning disable CS0618
-using Microsoft.Agents.M365Copilot.Beta.Copilot.Users.Item.InteractionHistory;
-using Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors;
-using Microsoft.Agents.M365Copilot.Beta.Models;
-using Microsoft.Kiota.Abstractions.Extensions;
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace Microsoft.Agents.M365Copilot.Beta.Copilot.Users.Item
-{
- ///
- /// Provides operations to manage the users property of the microsoft.graph.copilotRoot entity.
- ///
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class AiUserItemRequestBuilder : BaseRequestBuilder
- {
- /// Provides operations to manage the interactionHistory property of the microsoft.graph.aiUser entity.
- public global::Microsoft.Agents.M365Copilot.Beta.Copilot.Users.Item.InteractionHistory.InteractionHistoryRequestBuilder InteractionHistory
- {
- get => new global::Microsoft.Agents.M365Copilot.Beta.Copilot.Users.Item.InteractionHistory.InteractionHistoryRequestBuilder(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 AiUserItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/copilot/users/{aiUser%2Did}{?%24expand,%24select}", pathParameters)
- {
- }
- ///
- /// Instantiates a new and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public AiUserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/copilot/users/{aiUser%2Did}{?%24expand,%24select}", rawUrl)
- {
- }
- ///
- /// Delete navigation property users for copilot
- ///
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 4XX or 5XX status code
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#nullable restore
-#else
- public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#endif
- var requestInfo = ToDeleteRequestInformation(requestConfiguration);
- var errorMapping = new Dictionary>
- {
- { "XXX", global::Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
- };
- await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Get users from copilot
- ///
- /// A
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 4XX or 5XX status code
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#nullable restore
-#else
- public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#endif
- var requestInfo = ToGetRequestInformation(requestConfiguration);
- var errorMapping = new Dictionary>
- {
- { "XXX", global::Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
- };
- return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Agents.M365Copilot.Beta.Models.AiUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Update the navigation property users in copilot
- ///
- /// A
- /// The request body
- /// Cancellation token to use when cancelling requests
- /// Configuration for the request such as headers, query parameters, and middleware options.
- /// When receiving a 4XX or 5XX status code
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public async Task PatchAsync(global::Microsoft.Agents.M365Copilot.Beta.Models.AiUser body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#nullable restore
-#else
- public async Task PatchAsync(global::Microsoft.Agents.M365Copilot.Beta.Models.AiUser body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
- {
-#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
- var errorMapping = new Dictionary>
- {
- { "XXX", global::Microsoft.Agents.M365Copilot.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
- };
- return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Agents.M365Copilot.Beta.Models.AiUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
- }
- ///
- /// Delete navigation property users for copilot
- ///
- /// A
- /// Configuration 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 users from copilot
- ///
- /// A
- /// Configuration for the request such as headers, query parameters, and middleware options.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default)
- {
-#nullable restore
-#else
- public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default)
- {
-#endif
- var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
- requestInfo.Configure(requestConfiguration);
- requestInfo.Headers.TryAdd("Accept", "application/json");
- return requestInfo;
- }
- ///
- /// Update the navigation property users in copilot
- ///
- /// A
- /// The request body
- /// Configuration for the request such as headers, query parameters, and middleware options.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public RequestInformation ToPatchRequestInformation(global::Microsoft.Agents.M365Copilot.Beta.Models.AiUser body, Action>? requestConfiguration = default)
- {
-#nullable restore
-#else
- public RequestInformation ToPatchRequestInformation(global::Microsoft.Agents.M365Copilot.Beta.Models.AiUser body, Action> requestConfiguration = default)
- {
-#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters);
- requestInfo.Configure(requestConfiguration);
- requestInfo.Headers.TryAdd("Accept", "application/json");
- requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
- return requestInfo;
- }
- ///
- /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
- ///
- /// A
- /// The raw URL to use for the request builder.
- public global::Microsoft.Agents.M365Copilot.Beta.Copilot.Users.Item.AiUserItemRequestBuilder WithUrl(string rawUrl)
- {
- return new global::Microsoft.Agents.M365Copilot.Beta.Copilot.Users.Item.AiUserItemRequestBuilder(rawUrl, RequestAdapter);
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class AiUserItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration
- {
- }
- ///
- /// Get users from copilot
- ///
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class AiUserItemRequestBuilderGetQueryParameters
- {
- /// Expand related entities
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24expand")]
- public string[]? Expand { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24expand")]
- public string[] Expand { get; set; }
-#endif
- /// Select properties to be returned
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- [QueryParameter("%24select")]
- public string[]? Select { get; set; }
-#nullable restore
-#else
- [QueryParameter("%24select")]
- public string[] Select { get; set; }
-#endif
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class AiUserItemRequestBuilderGetRequestConfiguration : RequestConfiguration
- {
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- public partial class AiUserItemRequestBuilderPatchRequestConfiguration : RequestConfiguration
- {
- }
- }
-}
-#pragma warning restore CS0618
diff --git a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/Users/Item/InteractionHistory/GetAllEnterpriseInteractions/GetAllEnterpriseInteractionsGetResponse.cs b/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/Users/Item/InteractionHistory/GetAllEnterpriseInteractions/GetAllEnterpriseInteractionsGetResponse.cs
deleted file mode 100644
index 54f5bcfb..00000000
--- a/samples/dotnet/RetrievalBot/dotnet/src/Microsoft.Agents.M365Copilot.Beta/Generated/Copilot/Users/Item/InteractionHistory/GetAllEnterpriseInteractions/GetAllEnterpriseInteractionsGetResponse.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-//
-#pragma warning disable CS0618
-using Microsoft.Agents.M365Copilot.Beta.Models;
-using Microsoft.Kiota.Abstractions.Extensions;
-using Microsoft.Kiota.Abstractions.Serialization;
-using System.Collections.Generic;
-using System.IO;
-using System;
-namespace Microsoft.Agents.M365Copilot.Beta.Copilot.Users.Item.InteractionHistory.GetAllEnterpriseInteractions
-{
- [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
- #pragma warning disable CS1591
- public partial class GetAllEnterpriseInteractionsGetResponse : global::Microsoft.Agents.M365Copilot.Beta.Models.BaseCollectionPaginationCountResponse, IParsable
- #pragma warning restore CS1591
- {
- /// The value property
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
-#nullable enable
- public List? Value
- {
- get { return BackingStore?.Get?>("value"); }
- set { BackingStore?.Set("value", value); }
- }
-#nullable restore
-#else
- public List Value
- {
- get { return BackingStore?.Get>("value"); }
- set { BackingStore?.Set("value", value); }
- }
-#endif
- ///