From 16b3f765c8f31b67d627d2f2160b1b215969247b Mon Sep 17 00:00:00 2001 From: efrainretana Date: Mon, 20 Oct 2025 13:18:18 -0500 Subject: [PATCH 1/7] Azure.Search.Documents 2025-11-01-preview release --- .../Azure.ResourceManager.Advisor.net8.0.cs | 437 ----- ...ourceManager.AgriculturePlatform.net8.0.cs | 374 ---- .../Azure.ResourceManager.Analysis.net8.0.cs | 380 ---- .../api/Azure.AI.AnomalyDetector.net8.0.cs | 552 ------ .../api/Azure.Data.AppConfiguration.net8.0.cs | 382 ---- .../api/Azure.Search.Documents.net8.0.cs | 1535 ++++++++++++----- .../Azure.Search.Documents.netstandard2.0.cs | 1535 ++++++++++++----- .../src/Generated/AliasesRestClient.cs | 2 +- .../src/Generated/DataSourcesRestClient.cs | 2 +- .../src/Generated/DocumentsRestClient.cs | 34 +- .../src/Generated/IndexersRestClient.cs | 2 +- .../src/Generated/IndexesRestClient.cs | 2 +- ...tClient.cs => KnowledgeBasesRestClient.cs} | 198 +-- .../Generated/KnowledgeRetrievalRestClient.cs | 38 +- .../Generated/KnowledgeSourcesRestClient.cs | 72 +- .../Models/AIServices.Serialization.cs | 153 ++ .../src/Generated/Models/AIServices.cs | 79 + .../Models/AzureBlobKnowledgeSource.cs | 4 +- ...KnowledgeSourceParameters.Serialization.cs | 106 +- .../AzureBlobKnowledgeSourceParameters.cs | 54 +- ...BlobKnowledgeSourceParams.Serialization.cs | 180 ++ .../Models/AzureBlobKnowledgeSourceParams.cs | 45 + .../Generated/Models/AzureOpenAIModelName.cs | 9 + .../Models/AzureSearchDocumentsContext.cs | 110 +- ...letedSynchronizationState.Serialization.cs | 180 ++ .../Models/CompletedSynchronizationState.cs | 96 ++ ...ContentUnderstandingSkill.Serialization.cs | 231 +++ .../Models/ContentUnderstandingSkill.cs | 56 + ...ngSkillChunkingProperties.Serialization.cs | 203 +++ ...entUnderstandingSkillChunkingProperties.cs | 73 + .../ContentUnderstandingSkillChunkingUnit.cs | 48 + ...tentUnderstandingSkillExtractionOptions.cs | 51 + .../Models/FacetResult.Serialization.cs | 70 +- .../src/Generated/Models/FacetResult.cs | 18 +- ...xedOneLakeKnowledgeSource.Serialization.cs | 170 ++ .../Models/IndexedOneLakeKnowledgeSource.cs | 51 + ...KnowledgeSourceParameters.Serialization.cs | 228 +++ ...IndexedOneLakeKnowledgeSourceParameters.cs | 95 + ...LakeKnowledgeSourceParams.Serialization.cs | 180 ++ .../IndexedOneLakeKnowledgeSourceParams.cs | 45 + .../Models/IndexedSharePointContainerName.cs | 54 + ...SharePointKnowledgeSource.Serialization.cs | 170 ++ .../IndexedSharePointKnowledgeSource.cs | 51 + ...KnowledgeSourceParameters.Serialization.cs | 229 +++ ...exedSharePointKnowledgeSourceParameters.cs | 95 + ...ointKnowledgeSourceParams.Serialization.cs | 180 ++ .../IndexedSharePointKnowledgeSourceParams.cs | 45 + .../Models/IndexerRuntime.Serialization.cs | 181 ++ .../src/Generated/Models/IndexerRuntime.cs | 88 + .../src/Generated/Models/KnowledgeAgent.cs | 124 -- .../KnowledgeAgentMessageContentType.cs | 51 - .../KnowledgeAgentOutputConfiguration.cs | 78 - ...owledgeAgentOutputConfigurationModality.cs | 51 - .../Models/KnowledgeAgentRetrievalRequest.cs | 88 - .../Models/KnowledgeAgentRetrievalResponse.cs | 92 - ...edgeAgentSemanticRerankerActivityRecord.cs | 43 - ...tion.cs => KnowledgeBase.Serialization.cs} | 146 +- .../src/Generated/Models/KnowledgeBase.cs | 132 ++ ...wledgeBaseActivityRecord.Serialization.cs} | 67 +- ...cord.cs => KnowledgeBaseActivityRecord.cs} | 24 +- ...icReasoningActivityRecord.Serialization.cs | 189 ++ ...ledgeBaseAgenticReasoningActivityRecord.cs | 55 + ...ureBlobActivityArguments.Serialization.cs} | 44 +- ...nowledgeBaseAzureBlobActivityArguments.cs} | 12 +- ...eAzureBlobActivityRecord.Serialization.cs} | 59 +- ...> KnowledgeBaseAzureBlobActivityRecord.cs} | 19 +- ...geBaseAzureBlobReference.Serialization.cs} | 44 +- ....cs => KnowledgeBaseAzureBlobReference.cs} | 16 +- ...edgeBaseAzureOpenAIModel.Serialization.cs} | 46 +- ...el.cs => KnowledgeBaseAzureOpenAIModel.cs} | 16 +- ...eBaseErrorAdditionalInfo.Serialization.cs} | 72 +- ...cs => KnowledgeBaseErrorAdditionalInfo.cs} | 30 +- .../KnowledgeBaseErrorDetail.Serialization.cs | 223 +++ .../Models/KnowledgeBaseErrorDetail.cs | 83 + ...OneLakeActivityArguments.Serialization.cs} | 55 +- ...dgeBaseIndexedOneLakeActivityArguments.cs} | 22 +- ...exedOneLakeActivityRecord.Serialization.cs | 202 +++ ...owledgeBaseIndexedOneLakeActivityRecord.cs | 47 + ...seIndexedOneLakeReference.Serialization.cs | 188 ++ .../KnowledgeBaseIndexedOneLakeReference.cs | 49 + ...arePointActivityArguments.Serialization.cs | 145 ++ ...eBaseIndexedSharePointActivityArguments.cs | 65 + ...SharePointActivityRecord.Serialization.cs} | 101 +- ...edgeBaseIndexedSharePointActivityRecord.cs | 47 + ...ndexedSharePointReference.Serialization.cs | 188 ++ ...KnowledgeBaseIndexedSharePointReference.cs | 49 + ... => KnowledgeBaseMessage.Serialization.cs} | 50 +- ...gentMessage.cs => KnowledgeBaseMessage.cs} | 30 +- ...wledgeBaseMessageContent.Serialization.cs} | 50 +- ...tent.cs => KnowledgeBaseMessageContent.cs} | 18 +- .../Models/KnowledgeBaseMessageContentType.cs | 51 + ...geBaseMessageImageContent.Serialization.cs | 135 ++ ...cs => KnowledgeBaseMessageImageContent.cs} | 20 +- ...MessageImageContentImage.Serialization.cs} | 42 +- ... KnowledgeBaseMessageImageContentImage.cs} | 16 +- ...dgeBaseMessageTextContent.Serialization.cs | 134 ++ ....cs => KnowledgeBaseMessageTextContent.cs} | 18 +- ...cs => KnowledgeBaseModel.Serialization.cs} | 46 +- ...dgeAgentModel.cs => KnowledgeBaseModel.cs} | 16 +- ...rSynthesisActivityRecord.Serialization.cs} | 55 +- ...BaseModelAnswerSynthesisActivityRecord.cs} | 17 +- ...ModelKind.cs => KnowledgeBaseModelKind.cs} | 24 +- ...ryPlanningActivityRecord.Serialization.cs} | 55 +- ...geBaseModelQueryPlanningActivityRecord.cs} | 17 +- ...> KnowledgeBaseReference.Serialization.cs} | 54 +- ...Reference.cs => KnowledgeBaseReference.cs} | 20 +- ...arePointActivityArguments.Serialization.cs | 156 ++ ...geBaseRemoteSharePointActivityArguments.cs | 69 + ...eSharePointActivityRecord.Serialization.cs | 202 +++ ...ledgeBaseRemoteSharePointActivityRecord.cs | 47 + ...RemoteSharePointReference.Serialization.cs | 208 +++ .../KnowledgeBaseRemoteSharePointReference.cs | 53 + ...eRetrievalActivityRecord.Serialization.cs} | 65 +- ...> KnowledgeBaseRetrievalActivityRecord.cs} | 25 +- ...ledgeBaseRetrievalRequest.Serialization.cs | 293 ++++ .../Models/KnowledgeBaseRetrievalRequest.cs | 119 ++ ...dgeBaseRetrievalResponse.Serialization.cs} | 62 +- .../Models/KnowledgeBaseRetrievalResponse.cs | 92 + ...rchIndexActivityArguments.Serialization.cs | 224 +++ ...owledgeBaseSearchIndexActivityArguments.cs | 84 + ...earchIndexActivityRecord.Serialization.cs} | 59 +- ...KnowledgeBaseSearchIndexActivityRecord.cs} | 19 +- ...BaseSearchIndexReference.Serialization.cs} | 44 +- ...s => KnowledgeBaseSearchIndexReference.cs} | 16 +- ...BaseWebActivityArguments.Serialization.cs} | 118 +- .../KnowledgeBaseWebActivityArguments.cs | 81 + ...edgeBaseWebActivityRecord.Serialization.cs | 202 +++ .../Models/KnowledgeBaseWebActivityRecord.cs | 47 + ...KnowledgeBaseWebReference.Serialization.cs | 204 +++ .../Models/KnowledgeBaseWebReference.cs | 53 + .../KnowledgeRetrievalIntent.Serialization.cs | 134 ++ .../Models/KnowledgeRetrievalIntent.cs | 69 + .../Models/KnowledgeRetrievalIntentType.cs | 48 + ...trievalLowReasoningEffort.Serialization.cs | 126 ++ .../KnowledgeRetrievalLowReasoningEffort.cs | 30 + ...evalMediumReasoningEffort.Serialization.cs | 126 ++ ...KnowledgeRetrievalMediumReasoningEffort.cs | 30 + ...valMinimalReasoningEffort.Serialization.cs | 126 ++ ...nowledgeRetrievalMinimalReasoningEffort.cs | 30 + .../Models/KnowledgeRetrievalOutputMode.cs | 51 + ...eRetrievalReasoningEffort.Serialization.cs | 136 ++ .../KnowledgeRetrievalReasoningEffort.cs | 69 + .../KnowledgeRetrievalReasoningEffortKind.cs | 54 + ...eRetrievalSemanticIntent.Serialization.cs} | 58 +- .../KnowledgeRetrievalSemanticIntent.cs | 45 + .../Models/KnowledgeSource.Serialization.cs | 4 + .../src/Generated/Models/KnowledgeSource.cs | 8 +- ...urceAzureOpenAIVectorizer.Serialization.cs | 141 ++ .../KnowledgeSourceAzureOpenAIVectorizer.cs | 35 + .../KnowledgeSourceContentExtractionMode.cs | 51 + ...SourceIngestionParameters.Serialization.cs | 330 ++++ .../KnowledgeSourceIngestionParameters.cs | 119 ++ ...nowledgeSourceIngestionPermissionOption.cs | 54 + .../Generated/Models/KnowledgeSourceKind.cs | 16 +- .../KnowledgeSourceParams.Serialization.cs | 27 +- .../Generated/Models/KnowledgeSourceParams.cs | 22 +- .../KnowledgeSourceReference.Serialization.cs | 84 +- .../Models/KnowledgeSourceReference.cs | 22 +- ...KnowledgeSourceStatistics.Serialization.cs | 158 ++ .../Models/KnowledgeSourceStatistics.cs | 87 + .../KnowledgeSourceStatus.Serialization.cs | 241 +++ .../Generated/Models/KnowledgeSourceStatus.cs | 89 + .../KnowledgeSourceSynchronizationStatus.cs | 54 + ...KnowledgeSourceVectorizer.Serialization.cs | 134 ++ .../Models/KnowledgeSourceVectorizer.cs | 69 + ...ListKnowledgeBasesResult.Serialization.cs} | 50 +- ...sResult.cs => ListKnowledgeBasesResult.cs} | 32 +- .../Models/ListKnowledgeSourcesResult.cs | 6 +- ...SharePointKnowledgeSource.Serialization.cs | 170 ++ .../Models/RemoteSharePointKnowledgeSource.cs | 51 + ...KnowledgeSourceParameters.Serialization.cs | 181 ++ ...moteSharePointKnowledgeSourceParameters.cs | 74 + ...ointKnowledgeSourceParams.Serialization.cs | 192 +++ .../RemoteSharePointKnowledgeSourceParams.cs | 50 + ...coringFunctionAggregation.Serialization.cs | 2 + .../Models/ScoringFunctionAggregation.cs | 4 +- .../Models/SearchField.Serialization.cs | 24 + .../src/Generated/Models/SearchField.cs | 6 +- .../Models/SearchIndex.Serialization.cs | 24 + .../src/Generated/Models/SearchIndex.cs | 6 +- ...SearchIndexFieldReference.Serialization.cs | 142 ++ .../Models/SearchIndexFieldReference.cs | 75 + .../Models/SearchIndexKnowledgeSource.cs | 4 +- ...KnowledgeSourceParameters.Serialization.cs | 64 +- .../SearchIndexKnowledgeSourceParameters.cs | 18 +- ...ndexKnowledgeSourceParams.Serialization.cs | 52 +- .../SearchIndexKnowledgeSourceParams.cs | 8 +- .../Models/SearchIndexerDataSourceType.cs | 3 + .../SearchIndexerSkill.Serialization.cs | 1 + .../Generated/Models/SearchIndexerSkill.cs | 2 +- .../Generated/Models/SearchIndexerSkillset.cs | 4 +- .../SearchIndexerStatus.Serialization.cs | 12 + .../Generated/Models/SearchIndexerStatus.cs | 10 +- .../SearchServiceLimits.Serialization.cs | 24 + .../Generated/Models/SearchServiceLimits.cs | 6 +- .../SearchServiceStatistics.Serialization.cs | 10 +- .../Models/SearchServiceStatistics.cs | 15 +- .../ServiceIndexersRuntime.Serialization.cs | 181 ++ .../Models/ServiceIndexersRuntime.cs | 88 + ...PointSensitivityLabelInfo.Serialization.cs | 215 +++ .../Models/SharePointSensitivityLabelInfo.cs | 85 + .../SynchronizationState.Serialization.cs | 166 ++ .../Generated/Models/SynchronizationState.cs | 90 + ...wledgeBaseActivityRecord.Serialization.cs} | 56 +- ... => UnknownKnowledgeBaseActivityRecord.cs} | 15 +- ...wledgeBaseMessageContent.Serialization.cs} | 50 +- ... => UnknownKnowledgeBaseMessageContent.cs} | 14 +- ...nknownKnowledgeBaseModel.Serialization.cs} | 48 +- ...tModel.cs => UnknownKnowledgeBaseModel.cs} | 12 +- ...wnKnowledgeBaseReference.Serialization.cs} | 46 +- ...ce.cs => UnknownKnowledgeBaseReference.cs} | 14 +- ...nKnowledgeRetrievalIntent.Serialization.cs | 127 ++ .../Models/UnknownKnowledgeRetrievalIntent.cs | 30 + ...RetrievalReasoningEffort.Serialization.cs} | 62 +- ...nknownKnowledgeRetrievalReasoningEffort.cs | 30 + .../Models/UnknownKnowledgeSource.cs | 4 +- ...nownKnowledgeSourceParams.Serialization.cs | 51 +- .../Models/UnknownKnowledgeSourceParams.cs | 8 +- ...KnowledgeSourceVectorizer.Serialization.cs | 127 ++ .../UnknownKnowledgeSourceVectorizer.cs | 30 + .../WebKnowledgeSource.Serialization.cs | 177 ++ .../Generated/Models/WebKnowledgeSource.cs | 48 + .../WebKnowledgeSourceDomain.Serialization.cs | 157 ++ .../Models/WebKnowledgeSourceDomain.cs | 79 + ...ebKnowledgeSourceDomains.Serialization.cs} | 87 +- .../Models/WebKnowledgeSourceDomains.cs | 71 + ...KnowledgeSourceParameters.Serialization.cs | 149 ++ .../Models/WebKnowledgeSourceParameters.cs | 65 + .../WebKnowledgeSourceParams.Serialization.cs | 232 +++ .../Models/WebKnowledgeSourceParams.cs | 62 + .../src/Generated/SearchModelFactory.cs | 621 ++++++- .../src/Generated/SearchServiceRestClient.cs | 2 +- .../src/Generated/SkillsetsRestClient.cs | 2 +- .../src/Generated/SynonymMapsRestClient.cs | 2 +- ...cs => SearchIndexClient.KnowledgeBases.cs} | 154 +- .../src/KnowledgeAgents/KnowledgeAgent.cs | 23 - .../src/KnowledgeBases/KnowledgeBase.cs | 23 + .../KnowledgeBaseRetrievalClient.cs} | 36 +- .../src/Models/SearchModelFactory.cs | 99 +- .../src/Models/SearchResults.cs | 2 +- .../src/SearchClient.cs | 120 +- .../src/SearchClientOptions.cs | 10 +- .../Azure.Search.Documents/src/autorest.md | 14 +- .../tests/DocumentOperations/SearchTests.cs | 5 +- .../DocumentOperations/VectorSearchTests.cs | 2 +- .../tests/Models/SearchIndexTests.cs | 22 +- .../tests/Samples/Sample01_HelloWorld.cs | 2 +- ...ple07_VectorSearch_SemanticHybridSearch.cs | 2 +- .../tests/Samples/Sample08_SemanticSearch.cs | 2 +- .../tests/SearchIndexClientTests.cs | 123 +- .../tests/SearchIndexerClientTests.cs | 4 +- ...parer.cs => KnowledgeBaseModelComparer.cs} | 16 +- .../tests/Utilities/SearchResources.cs | 85 +- 253 files changed, 18466 insertions(+), 5325 deletions(-) delete mode 100644 sdk/advisor/Azure.ResourceManager.Advisor/api/Azure.ResourceManager.Advisor.net8.0.cs delete mode 100644 sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/api/Azure.ResourceManager.AgriculturePlatform.net8.0.cs delete mode 100644 sdk/analysisservices/Azure.ResourceManager.Analysis/api/Azure.ResourceManager.Analysis.net8.0.cs delete mode 100644 sdk/appconfiguration/Azure.Data.AppConfiguration/api/Azure.Data.AppConfiguration.net8.0.cs rename sdk/search/Azure.Search.Documents/src/Generated/{KnowledgeAgentsRestClient.cs => KnowledgeBasesRestClient.cs} (64%) create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/AIServices.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/AIServices.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/AzureBlobKnowledgeSourceParams.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/AzureBlobKnowledgeSourceParams.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/CompletedSynchronizationState.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/CompletedSynchronizationState.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/ContentUnderstandingSkill.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/ContentUnderstandingSkill.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/ContentUnderstandingSkillChunkingProperties.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/ContentUnderstandingSkillChunkingProperties.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/ContentUnderstandingSkillChunkingUnit.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/ContentUnderstandingSkillExtractionOptions.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedOneLakeKnowledgeSource.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedOneLakeKnowledgeSource.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedOneLakeKnowledgeSourceParameters.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedOneLakeKnowledgeSourceParameters.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedOneLakeKnowledgeSourceParams.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedOneLakeKnowledgeSourceParams.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointContainerName.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointKnowledgeSource.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointKnowledgeSource.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointKnowledgeSourceParameters.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointKnowledgeSourceParameters.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointKnowledgeSourceParams.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointKnowledgeSourceParams.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerRuntime.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerRuntime.cs delete mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgent.cs delete mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageContentType.cs delete mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentOutputConfiguration.cs delete mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentOutputConfigurationModality.cs delete mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRetrievalRequest.cs delete mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRetrievalResponse.cs delete mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentSemanticRerankerActivityRecord.cs rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgent.Serialization.cs => KnowledgeBase.Serialization.cs} (66%) create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBase.cs rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentActivityRecord.Serialization.cs => KnowledgeBaseActivityRecord.Serialization.cs} (50%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentActivityRecord.cs => KnowledgeBaseActivityRecord.cs} (62%) create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAgenticReasoningActivityRecord.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAgenticReasoningActivityRecord.cs rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentAzureBlobActivityArguments.Serialization.cs => KnowledgeBaseAzureBlobActivityArguments.Serialization.cs} (63%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentAzureBlobActivityArguments.cs => KnowledgeBaseAzureBlobActivityArguments.cs} (84%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentAzureBlobActivityRecord.Serialization.cs => KnowledgeBaseAzureBlobActivityRecord.Serialization.cs} (66%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentAzureBlobActivityRecord.cs => KnowledgeBaseAzureBlobActivityRecord.cs} (59%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentAzureBlobReference.Serialization.cs => KnowledgeBaseAzureBlobReference.Serialization.cs} (72%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentAzureBlobReference.cs => KnowledgeBaseAzureBlobReference.cs} (67%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentAzureOpenAIModel.Serialization.cs => KnowledgeBaseAzureOpenAIModel.Serialization.cs} (63%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentAzureOpenAIModel.cs => KnowledgeBaseAzureOpenAIModel.cs} (69%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentRequestLimits.Serialization.cs => KnowledgeBaseErrorAdditionalInfo.Serialization.cs} (58%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentRequestLimits.cs => KnowledgeBaseErrorAdditionalInfo.cs} (64%) create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseErrorDetail.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseErrorDetail.cs rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentSearchIndexActivityArguments.Serialization.cs => KnowledgeBaseIndexedOneLakeActivityArguments.Serialization.cs} (59%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentSearchIndexActivityArguments.cs => KnowledgeBaseIndexedOneLakeActivityArguments.cs} (71%) create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedOneLakeActivityRecord.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedOneLakeActivityRecord.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedOneLakeReference.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedOneLakeReference.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedSharePointActivityArguments.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedSharePointActivityArguments.cs rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentSemanticRerankerActivityRecord.Serialization.cs => KnowledgeBaseIndexedSharePointActivityRecord.Serialization.cs} (56%) create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedSharePointActivityRecord.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedSharePointReference.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedSharePointReference.cs rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentMessage.Serialization.cs => KnowledgeBaseMessage.Serialization.cs} (67%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentMessage.cs => KnowledgeBaseMessage.cs} (64%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentMessageContent.Serialization.cs => KnowledgeBaseMessageContent.Serialization.cs} (59%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentMessageContent.cs => KnowledgeBaseMessageContent.cs} (73%) create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageContentType.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageImageContent.Serialization.cs rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentMessageImageContent.cs => KnowledgeBaseMessageImageContent.cs} (57%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentMessageImageContentImage.Serialization.cs => KnowledgeBaseMessageImageContentImage.Serialization.cs} (64%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentMessageImageContentImage.cs => KnowledgeBaseMessageImageContentImage.cs} (81%) create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageTextContent.Serialization.cs rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentMessageTextContent.cs => KnowledgeBaseMessageTextContent.cs} (61%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentModel.Serialization.cs => KnowledgeBaseModel.Serialization.cs} (63%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentModel.cs => KnowledgeBaseModel.cs} (78%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentModelQueryPlanningActivityRecord.Serialization.cs => KnowledgeBaseModelAnswerSynthesisActivityRecord.Serialization.cs} (64%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentModelAnswerSynthesisActivityRecord.cs => KnowledgeBaseModelAnswerSynthesisActivityRecord.cs} (63%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentModelKind.cs => KnowledgeBaseModelKind.cs} (53%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentModelAnswerSynthesisActivityRecord.Serialization.cs => KnowledgeBaseModelQueryPlanningActivityRecord.Serialization.cs} (64%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentModelQueryPlanningActivityRecord.cs => KnowledgeBaseModelQueryPlanningActivityRecord.cs} (63%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentReference.Serialization.cs => KnowledgeBaseReference.Serialization.cs} (61%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentReference.cs => KnowledgeBaseReference.cs} (77%) create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRemoteSharePointActivityArguments.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRemoteSharePointActivityArguments.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRemoteSharePointActivityRecord.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRemoteSharePointActivityRecord.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRemoteSharePointReference.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRemoteSharePointReference.cs rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentRetrievalActivityRecord.Serialization.cs => KnowledgeBaseRetrievalActivityRecord.Serialization.cs} (61%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentRetrievalActivityRecord.cs => KnowledgeBaseRetrievalActivityRecord.cs} (54%) create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRetrievalRequest.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRetrievalRequest.cs rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentRetrievalResponse.Serialization.cs => KnowledgeBaseRetrievalResponse.Serialization.cs} (65%) create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRetrievalResponse.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseSearchIndexActivityArguments.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseSearchIndexActivityArguments.cs rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentSearchIndexActivityRecord.Serialization.cs => KnowledgeBaseSearchIndexActivityRecord.Serialization.cs} (65%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentSearchIndexActivityRecord.cs => KnowledgeBaseSearchIndexActivityRecord.cs} (59%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentSearchIndexReference.Serialization.cs => KnowledgeBaseSearchIndexReference.Serialization.cs} (72%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentSearchIndexReference.cs => KnowledgeBaseSearchIndexReference.cs} (67%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentOutputConfiguration.Serialization.cs => KnowledgeBaseWebActivityArguments.Serialization.cs} (57%) create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseWebActivityArguments.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseWebActivityRecord.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseWebActivityRecord.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseWebReference.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseWebReference.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalIntent.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalIntent.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalIntentType.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalLowReasoningEffort.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalLowReasoningEffort.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalMediumReasoningEffort.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalMediumReasoningEffort.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalMinimalReasoningEffort.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalMinimalReasoningEffort.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalOutputMode.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalReasoningEffort.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalReasoningEffort.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalReasoningEffortKind.cs rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentMessageTextContent.Serialization.cs => KnowledgeRetrievalSemanticIntent.Serialization.cs} (66%) create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalSemanticIntent.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceAzureOpenAIVectorizer.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceAzureOpenAIVectorizer.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceContentExtractionMode.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceIngestionParameters.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceIngestionParameters.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceIngestionPermissionOption.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceStatistics.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceStatistics.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceStatus.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceStatus.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceSynchronizationStatus.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceVectorizer.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceVectorizer.cs rename sdk/search/Azure.Search.Documents/src/Generated/Models/{ListKnowledgeAgentsResult.Serialization.cs => ListKnowledgeBasesResult.Serialization.cs} (65%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{ListKnowledgeAgentsResult.cs => ListKnowledgeBasesResult.cs} (68%) create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/RemoteSharePointKnowledgeSource.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/RemoteSharePointKnowledgeSource.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/RemoteSharePointKnowledgeSourceParameters.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/RemoteSharePointKnowledgeSourceParameters.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/RemoteSharePointKnowledgeSourceParams.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/RemoteSharePointKnowledgeSourceParams.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexFieldReference.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexFieldReference.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/ServiceIndexersRuntime.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/ServiceIndexersRuntime.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/SharePointSensitivityLabelInfo.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/SharePointSensitivityLabelInfo.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/SynchronizationState.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/SynchronizationState.cs rename sdk/search/Azure.Search.Documents/src/Generated/Models/{UnknownKnowledgeAgentActivityRecord.Serialization.cs => UnknownKnowledgeBaseActivityRecord.Serialization.cs} (59%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{UnknownKnowledgeAgentActivityRecord.cs => UnknownKnowledgeBaseActivityRecord.cs} (50%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{UnknownKnowledgeAgentMessageContent.Serialization.cs => UnknownKnowledgeBaseMessageContent.Serialization.cs} (58%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{UnknownKnowledgeAgentMessageContent.cs => UnknownKnowledgeBaseMessageContent.cs} (51%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{UnknownKnowledgeAgentModel.Serialization.cs => UnknownKnowledgeBaseModel.Serialization.cs} (61%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{UnknownKnowledgeAgentModel.cs => UnknownKnowledgeBaseModel.cs} (58%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{UnknownKnowledgeAgentReference.Serialization.cs => UnknownKnowledgeBaseReference.Serialization.cs} (71%) rename sdk/search/Azure.Search.Documents/src/Generated/Models/{UnknownKnowledgeAgentReference.cs => UnknownKnowledgeBaseReference.cs} (58%) create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeRetrievalIntent.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeRetrievalIntent.cs rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentMessageImageContent.Serialization.cs => UnknownKnowledgeRetrievalReasoningEffort.Serialization.cs} (58%) create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeRetrievalReasoningEffort.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeSourceVectorizer.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeSourceVectorizer.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSource.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSource.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceDomain.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceDomain.cs rename sdk/search/Azure.Search.Documents/src/Generated/Models/{KnowledgeAgentRetrievalRequest.Serialization.cs => WebKnowledgeSourceDomains.Serialization.cs} (54%) create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceDomains.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceParameters.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceParameters.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceParams.Serialization.cs create mode 100644 sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceParams.cs rename sdk/search/Azure.Search.Documents/src/Indexes/{SearchIndexClient.KnowledgeAgents.cs => SearchIndexClient.KnowledgeBases.cs} (59%) delete mode 100644 sdk/search/Azure.Search.Documents/src/KnowledgeAgents/KnowledgeAgent.cs create mode 100644 sdk/search/Azure.Search.Documents/src/KnowledgeBases/KnowledgeBase.cs rename sdk/search/Azure.Search.Documents/src/{KnowledgeAgents/KnowledgeAgentRetrievalClient.cs => KnowledgeBases/KnowledgeBaseRetrievalClient.cs} (85%) rename sdk/search/Azure.Search.Documents/tests/Utilities/{KnowledgeAgentModelComparer.cs => KnowledgeBaseModelComparer.cs} (69%) diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/api/Azure.ResourceManager.Advisor.net8.0.cs b/sdk/advisor/Azure.ResourceManager.Advisor/api/Azure.ResourceManager.Advisor.net8.0.cs deleted file mode 100644 index 8e7a6a944a9b..000000000000 --- a/sdk/advisor/Azure.ResourceManager.Advisor/api/Azure.ResourceManager.Advisor.net8.0.cs +++ /dev/null @@ -1,437 +0,0 @@ -namespace Azure.ResourceManager.Advisor -{ - public static partial class AdvisorExtensions - { - public static Azure.Response CreateConfiguration(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.ResourceManager.Advisor.Models.ConfigurationName configurationName, Azure.ResourceManager.Advisor.Models.ConfigData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response CreateConfiguration(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Advisor.Models.ConfigurationName configurationName, Azure.ResourceManager.Advisor.Models.ConfigData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> CreateConfigurationAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.ResourceManager.Advisor.Models.ConfigurationName configurationName, Azure.ResourceManager.Advisor.Models.ConfigData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> CreateConfigurationAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Advisor.Models.ConfigurationName configurationName, Azure.ResourceManager.Advisor.Models.ConfigData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response GenerateRecommendation(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task GenerateRecommendationAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Pageable GetConfigurations(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Pageable GetConfigurations(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetConfigurationsAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetConfigurationsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response GetGenerateStatusRecommendation(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Guid operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task GetGenerateStatusRecommendationAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Guid operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.Advisor.MetadataEntityCollection GetMetadataEntities(this Azure.ResourceManager.Resources.TenantResource tenantResource) { throw null; } - public static Azure.Response GetMetadataEntity(this Azure.ResourceManager.Resources.TenantResource tenantResource, string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetMetadataEntityAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.Advisor.MetadataEntityResource GetMetadataEntityResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetResourceRecommendationBase(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string recommendationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetResourceRecommendationBaseAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string recommendationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.Advisor.ResourceRecommendationBaseResource GetResourceRecommendationBaseResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Advisor.ResourceRecommendationBaseCollection GetResourceRecommendationBases(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope) { throw null; } - public static Azure.ResourceManager.Advisor.SuppressionContractResource GetSuppressionContractResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Pageable GetSuppressionContracts(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetSuppressionContractsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class AzureResourceManagerAdvisorContext : System.ClientModel.Primitives.ModelReaderWriterContext - { - internal AzureResourceManagerAdvisorContext() { } - public static Azure.ResourceManager.Advisor.AzureResourceManagerAdvisorContext Default { get { throw null; } } - protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; } - } - public partial class MetadataEntityCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected MetadataEntityCollection() { } - public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class MetadataEntityData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MetadataEntityData() { } - public System.Collections.Generic.IReadOnlyList ApplicableScenarios { get { throw null; } } - public System.Collections.Generic.IReadOnlyList DependsOn { get { throw null; } } - public string DisplayName { get { throw null; } } - public System.Collections.Generic.IReadOnlyList SupportedValues { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Advisor.MetadataEntityData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Advisor.MetadataEntityData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MetadataEntityResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected MetadataEntityResource() { } - public virtual Azure.ResourceManager.Advisor.MetadataEntityData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string name) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.Advisor.MetadataEntityData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Advisor.MetadataEntityData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class ResourceRecommendationBaseCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected ResourceRecommendationBaseCollection() { } - public virtual Azure.Response Exists(string recommendationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string recommendationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string recommendationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string filter = null, int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string filter = null, int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string recommendationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string recommendationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string recommendationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class ResourceRecommendationBaseData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public ResourceRecommendationBaseData() { } - public System.Collections.Generic.IList> Actions { get { throw null; } } - public Azure.ResourceManager.Advisor.Models.Category? Category { get { throw null; } set { } } - public string Description { get { throw null; } set { } } - public System.Collections.Generic.IDictionary ExposedMetadataProperties { get { throw null; } } - public System.Collections.Generic.IDictionary ExtendedProperties { get { throw null; } } - public Azure.ResourceManager.Advisor.Models.Impact? Impact { get { throw null; } set { } } - public string ImpactedField { get { throw null; } set { } } - public string ImpactedValue { get { throw null; } set { } } - public string Label { get { throw null; } set { } } - public System.DateTimeOffset? LastUpdated { get { throw null; } set { } } - public string LearnMoreLink { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Metadata { get { throw null; } } - public string PotentialBenefits { get { throw null; } set { } } - public string RecommendationTypeId { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Remediation { get { throw null; } } - public Azure.ResourceManager.Advisor.Models.ResourceMetadata ResourceMetadata { get { throw null; } set { } } - public Azure.ResourceManager.Advisor.Models.Risk? Risk { get { throw null; } set { } } - public Azure.ResourceManager.Advisor.Models.ShortDescription ShortDescription { get { throw null; } set { } } - public System.Collections.Generic.IList SuppressionIds { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Advisor.ResourceRecommendationBaseData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Advisor.ResourceRecommendationBaseData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class ResourceRecommendationBaseResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected ResourceRecommendationBaseResource() { } - public virtual Azure.ResourceManager.Advisor.ResourceRecommendationBaseData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string resourceUri, string recommendationId) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetSuppressionContract(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetSuppressionContractAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Advisor.SuppressionContractCollection GetSuppressionContracts() { throw null; } - Azure.ResourceManager.Advisor.ResourceRecommendationBaseData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Advisor.ResourceRecommendationBaseData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class SuppressionContractCollection : Azure.ResourceManager.ArmCollection - { - protected SuppressionContractCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.Advisor.SuppressionContractData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.Advisor.SuppressionContractData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class SuppressionContractData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public SuppressionContractData() { } - public System.DateTimeOffset? ExpirationTimeStamp { get { throw null; } } - public string SuppressionId { get { throw null; } set { } } - public string Ttl { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Advisor.SuppressionContractData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Advisor.SuppressionContractData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class SuppressionContractResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected SuppressionContractResource() { } - public virtual Azure.ResourceManager.Advisor.SuppressionContractData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string resourceUri, string recommendationId, string name) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.Advisor.SuppressionContractData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Advisor.SuppressionContractData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Advisor.SuppressionContractData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Advisor.SuppressionContractData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } -} -namespace Azure.ResourceManager.Advisor.Mocking -{ - public partial class MockableAdvisorArmClient : Azure.ResourceManager.ArmResource - { - protected MockableAdvisorArmClient() { } - public virtual Azure.ResourceManager.Advisor.MetadataEntityResource GetMetadataEntityResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.Response GetResourceRecommendationBase(Azure.Core.ResourceIdentifier scope, string recommendationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetResourceRecommendationBaseAsync(Azure.Core.ResourceIdentifier scope, string recommendationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Advisor.ResourceRecommendationBaseResource GetResourceRecommendationBaseResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.Advisor.ResourceRecommendationBaseCollection GetResourceRecommendationBases(Azure.Core.ResourceIdentifier scope) { throw null; } - public virtual Azure.ResourceManager.Advisor.SuppressionContractResource GetSuppressionContractResource(Azure.Core.ResourceIdentifier id) { throw null; } - } - public partial class MockableAdvisorResourceGroupResource : Azure.ResourceManager.ArmResource - { - protected MockableAdvisorResourceGroupResource() { } - public virtual Azure.Response CreateConfiguration(Azure.ResourceManager.Advisor.Models.ConfigurationName configurationName, Azure.ResourceManager.Advisor.Models.ConfigData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateConfigurationAsync(Azure.ResourceManager.Advisor.Models.ConfigurationName configurationName, Azure.ResourceManager.Advisor.Models.ConfigData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetConfigurations(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetConfigurationsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class MockableAdvisorSubscriptionResource : Azure.ResourceManager.ArmResource - { - protected MockableAdvisorSubscriptionResource() { } - public virtual Azure.Response CreateConfiguration(Azure.ResourceManager.Advisor.Models.ConfigurationName configurationName, Azure.ResourceManager.Advisor.Models.ConfigData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateConfigurationAsync(Azure.ResourceManager.Advisor.Models.ConfigurationName configurationName, Azure.ResourceManager.Advisor.Models.ConfigData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GenerateRecommendation(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task GenerateRecommendationAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetConfigurations(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetConfigurationsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetGenerateStatusRecommendation(System.Guid operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task GetGenerateStatusRecommendationAsync(System.Guid operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetSuppressionContracts(int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetSuppressionContractsAsync(int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class MockableAdvisorTenantResource : Azure.ResourceManager.ArmResource - { - protected MockableAdvisorTenantResource() { } - public virtual Azure.ResourceManager.Advisor.MetadataEntityCollection GetMetadataEntities() { throw null; } - public virtual Azure.Response GetMetadataEntity(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetMetadataEntityAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } -} -namespace Azure.ResourceManager.Advisor.Models -{ - public static partial class ArmAdvisorModelFactory - { - public static Azure.ResourceManager.Advisor.Models.ConfigData ConfigData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? exclude = default(bool?), Azure.ResourceManager.Advisor.Models.CpuThreshold? lowCpuThreshold = default(Azure.ResourceManager.Advisor.Models.CpuThreshold?), System.Collections.Generic.IEnumerable digests = null) { throw null; } - public static Azure.ResourceManager.Advisor.MetadataEntityData MetadataEntityData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, System.Collections.Generic.IEnumerable dependsOn = null, System.Collections.Generic.IEnumerable applicableScenarios = null, System.Collections.Generic.IEnumerable supportedValues = null) { throw null; } - public static Azure.ResourceManager.Advisor.Models.MetadataSupportedValueDetail MetadataSupportedValueDetail(string id = null, string displayName = null) { throw null; } - public static Azure.ResourceManager.Advisor.ResourceRecommendationBaseData ResourceRecommendationBaseData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Advisor.Models.Category? category = default(Azure.ResourceManager.Advisor.Models.Category?), Azure.ResourceManager.Advisor.Models.Impact? impact = default(Azure.ResourceManager.Advisor.Models.Impact?), string impactedField = null, string impactedValue = null, System.DateTimeOffset? lastUpdated = default(System.DateTimeOffset?), System.Collections.Generic.IDictionary metadata = null, string recommendationTypeId = null, Azure.ResourceManager.Advisor.Models.Risk? risk = default(Azure.ResourceManager.Advisor.Models.Risk?), Azure.ResourceManager.Advisor.Models.ShortDescription shortDescription = null, System.Collections.Generic.IEnumerable suppressionIds = null, System.Collections.Generic.IDictionary extendedProperties = null, Azure.ResourceManager.Advisor.Models.ResourceMetadata resourceMetadata = null, string description = null, string label = null, string learnMoreLink = null, string potentialBenefits = null, System.Collections.Generic.IEnumerable> actions = null, System.Collections.Generic.IDictionary remediation = null, System.Collections.Generic.IDictionary exposedMetadataProperties = null) { throw null; } - public static Azure.ResourceManager.Advisor.SuppressionContractData SuppressionContractData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string suppressionId = null, string ttl = null, System.DateTimeOffset? expirationTimeStamp = default(System.DateTimeOffset?)) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct Category : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public Category(string value) { throw null; } - public static Azure.ResourceManager.Advisor.Models.Category Cost { get { throw null; } } - public static Azure.ResourceManager.Advisor.Models.Category HighAvailability { get { throw null; } } - public static Azure.ResourceManager.Advisor.Models.Category OperationalExcellence { get { throw null; } } - public static Azure.ResourceManager.Advisor.Models.Category Performance { get { throw null; } } - public static Azure.ResourceManager.Advisor.Models.Category Security { get { throw null; } } - public bool Equals(Azure.ResourceManager.Advisor.Models.Category other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Advisor.Models.Category left, Azure.ResourceManager.Advisor.Models.Category right) { throw null; } - public static implicit operator Azure.ResourceManager.Advisor.Models.Category (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Advisor.Models.Category left, Azure.ResourceManager.Advisor.Models.Category right) { throw null; } - public override string ToString() { throw null; } - } - public partial class ConfigData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public ConfigData() { } - public System.Collections.Generic.IList Digests { get { throw null; } } - public bool? Exclude { get { throw null; } set { } } - public Azure.ResourceManager.Advisor.Models.CpuThreshold? LowCpuThreshold { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Advisor.Models.ConfigData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Advisor.Models.ConfigData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ConfigurationName : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public ConfigurationName(string value) { throw null; } - public static Azure.ResourceManager.Advisor.Models.ConfigurationName Default { get { throw null; } } - public bool Equals(Azure.ResourceManager.Advisor.Models.ConfigurationName other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Advisor.Models.ConfigurationName left, Azure.ResourceManager.Advisor.Models.ConfigurationName right) { throw null; } - public static implicit operator Azure.ResourceManager.Advisor.Models.ConfigurationName (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Advisor.Models.ConfigurationName left, Azure.ResourceManager.Advisor.Models.ConfigurationName right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct CpuThreshold : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public CpuThreshold(string value) { throw null; } - public static Azure.ResourceManager.Advisor.Models.CpuThreshold Fifteen { get { throw null; } } - public static Azure.ResourceManager.Advisor.Models.CpuThreshold Five { get { throw null; } } - public static Azure.ResourceManager.Advisor.Models.CpuThreshold Ten { get { throw null; } } - public static Azure.ResourceManager.Advisor.Models.CpuThreshold Twenty { get { throw null; } } - public bool Equals(Azure.ResourceManager.Advisor.Models.CpuThreshold other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Advisor.Models.CpuThreshold left, Azure.ResourceManager.Advisor.Models.CpuThreshold right) { throw null; } - public static implicit operator Azure.ResourceManager.Advisor.Models.CpuThreshold (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Advisor.Models.CpuThreshold left, Azure.ResourceManager.Advisor.Models.CpuThreshold right) { throw null; } - public override string ToString() { throw null; } - } - public partial class DigestConfig : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public DigestConfig() { } - public string ActionGroupResourceId { get { throw null; } set { } } - public System.Collections.Generic.IList Categories { get { throw null; } } - public int? Frequency { get { throw null; } set { } } - public string Language { get { throw null; } set { } } - public string Name { get { throw null; } set { } } - public Azure.ResourceManager.Advisor.Models.DigestConfigState? State { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Advisor.Models.DigestConfig System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Advisor.Models.DigestConfig System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct DigestConfigState : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public DigestConfigState(string value) { throw null; } - public static Azure.ResourceManager.Advisor.Models.DigestConfigState Active { get { throw null; } } - public static Azure.ResourceManager.Advisor.Models.DigestConfigState Disabled { get { throw null; } } - public bool Equals(Azure.ResourceManager.Advisor.Models.DigestConfigState other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Advisor.Models.DigestConfigState left, Azure.ResourceManager.Advisor.Models.DigestConfigState right) { throw null; } - public static implicit operator Azure.ResourceManager.Advisor.Models.DigestConfigState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Advisor.Models.DigestConfigState left, Azure.ResourceManager.Advisor.Models.DigestConfigState right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct Impact : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public Impact(string value) { throw null; } - public static Azure.ResourceManager.Advisor.Models.Impact High { get { throw null; } } - public static Azure.ResourceManager.Advisor.Models.Impact Low { get { throw null; } } - public static Azure.ResourceManager.Advisor.Models.Impact Medium { get { throw null; } } - public bool Equals(Azure.ResourceManager.Advisor.Models.Impact other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Advisor.Models.Impact left, Azure.ResourceManager.Advisor.Models.Impact right) { throw null; } - public static implicit operator Azure.ResourceManager.Advisor.Models.Impact (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Advisor.Models.Impact left, Azure.ResourceManager.Advisor.Models.Impact right) { throw null; } - public override string ToString() { throw null; } - } - public partial class MetadataSupportedValueDetail : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MetadataSupportedValueDetail() { } - public string DisplayName { get { throw null; } } - public string Id { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Advisor.Models.MetadataSupportedValueDetail System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Advisor.Models.MetadataSupportedValueDetail System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class ResourceMetadata : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public ResourceMetadata() { } - public System.Collections.Generic.IDictionary Action { get { throw null; } } - public string Plural { get { throw null; } set { } } - public string ResourceId { get { throw null; } set { } } - public string Singular { get { throw null; } set { } } - public string Source { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Advisor.Models.ResourceMetadata System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Advisor.Models.ResourceMetadata System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct Risk : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public Risk(string value) { throw null; } - public static Azure.ResourceManager.Advisor.Models.Risk Error { get { throw null; } } - public static Azure.ResourceManager.Advisor.Models.Risk None { get { throw null; } } - public static Azure.ResourceManager.Advisor.Models.Risk Warning { get { throw null; } } - public bool Equals(Azure.ResourceManager.Advisor.Models.Risk other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Advisor.Models.Risk left, Azure.ResourceManager.Advisor.Models.Risk right) { throw null; } - public static implicit operator Azure.ResourceManager.Advisor.Models.Risk (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Advisor.Models.Risk left, Azure.ResourceManager.Advisor.Models.Risk right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct Scenario : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public Scenario(string value) { throw null; } - public static Azure.ResourceManager.Advisor.Models.Scenario Alerts { get { throw null; } } - public bool Equals(Azure.ResourceManager.Advisor.Models.Scenario other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Advisor.Models.Scenario left, Azure.ResourceManager.Advisor.Models.Scenario right) { throw null; } - public static implicit operator Azure.ResourceManager.Advisor.Models.Scenario (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Advisor.Models.Scenario left, Azure.ResourceManager.Advisor.Models.Scenario right) { throw null; } - public override string ToString() { throw null; } - } - public partial class ShortDescription : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public ShortDescription() { } - public string Problem { get { throw null; } set { } } - public string Solution { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Advisor.Models.ShortDescription System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Advisor.Models.ShortDescription System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } -} diff --git a/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/api/Azure.ResourceManager.AgriculturePlatform.net8.0.cs b/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/api/Azure.ResourceManager.AgriculturePlatform.net8.0.cs deleted file mode 100644 index 82689ee7f96c..000000000000 --- a/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/api/Azure.ResourceManager.AgriculturePlatform.net8.0.cs +++ /dev/null @@ -1,374 +0,0 @@ -namespace Azure.ResourceManager.AgriculturePlatform -{ - public static partial class AgriculturePlatformExtensions - { - public static Azure.Response GetAgricultureService(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string agriServiceResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetAgricultureServiceAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string agriServiceResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.AgriculturePlatform.AgricultureServiceResource GetAgricultureServiceResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.AgriculturePlatform.AgricultureServiceCollection GetAgricultureServices(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetAgricultureServices(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetAgricultureServicesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class AgricultureServiceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected AgricultureServiceCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string agriServiceResourceName, Azure.ResourceManager.AgriculturePlatform.AgricultureServiceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string agriServiceResourceName, Azure.ResourceManager.AgriculturePlatform.AgricultureServiceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string agriServiceResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string agriServiceResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string agriServiceResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string agriServiceResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string agriServiceResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string agriServiceResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class AgricultureServiceData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AgricultureServiceData(Azure.Core.AzureLocation location) { } - public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } - public Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceProperties Properties { get { throw null; } set { } } - public Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformSku Sku { get { throw null; } set { } } - protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.AgriculturePlatform.AgricultureServiceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AgriculturePlatform.AgricultureServiceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AgricultureServiceResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected AgricultureServiceResource() { } - public virtual Azure.ResourceManager.AgriculturePlatform.AgricultureServiceData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string agriServiceResourceName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetAvailableSolutions(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAvailableSolutionsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.AgriculturePlatform.AgricultureServiceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AgriculturePlatform.AgricultureServiceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServicePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServicePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class AzureResourceManagerAgriculturePlatformContext : System.ClientModel.Primitives.ModelReaderWriterContext - { - internal AzureResourceManagerAgriculturePlatformContext() { } - public static Azure.ResourceManager.AgriculturePlatform.AzureResourceManagerAgriculturePlatformContext Default { get { throw null; } } - protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; } - } -} -namespace Azure.ResourceManager.AgriculturePlatform.Mocking -{ - public partial class MockableAgriculturePlatformArmClient : Azure.ResourceManager.ArmResource - { - protected MockableAgriculturePlatformArmClient() { } - public virtual Azure.ResourceManager.AgriculturePlatform.AgricultureServiceResource GetAgricultureServiceResource(Azure.Core.ResourceIdentifier id) { throw null; } - } - public partial class MockableAgriculturePlatformResourceGroupResource : Azure.ResourceManager.ArmResource - { - protected MockableAgriculturePlatformResourceGroupResource() { } - public virtual Azure.Response GetAgricultureService(string agriServiceResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAgricultureServiceAsync(string agriServiceResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.AgriculturePlatform.AgricultureServiceCollection GetAgricultureServices() { throw null; } - } - public partial class MockableAgriculturePlatformSubscriptionResource : Azure.ResourceManager.ArmResource - { - protected MockableAgriculturePlatformSubscriptionResource() { } - public virtual Azure.Pageable GetAgricultureServices(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAgricultureServicesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } -} -namespace Azure.ResourceManager.AgriculturePlatform.Models -{ - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct AgriculturePlatformProvisioningState : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public AgriculturePlatformProvisioningState(string value) { throw null; } - public static Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState Accepted { get { throw null; } } - public static Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState Canceled { get { throw null; } } - public static Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState Deleting { get { throw null; } } - public static Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState Failed { get { throw null; } } - public static Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState Provisioning { get { throw null; } } - public static Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState Succeeded { get { throw null; } } - public static Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState Updating { get { throw null; } } - public bool Equals(Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState left, Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState right) { throw null; } - public static implicit operator Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState (string value) { throw null; } - public static implicit operator Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState left, Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState right) { throw null; } - public override string ToString() { throw null; } - } - public partial class AgriculturePlatformSku : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AgriculturePlatformSku(string name) { } - public int? Capacity { get { throw null; } set { } } - public string Family { get { throw null; } set { } } - public string Name { get { throw null; } set { } } - public string Size { get { throw null; } set { } } - public Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformSkuTier? Tier { get { throw null; } set { } } - protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformSku JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformSku PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformSku System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformSku System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public enum AgriculturePlatformSkuTier - { - Free = 0, - Basic = 1, - Standard = 2, - Premium = 3, - } - public partial class AgricultureServiceConfig : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AgricultureServiceConfig() { } - public Azure.Core.ResourceIdentifier AppServiceResourceId { get { throw null; } } - public Azure.Core.ResourceIdentifier CosmosDBResourceId { get { throw null; } } - public string InstanceUri { get { throw null; } } - public Azure.Core.ResourceIdentifier KeyVaultResourceId { get { throw null; } } - public Azure.Core.ResourceIdentifier RedisCacheResourceId { get { throw null; } } - public Azure.Core.ResourceIdentifier StorageAccountResourceId { get { throw null; } } - public string Version { get { throw null; } } - protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceConfig JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceConfig PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceConfig System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceConfig System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AgricultureServicePatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AgricultureServicePatch() { } - public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } - public Azure.ResourceManager.AgriculturePlatform.Models.AgriServiceResourceUpdateProperties Properties { get { throw null; } set { } } - public Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformSku Sku { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } - protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServicePatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServicePatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServicePatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServicePatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AgricultureServicePatchProperties - { - public AgricultureServicePatchProperties() { } - } - public partial class AgricultureServiceProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AgricultureServiceProperties() { } - public Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceConfig Config { get { throw null; } set { } } - public System.Collections.Generic.IList DataConnectorCredentials { get { throw null; } } - public System.Collections.Generic.IList InstalledSolutions { get { throw null; } } - public System.Collections.Generic.IReadOnlyList ManagedOnBehalfOfMoboBrokerResources { get { throw null; } } - public Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState? ProvisioningState { get { throw null; } } - protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AgricultureSolution : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AgricultureSolution() { } - public string ApplicationName { get { throw null; } set { } } - public string MarketPlacePublisherId { get { throw null; } set { } } - public string PartnerId { get { throw null; } set { } } - public string PlanId { get { throw null; } set { } } - public string SaasSubscriptionId { get { throw null; } set { } } - public string SaasSubscriptionName { get { throw null; } set { } } - protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AgricultureSolution JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AgricultureSolution PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.AgriculturePlatform.Models.AgricultureSolution System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AgriculturePlatform.Models.AgricultureSolution System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AgriServiceResourceUpdateProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AgriServiceResourceUpdateProperties() { } - public Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceConfig Config { get { throw null; } set { } } - public System.Collections.Generic.IList DataConnectorCredentials { get { throw null; } } - public System.Collections.Generic.IList InstalledSolutions { get { throw null; } } - protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AgriServiceResourceUpdateProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AgriServiceResourceUpdateProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.AgriculturePlatform.Models.AgriServiceResourceUpdateProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AgriculturePlatform.Models.AgriServiceResourceUpdateProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public static partial class ArmAgriculturePlatformModelFactory - { - public static Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceConfig AgricultureServiceConfig(string instanceUri = null, string version = null, Azure.Core.ResourceIdentifier appServiceResourceId = null, Azure.Core.ResourceIdentifier cosmosDBResourceId = null, Azure.Core.ResourceIdentifier storageAccountResourceId = null, Azure.Core.ResourceIdentifier keyVaultResourceId = null, Azure.Core.ResourceIdentifier redisCacheResourceId = null) { throw null; } - public static Azure.ResourceManager.AgriculturePlatform.AgricultureServiceData AgricultureServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceProperties properties = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformSku sku = null) { throw null; } - public static Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServicePatch AgricultureServicePatch(Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformSku sku = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.AgriculturePlatform.Models.AgriServiceResourceUpdateProperties properties = null) { throw null; } - public static Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceProperties AgricultureServiceProperties(Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState? provisioningState = default(Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState?), Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceConfig config = null, System.Collections.Generic.IReadOnlyList managedOnBehalfOfMoboBrokerResources = null, System.Collections.Generic.IEnumerable dataConnectorCredentials = null, System.Collections.Generic.IEnumerable installedSolutions = null) { throw null; } - public static Azure.ResourceManager.AgriculturePlatform.Models.AgriServiceResourceUpdateProperties AgriServiceResourceUpdateProperties(Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceConfig config = null, System.Collections.Generic.IEnumerable dataConnectorCredentials = null, System.Collections.Generic.IEnumerable installedSolutions = null) { throw null; } - public static Azure.ResourceManager.AgriculturePlatform.Models.AvailableAgriSolutionListResult AvailableAgriSolutionListResult(System.Collections.Generic.IEnumerable solutions = null) { throw null; } - public static Azure.ResourceManager.AgriculturePlatform.Models.DataManagerForAgricultureSolution DataManagerForAgricultureSolution(string partnerId = null, string solutionId = null, string partnerTenantId = null, System.Collections.Generic.IEnumerable dataAccessScopes = null, Azure.ResourceManager.AgriculturePlatform.Models.MarketPlaceOfferDetails marketPlaceOfferDetails = null, string saasApplicationId = null, string accessAzureDataManagerForAgricultureApplicationId = null, string accessAzureDataManagerForAgricultureApplicationName = null, bool isValidateInput = false) { throw null; } - public static Azure.ResourceManager.AgriculturePlatform.Models.MarketPlaceOfferDetails MarketPlaceOfferDetails(string saasOfferId = null, string publisherId = null) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct AuthCredentialsKind : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public AuthCredentialsKind(string value) { throw null; } - public static Azure.ResourceManager.AgriculturePlatform.Models.AuthCredentialsKind ApiKeyAuthCredentials { get { throw null; } } - public static Azure.ResourceManager.AgriculturePlatform.Models.AuthCredentialsKind OAuthClientCredentials { get { throw null; } } - public bool Equals(Azure.ResourceManager.AgriculturePlatform.Models.AuthCredentialsKind other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.AgriculturePlatform.Models.AuthCredentialsKind left, Azure.ResourceManager.AgriculturePlatform.Models.AuthCredentialsKind right) { throw null; } - public static implicit operator Azure.ResourceManager.AgriculturePlatform.Models.AuthCredentialsKind (string value) { throw null; } - public static implicit operator Azure.ResourceManager.AgriculturePlatform.Models.AuthCredentialsKind? (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.AgriculturePlatform.Models.AuthCredentialsKind left, Azure.ResourceManager.AgriculturePlatform.Models.AuthCredentialsKind right) { throw null; } - public override string ToString() { throw null; } - } - public partial class AvailableAgriSolutionListResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal AvailableAgriSolutionListResult() { } - public System.Collections.Generic.IList Solutions { get { throw null; } } - protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AvailableAgriSolutionListResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AvailableAgriSolutionListResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.AgriculturePlatform.Models.AvailableAgriSolutionListResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AgriculturePlatform.Models.AvailableAgriSolutionListResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class DataConnectorCredentialMap : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public DataConnectorCredentialMap(string key, Azure.ResourceManager.AgriculturePlatform.Models.DataConnectorCredentials value) { } - public string Key { get { throw null; } set { } } - public Azure.ResourceManager.AgriculturePlatform.Models.DataConnectorCredentials Value { get { throw null; } set { } } - protected virtual Azure.ResourceManager.AgriculturePlatform.Models.DataConnectorCredentialMap JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.AgriculturePlatform.Models.DataConnectorCredentialMap PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.AgriculturePlatform.Models.DataConnectorCredentialMap System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AgriculturePlatform.Models.DataConnectorCredentialMap System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class DataConnectorCredentials : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public DataConnectorCredentials() { } - public string ClientId { get { throw null; } set { } } - public string KeyName { get { throw null; } set { } } - public string KeyVaultUri { get { throw null; } set { } } - public string KeyVersion { get { throw null; } set { } } - public Azure.ResourceManager.AgriculturePlatform.Models.AuthCredentialsKind? Kind { get { throw null; } set { } } - protected virtual Azure.ResourceManager.AgriculturePlatform.Models.DataConnectorCredentials JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.AgriculturePlatform.Models.DataConnectorCredentials PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.AgriculturePlatform.Models.DataConnectorCredentials System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AgriculturePlatform.Models.DataConnectorCredentials System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class DataManagerForAgricultureSolution : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal DataManagerForAgricultureSolution() { } - public string AccessAzureDataManagerForAgricultureApplicationId { get { throw null; } } - public string AccessAzureDataManagerForAgricultureApplicationName { get { throw null; } } - public System.Collections.Generic.IList DataAccessScopes { get { throw null; } } - public bool IsValidateInput { get { throw null; } } - public Azure.ResourceManager.AgriculturePlatform.Models.MarketPlaceOfferDetails MarketPlaceOfferDetails { get { throw null; } } - public string PartnerId { get { throw null; } } - public string PartnerTenantId { get { throw null; } } - public string SaasApplicationId { get { throw null; } } - public string SolutionId { get { throw null; } } - protected virtual Azure.ResourceManager.AgriculturePlatform.Models.DataManagerForAgricultureSolution JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.AgriculturePlatform.Models.DataManagerForAgricultureSolution PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.AgriculturePlatform.Models.DataManagerForAgricultureSolution System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AgriculturePlatform.Models.DataManagerForAgricultureSolution System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class InstalledSolutionMap : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public InstalledSolutionMap(string key, Azure.ResourceManager.AgriculturePlatform.Models.AgricultureSolution value) { } - public string Key { get { throw null; } set { } } - public Azure.ResourceManager.AgriculturePlatform.Models.AgricultureSolution Value { get { throw null; } set { } } - protected virtual Azure.ResourceManager.AgriculturePlatform.Models.InstalledSolutionMap JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.AgriculturePlatform.Models.InstalledSolutionMap PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.AgriculturePlatform.Models.InstalledSolutionMap System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AgriculturePlatform.Models.InstalledSolutionMap System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MarketPlaceOfferDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MarketPlaceOfferDetails() { } - public string PublisherId { get { throw null; } } - public string SaasOfferId { get { throw null; } } - protected virtual Azure.ResourceManager.AgriculturePlatform.Models.MarketPlaceOfferDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.ResourceManager.AgriculturePlatform.Models.MarketPlaceOfferDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.ResourceManager.AgriculturePlatform.Models.MarketPlaceOfferDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.AgriculturePlatform.Models.MarketPlaceOfferDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } -} diff --git a/sdk/analysisservices/Azure.ResourceManager.Analysis/api/Azure.ResourceManager.Analysis.net8.0.cs b/sdk/analysisservices/Azure.ResourceManager.Analysis/api/Azure.ResourceManager.Analysis.net8.0.cs deleted file mode 100644 index 09d9103391e9..000000000000 --- a/sdk/analysisservices/Azure.ResourceManager.Analysis/api/Azure.ResourceManager.Analysis.net8.0.cs +++ /dev/null @@ -1,380 +0,0 @@ -namespace Azure.ResourceManager.Analysis -{ - public static partial class AnalysisExtensions - { - public static Azure.Response CheckAnalysisServerNameAvailability(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.Analysis.Models.AnalysisServerNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> CheckAnalysisServerNameAvailabilityAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.Analysis.Models.AnalysisServerNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Response GetAnalysisServer(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string serverName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetAnalysisServerAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string serverName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.Analysis.AnalysisServerResource GetAnalysisServerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Analysis.AnalysisServerCollection GetAnalysisServers(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetAnalysisServers(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetAnalysisServersAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Pageable GetEligibleSkus(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetEligibleSkusAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class AnalysisServerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected AnalysisServerCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string serverName, Azure.ResourceManager.Analysis.AnalysisServerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string serverName, Azure.ResourceManager.Analysis.AnalysisServerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string serverName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string serverName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string serverName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string serverName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string serverName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string serverName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class AnalysisServerData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AnalysisServerData(Azure.Core.AzureLocation location, Azure.ResourceManager.Analysis.Models.AnalysisResourceSku analysisSku) { } - public Azure.ResourceManager.Analysis.Models.AnalysisResourceSku AnalysisServerSku { get { throw null; } set { } } - public Azure.ResourceManager.Analysis.Models.AnalysisResourceSku AnalysisSku { get { throw null; } set { } } - public System.Collections.Generic.IList AsAdministratorIdentities { get { throw null; } } - public System.Uri BackupBlobContainerUri { get { throw null; } set { } } - public Azure.ResourceManager.Analysis.Models.AnalysisGatewayDetails GatewayDetails { get { throw null; } set { } } - public Azure.ResourceManager.Analysis.Models.AnalysisIPv4FirewallSettings IPv4FirewallSettings { get { throw null; } set { } } - public Azure.ResourceManager.Analysis.Models.AnalysisManagedMode? ManagedMode { get { throw null; } set { } } - public Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState? ProvisioningState { get { throw null; } } - public Azure.ResourceManager.Analysis.Models.AnalysisConnectionMode? QueryPoolConnectionMode { get { throw null; } set { } } - public string ServerFullName { get { throw null; } } - public Azure.ResourceManager.Analysis.Models.ServerMonitorMode? ServerMonitorMode { get { throw null; } set { } } - public Azure.ResourceManager.Analysis.Models.AnalysisState? State { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Analysis.AnalysisServerData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Analysis.AnalysisServerData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AnalysisServerResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected AnalysisServerResource() { } - public virtual Azure.ResourceManager.Analysis.AnalysisServerData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response DissociateGateway(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DissociateGatewayAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetExistingSkus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetExistingSkusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetGatewayStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetGatewayStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Resume(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task ResumeAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Suspend(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task SuspendAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.Analysis.AnalysisServerData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Analysis.AnalysisServerData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Analysis.Models.AnalysisServerPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Analysis.Models.AnalysisServerPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class AzureResourceManagerAnalysisContext : System.ClientModel.Primitives.ModelReaderWriterContext - { - internal AzureResourceManagerAnalysisContext() { } - public static Azure.ResourceManager.Analysis.AzureResourceManagerAnalysisContext Default { get { throw null; } } - protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; } - } -} -namespace Azure.ResourceManager.Analysis.Mocking -{ - public partial class MockableAnalysisArmClient : Azure.ResourceManager.ArmResource - { - protected MockableAnalysisArmClient() { } - public virtual Azure.ResourceManager.Analysis.AnalysisServerResource GetAnalysisServerResource(Azure.Core.ResourceIdentifier id) { throw null; } - } - public partial class MockableAnalysisResourceGroupResource : Azure.ResourceManager.ArmResource - { - protected MockableAnalysisResourceGroupResource() { } - public virtual Azure.Response GetAnalysisServer(string serverName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAnalysisServerAsync(string serverName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Analysis.AnalysisServerCollection GetAnalysisServers() { throw null; } - } - public partial class MockableAnalysisSubscriptionResource : Azure.ResourceManager.ArmResource - { - protected MockableAnalysisSubscriptionResource() { } - public virtual Azure.Response CheckAnalysisServerNameAvailability(Azure.Core.AzureLocation location, Azure.ResourceManager.Analysis.Models.AnalysisServerNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CheckAnalysisServerNameAvailabilityAsync(Azure.Core.AzureLocation location, Azure.ResourceManager.Analysis.Models.AnalysisServerNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAnalysisServers(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAnalysisServersAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetEligibleSkus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetEligibleSkusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } -} -namespace Azure.ResourceManager.Analysis.Models -{ - public enum AnalysisConnectionMode - { - All = 0, - ReadOnly = 1, - } - public partial class AnalysisExistingSku : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal AnalysisExistingSku() { } - public Azure.Core.ResourceType? ResourceType { get { throw null; } } - public Azure.ResourceManager.Analysis.Models.AnalysisResourceSku Sku { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Analysis.Models.AnalysisExistingSku System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Analysis.Models.AnalysisExistingSku System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AnalysisGatewayDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AnalysisGatewayDetails() { } - public System.Uri DmtsClusterUri { get { throw null; } } - public string GatewayObjectId { get { throw null; } } - public string GatewayResourceId { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Analysis.Models.AnalysisGatewayDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Analysis.Models.AnalysisGatewayDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AnalysisGatewayStatus : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal AnalysisGatewayStatus() { } - public Azure.ResourceManager.Analysis.Models.AnalysisStatus? Status { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Analysis.Models.AnalysisGatewayStatus System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Analysis.Models.AnalysisGatewayStatus System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AnalysisIPv4FirewallRule : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AnalysisIPv4FirewallRule() { } - public string FirewallRuleName { get { throw null; } set { } } - public string RangeEnd { get { throw null; } set { } } - public string RangeStart { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Analysis.Models.AnalysisIPv4FirewallRule System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Analysis.Models.AnalysisIPv4FirewallRule System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AnalysisIPv4FirewallSettings : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AnalysisIPv4FirewallSettings() { } - public System.Collections.Generic.IList FirewallRules { get { throw null; } } - public bool? IsPowerBIServiceEnabled { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Analysis.Models.AnalysisIPv4FirewallSettings System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Analysis.Models.AnalysisIPv4FirewallSettings System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct AnalysisManagedMode : System.IEquatable - { - private readonly int _dummyPrimitive; - public AnalysisManagedMode(int value) { throw null; } - public static Azure.ResourceManager.Analysis.Models.AnalysisManagedMode One { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.AnalysisManagedMode Zero { get { throw null; } } - public bool Equals(Azure.ResourceManager.Analysis.Models.AnalysisManagedMode other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Analysis.Models.AnalysisManagedMode left, Azure.ResourceManager.Analysis.Models.AnalysisManagedMode right) { throw null; } - public static implicit operator Azure.ResourceManager.Analysis.Models.AnalysisManagedMode (int value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Analysis.Models.AnalysisManagedMode left, Azure.ResourceManager.Analysis.Models.AnalysisManagedMode right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct AnalysisProvisioningState : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public AnalysisProvisioningState(string value) { throw null; } - public static Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState Deleting { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState Failed { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState Paused { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState Pausing { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState Preparing { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState Provisioning { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState Resuming { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState Scaling { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState Succeeded { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState Suspended { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState Suspending { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState Updating { get { throw null; } } - public bool Equals(Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState left, Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState right) { throw null; } - public static implicit operator Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState left, Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState right) { throw null; } - public override string ToString() { throw null; } - } - public partial class AnalysisResourceSku : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AnalysisResourceSku(string name) { } - public int? Capacity { get { throw null; } set { } } - public string Name { get { throw null; } set { } } - public Azure.ResourceManager.Analysis.Models.AnalysisSkuTier? Tier { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Analysis.Models.AnalysisResourceSku System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Analysis.Models.AnalysisResourceSku System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AnalysisServerNameAvailabilityContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AnalysisServerNameAvailabilityContent() { } - public string Name { get { throw null; } set { } } - public string ResourceType { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Analysis.Models.AnalysisServerNameAvailabilityContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Analysis.Models.AnalysisServerNameAvailabilityContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AnalysisServerNameAvailabilityResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal AnalysisServerNameAvailabilityResult() { } - public bool? IsNameAvailable { get { throw null; } } - public string Message { get { throw null; } } - public string Reason { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Analysis.Models.AnalysisServerNameAvailabilityResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Analysis.Models.AnalysisServerNameAvailabilityResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AnalysisServerPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AnalysisServerPatch() { } - public System.Collections.Generic.IList AsAdministratorIdentities { get { throw null; } } - public System.Uri BackupBlobContainerUri { get { throw null; } set { } } - public Azure.ResourceManager.Analysis.Models.AnalysisGatewayDetails GatewayDetails { get { throw null; } set { } } - public Azure.ResourceManager.Analysis.Models.AnalysisIPv4FirewallSettings IPV4FirewallSettings { get { throw null; } set { } } - public Azure.ResourceManager.Analysis.Models.AnalysisManagedMode? ManagedMode { get { throw null; } set { } } - public Azure.ResourceManager.Analysis.Models.AnalysisConnectionMode? QuerypoolConnectionMode { get { throw null; } set { } } - public Azure.ResourceManager.Analysis.Models.ServerMonitorMode? ServerMonitorMode { get { throw null; } set { } } - public Azure.ResourceManager.Analysis.Models.AnalysisResourceSku Sku { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Analysis.Models.AnalysisServerPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Analysis.Models.AnalysisServerPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct AnalysisSkuTier : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public AnalysisSkuTier(string value) { throw null; } - public static Azure.ResourceManager.Analysis.Models.AnalysisSkuTier Basic { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.AnalysisSkuTier Development { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.AnalysisSkuTier Standard { get { throw null; } } - public bool Equals(Azure.ResourceManager.Analysis.Models.AnalysisSkuTier other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Analysis.Models.AnalysisSkuTier left, Azure.ResourceManager.Analysis.Models.AnalysisSkuTier right) { throw null; } - public static implicit operator Azure.ResourceManager.Analysis.Models.AnalysisSkuTier (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Analysis.Models.AnalysisSkuTier left, Azure.ResourceManager.Analysis.Models.AnalysisSkuTier right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct AnalysisState : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public AnalysisState(string value) { throw null; } - public static Azure.ResourceManager.Analysis.Models.AnalysisState Deleting { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.AnalysisState Failed { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.AnalysisState Paused { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.AnalysisState Pausing { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.AnalysisState Preparing { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.AnalysisState Provisioning { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.AnalysisState Resuming { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.AnalysisState Scaling { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.AnalysisState Succeeded { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.AnalysisState Suspended { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.AnalysisState Suspending { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.AnalysisState Updating { get { throw null; } } - public bool Equals(Azure.ResourceManager.Analysis.Models.AnalysisState other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Analysis.Models.AnalysisState left, Azure.ResourceManager.Analysis.Models.AnalysisState right) { throw null; } - public static implicit operator Azure.ResourceManager.Analysis.Models.AnalysisState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Analysis.Models.AnalysisState left, Azure.ResourceManager.Analysis.Models.AnalysisState right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct AnalysisStatus : System.IEquatable - { - private readonly int _dummyPrimitive; - public AnalysisStatus(int value) { throw null; } - public static Azure.ResourceManager.Analysis.Models.AnalysisStatus Zero { get { throw null; } } - public bool Equals(Azure.ResourceManager.Analysis.Models.AnalysisStatus other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Analysis.Models.AnalysisStatus left, Azure.ResourceManager.Analysis.Models.AnalysisStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.Analysis.Models.AnalysisStatus (int value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Analysis.Models.AnalysisStatus left, Azure.ResourceManager.Analysis.Models.AnalysisStatus right) { throw null; } - public override string ToString() { throw null; } - } - public static partial class ArmAnalysisModelFactory - { - public static Azure.ResourceManager.Analysis.Models.AnalysisExistingSku AnalysisExistingSku(Azure.ResourceManager.Analysis.Models.AnalysisResourceSku sku = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?)) { throw null; } - public static Azure.ResourceManager.Analysis.Models.AnalysisGatewayDetails AnalysisGatewayDetails(string gatewayResourceId = null, string gatewayObjectId = null, System.Uri dmtsClusterUri = null) { throw null; } - public static Azure.ResourceManager.Analysis.Models.AnalysisGatewayStatus AnalysisGatewayStatus(Azure.ResourceManager.Analysis.Models.AnalysisStatus? status = default(Azure.ResourceManager.Analysis.Models.AnalysisStatus?)) { throw null; } - public static Azure.ResourceManager.Analysis.AnalysisServerData AnalysisServerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), System.Collections.Generic.IEnumerable asAdministratorIdentities = null, System.Uri backupBlobContainerUri = null, Azure.ResourceManager.Analysis.Models.AnalysisGatewayDetails gatewayDetails = null, Azure.ResourceManager.Analysis.Models.AnalysisIPv4FirewallSettings iPv4FirewallSettings = null, Azure.ResourceManager.Analysis.Models.AnalysisConnectionMode? queryPoolConnectionMode = default(Azure.ResourceManager.Analysis.Models.AnalysisConnectionMode?), Azure.ResourceManager.Analysis.Models.AnalysisManagedMode? managedMode = default(Azure.ResourceManager.Analysis.Models.AnalysisManagedMode?), Azure.ResourceManager.Analysis.Models.ServerMonitorMode? serverMonitorMode = default(Azure.ResourceManager.Analysis.Models.ServerMonitorMode?), Azure.ResourceManager.Analysis.Models.AnalysisState? state = default(Azure.ResourceManager.Analysis.Models.AnalysisState?), Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState? provisioningState = default(Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState?), string serverFullName = null, Azure.ResourceManager.Analysis.Models.AnalysisResourceSku analysisServerSku = null, Azure.ResourceManager.Analysis.Models.AnalysisResourceSku analysisSku = null) { throw null; } - public static Azure.ResourceManager.Analysis.Models.AnalysisServerNameAvailabilityResult AnalysisServerNameAvailabilityResult(bool? isNameAvailable = default(bool?), string reason = null, string message = null) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ServerMonitorMode : System.IEquatable - { - private readonly int _dummyPrimitive; - public ServerMonitorMode(int value) { throw null; } - public static Azure.ResourceManager.Analysis.Models.ServerMonitorMode One { get { throw null; } } - public static Azure.ResourceManager.Analysis.Models.ServerMonitorMode Zero { get { throw null; } } - public bool Equals(Azure.ResourceManager.Analysis.Models.ServerMonitorMode other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Analysis.Models.ServerMonitorMode left, Azure.ResourceManager.Analysis.Models.ServerMonitorMode right) { throw null; } - public static implicit operator Azure.ResourceManager.Analysis.Models.ServerMonitorMode (int value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Analysis.Models.ServerMonitorMode left, Azure.ResourceManager.Analysis.Models.ServerMonitorMode right) { throw null; } - public override string ToString() { throw null; } - } -} diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/api/Azure.AI.AnomalyDetector.net8.0.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/api/Azure.AI.AnomalyDetector.net8.0.cs index 498c38d6583e..e69de29bb2d1 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/api/Azure.AI.AnomalyDetector.net8.0.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/api/Azure.AI.AnomalyDetector.net8.0.cs @@ -1,552 +0,0 @@ -namespace Azure.AI.AnomalyDetector -{ - public static partial class AIAnomalyDetectorModelFactory - { - public static Azure.AI.AnomalyDetector.AnomalyDetectionModel AnomalyDetectionModel(System.Guid modelId = default(System.Guid), System.DateTimeOffset createdTime = default(System.DateTimeOffset), System.DateTimeOffset lastUpdatedTime = default(System.DateTimeOffset), Azure.AI.AnomalyDetector.ModelInfo modelInfo = null) { throw null; } - public static Azure.AI.AnomalyDetector.AnomalyInterpretation AnomalyInterpretation(string variable = null, float? contributionScore = default(float?), Azure.AI.AnomalyDetector.CorrelationChanges correlationChanges = null) { throw null; } - public static Azure.AI.AnomalyDetector.AnomalyState AnomalyState(System.DateTimeOffset timestamp = default(System.DateTimeOffset), Azure.AI.AnomalyDetector.AnomalyValue value = null, System.Collections.Generic.IEnumerable errors = null) { throw null; } - public static Azure.AI.AnomalyDetector.AnomalyValue AnomalyValue(bool isAnomaly = false, float severity = 0f, float score = 0f, System.Collections.Generic.IEnumerable interpretation = null) { throw null; } - public static Azure.AI.AnomalyDetector.CorrelationChanges CorrelationChanges(System.Collections.Generic.IEnumerable changedVariables = null) { throw null; } - public static Azure.AI.AnomalyDetector.DiagnosticsInfo DiagnosticsInfo(Azure.AI.AnomalyDetector.ModelState modelState = null, System.Collections.Generic.IEnumerable variableStates = null) { throw null; } - public static Azure.AI.AnomalyDetector.ErrorResponse ErrorResponse(string code = null, string message = null) { throw null; } - public static Azure.AI.AnomalyDetector.ModelInfo ModelInfo(System.Uri dataSource = null, Azure.AI.AnomalyDetector.DataSchema? dataSchema = default(Azure.AI.AnomalyDetector.DataSchema?), System.DateTimeOffset startTime = default(System.DateTimeOffset), System.DateTimeOffset endTime = default(System.DateTimeOffset), string displayName = null, int? slidingWindow = default(int?), Azure.AI.AnomalyDetector.AlignPolicy alignPolicy = null, Azure.AI.AnomalyDetector.ModelStatus? status = default(Azure.AI.AnomalyDetector.ModelStatus?), System.Collections.Generic.IEnumerable errors = null, Azure.AI.AnomalyDetector.DiagnosticsInfo diagnosticsInfo = null) { throw null; } - public static Azure.AI.AnomalyDetector.ModelState ModelState(System.Collections.Generic.IEnumerable epochIds = null, System.Collections.Generic.IEnumerable trainLosses = null, System.Collections.Generic.IEnumerable validationLosses = null, System.Collections.Generic.IEnumerable latenciesInSeconds = null) { throw null; } - public static Azure.AI.AnomalyDetector.MultivariateBatchDetectionResultSummary MultivariateBatchDetectionResultSummary(Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus status = default(Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus), System.Collections.Generic.IEnumerable errors = null, System.Collections.Generic.IEnumerable variableStates = null, Azure.AI.AnomalyDetector.MultivariateBatchDetectionOptions setupInfo = null) { throw null; } - public static Azure.AI.AnomalyDetector.MultivariateDetectionResult MultivariateDetectionResult(System.Guid resultId = default(System.Guid), Azure.AI.AnomalyDetector.MultivariateBatchDetectionResultSummary summary = null, System.Collections.Generic.IEnumerable results = null) { throw null; } - public static Azure.AI.AnomalyDetector.MultivariateLastDetectionResult MultivariateLastDetectionResult(System.Collections.Generic.IEnumerable variableStates = null, System.Collections.Generic.IEnumerable results = null) { throw null; } - public static Azure.AI.AnomalyDetector.TimeSeriesPoint TimeSeriesPoint(System.DateTimeOffset? timestamp = default(System.DateTimeOffset?), float value = 0f) { throw null; } - public static Azure.AI.AnomalyDetector.UnivariateChangePointDetectionOptions UnivariateChangePointDetectionOptions(System.Collections.Generic.IEnumerable series = null, Azure.AI.AnomalyDetector.TimeGranularity granularity = default(Azure.AI.AnomalyDetector.TimeGranularity), int? customInterval = default(int?), int? period = default(int?), int? stableTrendWindow = default(int?), float? threshold = default(float?)) { throw null; } - public static Azure.AI.AnomalyDetector.UnivariateChangePointDetectionResult UnivariateChangePointDetectionResult(int? period = default(int?), System.Collections.Generic.IEnumerable isChangePoint = null, System.Collections.Generic.IEnumerable confidenceScores = null) { throw null; } - public static Azure.AI.AnomalyDetector.UnivariateLastDetectionResult UnivariateLastDetectionResult(int period = 0, int suggestedWindow = 0, float expectedValue = 0f, float upperMargin = 0f, float lowerMargin = 0f, bool isAnomaly = false, bool isNegativeAnomaly = false, bool isPositiveAnomaly = false, float? severity = default(float?)) { throw null; } - public static Azure.AI.AnomalyDetector.VariableState VariableState(string variable = null, float? filledNARatio = default(float?), int? effectiveCount = default(int?), System.DateTimeOffset? firstTimestamp = default(System.DateTimeOffset?), System.DateTimeOffset? lastTimestamp = default(System.DateTimeOffset?)) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct AlignMode : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public AlignMode(string value) { throw null; } - public static Azure.AI.AnomalyDetector.AlignMode Inner { get { throw null; } } - public static Azure.AI.AnomalyDetector.AlignMode Outer { get { throw null; } } - public bool Equals(Azure.AI.AnomalyDetector.AlignMode other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.AI.AnomalyDetector.AlignMode left, Azure.AI.AnomalyDetector.AlignMode right) { throw null; } - public static implicit operator Azure.AI.AnomalyDetector.AlignMode (string value) { throw null; } - public static bool operator !=(Azure.AI.AnomalyDetector.AlignMode left, Azure.AI.AnomalyDetector.AlignMode right) { throw null; } - public override string ToString() { throw null; } - } - public partial class AlignPolicy : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AlignPolicy() { } - public Azure.AI.AnomalyDetector.AlignMode? AlignMode { get { throw null; } set { } } - public Azure.AI.AnomalyDetector.FillNAMethod? FillNAMethod { get { throw null; } set { } } - public float? PaddingValue { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.AlignPolicy System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.AlignPolicy System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AnomalyDetectionModel : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal AnomalyDetectionModel() { } - public System.DateTimeOffset CreatedTime { get { throw null; } } - public System.DateTimeOffset LastUpdatedTime { get { throw null; } } - public System.Guid ModelId { get { throw null; } } - public Azure.AI.AnomalyDetector.ModelInfo ModelInfo { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.AnomalyDetectionModel System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.AnomalyDetectionModel System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AnomalyDetectorClient - { - protected AnomalyDetectorClient() { } - public AnomalyDetectorClient(System.Uri endpoint, Azure.AzureKeyCredential credential) { } - public AnomalyDetectorClient(System.Uri endpoint, Azure.AzureKeyCredential credential, Azure.AI.AnomalyDetector.AnomalyDetectorClientOptions options) { } - public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.AI.AnomalyDetector.Multivariate GetMultivariateClient() { throw null; } - public virtual Azure.AI.AnomalyDetector.Univariate GetUnivariateClient() { throw null; } - } - public partial class AnomalyDetectorClientOptions : Azure.Core.ClientOptions - { - public AnomalyDetectorClientOptions(Azure.AI.AnomalyDetector.AnomalyDetectorClientOptions.ServiceVersion version = Azure.AI.AnomalyDetector.AnomalyDetectorClientOptions.ServiceVersion.V1_1) { } - public enum ServiceVersion - { - V1_1 = 1, - } - } - public partial class AnomalyInterpretation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal AnomalyInterpretation() { } - public float? ContributionScore { get { throw null; } } - public Azure.AI.AnomalyDetector.CorrelationChanges CorrelationChanges { get { throw null; } } - public string Variable { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.AnomalyInterpretation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.AnomalyInterpretation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AnomalyState : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal AnomalyState() { } - public System.Collections.Generic.IReadOnlyList Errors { get { throw null; } } - public System.DateTimeOffset Timestamp { get { throw null; } } - public Azure.AI.AnomalyDetector.AnomalyValue Value { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.AnomalyState System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.AnomalyState System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AnomalyValue : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal AnomalyValue() { } - public System.Collections.Generic.IReadOnlyList Interpretation { get { throw null; } } - public bool IsAnomaly { get { throw null; } } - public float Score { get { throw null; } } - public float Severity { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.AnomalyValue System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.AnomalyValue System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AzureAIAnomalyDetectorContext : System.ClientModel.Primitives.ModelReaderWriterContext - { - internal AzureAIAnomalyDetectorContext() { } - public static Azure.AI.AnomalyDetector.AzureAIAnomalyDetectorContext Default { get { throw null; } } - protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; } - } - public partial class CorrelationChanges : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal CorrelationChanges() { } - public System.Collections.Generic.IReadOnlyList ChangedVariables { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.CorrelationChanges System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.CorrelationChanges System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct DataSchema : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public DataSchema(string value) { throw null; } - public static Azure.AI.AnomalyDetector.DataSchema MultiTable { get { throw null; } } - public static Azure.AI.AnomalyDetector.DataSchema OneTable { get { throw null; } } - public bool Equals(Azure.AI.AnomalyDetector.DataSchema other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.AI.AnomalyDetector.DataSchema left, Azure.AI.AnomalyDetector.DataSchema right) { throw null; } - public static implicit operator Azure.AI.AnomalyDetector.DataSchema (string value) { throw null; } - public static bool operator !=(Azure.AI.AnomalyDetector.DataSchema left, Azure.AI.AnomalyDetector.DataSchema right) { throw null; } - public override string ToString() { throw null; } - } - public partial class DiagnosticsInfo : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal DiagnosticsInfo() { } - public Azure.AI.AnomalyDetector.ModelState ModelState { get { throw null; } } - public System.Collections.Generic.IReadOnlyList VariableStates { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.DiagnosticsInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.DiagnosticsInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class ErrorResponse : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal ErrorResponse() { } - public string Code { get { throw null; } } - public string Message { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.ErrorResponse System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.ErrorResponse System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct FillNAMethod : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public FillNAMethod(string value) { throw null; } - public static Azure.AI.AnomalyDetector.FillNAMethod Fixed { get { throw null; } } - public static Azure.AI.AnomalyDetector.FillNAMethod Linear { get { throw null; } } - public static Azure.AI.AnomalyDetector.FillNAMethod Previous { get { throw null; } } - public static Azure.AI.AnomalyDetector.FillNAMethod Subsequent { get { throw null; } } - public static Azure.AI.AnomalyDetector.FillNAMethod Zero { get { throw null; } } - public bool Equals(Azure.AI.AnomalyDetector.FillNAMethod other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.AI.AnomalyDetector.FillNAMethod left, Azure.AI.AnomalyDetector.FillNAMethod right) { throw null; } - public static implicit operator Azure.AI.AnomalyDetector.FillNAMethod (string value) { throw null; } - public static bool operator !=(Azure.AI.AnomalyDetector.FillNAMethod left, Azure.AI.AnomalyDetector.FillNAMethod right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ImputeMode : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public ImputeMode(string value) { throw null; } - public static Azure.AI.AnomalyDetector.ImputeMode Auto { get { throw null; } } - public static Azure.AI.AnomalyDetector.ImputeMode Fixed { get { throw null; } } - public static Azure.AI.AnomalyDetector.ImputeMode Linear { get { throw null; } } - public static Azure.AI.AnomalyDetector.ImputeMode NotFill { get { throw null; } } - public static Azure.AI.AnomalyDetector.ImputeMode Previous { get { throw null; } } - public static Azure.AI.AnomalyDetector.ImputeMode Zero { get { throw null; } } - public bool Equals(Azure.AI.AnomalyDetector.ImputeMode other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.AI.AnomalyDetector.ImputeMode left, Azure.AI.AnomalyDetector.ImputeMode right) { throw null; } - public static implicit operator Azure.AI.AnomalyDetector.ImputeMode (string value) { throw null; } - public static bool operator !=(Azure.AI.AnomalyDetector.ImputeMode left, Azure.AI.AnomalyDetector.ImputeMode right) { throw null; } - public override string ToString() { throw null; } - } - public partial class ModelInfo : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public ModelInfo(System.Uri dataSource, System.DateTimeOffset startTime, System.DateTimeOffset endTime) { } - public Azure.AI.AnomalyDetector.AlignPolicy AlignPolicy { get { throw null; } set { } } - public Azure.AI.AnomalyDetector.DataSchema? DataSchema { get { throw null; } set { } } - public System.Uri DataSource { get { throw null; } set { } } - public Azure.AI.AnomalyDetector.DiagnosticsInfo DiagnosticsInfo { get { throw null; } } - public string DisplayName { get { throw null; } set { } } - public System.DateTimeOffset EndTime { get { throw null; } set { } } - public System.Collections.Generic.IReadOnlyList Errors { get { throw null; } } - public int? SlidingWindow { get { throw null; } set { } } - public System.DateTimeOffset StartTime { get { throw null; } set { } } - public Azure.AI.AnomalyDetector.ModelStatus? Status { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.ModelInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.ModelInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class ModelState : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal ModelState() { } - public System.Collections.Generic.IReadOnlyList EpochIds { get { throw null; } } - public System.Collections.Generic.IReadOnlyList LatenciesInSeconds { get { throw null; } } - public System.Collections.Generic.IReadOnlyList TrainLosses { get { throw null; } } - public System.Collections.Generic.IReadOnlyList ValidationLosses { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.ModelState System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.ModelState System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ModelStatus : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public ModelStatus(string value) { throw null; } - public static Azure.AI.AnomalyDetector.ModelStatus Created { get { throw null; } } - public static Azure.AI.AnomalyDetector.ModelStatus Failed { get { throw null; } } - public static Azure.AI.AnomalyDetector.ModelStatus Ready { get { throw null; } } - public static Azure.AI.AnomalyDetector.ModelStatus Running { get { throw null; } } - public bool Equals(Azure.AI.AnomalyDetector.ModelStatus other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.AI.AnomalyDetector.ModelStatus left, Azure.AI.AnomalyDetector.ModelStatus right) { throw null; } - public static implicit operator Azure.AI.AnomalyDetector.ModelStatus (string value) { throw null; } - public static bool operator !=(Azure.AI.AnomalyDetector.ModelStatus left, Azure.AI.AnomalyDetector.ModelStatus right) { throw null; } - public override string ToString() { throw null; } - } - public partial class Multivariate - { - protected Multivariate() { } - public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response DeleteMultivariateModel(string modelId, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DeleteMultivariateModelAsync(string modelId, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response DetectMultivariateBatchAnomaly(string modelId, Azure.AI.AnomalyDetector.MultivariateBatchDetectionOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response DetectMultivariateBatchAnomaly(string modelId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> DetectMultivariateBatchAnomalyAsync(string modelId, Azure.AI.AnomalyDetector.MultivariateBatchDetectionOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DetectMultivariateBatchAnomalyAsync(string modelId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response DetectMultivariateLastAnomaly(string modelId, Azure.AI.AnomalyDetector.MultivariateLastDetectionOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response DetectMultivariateLastAnomaly(string modelId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> DetectMultivariateLastAnomalyAsync(string modelId, Azure.AI.AnomalyDetector.MultivariateLastDetectionOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DetectMultivariateLastAnomalyAsync(string modelId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response GetMultivariateBatchDetectionResult(System.Guid resultId, Azure.RequestContext context) { throw null; } - public virtual Azure.Response GetMultivariateBatchDetectionResult(System.Guid resultId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task GetMultivariateBatchDetectionResultAsync(System.Guid resultId, Azure.RequestContext context) { throw null; } - public virtual System.Threading.Tasks.Task> GetMultivariateBatchDetectionResultAsync(System.Guid resultId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetMultivariateModel(string modelId, Azure.RequestContext context) { throw null; } - public virtual Azure.Response GetMultivariateModel(string modelId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task GetMultivariateModelAsync(string modelId, Azure.RequestContext context) { throw null; } - public virtual System.Threading.Tasks.Task> GetMultivariateModelAsync(string modelId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetMultivariateModels(int? skip, int? maxCount, Azure.RequestContext context) { throw null; } - public virtual Azure.Pageable GetMultivariateModels(int? skip = default(int?), int? maxCount = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetMultivariateModelsAsync(int? skip, int? maxCount, Azure.RequestContext context) { throw null; } - public virtual Azure.AsyncPageable GetMultivariateModelsAsync(int? skip = default(int?), int? maxCount = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response TrainMultivariateModel(Azure.AI.AnomalyDetector.ModelInfo modelInfo, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response TrainMultivariateModel(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> TrainMultivariateModelAsync(Azure.AI.AnomalyDetector.ModelInfo modelInfo, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task TrainMultivariateModelAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - } - public partial class MultivariateBatchDetectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public MultivariateBatchDetectionOptions(System.Uri dataSource, System.DateTimeOffset startTime, System.DateTimeOffset endTime) { } - public System.Uri DataSource { get { throw null; } set { } } - public System.DateTimeOffset EndTime { get { throw null; } set { } } - public System.DateTimeOffset StartTime { get { throw null; } set { } } - public int? TopContributorCount { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.MultivariateBatchDetectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.MultivariateBatchDetectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MultivariateBatchDetectionResultSummary : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MultivariateBatchDetectionResultSummary() { } - public System.Collections.Generic.IReadOnlyList Errors { get { throw null; } } - public Azure.AI.AnomalyDetector.MultivariateBatchDetectionOptions SetupInfo { get { throw null; } } - public Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus Status { get { throw null; } } - public System.Collections.Generic.IReadOnlyList VariableStates { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.MultivariateBatchDetectionResultSummary System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.MultivariateBatchDetectionResultSummary System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct MultivariateBatchDetectionStatus : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public MultivariateBatchDetectionStatus(string value) { throw null; } - public static Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus Created { get { throw null; } } - public static Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus Failed { get { throw null; } } - public static Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus Ready { get { throw null; } } - public static Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus Running { get { throw null; } } - public bool Equals(Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus left, Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus right) { throw null; } - public static implicit operator Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus (string value) { throw null; } - public static bool operator !=(Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus left, Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus right) { throw null; } - public override string ToString() { throw null; } - } - public partial class MultivariateDetectionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MultivariateDetectionResult() { } - public System.Guid ResultId { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Results { get { throw null; } } - public Azure.AI.AnomalyDetector.MultivariateBatchDetectionResultSummary Summary { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.MultivariateDetectionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.MultivariateDetectionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MultivariateLastDetectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public MultivariateLastDetectionOptions(System.Collections.Generic.IEnumerable variables) { } - public int? TopContributorCount { get { throw null; } set { } } - public System.Collections.Generic.IList Variables { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.MultivariateLastDetectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.MultivariateLastDetectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class MultivariateLastDetectionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal MultivariateLastDetectionResult() { } - public System.Collections.Generic.IReadOnlyList Results { get { throw null; } } - public System.Collections.Generic.IReadOnlyList VariableStates { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.MultivariateLastDetectionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.MultivariateLastDetectionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct TimeGranularity : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public TimeGranularity(string value) { throw null; } - public static Azure.AI.AnomalyDetector.TimeGranularity Daily { get { throw null; } } - public static Azure.AI.AnomalyDetector.TimeGranularity Hourly { get { throw null; } } - public static Azure.AI.AnomalyDetector.TimeGranularity Microsecond { get { throw null; } } - public static Azure.AI.AnomalyDetector.TimeGranularity Monthly { get { throw null; } } - public static Azure.AI.AnomalyDetector.TimeGranularity None { get { throw null; } } - public static Azure.AI.AnomalyDetector.TimeGranularity PerMinute { get { throw null; } } - public static Azure.AI.AnomalyDetector.TimeGranularity PerSecond { get { throw null; } } - public static Azure.AI.AnomalyDetector.TimeGranularity Weekly { get { throw null; } } - public static Azure.AI.AnomalyDetector.TimeGranularity Yearly { get { throw null; } } - public bool Equals(Azure.AI.AnomalyDetector.TimeGranularity other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.AI.AnomalyDetector.TimeGranularity left, Azure.AI.AnomalyDetector.TimeGranularity right) { throw null; } - public static implicit operator Azure.AI.AnomalyDetector.TimeGranularity (string value) { throw null; } - public static bool operator !=(Azure.AI.AnomalyDetector.TimeGranularity left, Azure.AI.AnomalyDetector.TimeGranularity right) { throw null; } - public override string ToString() { throw null; } - } - public partial class TimeSeriesPoint : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public TimeSeriesPoint(float value) { } - public System.DateTimeOffset? Timestamp { get { throw null; } set { } } - public float Value { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.TimeSeriesPoint System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.TimeSeriesPoint System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class Univariate - { - protected Univariate() { } - public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response DetectUnivariateChangePoint(Azure.AI.AnomalyDetector.UnivariateChangePointDetectionOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response DetectUnivariateChangePoint(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> DetectUnivariateChangePointAsync(Azure.AI.AnomalyDetector.UnivariateChangePointDetectionOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DetectUnivariateChangePointAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response DetectUnivariateEntireSeries(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task DetectUnivariateEntireSeriesAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual Azure.Response DetectUnivariateLastPoint(Azure.AI.AnomalyDetector.UnivariateDetectionOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response DetectUnivariateLastPoint(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - public virtual System.Threading.Tasks.Task> DetectUnivariateLastPointAsync(Azure.AI.AnomalyDetector.UnivariateDetectionOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DetectUnivariateLastPointAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } - } - public partial class UnivariateChangePointDetectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public UnivariateChangePointDetectionOptions(System.Collections.Generic.IEnumerable series, Azure.AI.AnomalyDetector.TimeGranularity granularity) { } - public int? CustomInterval { get { throw null; } set { } } - public Azure.AI.AnomalyDetector.TimeGranularity Granularity { get { throw null; } } - public int? Period { get { throw null; } set { } } - public System.Collections.Generic.IList Series { get { throw null; } } - public int? StableTrendWindow { get { throw null; } set { } } - public float? Threshold { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.UnivariateChangePointDetectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.UnivariateChangePointDetectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class UnivariateChangePointDetectionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal UnivariateChangePointDetectionResult() { } - public System.Collections.Generic.IReadOnlyList ConfidenceScores { get { throw null; } } - public System.Collections.Generic.IReadOnlyList IsChangePoint { get { throw null; } } - public int? Period { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.UnivariateChangePointDetectionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.UnivariateChangePointDetectionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class UnivariateDetectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public UnivariateDetectionOptions(System.Collections.Generic.IEnumerable series) { } - public int? CustomInterval { get { throw null; } set { } } - public Azure.AI.AnomalyDetector.TimeGranularity? Granularity { get { throw null; } set { } } - public float? ImputeFixedValue { get { throw null; } set { } } - public Azure.AI.AnomalyDetector.ImputeMode? ImputeMode { get { throw null; } set { } } - public float? MaxAnomalyRatio { get { throw null; } set { } } - public int? Period { get { throw null; } set { } } - public int? Sensitivity { get { throw null; } set { } } - public System.Collections.Generic.IList Series { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.UnivariateDetectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.UnivariateDetectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class UnivariateLastDetectionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal UnivariateLastDetectionResult() { } - public float ExpectedValue { get { throw null; } } - public bool IsAnomaly { get { throw null; } } - public bool IsNegativeAnomaly { get { throw null; } } - public bool IsPositiveAnomaly { get { throw null; } } - public float LowerMargin { get { throw null; } } - public int Period { get { throw null; } } - public float? Severity { get { throw null; } } - public int SuggestedWindow { get { throw null; } } - public float UpperMargin { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.UnivariateLastDetectionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.UnivariateLastDetectionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class VariableState : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal VariableState() { } - public int? EffectiveCount { get { throw null; } } - public float? FilledNARatio { get { throw null; } } - public System.DateTimeOffset? FirstTimestamp { get { throw null; } } - public System.DateTimeOffset? LastTimestamp { get { throw null; } } - public string Variable { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.VariableState System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.VariableState System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class VariableValues : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public VariableValues(string variable, System.Collections.Generic.IEnumerable timestamps, System.Collections.Generic.IEnumerable values) { } - public System.Collections.Generic.IList Timestamps { get { throw null; } } - public System.Collections.Generic.IList Values { get { throw null; } } - public string Variable { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.VariableValues System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.AI.AnomalyDetector.VariableValues System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } -} -namespace Microsoft.Extensions.Azure -{ - public static partial class AIAnomalyDetectorClientBuilderExtensions - { - public static Azure.Core.Extensions.IAzureClientBuilder AddAnomalyDetectorClient(this TBuilder builder, System.Uri endpoint, Azure.AzureKeyCredential credential) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder { throw null; } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Requires unreferenced code until we opt into EnableConfigurationBindingGenerator.")] - public static Azure.Core.Extensions.IAzureClientBuilder AddAnomalyDetectorClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } - } -} diff --git a/sdk/appconfiguration/Azure.Data.AppConfiguration/api/Azure.Data.AppConfiguration.net8.0.cs b/sdk/appconfiguration/Azure.Data.AppConfiguration/api/Azure.Data.AppConfiguration.net8.0.cs deleted file mode 100644 index 900ca526bcab..000000000000 --- a/sdk/appconfiguration/Azure.Data.AppConfiguration/api/Azure.Data.AppConfiguration.net8.0.cs +++ /dev/null @@ -1,382 +0,0 @@ -namespace Azure.Data.AppConfiguration -{ - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct AppConfigurationAudience : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public AppConfigurationAudience(string value) { throw null; } - public static Azure.Data.AppConfiguration.AppConfigurationAudience AzureChina { get { throw null; } } - public static Azure.Data.AppConfiguration.AppConfigurationAudience AzureGovernment { get { throw null; } } - public static Azure.Data.AppConfiguration.AppConfigurationAudience AzurePublicCloud { get { throw null; } } - public bool Equals(Azure.Data.AppConfiguration.AppConfigurationAudience other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Data.AppConfiguration.AppConfigurationAudience left, Azure.Data.AppConfiguration.AppConfigurationAudience right) { throw null; } - public static implicit operator Azure.Data.AppConfiguration.AppConfigurationAudience (string value) { throw null; } - public static bool operator !=(Azure.Data.AppConfiguration.AppConfigurationAudience left, Azure.Data.AppConfiguration.AppConfigurationAudience right) { throw null; } - public override string ToString() { throw null; } - } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public partial class AzureDataAppConfigurationContext : System.ClientModel.Primitives.ModelReaderWriterContext - { - internal AzureDataAppConfigurationContext() { } - public static Azure.Data.AppConfiguration.AzureDataAppConfigurationContext Default { get { throw null; } } - protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; } - } - public partial class ConfigurationClient - { - protected ConfigurationClient() { } - public ConfigurationClient(string connectionString) { } - public ConfigurationClient(string connectionString, Azure.Data.AppConfiguration.ConfigurationClientOptions options) { } - public ConfigurationClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { } - public ConfigurationClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Data.AppConfiguration.ConfigurationClientOptions options) { } - public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response AddConfigurationSetting(Azure.Data.AppConfiguration.ConfigurationSetting setting, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response AddConfigurationSetting(string key, string value, string label = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddConfigurationSettingAsync(Azure.Data.AppConfiguration.ConfigurationSetting setting, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddConfigurationSettingAsync(string key, string value, string label = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response ArchiveSnapshot(string snapshotName, Azure.MatchConditions matchConditions, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response ArchiveSnapshot(string snapshotName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ArchiveSnapshotAsync(string snapshotName, Azure.MatchConditions matchConditions, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ArchiveSnapshotAsync(string snapshotName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Data.AppConfiguration.CreateSnapshotOperation CreateSnapshot(Azure.WaitUntil wait, string snapshotName, Azure.Data.AppConfiguration.ConfigurationSnapshot snapshot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task CreateSnapshotAsync(Azure.WaitUntil wait, string snapshotName, Azure.Data.AppConfiguration.ConfigurationSnapshot snapshot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response DeleteConfigurationSetting(Azure.Data.AppConfiguration.ConfigurationSetting setting, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response DeleteConfigurationSetting(string key, string label = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteConfigurationSettingAsync(Azure.Data.AppConfiguration.ConfigurationSetting setting, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteConfigurationSettingAsync(string key, string label = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - public virtual Azure.Response GetConfigurationSetting(Azure.Data.AppConfiguration.ConfigurationSetting setting, bool onlyIfChanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetConfigurationSetting(Azure.Data.AppConfiguration.ConfigurationSetting setting, System.DateTimeOffset acceptDateTime, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetConfigurationSetting(string key, string label = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetConfigurationSettingAsync(Azure.Data.AppConfiguration.ConfigurationSetting setting, bool onlyIfChanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetConfigurationSettingAsync(Azure.Data.AppConfiguration.ConfigurationSetting setting, System.DateTimeOffset acceptDateTime, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetConfigurationSettingAsync(string key, string label = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetConfigurationSettings(Azure.Data.AppConfiguration.SettingSelector selector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetConfigurationSettingsAsync(Azure.Data.AppConfiguration.SettingSelector selector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetConfigurationSettingsForSnapshot(string snapshotName, Azure.Data.AppConfiguration.SettingFields fields, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetConfigurationSettingsForSnapshot(string snapshotName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetConfigurationSettingsForSnapshotAsync(string snapshotName, Azure.Data.AppConfiguration.SettingFields fields, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetConfigurationSettingsForSnapshotAsync(string snapshotName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public virtual Azure.Pageable GetLabels(Azure.Data.AppConfiguration.SettingLabelSelector selector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetLabelsAsync(Azure.Data.AppConfiguration.SettingLabelSelector selector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetRevisions(Azure.Data.AppConfiguration.SettingSelector selector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetRevisions(string keyFilter, string labelFilter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetRevisionsAsync(Azure.Data.AppConfiguration.SettingSelector selector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetRevisionsAsync(string keyFilter, string labelFilter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetSnapshot(string snapshotName, System.Collections.Generic.IEnumerable fields = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetSnapshotAsync(string snapshotName, System.Collections.Generic.IEnumerable fields = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetSnapshots(Azure.Data.AppConfiguration.SnapshotSelector selector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetSnapshotsAsync(Azure.Data.AppConfiguration.SnapshotSelector selector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RecoverSnapshot(string snapshotName, Azure.MatchConditions matchConditions, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RecoverSnapshot(string snapshotName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RecoverSnapshotAsync(string snapshotName, Azure.MatchConditions matchConditions, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RecoverSnapshotAsync(string snapshotName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetConfigurationSetting(Azure.Data.AppConfiguration.ConfigurationSetting setting, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetConfigurationSetting(string key, string value, string label = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetConfigurationSettingAsync(Azure.Data.AppConfiguration.ConfigurationSetting setting, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetConfigurationSettingAsync(string key, string value, string label = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetReadOnly(Azure.Data.AppConfiguration.ConfigurationSetting setting, bool isReadOnly, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetReadOnly(string key, bool isReadOnly, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetReadOnly(string key, string label, bool isReadOnly, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetReadOnlyAsync(Azure.Data.AppConfiguration.ConfigurationSetting setting, bool isReadOnly, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetReadOnlyAsync(string key, bool isReadOnly, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetReadOnlyAsync(string key, string label, bool isReadOnly, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override string ToString() { throw null; } - public virtual void UpdateSyncToken(string token) { } - } - public static partial class ConfigurationClientExtensions - { - public static System.Collections.Generic.IAsyncEnumerable> AsPages(this Azure.AsyncPageable pageable, System.Collections.Generic.IEnumerable conditions, string continuationToken = null, int? pageSizeHint = default(int?)) { throw null; } - public static System.Collections.Generic.IEnumerable> AsPages(this Azure.Pageable pageable, System.Collections.Generic.IEnumerable conditions, string continuationToken = null, int? pageSizeHint = default(int?)) { throw null; } - } - public partial class ConfigurationClientOptions : Azure.Core.ClientOptions - { - public ConfigurationClientOptions(Azure.Data.AppConfiguration.ConfigurationClientOptions.ServiceVersion version = Azure.Data.AppConfiguration.ConfigurationClientOptions.ServiceVersion.V2023_11_01) { } - public Azure.Data.AppConfiguration.AppConfigurationAudience? Audience { get { throw null; } set { } } - public enum ServiceVersion - { - V1_0 = 0, - V2023_10_01 = 1, - V2023_11_01 = 2, - } - } - public static partial class ConfigurationModelFactory - { - public static Azure.Data.AppConfiguration.ConfigurationSetting ConfigurationSetting(string key, string value, string label = null, string contentType = null, Azure.ETag eTag = default(Azure.ETag), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), bool? isReadOnly = default(bool?)) { throw null; } - public static Azure.Data.AppConfiguration.ConfigurationSettingsFilter ConfigurationSettingsFilter(string key = null, string label = null, System.Collections.Generic.IEnumerable tags = null) { throw null; } - public static Azure.Data.AppConfiguration.ConfigurationSnapshot ConfigurationSnapshot(string name = null, Azure.Data.AppConfiguration.ConfigurationSnapshotStatus? status = default(Azure.Data.AppConfiguration.ConfigurationSnapshotStatus?), System.Collections.Generic.IEnumerable filters = null, Azure.Data.AppConfiguration.SnapshotComposition? snapshotComposition = default(Azure.Data.AppConfiguration.SnapshotComposition?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? expiresOn = default(System.DateTimeOffset?), System.TimeSpan? retentionPeriod = default(System.TimeSpan?), long? sizeInBytes = default(long?), long? itemCount = default(long?), System.Collections.Generic.IDictionary tags = null, Azure.ETag eTag = default(Azure.ETag)) { throw null; } - public static Azure.Data.AppConfiguration.FeatureFlagConfigurationSetting FeatureFlagConfigurationSetting(string featureId, bool isEnabled, string label = null, Azure.ETag eTag = default(Azure.ETag), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), bool? isReadOnly = default(bool?)) { throw null; } - public static Azure.Data.AppConfiguration.SecretReferenceConfigurationSetting SecretReferenceConfigurationSetting(string key, System.Uri secretId, string label = null, Azure.ETag eTag = default(Azure.ETag), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), bool? isReadOnly = default(bool?)) { throw null; } - public static Azure.Data.AppConfiguration.SettingLabel SettingLabel(string name = null) { throw null; } - } - public partial class ConfigurationSetting : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public ConfigurationSetting(string key, string value, string label = null) { } - public ConfigurationSetting(string key, string value, string label, Azure.ETag etag) { } - public string ContentType { get { throw null; } set { } } - public Azure.ETag ETag { get { throw null; } } - public bool? IsReadOnly { get { throw null; } } - public string Key { get { throw null; } set { } } - public string Label { get { throw null; } set { } } - public System.DateTimeOffset? LastModified { get { throw null; } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } - public string Value { get { throw null; } set { } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - protected virtual Azure.Data.AppConfiguration.ConfigurationSetting JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - public static explicit operator Azure.Data.AppConfiguration.ConfigurationSetting (Azure.Response result) { throw null; } - public static implicit operator Azure.Core.RequestContent (Azure.Data.AppConfiguration.ConfigurationSetting configurationSetting) { throw null; } - protected virtual Azure.Data.AppConfiguration.ConfigurationSetting PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.Data.AppConfiguration.ConfigurationSetting System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Data.AppConfiguration.ConfigurationSetting System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override string ToString() { throw null; } - } - public partial class ConfigurationSettingsFilter : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public ConfigurationSettingsFilter(string key) { } - public string Key { get { throw null; } set { } } - public string Label { get { throw null; } set { } } - public System.Collections.Generic.IList Tags { get { throw null; } } - protected virtual Azure.Data.AppConfiguration.ConfigurationSettingsFilter JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.Data.AppConfiguration.ConfigurationSettingsFilter PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.Data.AppConfiguration.ConfigurationSettingsFilter System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Data.AppConfiguration.ConfigurationSettingsFilter System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class ConfigurationSnapshot : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public ConfigurationSnapshot(System.Collections.Generic.IEnumerable filters) { } - public System.DateTimeOffset? CreatedOn { get { throw null; } } - public Azure.ETag ETag { get { throw null; } } - public System.DateTimeOffset? ExpiresOn { get { throw null; } } - public System.Collections.Generic.IList Filters { get { throw null; } } - public long? ItemCount { get { throw null; } } - public string Name { get { throw null; } } - public System.TimeSpan? RetentionPeriod { get { throw null; } set { } } - public long? SizeInBytes { get { throw null; } } - public Azure.Data.AppConfiguration.SnapshotComposition? SnapshotComposition { get { throw null; } set { } } - public Azure.Data.AppConfiguration.ConfigurationSnapshotStatus? Status { get { throw null; } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } - protected virtual Azure.Data.AppConfiguration.ConfigurationSnapshot JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - public static explicit operator Azure.Data.AppConfiguration.ConfigurationSnapshot (Azure.Response result) { throw null; } - public static implicit operator Azure.Core.RequestContent (Azure.Data.AppConfiguration.ConfigurationSnapshot configurationSnapshot) { throw null; } - protected virtual Azure.Data.AppConfiguration.ConfigurationSnapshot PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.Data.AppConfiguration.ConfigurationSnapshot System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Data.AppConfiguration.ConfigurationSnapshot System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ConfigurationSnapshotStatus : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public ConfigurationSnapshotStatus(string value) { throw null; } - public static Azure.Data.AppConfiguration.ConfigurationSnapshotStatus Archived { get { throw null; } } - public static Azure.Data.AppConfiguration.ConfigurationSnapshotStatus Failed { get { throw null; } } - public static Azure.Data.AppConfiguration.ConfigurationSnapshotStatus Provisioning { get { throw null; } } - public static Azure.Data.AppConfiguration.ConfigurationSnapshotStatus Ready { get { throw null; } } - public bool Equals(Azure.Data.AppConfiguration.ConfigurationSnapshotStatus other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Data.AppConfiguration.ConfigurationSnapshotStatus left, Azure.Data.AppConfiguration.ConfigurationSnapshotStatus right) { throw null; } - public static implicit operator Azure.Data.AppConfiguration.ConfigurationSnapshotStatus (string value) { throw null; } - public static implicit operator Azure.Data.AppConfiguration.ConfigurationSnapshotStatus? (string value) { throw null; } - public static bool operator !=(Azure.Data.AppConfiguration.ConfigurationSnapshotStatus left, Azure.Data.AppConfiguration.ConfigurationSnapshotStatus right) { throw null; } - public override string ToString() { throw null; } - } - public partial class CreateSnapshotOperation : Azure.Operation - { - protected CreateSnapshotOperation() { } - public override bool HasCompleted { get { throw null; } } - public override bool HasValue { get { throw null; } } - public override string Id { get { throw null; } } - public override Azure.Data.AppConfiguration.ConfigurationSnapshot Value { get { throw null; } } - public override Azure.Response GetRawResponse() { throw null; } - public override Azure.Response UpdateStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public override System.Threading.Tasks.ValueTask UpdateStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public override System.Threading.Tasks.ValueTask> WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public override System.Threading.Tasks.ValueTask> WaitForCompletionAsync(System.TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken) { throw null; } - } - public partial class FeatureFlagConfigurationSetting : Azure.Data.AppConfiguration.ConfigurationSetting - { - public FeatureFlagConfigurationSetting(string featureId, bool isEnabled, string label = null) : base (default(string), default(string), default(string)) { } - public FeatureFlagConfigurationSetting(string featureId, bool isEnabled, string label, Azure.ETag etag) : base (default(string), default(string), default(string)) { } - public System.Collections.Generic.IList ClientFilters { get { throw null; } } - public string Description { get { throw null; } set { } } - public string DisplayName { get { throw null; } set { } } - public string FeatureId { get { throw null; } set { } } - public bool IsEnabled { get { throw null; } set { } } - public static string KeyPrefix { get { throw null; } } - } - public partial class FeatureFlagFilter - { - public FeatureFlagFilter(string name) { } - public FeatureFlagFilter(string name, System.Collections.Generic.IDictionary parameters) { } - public string Name { get { throw null; } } - public System.Collections.Generic.IDictionary Parameters { get { throw null; } } - } - public partial class SecretReferenceConfigurationSetting : Azure.Data.AppConfiguration.ConfigurationSetting - { - public SecretReferenceConfigurationSetting(string key, System.Uri secretId, string label = null) : base (default(string), default(string), default(string)) { } - public SecretReferenceConfigurationSetting(string key, System.Uri secretId, string label, Azure.ETag etag) : base (default(string), default(string), default(string)) { } - public System.Uri SecretId { get { throw null; } set { } } - } - [System.FlagsAttribute] - public enum SettingFields : uint - { - Key = (uint)1, - Label = (uint)2, - Value = (uint)4, - ContentType = (uint)8, - ETag = (uint)16, - LastModified = (uint)32, - IsReadOnly = (uint)64, - Tags = (uint)128, - All = (uint)4294967295, - } - public partial class SettingLabel : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal SettingLabel() { } - public string Name { get { throw null; } } - protected virtual Azure.Data.AppConfiguration.SettingLabel JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - protected virtual Azure.Data.AppConfiguration.SettingLabel PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - Azure.Data.AppConfiguration.SettingLabel System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Data.AppConfiguration.SettingLabel System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct SettingLabelFields : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public SettingLabelFields(string value) { throw null; } - public static Azure.Data.AppConfiguration.SettingLabelFields Name { get { throw null; } } - public bool Equals(Azure.Data.AppConfiguration.SettingLabelFields other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Data.AppConfiguration.SettingLabelFields left, Azure.Data.AppConfiguration.SettingLabelFields right) { throw null; } - public static implicit operator Azure.Data.AppConfiguration.SettingLabelFields (string value) { throw null; } - public static implicit operator Azure.Data.AppConfiguration.SettingLabelFields? (string value) { throw null; } - public static bool operator !=(Azure.Data.AppConfiguration.SettingLabelFields left, Azure.Data.AppConfiguration.SettingLabelFields right) { throw null; } - public override string ToString() { throw null; } - } - public partial class SettingLabelSelector - { - public SettingLabelSelector() { } - public System.DateTimeOffset? AcceptDateTime { get { throw null; } set { } } - public System.Collections.Generic.IList Fields { get { throw null; } } - public string NameFilter { get { throw null; } set { } } - } - public partial class SettingSelector - { - public static readonly string Any; - public SettingSelector() { } - public System.DateTimeOffset? AcceptDateTime { get { throw null; } set { } } - public Azure.Data.AppConfiguration.SettingFields Fields { get { throw null; } set { } } - public string KeyFilter { get { throw null; } set { } } - public string LabelFilter { get { throw null; } set { } } - public System.Collections.Generic.IList TagsFilter { get { throw null; } } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct SnapshotComposition : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public SnapshotComposition(string value) { throw null; } - public static Azure.Data.AppConfiguration.SnapshotComposition Key { get { throw null; } } - public static Azure.Data.AppConfiguration.SnapshotComposition KeyLabel { get { throw null; } } - public bool Equals(Azure.Data.AppConfiguration.SnapshotComposition other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Data.AppConfiguration.SnapshotComposition left, Azure.Data.AppConfiguration.SnapshotComposition right) { throw null; } - public static implicit operator Azure.Data.AppConfiguration.SnapshotComposition (string value) { throw null; } - public static implicit operator Azure.Data.AppConfiguration.SnapshotComposition? (string value) { throw null; } - public static bool operator !=(Azure.Data.AppConfiguration.SnapshotComposition left, Azure.Data.AppConfiguration.SnapshotComposition right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct SnapshotFields : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public SnapshotFields(string value) { throw null; } - public static Azure.Data.AppConfiguration.SnapshotFields CreatedOn { get { throw null; } } - public static Azure.Data.AppConfiguration.SnapshotFields ETag { get { throw null; } } - public static Azure.Data.AppConfiguration.SnapshotFields ExpiresOn { get { throw null; } } - public static Azure.Data.AppConfiguration.SnapshotFields Filters { get { throw null; } } - public static Azure.Data.AppConfiguration.SnapshotFields ItemCount { get { throw null; } } - public static Azure.Data.AppConfiguration.SnapshotFields Name { get { throw null; } } - public static Azure.Data.AppConfiguration.SnapshotFields RetentionPeriod { get { throw null; } } - public static Azure.Data.AppConfiguration.SnapshotFields SizeInBytes { get { throw null; } } - public static Azure.Data.AppConfiguration.SnapshotFields SnapshotComposition { get { throw null; } } - public static Azure.Data.AppConfiguration.SnapshotFields Status { get { throw null; } } - public static Azure.Data.AppConfiguration.SnapshotFields Tags { get { throw null; } } - public bool Equals(Azure.Data.AppConfiguration.SnapshotFields other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Data.AppConfiguration.SnapshotFields left, Azure.Data.AppConfiguration.SnapshotFields right) { throw null; } - public static implicit operator Azure.Data.AppConfiguration.SnapshotFields (string value) { throw null; } - public static implicit operator Azure.Data.AppConfiguration.SnapshotFields? (string value) { throw null; } - public static bool operator !=(Azure.Data.AppConfiguration.SnapshotFields left, Azure.Data.AppConfiguration.SnapshotFields right) { throw null; } - public override string ToString() { throw null; } - } - public partial class SnapshotSelector - { - public SnapshotSelector() { } - public System.Collections.Generic.IList Fields { get { throw null; } } - public string NameFilter { get { throw null; } set { } } - public System.Collections.Generic.IList Status { get { throw null; } } - } -} -namespace Microsoft.Extensions.Azure -{ - public static partial class ConfigurationClientBuilderExtensions - { - public static Azure.Core.Extensions.IAzureClientBuilder AddConfigurationClient(this TBuilder builder, string connectionString) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder { throw null; } - public static Azure.Core.Extensions.IAzureClientBuilder AddConfigurationClient(this TBuilder builder, System.Uri configurationUri) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } - [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Requires unreferenced code until we opt into EnableConfigurationBindingGenerator.")] - public static Azure.Core.Extensions.IAzureClientBuilder AddConfigurationClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } - } -} diff --git a/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.net8.0.cs b/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.net8.0.cs index 175939828aa1..071b91bce8f9 100644 --- a/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.net8.0.cs +++ b/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.net8.0.cs @@ -71,11 +71,11 @@ public SearchClient(System.Uri endpoint, string indexName, Azure.Core.TokenCrede public virtual System.Threading.Tasks.Task> DeleteDocumentsAsync(System.Collections.Generic.IEnumerable documents, Azure.Search.Documents.IndexDocumentsOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response DeleteDocuments(System.Collections.Generic.IEnumerable documents, Azure.Search.Documents.IndexDocumentsOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetDocumentAsync(string key, Azure.Search.Documents.GetDocumentOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetDocumentAsync(string key, string querySourceAuthorization, Azure.Search.Documents.GetDocumentOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetDocumentAsync(string key, string querySourceAuthorization, bool? enabledElevatedRead = default(bool?), Azure.Search.Documents.GetDocumentOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetDocumentCount(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetDocumentCountAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetDocument(string key, Azure.Search.Documents.GetDocumentOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetDocument(string key, string querySourceAuthorization, Azure.Search.Documents.GetDocumentOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetDocument(string key, string querySourceAuthorization, bool? enabledElevatedRead = default(bool?), Azure.Search.Documents.GetDocumentOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> IndexDocumentsAsync(Azure.Search.Documents.Models.IndexDocumentsBatch batch, Azure.Search.Documents.IndexDocumentsOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response IndexDocuments(Azure.Search.Documents.Models.IndexDocumentsBatch batch, Azure.Search.Documents.IndexDocumentsOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> MergeDocumentsAsync(System.Collections.Generic.IEnumerable documents, Azure.Search.Documents.IndexDocumentsOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -223,275 +223,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace Azure.Search.Documents.Agents -{ - public partial class KnowledgeAgentRetrievalClient - { - protected KnowledgeAgentRetrievalClient() { } - public KnowledgeAgentRetrievalClient(System.Uri endpoint, string agentName, Azure.AzureKeyCredential credential) { } - public KnowledgeAgentRetrievalClient(System.Uri endpoint, string agentName, Azure.AzureKeyCredential credential, Azure.Search.Documents.SearchClientOptions options) { } - public KnowledgeAgentRetrievalClient(System.Uri endpoint, string agentName, Azure.Core.TokenCredential tokenCredential) { } - public KnowledgeAgentRetrievalClient(System.Uri endpoint, string agentName, Azure.Core.TokenCredential tokenCredential, Azure.Search.Documents.SearchClientOptions options) { } - public virtual string AgentName { get { throw null; } } - public virtual System.Uri Endpoint { get { throw null; } } - public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response Retrieve(Azure.Search.Documents.Agents.Models.KnowledgeAgentRetrievalRequest retrievalRequest, string xMsQuerySourceAuthorization = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RetrieveAsync(Azure.Search.Documents.Agents.Models.KnowledgeAgentRetrievalRequest retrievalRequest, string xMsQuerySourceAuthorization = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } -} -namespace Azure.Search.Documents.Agents.Models -{ - public abstract partial class KnowledgeAgentActivityRecord : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - protected KnowledgeAgentActivityRecord(int id) { } - public int? ElapsedMs { get { throw null; } } - public int Id { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentAzureBlobActivityArguments : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal KnowledgeAgentAzureBlobActivityArguments() { } - public string Search { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentAzureBlobActivityArguments System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentAzureBlobActivityArguments System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentAzureBlobActivityRecord : Azure.Search.Documents.Agents.Models.KnowledgeAgentRetrievalActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal KnowledgeAgentAzureBlobActivityRecord() { } - public Azure.Search.Documents.Agents.Models.KnowledgeAgentAzureBlobActivityArguments AzureBlobArguments { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentAzureBlobActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentAzureBlobActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentAzureBlobReference : Azure.Search.Documents.Agents.Models.KnowledgeAgentReference, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal KnowledgeAgentAzureBlobReference() : base (default(string), default(int)) { } - public string BlobUrl { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentAzureBlobReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentAzureBlobReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentMessage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public KnowledgeAgentMessage(System.Collections.Generic.IEnumerable content) { } - public System.Collections.Generic.IList Content { get { throw null; } } - public string Role { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public abstract partial class KnowledgeAgentMessageContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - protected KnowledgeAgentMessageContent() { } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct KnowledgeAgentMessageContentType : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public KnowledgeAgentMessageContentType(string value) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageContentType Image { get { throw null; } } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageContentType Text { get { throw null; } } - public bool Equals(Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageContentType other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageContentType left, Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageContentType right) { throw null; } - public static implicit operator Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageContentType (string value) { throw null; } - public static bool operator !=(Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageContentType left, Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageContentType right) { throw null; } - public override string ToString() { throw null; } - } - public partial class KnowledgeAgentMessageImageContent : Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageContent, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public KnowledgeAgentMessageImageContent(Azure.Search.Documents.Models.KnowledgeAgentMessageImageContentImage image) { } - public Azure.Search.Documents.Models.KnowledgeAgentMessageImageContentImage Image { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageImageContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageImageContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentMessageTextContent : Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageContent, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public KnowledgeAgentMessageTextContent(string text) { } - public string Text { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageTextContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageTextContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentModelAnswerSynthesisActivityRecord : Azure.Search.Documents.Agents.Models.KnowledgeAgentActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal KnowledgeAgentModelAnswerSynthesisActivityRecord() : base (default(int)) { } - public int? InputTokens { get { throw null; } } - public int? OutputTokens { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentModelAnswerSynthesisActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentModelAnswerSynthesisActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentModelQueryPlanningActivityRecord : Azure.Search.Documents.Agents.Models.KnowledgeAgentActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal KnowledgeAgentModelQueryPlanningActivityRecord() : base (default(int)) { } - public int? InputTokens { get { throw null; } } - public int? OutputTokens { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentModelQueryPlanningActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentModelQueryPlanningActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public abstract partial class KnowledgeAgentReference : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - protected KnowledgeAgentReference(string id, int activitySource) { } - public int ActivitySource { get { throw null; } } - public string Id { get { throw null; } } - public float? RerankerScore { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary SourceData { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentRetrievalActivityRecord : Azure.Search.Documents.Agents.Models.KnowledgeAgentActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal KnowledgeAgentRetrievalActivityRecord() : base (default(int)) { } - public int? Count { get { throw null; } } - public string KnowledgeSourceName { get { throw null; } } - public System.DateTimeOffset? QueryTime { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentRetrievalActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentRetrievalActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentRetrievalRequest : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public KnowledgeAgentRetrievalRequest(System.Collections.Generic.IEnumerable messages) { } - public System.Collections.Generic.IList KnowledgeSourceParams { get { throw null; } } - public System.Collections.Generic.IList Messages { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentRetrievalRequest System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentRetrievalRequest System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentRetrievalResponse : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal KnowledgeAgentRetrievalResponse() { } - public System.Collections.Generic.IReadOnlyList Activity { get { throw null; } } - public System.Collections.Generic.IReadOnlyList References { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Response { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentRetrievalResponse System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentRetrievalResponse System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentSearchIndexActivityArguments : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal KnowledgeAgentSearchIndexActivityArguments() { } - public string Filter { get { throw null; } } - public string Search { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentSearchIndexActivityArguments System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentSearchIndexActivityArguments System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentSearchIndexActivityRecord : Azure.Search.Documents.Agents.Models.KnowledgeAgentRetrievalActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal KnowledgeAgentSearchIndexActivityRecord() { } - public Azure.Search.Documents.Agents.Models.KnowledgeAgentSearchIndexActivityArguments SearchIndexArguments { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentSearchIndexActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentSearchIndexActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentSearchIndexReference : Azure.Search.Documents.Agents.Models.KnowledgeAgentReference, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal KnowledgeAgentSearchIndexReference() : base (default(string), default(int)) { } - public string DocKey { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentSearchIndexReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentSearchIndexReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentSemanticRerankerActivityRecord : Azure.Search.Documents.Agents.Models.KnowledgeAgentActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal KnowledgeAgentSemanticRerankerActivityRecord() : base (default(int)) { } - public int? InputTokens { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentSemanticRerankerActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentSemanticRerankerActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public abstract partial class KnowledgeSourceParams : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - protected KnowledgeSourceParams(string knowledgeSourceName) { } - public string KnowledgeSourceName { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeSourceParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeSourceParams System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class SearchIndexKnowledgeSourceParams : Azure.Search.Documents.Agents.Models.KnowledgeSourceParams, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public SearchIndexKnowledgeSourceParams(string knowledgeSourceName) : base (default(string)) { } - public string FilterAddOn { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.SearchIndexKnowledgeSourceParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.SearchIndexKnowledgeSourceParams System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } -} namespace Azure.Search.Documents.Indexes { public partial class FieldBuilder @@ -530,16 +261,16 @@ public SearchIndexClient(System.Uri endpoint, Azure.Core.TokenCredential tokenCr public virtual System.Threading.Tasks.Task> CreateAliasAsync(Azure.Search.Documents.Indexes.Models.SearchAlias alias, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response CreateIndex(Azure.Search.Documents.Indexes.Models.SearchIndex index, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> CreateIndexAsync(Azure.Search.Documents.Indexes.Models.SearchIndex index, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response CreateKnowledgeAgent(Azure.Search.Documents.Indexes.Models.KnowledgeAgent knowledgeAgent, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateKnowledgeAgentAsync(Azure.Search.Documents.Indexes.Models.KnowledgeAgent knowledgeAgent, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response CreateKnowledgeBase(Azure.Search.Documents.Indexes.Models.KnowledgeBase KnowledgeBase, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateKnowledgeBaseAsync(Azure.Search.Documents.Indexes.Models.KnowledgeBase KnowledgeBase, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response CreateKnowledgeSource(Azure.Search.Documents.Indexes.Models.KnowledgeSource knowledgeSource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> CreateKnowledgeSourceAsync(Azure.Search.Documents.Indexes.Models.KnowledgeSource knowledgeSource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response CreateOrUpdateAlias(string aliasName, Azure.Search.Documents.Indexes.Models.SearchAlias alias, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> CreateOrUpdateAliasAsync(string aliasName, Azure.Search.Documents.Indexes.Models.SearchAlias alias, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response CreateOrUpdateIndex(Azure.Search.Documents.Indexes.Models.SearchIndex index, bool allowIndexDowntime = false, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> CreateOrUpdateIndexAsync(Azure.Search.Documents.Indexes.Models.SearchIndex index, bool allowIndexDowntime = false, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response CreateOrUpdateKnowledgeAgent(Azure.Search.Documents.Indexes.Models.KnowledgeAgent knowledgeAgent, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateKnowledgeAgentAsync(Azure.Search.Documents.Indexes.Models.KnowledgeAgent knowledgeAgent, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response CreateOrUpdateKnowledgeBase(Azure.Search.Documents.Indexes.Models.KnowledgeBase KnowledgeBase, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateKnowledgeBaseAsync(Azure.Search.Documents.Indexes.Models.KnowledgeBase KnowledgeBase, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response CreateOrUpdateKnowledgeSource(Azure.Search.Documents.Indexes.Models.KnowledgeSource knowledgeSource, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> CreateOrUpdateKnowledgeSourceAsync(Azure.Search.Documents.Indexes.Models.KnowledgeSource knowledgeSource, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response CreateOrUpdateSynonymMap(Azure.Search.Documents.Indexes.Models.SynonymMap synonymMap, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -552,10 +283,10 @@ public SearchIndexClient(System.Uri endpoint, Azure.Core.TokenCredential tokenCr public virtual Azure.Response DeleteIndex(string indexName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteIndexAsync(Azure.Search.Documents.Indexes.Models.SearchIndex index, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteIndexAsync(string indexName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response DeleteKnowledgeAgent(Azure.Search.Documents.Indexes.Models.KnowledgeAgent knowledgeAgent, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response DeleteKnowledgeAgent(string agentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteKnowledgeAgentAsync(Azure.Search.Documents.Indexes.Models.KnowledgeAgent knowledgeAgent, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteKnowledgeAgentAsync(string agentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteKnowledgeBase(Azure.Search.Documents.Indexes.Models.KnowledgeBase KnowledgeBase, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteKnowledgeBase(string agentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteKnowledgeBaseAsync(Azure.Search.Documents.Indexes.Models.KnowledgeBase KnowledgeBase, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteKnowledgeBaseAsync(string agentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response DeleteKnowledgeSource(Azure.Search.Documents.Indexes.Models.KnowledgeSource knowledgeSource, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response DeleteKnowledgeSource(string sourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteKnowledgeSourceAsync(Azure.Search.Documents.Indexes.Models.KnowledgeSource knowledgeSource, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -578,10 +309,10 @@ public SearchIndexClient(System.Uri endpoint, Azure.Core.TokenCredential tokenCr public virtual System.Threading.Tasks.Task> GetIndexStatisticsAsync(string indexName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetIndexStatsSummary(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetIndexStatsSummaryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetKnowledgeAgent(string agentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetKnowledgeAgentAsync(string agentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetKnowledgeAgents(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetKnowledgeAgentsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetKnowledgeBase(string agentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetKnowledgeBaseAsync(string agentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetKnowledgeBases(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetKnowledgeBasesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetKnowledgeSource(string sourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetKnowledgeSourceAsync(string sourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetKnowledgeSources(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -729,6 +460,18 @@ namespace Azure.Search.Documents.Indexes.Models public static bool operator !=(Azure.Search.Documents.Indexes.Models.AIFoundryModelCatalogName left, Azure.Search.Documents.Indexes.Models.AIFoundryModelCatalogName right) { throw null; } public override string ToString() { throw null; } } + public partial class AIServices : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AIServices(System.Uri uri) { } + public string ApiKey { get { throw null; } set { } } + public System.Uri Uri { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.AIServices System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.AIServices System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class AIServicesAccountIdentity : Azure.Search.Documents.Indexes.Models.CognitiveServicesAccount, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AIServicesAccountIdentity(string subdomainUrl) { } @@ -835,15 +578,12 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public partial class AzureBlobKnowledgeSourceParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AzureBlobKnowledgeSourceParameters(string connectionString, string containerName) { } - public Azure.Search.Documents.Indexes.Models.KnowledgeAgentModel ChatCompletionModel { get { throw null; } set { } } public string ConnectionString { get { throw null; } set { } } public string ContainerName { get { throw null; } set { } } public System.Collections.Generic.IReadOnlyDictionary CreatedResources { get { throw null; } } - public bool? DisableImageVerbalization { get { throw null; } set { } } - public Azure.Search.Documents.Indexes.Models.VectorSearchVectorizer EmbeddingModel { get { throw null; } set { } } public string FolderPath { get { throw null; } set { } } - public Azure.Search.Documents.Indexes.Models.SearchIndexerDataIdentity Identity { get { throw null; } set { } } - public Azure.Search.Documents.Indexes.Models.IndexingSchedule IngestionSchedule { get { throw null; } set { } } + public Azure.Search.Documents.Indexes.Models.KnowledgeSourceIngestionParameters IngestionParameters { get { throw null; } set { } } + public bool? IsAdlsGen2 { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Search.Documents.Indexes.Models.AzureBlobKnowledgeSourceParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -922,6 +662,9 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public static Azure.Search.Documents.Indexes.Models.AzureOpenAIModelName Gpt41Nano { get { throw null; } } public static Azure.Search.Documents.Indexes.Models.AzureOpenAIModelName Gpt4O { get { throw null; } } public static Azure.Search.Documents.Indexes.Models.AzureOpenAIModelName Gpt4OMini { get { throw null; } } + public static Azure.Search.Documents.Indexes.Models.AzureOpenAIModelName Gpt5 { get { throw null; } } + public static Azure.Search.Documents.Indexes.Models.AzureOpenAIModelName Gpt5Mini { get { throw null; } } + public static Azure.Search.Documents.Indexes.Models.AzureOpenAIModelName Gpt5Nano { get { throw null; } } public static Azure.Search.Documents.Indexes.Models.AzureOpenAIModelName TextEmbedding3Large { get { throw null; } } public static Azure.Search.Documents.Indexes.Models.AzureOpenAIModelName TextEmbedding3Small { get { throw null; } } public static Azure.Search.Documents.Indexes.Models.AzureOpenAIModelName TextEmbeddingAda002 { get { throw null; } } @@ -1254,6 +997,21 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class CompletedSynchronizationState : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal CompletedSynchronizationState() { } + public System.DateTimeOffset EndTime { get { throw null; } } + public int ItemsSkipped { get { throw null; } } + public int ItemsUpdatesFailed { get { throw null; } } + public int ItemsUpdatesProcessed { get { throw null; } } + public System.DateTimeOffset StartTime { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.CompletedSynchronizationState System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.CompletedSynchronizationState System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class ComplexField : Azure.Search.Documents.Indexes.Models.SearchFieldTemplate { public ComplexField(string name, bool collection = false) { } @@ -1269,6 +1027,66 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class ContentUnderstandingSkill : Azure.Search.Documents.Indexes.Models.SearchIndexerSkill, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ContentUnderstandingSkill(System.Collections.Generic.IEnumerable inputs, System.Collections.Generic.IEnumerable outputs) { } + public Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillChunkingProperties ChunkingProperties { get { throw null; } set { } } + public System.Collections.Generic.IList ExtractionOptions { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkill System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkill System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class ContentUnderstandingSkillChunkingProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ContentUnderstandingSkillChunkingProperties() { } + public int? MaximumLength { get { throw null; } set { } } + public int? OverlapLength { get { throw null; } set { } } + public Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillChunkingUnit? Unit { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillChunkingProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillChunkingProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ContentUnderstandingSkillChunkingUnit : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ContentUnderstandingSkillChunkingUnit(string value) { throw null; } + public static Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillChunkingUnit Characters { get { throw null; } } + public bool Equals(Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillChunkingUnit other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillChunkingUnit left, Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillChunkingUnit right) { throw null; } + public static implicit operator Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillChunkingUnit (string value) { throw null; } + public static bool operator !=(Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillChunkingUnit left, Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillChunkingUnit right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ContentUnderstandingSkillExtractionOptions : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ContentUnderstandingSkillExtractionOptions(string value) { throw null; } + public static Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillExtractionOptions Images { get { throw null; } } + public static Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillExtractionOptions LocationMetadata { get { throw null; } } + public bool Equals(Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillExtractionOptions other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillExtractionOptions left, Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillExtractionOptions right) { throw null; } + public static implicit operator Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillExtractionOptions (string value) { throw null; } + public static bool operator !=(Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillExtractionOptions left, Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillExtractionOptions right) { throw null; } + public override string ToString() { throw null; } + } public partial class CorsOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public CorsOptions(System.Collections.Generic.IEnumerable allowedOrigins) { } @@ -1944,6 +1762,58 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public static bool operator !=(Azure.Search.Documents.Indexes.Models.ImageDetail left, Azure.Search.Documents.Indexes.Models.ImageDetail right) { throw null; } public override string ToString() { throw null; } } + public partial class IndexedOneLakeKnowledgeSource : Azure.Search.Documents.Indexes.Models.KnowledgeSource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public IndexedOneLakeKnowledgeSource(string name, Azure.Search.Documents.Indexes.Models.IndexedOneLakeKnowledgeSourceParameters indexedOneLakeParameters) : base (default(string)) { } + public Azure.Search.Documents.Indexes.Models.IndexedOneLakeKnowledgeSourceParameters IndexedOneLakeParameters { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.IndexedOneLakeKnowledgeSource System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.IndexedOneLakeKnowledgeSource System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class IndexedOneLakeKnowledgeSourceParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public IndexedOneLakeKnowledgeSourceParameters(string fabricWorkspaceId, string lakehouseId) { } + public System.Collections.Generic.IReadOnlyDictionary CreatedResources { get { throw null; } } + public string FabricWorkspaceId { get { throw null; } set { } } + public Azure.Search.Documents.Indexes.Models.KnowledgeSourceIngestionParameters IngestionParameters { get { throw null; } set { } } + public string LakehouseId { get { throw null; } set { } } + public string TargetPath { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.IndexedOneLakeKnowledgeSourceParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.IndexedOneLakeKnowledgeSourceParameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class IndexedSharePointKnowledgeSource : Azure.Search.Documents.Indexes.Models.KnowledgeSource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public IndexedSharePointKnowledgeSource(string name, Azure.Search.Documents.Indexes.Models.IndexedSharePointKnowledgeSourceParameters indexedSharePointParameters) : base (default(string)) { } + public Azure.Search.Documents.Indexes.Models.IndexedSharePointKnowledgeSourceParameters IndexedSharePointParameters { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.IndexedSharePointKnowledgeSource System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.IndexedSharePointKnowledgeSource System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class IndexedSharePointKnowledgeSourceParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public IndexedSharePointKnowledgeSourceParameters(string connectionString, Azure.Search.Documents.Models.IndexedSharePointContainerName containerName) { } + public string ConnectionString { get { throw null; } set { } } + public Azure.Search.Documents.Models.IndexedSharePointContainerName ContainerName { get { throw null; } set { } } + public System.Collections.Generic.IReadOnlyDictionary CreatedResources { get { throw null; } } + public Azure.Search.Documents.Indexes.Models.KnowledgeSourceIngestionParameters IngestionParameters { get { throw null; } set { } } + public string Query { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.IndexedSharePointKnowledgeSourceParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.IndexedSharePointKnowledgeSourceParameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class IndexerChangeTrackingState { internal IndexerChangeTrackingState() { } @@ -2053,6 +1923,20 @@ public enum IndexerExecutionStatus public static bool operator !=(Azure.Search.Documents.Indexes.Models.IndexerResyncOption left, Azure.Search.Documents.Indexes.Models.IndexerResyncOption right) { throw null; } public override string ToString() { throw null; } } + public partial class IndexerRuntime : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal IndexerRuntime() { } + public System.DateTimeOffset BeginningTime { get { throw null; } } + public System.DateTimeOffset EndingTime { get { throw null; } } + public long? RemainingSeconds { get { throw null; } } + public long UsedSeconds { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.IndexerRuntime System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.IndexerRuntime System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class IndexerState : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal IndexerState() { } @@ -2296,89 +2180,64 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class KnowledgeAgent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class KnowledgeBase : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public KnowledgeAgent(string name, System.Collections.Generic.IEnumerable models, System.Collections.Generic.IEnumerable knowledgeSources) { } + public KnowledgeBase(string name, System.Collections.Generic.IEnumerable knowledgeSources) { } + public string AnswerInstructions { get { throw null; } set { } } public string Description { get { throw null; } set { } } public Azure.Search.Documents.Indexes.Models.SearchResourceEncryptionKey EncryptionKey { get { throw null; } set { } } - public Azure.ETag? ETag { get { throw null; } set { } } + public string ETag { get { throw null; } set { } } public System.Collections.Generic.IList KnowledgeSources { get { throw null; } } - public System.Collections.Generic.IList Models { get { throw null; } } + public System.Collections.Generic.IList Models { get { throw null; } } public string Name { get { throw null; } set { } } - public Azure.Search.Documents.Indexes.Models.KnowledgeAgentOutputConfiguration OutputConfiguration { get { throw null; } set { } } - public Azure.Search.Documents.Indexes.Models.KnowledgeAgentRequestLimits RequestLimits { get { throw null; } set { } } + public Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode? OutputMode { get { throw null; } set { } } public string RetrievalInstructions { get { throw null; } set { } } + public Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffort RetrievalReasoningEffort { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Indexes.Models.KnowledgeAgent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Indexes.Models.KnowledgeAgent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Search.Documents.Indexes.Models.KnowledgeBase System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeBase System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class KnowledgeAgentAzureOpenAIModel : Azure.Search.Documents.Indexes.Models.KnowledgeAgentModel, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class KnowledgeBaseAzureOpenAIModel : Azure.Search.Documents.Indexes.Models.KnowledgeBaseModel, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public KnowledgeAgentAzureOpenAIModel(Azure.Search.Documents.Indexes.Models.AzureOpenAIVectorizerParameters azureOpenAIParameters) { } + public KnowledgeBaseAzureOpenAIModel(Azure.Search.Documents.Indexes.Models.AzureOpenAIVectorizerParameters azureOpenAIParameters) { } public Azure.Search.Documents.Indexes.Models.AzureOpenAIVectorizerParameters AzureOpenAIParameters { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Indexes.Models.KnowledgeAgentAzureOpenAIModel System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Indexes.Models.KnowledgeAgentAzureOpenAIModel System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Search.Documents.Indexes.Models.KnowledgeBaseAzureOpenAIModel System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeBaseAzureOpenAIModel System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public abstract partial class KnowledgeAgentModel : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public abstract partial class KnowledgeBaseModel : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - protected KnowledgeAgentModel() { } + protected KnowledgeBaseModel() { } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Indexes.Models.KnowledgeAgentModel System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Indexes.Models.KnowledgeAgentModel System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Search.Documents.Indexes.Models.KnowledgeBaseModel System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeBaseModel System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct KnowledgeAgentModelKind : System.IEquatable + public readonly partial struct KnowledgeBaseModelKind : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public KnowledgeAgentModelKind(string value) { throw null; } - public static Azure.Search.Documents.Indexes.Models.KnowledgeAgentModelKind AzureOpenAI { get { throw null; } } - public bool Equals(Azure.Search.Documents.Indexes.Models.KnowledgeAgentModelKind other) { throw null; } + public KnowledgeBaseModelKind(string value) { throw null; } + public static Azure.Search.Documents.Indexes.Models.KnowledgeBaseModelKind AzureOpenAI { get { throw null; } } + public bool Equals(Azure.Search.Documents.Indexes.Models.KnowledgeBaseModelKind other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Search.Documents.Indexes.Models.KnowledgeAgentModelKind left, Azure.Search.Documents.Indexes.Models.KnowledgeAgentModelKind right) { throw null; } - public static implicit operator Azure.Search.Documents.Indexes.Models.KnowledgeAgentModelKind (string value) { throw null; } - public static bool operator !=(Azure.Search.Documents.Indexes.Models.KnowledgeAgentModelKind left, Azure.Search.Documents.Indexes.Models.KnowledgeAgentModelKind right) { throw null; } + public static bool operator ==(Azure.Search.Documents.Indexes.Models.KnowledgeBaseModelKind left, Azure.Search.Documents.Indexes.Models.KnowledgeBaseModelKind right) { throw null; } + public static implicit operator Azure.Search.Documents.Indexes.Models.KnowledgeBaseModelKind (string value) { throw null; } + public static bool operator !=(Azure.Search.Documents.Indexes.Models.KnowledgeBaseModelKind left, Azure.Search.Documents.Indexes.Models.KnowledgeBaseModelKind right) { throw null; } public override string ToString() { throw null; } } - public partial class KnowledgeAgentOutputConfiguration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public KnowledgeAgentOutputConfiguration() { } - public string AnswerInstructions { get { throw null; } set { } } - public bool? AttemptFastPath { get { throw null; } set { } } - public bool? IncludeActivity { get { throw null; } set { } } - public Azure.Search.Documents.Models.KnowledgeAgentOutputConfigurationModality? Modality { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Indexes.Models.KnowledgeAgentOutputConfiguration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Indexes.Models.KnowledgeAgentOutputConfiguration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentRequestLimits : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public KnowledgeAgentRequestLimits() { } - public int? MaxOutputSize { get { throw null; } set { } } - public int? MaxRuntimeInSeconds { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Indexes.Models.KnowledgeAgentRequestLimits System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Indexes.Models.KnowledgeAgentRequestLimits System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public abstract partial class KnowledgeSource : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { protected KnowledgeSource(string name) { } @@ -2393,15 +2252,39 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class KnowledgeSourceAzureOpenAIVectorizer : Azure.Search.Documents.Indexes.Models.KnowledgeSourceVectorizer, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public KnowledgeSourceAzureOpenAIVectorizer() { } + public Azure.Search.Documents.Indexes.Models.AzureOpenAIVectorizerParameters AzureOpenAIParameters { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeSourceAzureOpenAIVectorizer System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeSourceAzureOpenAIVectorizer System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeSourceIngestionParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public KnowledgeSourceIngestionParameters() { } + public Azure.Search.Documents.Indexes.Models.AIServices AiServices { get { throw null; } set { } } + public Azure.Search.Documents.Indexes.Models.KnowledgeBaseModel ChatCompletionModel { get { throw null; } set { } } + public Azure.Search.Documents.Models.KnowledgeSourceContentExtractionMode? ContentExtractionMode { get { throw null; } set { } } + public bool? DisableImageVerbalization { get { throw null; } set { } } + public Azure.Search.Documents.Indexes.Models.KnowledgeSourceVectorizer EmbeddingModel { get { throw null; } set { } } + public Azure.Search.Documents.Indexes.Models.SearchIndexerDataIdentity Identity { get { throw null; } set { } } + public System.Collections.Generic.IList IngestionPermissionOptions { get { throw null; } set { } } + public Azure.Search.Documents.Indexes.Models.IndexingSchedule IngestionSchedule { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeSourceIngestionParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeSourceIngestionParameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class KnowledgeSourceReference : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public KnowledgeSourceReference(string name) { } - public bool? AlwaysQuerySource { get { throw null; } set { } } - public bool? IncludeReferences { get { throw null; } set { } } - public bool? IncludeReferenceSourceData { get { throw null; } set { } } - public int? MaxSubQueries { get { throw null; } set { } } public string Name { get { throw null; } set { } } - public float? RerankerThreshold { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Search.Documents.Indexes.Models.KnowledgeSourceReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -2409,6 +2292,44 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class KnowledgeSourceStatistics : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeSourceStatistics() { } + public int AverageItemsProcessedPerSynchronization { get { throw null; } } + public string AverageSynchronizationDuration { get { throw null; } } + public int TotalSynchronization { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeSourceStatistics System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeSourceStatistics System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeSourceStatus : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeSourceStatus() { } + public Azure.Search.Documents.Indexes.Models.SynchronizationState CurrentSynchronizationState { get { throw null; } } + public Azure.Search.Documents.Indexes.Models.CompletedSynchronizationState LastSynchronizationState { get { throw null; } } + public Azure.Search.Documents.Indexes.Models.KnowledgeSourceStatistics Statistics { get { throw null; } } + public string SynchronizationInterval { get { throw null; } } + public Azure.Search.Documents.Models.KnowledgeSourceSynchronizationStatus SynchronizationStatus { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeSourceStatus System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeSourceStatus System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public abstract partial class KnowledgeSourceVectorizer : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + protected KnowledgeSourceVectorizer() { } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeSourceVectorizer System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeSourceVectorizer System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class KnowledgeStore : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public KnowledgeStore(string storageConnectionString, System.Collections.Generic.IEnumerable projections) { } @@ -3536,6 +3457,30 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public static bool operator !=(Azure.Search.Documents.Indexes.Models.RegexFlag left, Azure.Search.Documents.Indexes.Models.RegexFlag right) { throw null; } public override string ToString() { throw null; } } + public partial class RemoteSharePointKnowledgeSource : Azure.Search.Documents.Indexes.Models.KnowledgeSource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RemoteSharePointKnowledgeSource(string name, Azure.Search.Documents.Indexes.Models.RemoteSharePointKnowledgeSourceParameters remoteSharePointParameters) : base (default(string)) { } + public Azure.Search.Documents.Indexes.Models.RemoteSharePointKnowledgeSourceParameters RemoteSharePointParameters { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.RemoteSharePointKnowledgeSource System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.RemoteSharePointKnowledgeSource System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class RemoteSharePointKnowledgeSourceParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RemoteSharePointKnowledgeSourceParameters() { } + public string ContainerTypeId { get { throw null; } set { } } + public string FilterExpression { get { throw null; } set { } } + public System.Collections.Generic.IList ResourceMetadata { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.RemoteSharePointKnowledgeSourceParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.RemoteSharePointKnowledgeSourceParameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class RescoringOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public RescoringOptions() { } @@ -3591,6 +3536,7 @@ public enum ScoringFunctionAggregation Minimum = 2, Maximum = 3, FirstMatching = 4, + Product = 5, } public enum ScoringFunctionInterpolation { @@ -3652,6 +3598,7 @@ public SearchField(string name, Azure.Search.Documents.Indexes.Models.SearchFiel public Azure.Search.Documents.Indexes.Models.LexicalNormalizerName? NormalizerName { get { throw null; } set { } } public Azure.Search.Documents.Indexes.Models.PermissionFilter? PermissionFilter { get { throw null; } set { } } public Azure.Search.Documents.Indexes.Models.LexicalAnalyzerName? SearchAnalyzerName { get { throw null; } set { } } + public bool? SensitivityLabel { get { throw null; } set { } } public System.Collections.Generic.IList SynonymMapNames { get { throw null; } } public Azure.Search.Documents.Indexes.Models.SearchFieldDataType Type { get { throw null; } } public Azure.Search.Documents.Indexes.Models.VectorEncodingFormat? VectorEncodingFormat { get { throw null; } set { } } @@ -3718,6 +3665,7 @@ public SearchIndex(string name, System.Collections.Generic.IEnumerable Normalizers { get { throw null; } } public Azure.Search.Documents.Models.SearchIndexPermissionFilterOption? PermissionFilterOption { get { throw null; } set { } } + public bool? PurviewEnabled { get { throw null; } set { } } public System.Collections.Generic.IList ScoringProfiles { get { throw null; } } public Azure.Search.Documents.Indexes.Models.SemanticSearch SemanticSearch { get { throw null; } set { } } public Azure.Search.Documents.Indexes.Models.SimilarityAlgorithm Similarity { get { throw null; } set { } } @@ -3836,6 +3784,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static Azure.Search.Documents.Indexes.Models.SearchIndexerDataSourceType CosmosDb { get { throw null; } } public static Azure.Search.Documents.Indexes.Models.SearchIndexerDataSourceType MySql { get { throw null; } } public static Azure.Search.Documents.Indexes.Models.SearchIndexerDataSourceType OneLake { get { throw null; } } + public static Azure.Search.Documents.Indexes.Models.SearchIndexerDataSourceType SharePoint { get { throw null; } } public bool Equals(Azure.Search.Documents.Indexes.Models.SearchIndexerDataSourceType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } @@ -3977,6 +3926,7 @@ internal SearchIndexerStatus() { } public Azure.Search.Documents.Indexes.Models.IndexerExecutionResult LastResult { get { throw null; } } public Azure.Search.Documents.Indexes.Models.SearchIndexerLimits Limits { get { throw null; } } public string Name { get { throw null; } } + public Azure.Search.Documents.Indexes.Models.IndexerRuntime Runtime { get { throw null; } } public Azure.Search.Documents.Indexes.Models.IndexerStatus Status { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Search.Documents.Indexes.Models.SearchIndexerStatus System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -4000,6 +3950,17 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class SearchIndexFieldReference : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public SearchIndexFieldReference(string name) { } + public string Name { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.SearchIndexFieldReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.SearchIndexFieldReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class SearchIndexKnowledgeSource : Azure.Search.Documents.Indexes.Models.KnowledgeSource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public SearchIndexKnowledgeSource(string name, Azure.Search.Documents.Indexes.Models.SearchIndexKnowledgeSourceParameters searchIndexParameters) : base (default(string)) { } @@ -4014,8 +3975,10 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public partial class SearchIndexKnowledgeSourceParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public SearchIndexKnowledgeSourceParameters(string searchIndexName) { } + public System.Collections.Generic.IList SearchFields { get { throw null; } } public string SearchIndexName { get { throw null; } set { } } - public string SourceDataSelect { get { throw null; } set { } } + public string SemanticConfigurationName { get { throw null; } set { } } + public System.Collections.Generic.IList SourceDataFields { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Search.Documents.Indexes.Models.SearchIndexKnowledgeSourceParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -4089,6 +4052,7 @@ public partial class SearchServiceLimits : System.ClientModel.Primitives.IJsonMo internal SearchServiceLimits() { } public int? MaxComplexCollectionFieldsPerIndex { get { throw null; } } public int? MaxComplexObjectsInCollectionsPerDocument { get { throw null; } } + public long? MaxCumulativeIndexerRuntimeSeconds { get { throw null; } } public int? MaxFieldNestingDepthPerIndex { get { throw null; } } public int? MaxFieldsPerIndex { get { throw null; } } public long? MaxStoragePerIndexInBytes { get { throw null; } } @@ -4103,6 +4067,7 @@ public partial class SearchServiceStatistics : System.ClientModel.Primitives.IJs { internal SearchServiceStatistics() { } public Azure.Search.Documents.Indexes.Models.SearchServiceCounters Counters { get { throw null; } } + public Azure.Search.Documents.Indexes.Models.ServiceIndexersRuntime IndexersRuntime { get { throw null; } } public Azure.Search.Documents.Indexes.Models.SearchServiceLimits Limits { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Search.Documents.Indexes.Models.SearchServiceStatistics System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -4242,6 +4207,20 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public static bool operator !=(Azure.Search.Documents.Indexes.Models.SentimentSkillLanguage left, Azure.Search.Documents.Indexes.Models.SentimentSkillLanguage right) { throw null; } public override string ToString() { throw null; } } + public partial class ServiceIndexersRuntime : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ServiceIndexersRuntime() { } + public System.DateTimeOffset BeginningTime { get { throw null; } } + public System.DateTimeOffset EndingTime { get { throw null; } } + public long? RemainingSeconds { get { throw null; } } + public long UsedSeconds { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.ServiceIndexersRuntime System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.ServiceIndexersRuntime System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class ShaperSkill : Azure.Search.Documents.Indexes.Models.SearchIndexerSkill, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public ShaperSkill(System.Collections.Generic.IEnumerable inputs, System.Collections.Generic.IEnumerable outputs) { } @@ -4589,6 +4568,20 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class SynchronizationState : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal SynchronizationState() { } + public int ItemsSkipped { get { throw null; } } + public int ItemsUpdatesFailed { get { throw null; } } + public int ItemsUpdatesProcessed { get { throw null; } } + public System.DateTimeOffset StartTime { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.SynchronizationState System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.SynchronizationState System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class SynonymMap : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public SynonymMap(string name, System.IO.TextReader reader) { } @@ -5100,6 +5093,52 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class WebKnowledgeSource : Azure.Search.Documents.Indexes.Models.KnowledgeSource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public WebKnowledgeSource(string name) : base (default(string)) { } + public Azure.Search.Documents.Indexes.Models.WebKnowledgeSourceParameters WebParameters { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.WebKnowledgeSource System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.WebKnowledgeSource System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class WebKnowledgeSourceDomain : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public WebKnowledgeSourceDomain(string address) { } + public string Address { get { throw null; } set { } } + public bool? IncludeSubpages { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.WebKnowledgeSourceDomain System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.WebKnowledgeSourceDomain System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class WebKnowledgeSourceDomains : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public WebKnowledgeSourceDomains() { } + public System.Collections.Generic.IList AllowedDomains { get { throw null; } } + public System.Collections.Generic.IList BlockedDomains { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.WebKnowledgeSourceDomains System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.WebKnowledgeSourceDomains System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class WebKnowledgeSourceParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public WebKnowledgeSourceParameters() { } + public Azure.Search.Documents.Indexes.Models.WebKnowledgeSourceDomains Domains { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.WebKnowledgeSourceParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.WebKnowledgeSourceParameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class WordDelimiterTokenFilter : Azure.Search.Documents.Indexes.Models.TokenFilter, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public WordDelimiterTokenFilter(string name) { } @@ -5121,6 +5160,642 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } +namespace Azure.Search.Documents.KnowledgeBases +{ + public partial class KnowledgeBaseRetrievalClient + { + protected KnowledgeBaseRetrievalClient() { } + public KnowledgeBaseRetrievalClient(System.Uri endpoint, string agentName, Azure.AzureKeyCredential credential) { } + public KnowledgeBaseRetrievalClient(System.Uri endpoint, string agentName, Azure.AzureKeyCredential credential, Azure.Search.Documents.SearchClientOptions options) { } + public KnowledgeBaseRetrievalClient(System.Uri endpoint, string agentName, Azure.Core.TokenCredential tokenCredential) { } + public KnowledgeBaseRetrievalClient(System.Uri endpoint, string agentName, Azure.Core.TokenCredential tokenCredential, Azure.Search.Documents.SearchClientOptions options) { } + public virtual string AgentName { get { throw null; } } + public virtual System.Uri Endpoint { get { throw null; } } + public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } + public virtual Azure.Response Retrieve(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalRequest retrievalRequest, string xMsQuerySourceAuthorization = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RetrieveAsync(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalRequest retrievalRequest, string xMsQuerySourceAuthorization = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } +} +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class AzureBlobKnowledgeSourceParams : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeSourceParams, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AzureBlobKnowledgeSourceParams(string knowledgeSourceName) : base (default(string)) { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.AzureBlobKnowledgeSourceParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.AzureBlobKnowledgeSourceParams System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class IndexedOneLakeKnowledgeSourceParams : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeSourceParams, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public IndexedOneLakeKnowledgeSourceParams(string knowledgeSourceName) : base (default(string)) { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.IndexedOneLakeKnowledgeSourceParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.IndexedOneLakeKnowledgeSourceParams System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class IndexedSharePointKnowledgeSourceParams : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeSourceParams, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public IndexedSharePointKnowledgeSourceParams(string knowledgeSourceName) : base (default(string)) { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.IndexedSharePointKnowledgeSourceParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.IndexedSharePointKnowledgeSourceParams System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public abstract partial class KnowledgeBaseActivityRecord : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + protected KnowledgeBaseActivityRecord(int id) { } + public int? ElapsedMs { get { throw null; } } + public Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail Error { get { throw null; } } + public int Id { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseAgenticReasoningActivityRecord : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseAgenticReasoningActivityRecord() : base (default(int)) { } + public int? ReasoningTokens { get { throw null; } } + public Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffort RetrievalReasoningEffort { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAgenticReasoningActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAgenticReasoningActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseAzureBlobActivityArguments : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseAzureBlobActivityArguments() { } + public string Search { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAzureBlobActivityArguments System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAzureBlobActivityArguments System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseAzureBlobActivityRecord : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseAzureBlobActivityRecord() { } + public Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAzureBlobActivityArguments AzureBlobArguments { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAzureBlobActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAzureBlobActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseAzureBlobReference : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseAzureBlobReference() : base (default(string), default(int)) { } + public string BlobUrl { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAzureBlobReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAzureBlobReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseErrorAdditionalInfo : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseErrorAdditionalInfo() { } + public object Info { get { throw null; } } + public string Type { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorAdditionalInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorAdditionalInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseErrorDetail : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseErrorDetail() { } + public System.Collections.Generic.IReadOnlyList AdditionalInfo { get { throw null; } } + public string Code { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Details { get { throw null; } } + public string Message { get { throw null; } } + public string Target { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseIndexedOneLakeActivityArguments : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseIndexedOneLakeActivityArguments() { } + public string Search { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedOneLakeActivityArguments System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedOneLakeActivityArguments System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseIndexedOneLakeActivityRecord : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseIndexedOneLakeActivityRecord() { } + public Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedOneLakeActivityArguments IndexedOneLakeArguments { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedOneLakeActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedOneLakeActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseIndexedOneLakeReference : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseIndexedOneLakeReference() : base (default(string), default(int)) { } + public string DocUrl { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedOneLakeReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedOneLakeReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseIndexedSharePointActivityArguments : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseIndexedSharePointActivityArguments() { } + public string Search { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedSharePointActivityArguments System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedSharePointActivityArguments System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseIndexedSharePointActivityRecord : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseIndexedSharePointActivityRecord() { } + public Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedSharePointActivityArguments IndexedSharePointArguments { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedSharePointActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedSharePointActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseIndexedSharePointReference : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseIndexedSharePointReference() : base (default(string), default(int)) { } + public string DocUrl { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedSharePointReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedSharePointReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseMessage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public KnowledgeBaseMessage(System.Collections.Generic.IEnumerable content) { } + public System.Collections.Generic.IList Content { get { throw null; } } + public string Role { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public abstract partial class KnowledgeBaseMessageContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + protected KnowledgeBaseMessageContent() { } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct KnowledgeBaseMessageContentType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public KnowledgeBaseMessageContentType(string value) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContentType Image { get { throw null; } } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContentType Text { get { throw null; } } + public bool Equals(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContentType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContentType left, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContentType right) { throw null; } + public static implicit operator Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContentType (string value) { throw null; } + public static bool operator !=(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContentType left, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContentType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class KnowledgeBaseMessageImageContent : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContent, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public KnowledgeBaseMessageImageContent(Azure.Search.Documents.Models.KnowledgeBaseMessageImageContentImage image) { } + public Azure.Search.Documents.Models.KnowledgeBaseMessageImageContentImage Image { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageImageContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageImageContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseMessageTextContent : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContent, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public KnowledgeBaseMessageTextContent(string text) { } + public string Text { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageTextContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageTextContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseModelAnswerSynthesisActivityRecord : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseModelAnswerSynthesisActivityRecord() : base (default(int)) { } + public int? InputTokens { get { throw null; } } + public int? OutputTokens { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseModelAnswerSynthesisActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseModelAnswerSynthesisActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseModelQueryPlanningActivityRecord : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseModelQueryPlanningActivityRecord() : base (default(int)) { } + public int? InputTokens { get { throw null; } } + public int? OutputTokens { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseModelQueryPlanningActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseModelQueryPlanningActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public abstract partial class KnowledgeBaseReference : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + protected KnowledgeBaseReference(string id, int activitySource) { } + public int ActivitySource { get { throw null; } } + public string Id { get { throw null; } } + public float? RerankerScore { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary SourceData { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseRemoteSharePointActivityArguments : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseRemoteSharePointActivityArguments() { } + public string FilterExpressionAddOn { get { throw null; } } + public string Search { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRemoteSharePointActivityArguments System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRemoteSharePointActivityArguments System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseRemoteSharePointActivityRecord : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseRemoteSharePointActivityRecord() { } + public Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRemoteSharePointActivityArguments RemoteSharePointArguments { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRemoteSharePointActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRemoteSharePointActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseRemoteSharePointReference : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseRemoteSharePointReference() : base (default(string), default(int)) { } + public Azure.Search.Documents.KnowledgeBases.Models.SharePointSensitivityLabelInfo SearchSensitivityLabelInfo { get { throw null; } } + public System.Uri WebUrl { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRemoteSharePointReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRemoteSharePointReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseRetrievalActivityRecord : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseRetrievalActivityRecord() : base (default(int)) { } + public int? Count { get { throw null; } } + public string KnowledgeSourceName { get { throw null; } } + public System.DateTimeOffset? QueryTime { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseRetrievalRequest : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public KnowledgeBaseRetrievalRequest() { } + public bool? IncludeActivity { get { throw null; } set { } } + public System.Collections.Generic.IList Intents { get { throw null; } } + public System.Collections.Generic.IList KnowledgeSourceParams { get { throw null; } } + public int? MaxOutputSize { get { throw null; } set { } } + public int? MaxRuntimeInSeconds { get { throw null; } set { } } + public System.Collections.Generic.IList Messages { get { throw null; } } + public Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode? OutputMode { get { throw null; } set { } } + public Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffort RetrievalReasoningEffort { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalRequest System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalRequest System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseRetrievalResponse : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseRetrievalResponse() { } + public System.Collections.Generic.IReadOnlyList Activity { get { throw null; } } + public System.Collections.Generic.IReadOnlyList References { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Response { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalResponse System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalResponse System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseSearchIndexActivityArguments : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseSearchIndexActivityArguments() { } + public string Filter { get { throw null; } } + public string Search { get { throw null; } } + public System.Collections.Generic.IReadOnlyList SearchFields { get { throw null; } } + public string SemanticConfigurationName { get { throw null; } } + public System.Collections.Generic.IReadOnlyList SourceDataFields { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseSearchIndexActivityArguments System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseSearchIndexActivityArguments System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseSearchIndexActivityRecord : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseSearchIndexActivityRecord() { } + public Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseSearchIndexActivityArguments SearchIndexArguments { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseSearchIndexActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseSearchIndexActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseSearchIndexReference : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseSearchIndexReference() : base (default(string), default(int)) { } + public string DocKey { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseSearchIndexReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseSearchIndexReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseWebActivityArguments : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseWebActivityArguments() { } + public int? Count { get { throw null; } } + public string Freshness { get { throw null; } } + public string Language { get { throw null; } } + public string Market { get { throw null; } } + public string Search { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseWebActivityArguments System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseWebActivityArguments System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseWebActivityRecord : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseWebActivityRecord() { } + public Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseWebActivityArguments WebArguments { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseWebActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseWebActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseWebReference : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseWebReference() : base (default(string), default(int)) { } + public string Title { get { throw null; } } + public System.Uri Url { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseWebReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseWebReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public abstract partial class KnowledgeRetrievalIntent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + protected KnowledgeRetrievalIntent() { } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalIntent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalIntent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct KnowledgeRetrievalIntentType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public KnowledgeRetrievalIntentType(string value) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalIntentType Semantic { get { throw null; } } + public bool Equals(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalIntentType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalIntentType left, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalIntentType right) { throw null; } + public static implicit operator Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalIntentType (string value) { throw null; } + public static bool operator !=(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalIntentType left, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalIntentType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class KnowledgeRetrievalLowReasoningEffort : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffort, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public KnowledgeRetrievalLowReasoningEffort() { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalLowReasoningEffort System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalLowReasoningEffort System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeRetrievalMediumReasoningEffort : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffort, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public KnowledgeRetrievalMediumReasoningEffort() { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalMediumReasoningEffort System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalMediumReasoningEffort System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeRetrievalMinimalReasoningEffort : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffort, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public KnowledgeRetrievalMinimalReasoningEffort() { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalMinimalReasoningEffort System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalMinimalReasoningEffort System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct KnowledgeRetrievalOutputMode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public KnowledgeRetrievalOutputMode(string value) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode AnswerSynthesis { get { throw null; } } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode ExtractiveData { get { throw null; } } + public bool Equals(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode left, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode right) { throw null; } + public static implicit operator Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode (string value) { throw null; } + public static bool operator !=(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode left, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode right) { throw null; } + public override string ToString() { throw null; } + } + public abstract partial class KnowledgeRetrievalReasoningEffort : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + protected KnowledgeRetrievalReasoningEffort() { } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffort System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffort System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct KnowledgeRetrievalReasoningEffortKind : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public KnowledgeRetrievalReasoningEffortKind(string value) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffortKind Low { get { throw null; } } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffortKind Medium { get { throw null; } } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffortKind Minimal { get { throw null; } } + public bool Equals(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffortKind other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffortKind left, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffortKind right) { throw null; } + public static implicit operator Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffortKind (string value) { throw null; } + public static bool operator !=(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffortKind left, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffortKind right) { throw null; } + public override string ToString() { throw null; } + } + public partial class KnowledgeRetrievalSemanticIntent : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalIntent, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public KnowledgeRetrievalSemanticIntent(string search) { } + public string Search { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalSemanticIntent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalSemanticIntent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public abstract partial class KnowledgeSourceParams : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + protected KnowledgeSourceParams(string knowledgeSourceName) { } + public bool? AlwaysQuerySource { get { throw null; } set { } } + public bool? IncludeReferences { get { throw null; } set { } } + public bool? IncludeReferenceSourceData { get { throw null; } set { } } + public string KnowledgeSourceName { get { throw null; } } + public float? RerankerThreshold { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeSourceParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeSourceParams System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class RemoteSharePointKnowledgeSourceParams : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeSourceParams, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RemoteSharePointKnowledgeSourceParams(string knowledgeSourceName) : base (default(string)) { } + public string FilterExpressionAddOn { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.RemoteSharePointKnowledgeSourceParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.RemoteSharePointKnowledgeSourceParams System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class SearchIndexKnowledgeSourceParams : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeSourceParams, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public SearchIndexKnowledgeSourceParams(string knowledgeSourceName) : base (default(string)) { } + public string FilterAddOn { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.SearchIndexKnowledgeSourceParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.SearchIndexKnowledgeSourceParams System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class SharePointSensitivityLabelInfo : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal SharePointSensitivityLabelInfo() { } + public string Color { get { throw null; } } + public string DisplayName { get { throw null; } } + public bool? IsEncrypted { get { throw null; } } + public int? Priority { get { throw null; } } + public string SensitivityLabelId { get { throw null; } } + public string Tooltip { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.SharePointSensitivityLabelInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.SharePointSensitivityLabelInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class WebKnowledgeSourceParams : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeSourceParams, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public WebKnowledgeSourceParams(string knowledgeSourceName) : base (default(string)) { } + public int? Count { get { throw null; } set { } } + public string Freshness { get { throw null; } set { } } + public string Language { get { throw null; } set { } } + public string Market { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.WebKnowledgeSourceParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.WebKnowledgeSourceParams System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } +} namespace Azure.Search.Documents.Models { public partial class AutocompleteItem : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel @@ -5213,12 +5888,16 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class FacetResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel, System.Collections.Generic.IEnumerable>, System.Collections.Generic.IReadOnlyCollection>, System.Collections.Generic.IReadOnlyDictionary, System.Collections.IEnumerable { internal FacetResult() { } + public double? Avg { get { throw null; } } + public long? Cardinality { get { throw null; } } public long? Count { get { throw null; } } public System.Collections.Generic.IReadOnlyDictionary> Facets { get { throw null; } } public Azure.Search.Documents.Models.FacetType FacetType { get { throw null; } } public object From { get { throw null; } } public object this[string key] { get { throw null; } } public System.Collections.Generic.IEnumerable Keys { get { throw null; } } + public double? Max { get { throw null; } } + public double? Min { get { throw null; } } public double? Sum { get { throw null; } } int System.Collections.Generic.IReadOnlyCollection>.Count { get { throw null; } } public object To { get { throw null; } } @@ -5335,6 +6014,25 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct IndexedSharePointContainerName : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public IndexedSharePointContainerName(string value) { throw null; } + public static Azure.Search.Documents.Models.IndexedSharePointContainerName AllSiteLibraries { get { throw null; } } + public static Azure.Search.Documents.Models.IndexedSharePointContainerName DefaultSiteLibrary { get { throw null; } } + public static Azure.Search.Documents.Models.IndexedSharePointContainerName UseQuery { get { throw null; } } + public bool Equals(Azure.Search.Documents.Models.IndexedSharePointContainerName other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Search.Documents.Models.IndexedSharePointContainerName left, Azure.Search.Documents.Models.IndexedSharePointContainerName right) { throw null; } + public static implicit operator Azure.Search.Documents.Models.IndexedSharePointContainerName (string value) { throw null; } + public static bool operator !=(Azure.Search.Documents.Models.IndexedSharePointContainerName left, Azure.Search.Documents.Models.IndexedSharePointContainerName right) { throw null; } + public override string ToString() { throw null; } + } public partial class IndexerResyncBody : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public IndexerResyncBody() { } @@ -5360,33 +6058,71 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class KnowledgeAgentMessageImageContentImage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class KnowledgeBaseMessageImageContentImage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public KnowledgeAgentMessageImageContentImage(System.Uri url) { } + public KnowledgeBaseMessageImageContentImage(System.Uri url) { } public System.Uri Url { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Models.KnowledgeAgentMessageImageContentImage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Models.KnowledgeAgentMessageImageContentImage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Search.Documents.Models.KnowledgeBaseMessageImageContentImage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Models.KnowledgeBaseMessageImageContentImage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct KnowledgeAgentOutputConfigurationModality : System.IEquatable + public readonly partial struct KnowledgeSourceContentExtractionMode : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public KnowledgeAgentOutputConfigurationModality(string value) { throw null; } - public static Azure.Search.Documents.Models.KnowledgeAgentOutputConfigurationModality AnswerSynthesis { get { throw null; } } - public static Azure.Search.Documents.Models.KnowledgeAgentOutputConfigurationModality ExtractiveData { get { throw null; } } - public bool Equals(Azure.Search.Documents.Models.KnowledgeAgentOutputConfigurationModality other) { throw null; } + public KnowledgeSourceContentExtractionMode(string value) { throw null; } + public static Azure.Search.Documents.Models.KnowledgeSourceContentExtractionMode Minimal { get { throw null; } } + public static Azure.Search.Documents.Models.KnowledgeSourceContentExtractionMode Standard { get { throw null; } } + public bool Equals(Azure.Search.Documents.Models.KnowledgeSourceContentExtractionMode other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Search.Documents.Models.KnowledgeAgentOutputConfigurationModality left, Azure.Search.Documents.Models.KnowledgeAgentOutputConfigurationModality right) { throw null; } - public static implicit operator Azure.Search.Documents.Models.KnowledgeAgentOutputConfigurationModality (string value) { throw null; } - public static bool operator !=(Azure.Search.Documents.Models.KnowledgeAgentOutputConfigurationModality left, Azure.Search.Documents.Models.KnowledgeAgentOutputConfigurationModality right) { throw null; } + public static bool operator ==(Azure.Search.Documents.Models.KnowledgeSourceContentExtractionMode left, Azure.Search.Documents.Models.KnowledgeSourceContentExtractionMode right) { throw null; } + public static implicit operator Azure.Search.Documents.Models.KnowledgeSourceContentExtractionMode (string value) { throw null; } + public static bool operator !=(Azure.Search.Documents.Models.KnowledgeSourceContentExtractionMode left, Azure.Search.Documents.Models.KnowledgeSourceContentExtractionMode right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct KnowledgeSourceIngestionPermissionOption : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public KnowledgeSourceIngestionPermissionOption(string value) { throw null; } + public static Azure.Search.Documents.Models.KnowledgeSourceIngestionPermissionOption GroupIds { get { throw null; } } + public static Azure.Search.Documents.Models.KnowledgeSourceIngestionPermissionOption RbacScope { get { throw null; } } + public static Azure.Search.Documents.Models.KnowledgeSourceIngestionPermissionOption UserIds { get { throw null; } } + public bool Equals(Azure.Search.Documents.Models.KnowledgeSourceIngestionPermissionOption other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Search.Documents.Models.KnowledgeSourceIngestionPermissionOption left, Azure.Search.Documents.Models.KnowledgeSourceIngestionPermissionOption right) { throw null; } + public static implicit operator Azure.Search.Documents.Models.KnowledgeSourceIngestionPermissionOption (string value) { throw null; } + public static bool operator !=(Azure.Search.Documents.Models.KnowledgeSourceIngestionPermissionOption left, Azure.Search.Documents.Models.KnowledgeSourceIngestionPermissionOption right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct KnowledgeSourceSynchronizationStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public KnowledgeSourceSynchronizationStatus(string value) { throw null; } + public static Azure.Search.Documents.Models.KnowledgeSourceSynchronizationStatus Active { get { throw null; } } + public static Azure.Search.Documents.Models.KnowledgeSourceSynchronizationStatus Creating { get { throw null; } } + public static Azure.Search.Documents.Models.KnowledgeSourceSynchronizationStatus Deleting { get { throw null; } } + public bool Equals(Azure.Search.Documents.Models.KnowledgeSourceSynchronizationStatus other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Search.Documents.Models.KnowledgeSourceSynchronizationStatus left, Azure.Search.Documents.Models.KnowledgeSourceSynchronizationStatus right) { throw null; } + public static implicit operator Azure.Search.Documents.Models.KnowledgeSourceSynchronizationStatus (string value) { throw null; } + public static bool operator !=(Azure.Search.Documents.Models.KnowledgeSourceSynchronizationStatus left, Azure.Search.Documents.Models.KnowledgeSourceSynchronizationStatus right) { throw null; } public override string ToString() { throw null; } } public partial class QueryAnswer @@ -5799,42 +6535,63 @@ public static partial class SearchModelFactory [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Search.Documents.Models.AutocompleteResults AutocompleteResults(double? coverage, System.Collections.Generic.IReadOnlyList results) { throw null; } public static Azure.Search.Documents.Indexes.Models.KnowledgeSource AzureBlobKnowledgeSource(string name = null, string description = null, string kind = null, string eTag = null, Azure.Search.Documents.Indexes.Models.SearchResourceEncryptionKey encryptionKey = null, System.Collections.Generic.IDictionary serializedAdditionalRawData = null, Azure.Search.Documents.Indexes.Models.AzureBlobKnowledgeSourceParameters azureBlobParameters = null) { throw null; } - public static Azure.Search.Documents.Indexes.Models.AzureBlobKnowledgeSourceParameters AzureBlobKnowledgeSourceParameters(Azure.Search.Documents.Indexes.Models.SearchIndexerDataIdentity identity = null, string connectionString = null, string containerName = null, string folderPath = null, Azure.Search.Documents.Indexes.Models.VectorSearchVectorizer embeddingModel = null, Azure.Search.Documents.Indexes.Models.KnowledgeAgentModel chatCompletionModel = null, Azure.Search.Documents.Indexes.Models.IndexingSchedule ingestionSchedule = null, System.Collections.Generic.IReadOnlyDictionary createdResources = null, bool? disableImageVerbalization = default(bool?)) { throw null; } + public static Azure.Search.Documents.Indexes.Models.AzureBlobKnowledgeSourceParameters AzureBlobKnowledgeSourceParameters(string connectionString = null, string containerName = null, string folderPath = null, bool? isAdlsGen2 = default(bool?), Azure.Search.Documents.Indexes.Models.KnowledgeSourceIngestionParameters ingestionParameters = null, System.Collections.Generic.IReadOnlyDictionary createdResources = null) { throw null; } public static Azure.Search.Documents.Indexes.Models.CharFilter CharFilter(string oDataType, string name) { throw null; } public static Azure.Search.Documents.Indexes.Models.CognitiveServicesAccount CognitiveServicesAccount(string oDataType, string description) { throw null; } + public static Azure.Search.Documents.Indexes.Models.CompletedSynchronizationState CompletedSynchronizationState(System.DateTimeOffset startTime = default(System.DateTimeOffset), System.DateTimeOffset endTime = default(System.DateTimeOffset), int itemsUpdatesProcessed = 0, int itemsUpdatesFailed = 0, int itemsSkipped = 0) { throw null; } public static Azure.Search.Documents.Indexes.Models.DataChangeDetectionPolicy DataChangeDetectionPolicy(string oDataType) { throw null; } public static Azure.Search.Documents.Indexes.Models.DataDeletionDetectionPolicy DataDeletionDetectionPolicy(string oDataType) { throw null; } public static Azure.Search.Documents.Models.DebugInfo DebugInfo(Azure.Search.Documents.Models.QueryRewritesDebugInfo queryRewrites = null) { throw null; } public static Azure.Search.Documents.Models.DocumentDebugInfo DocumentDebugInfo(Azure.Search.Documents.Models.SemanticDebugInfo semantic = null, Azure.Search.Documents.Models.VectorsDebugInfo vectors = null, System.Collections.Generic.IReadOnlyDictionary> innerHits = null) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Search.Documents.Models.DocumentDebugInfo DocumentDebugInfo(Azure.Search.Documents.Models.VectorsDebugInfo vectors = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Search.Documents.Models.FacetResult FacetResult(long? count = default(long?), System.Collections.Generic.IReadOnlyDictionary additionalProperties = null) { throw null; } - public static Azure.Search.Documents.Models.FacetResult FacetResult(long? count = default(long?), double? sum = default(double?), System.Collections.Generic.IReadOnlyDictionary> facets = null, System.Collections.Generic.IReadOnlyDictionary additionalProperties = null) { throw null; } + public static Azure.Search.Documents.Models.FacetResult FacetResult(long? count = default(long?), double? avg = default(double?), double? min = default(double?), double? max = default(double?), double? sum = default(double?), long? cardinality = default(long?), System.Collections.Generic.IReadOnlyDictionary> facets = null, System.Collections.Generic.IReadOnlyDictionary additionalProperties = null) { throw null; } public static Azure.Search.Documents.Models.IndexDocumentsResult IndexDocumentsResult(System.Collections.Generic.IEnumerable results) { throw null; } + public static Azure.Search.Documents.Indexes.Models.IndexedOneLakeKnowledgeSourceParameters IndexedOneLakeKnowledgeSourceParameters(string fabricWorkspaceId = null, string lakehouseId = null, string targetPath = null, Azure.Search.Documents.Indexes.Models.KnowledgeSourceIngestionParameters ingestionParameters = null, System.Collections.Generic.IReadOnlyDictionary createdResources = null) { throw null; } + public static Azure.Search.Documents.Indexes.Models.IndexedSharePointKnowledgeSourceParameters IndexedSharePointKnowledgeSourceParameters(string connectionString = null, Azure.Search.Documents.Models.IndexedSharePointContainerName containerName = default(Azure.Search.Documents.Models.IndexedSharePointContainerName), string query = null, Azure.Search.Documents.Indexes.Models.KnowledgeSourceIngestionParameters ingestionParameters = null, System.Collections.Generic.IReadOnlyDictionary createdResources = null) { throw null; } public static Azure.Search.Documents.Indexes.Models.IndexerChangeTrackingState IndexerChangeTrackingState(string allDocumentsInitialState, string allDocumentsFinalState, string resetDocumentsInitialState, string resetDocumentsFinalState) { throw null; } public static Azure.Search.Documents.Indexes.Models.IndexerExecutionResult IndexerExecutionResult(Azure.Search.Documents.Indexes.Models.IndexerExecutionStatus status = Azure.Search.Documents.Indexes.Models.IndexerExecutionStatus.TransientFailure, Azure.Search.Documents.Indexes.Models.IndexerExecutionStatusDetail? statusDetail = default(Azure.Search.Documents.Indexes.Models.IndexerExecutionStatusDetail?), Azure.Search.Documents.Indexes.Models.IndexingMode? mode = default(Azure.Search.Documents.Indexes.Models.IndexingMode?), string errorMessage = null, System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable errors = null, System.Collections.Generic.IEnumerable warnings = null, int itemCount = 0, int failedItemCount = 0, string initialTrackingState = null, string finalTrackingState = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Search.Documents.Indexes.Models.IndexerExecutionResult IndexerExecutionResult(Azure.Search.Documents.Indexes.Models.IndexerExecutionStatus status = Azure.Search.Documents.Indexes.Models.IndexerExecutionStatus.TransientFailure, string errorMessage = null, System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable errors = null, System.Collections.Generic.IEnumerable warnings = null, int itemCount = 0, int failedItemCount = 0, string initialTrackingState = null, string finalTrackingState = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Search.Documents.Indexes.Models.IndexerExecutionResult IndexerExecutionResult(Azure.Search.Documents.Indexes.Models.IndexerExecutionStatus status, string errorMessage, System.DateTimeOffset? startTime, System.DateTimeOffset? endTime, System.Collections.Generic.IReadOnlyList errors, System.Collections.Generic.IReadOnlyList warnings, int itemCount, int failedItemCount, string initialTrackingState, string finalTrackingState) { throw null; } + public static Azure.Search.Documents.Indexes.Models.IndexerRuntime IndexerRuntime(long usedSeconds = (long)0, long? remainingSeconds = default(long?), System.DateTimeOffset beginningTime = default(System.DateTimeOffset), System.DateTimeOffset endingTime = default(System.DateTimeOffset)) { throw null; } public static Azure.Search.Documents.Indexes.Models.IndexerState IndexerState(Azure.Search.Documents.Indexes.Models.IndexingMode? mode = default(Azure.Search.Documents.Indexes.Models.IndexingMode?), string allDocumentsInitialChangeTrackingState = null, string allDocumentsFinalChangeTrackingState = null, string resetDocumentsInitialChangeTrackingState = null, string resetDocumentsFinalChangeTrackingState = null, System.Collections.Generic.IEnumerable resetDocumentKeys = null, System.Collections.Generic.IEnumerable resetDataSourceDocumentIds = null) { throw null; } public static Azure.Search.Documents.Indexes.Models.IndexerState IndexerState(Azure.Search.Documents.Indexes.Models.IndexingMode? mode = default(Azure.Search.Documents.Indexes.Models.IndexingMode?), string allDocsInitialTrackingState = null, string allDocsFinalTrackingState = null, string resetDocsInitialTrackingState = null, string resetDocsFinalTrackingState = null, System.Collections.Generic.IEnumerable resetDocumentKeys = null, System.Collections.Generic.IEnumerable resetDataSourceDocumentIds = null, string resyncInitialTrackingState = null, string resyncFinalTrackingState = null) { throw null; } public static Azure.Search.Documents.Models.IndexingResult IndexingResult(string key, string errorMessage, bool succeeded, int status) { throw null; } public static Azure.Search.Documents.Indexes.Models.IndexStatisticsSummary IndexStatisticsSummary(string name = null, long documentCount = (long)0, long storageSize = (long)0, long vectorIndexSize = (long)0) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentActivityRecord KnowledgeAgentActivityRecord(int id = 0, string type = null, int? elapsedMs = default(int?)) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentAzureBlobActivityArguments KnowledgeAgentAzureBlobActivityArguments(string search = null) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentAzureBlobActivityRecord KnowledgeAgentAzureBlobActivityRecord(int id = 0, int? elapsedMs = default(int?), string knowledgeSourceName = null, System.DateTimeOffset? queryTime = default(System.DateTimeOffset?), int? count = default(int?), Azure.Search.Documents.Agents.Models.KnowledgeAgentAzureBlobActivityArguments azureBlobArguments = null) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentAzureBlobReference KnowledgeAgentAzureBlobReference(string id = null, int activitySource = 0, System.Collections.Generic.IReadOnlyDictionary sourceData = null, float? rerankerScore = default(float?), string blobUrl = null) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentModelAnswerSynthesisActivityRecord KnowledgeAgentModelAnswerSynthesisActivityRecord(int id = 0, int? elapsedMs = default(int?), int? inputTokens = default(int?), int? outputTokens = default(int?)) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentModelQueryPlanningActivityRecord KnowledgeAgentModelQueryPlanningActivityRecord(int id = 0, int? elapsedMs = default(int?), int? inputTokens = default(int?), int? outputTokens = default(int?)) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentReference KnowledgeAgentReference(string type = null, string id = null, int activitySource = 0, System.Collections.Generic.IReadOnlyDictionary sourceData = null, float? rerankerScore = default(float?)) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentRetrievalActivityRecord KnowledgeAgentRetrievalActivityRecord(int id = 0, int? elapsedMs = default(int?), string knowledgeSourceName = null, System.DateTimeOffset? queryTime = default(System.DateTimeOffset?), int? count = default(int?)) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentRetrievalResponse KnowledgeAgentRetrievalResponse(System.Collections.Generic.IEnumerable response = null, System.Collections.Generic.IEnumerable activity = null, System.Collections.Generic.IEnumerable references = null) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentSearchIndexActivityArguments KnowledgeAgentSearchIndexActivityArguments(string search = null, string filter = null) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentSearchIndexActivityRecord KnowledgeAgentSearchIndexActivityRecord(int id = 0, int? elapsedMs = default(int?), string knowledgeSourceName = null, System.DateTimeOffset? queryTime = default(System.DateTimeOffset?), int? count = default(int?), Azure.Search.Documents.Agents.Models.KnowledgeAgentSearchIndexActivityArguments searchIndexArguments = null) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentSearchIndexReference KnowledgeAgentSearchIndexReference(string id = null, int activitySource = 0, System.Collections.Generic.IReadOnlyDictionary sourceData = null, float? rerankerScore = default(float?), string docKey = null) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentSemanticRerankerActivityRecord KnowledgeAgentSemanticRerankerActivityRecord(int id = 0, int? elapsedMs = default(int?), int? inputTokens = default(int?)) { throw null; } + public static Azure.Search.Documents.Indexes.Models.KnowledgeBase KnowledgeBase(string name = null, System.Collections.Generic.IEnumerable knowledgeSources = null, System.Collections.Generic.IEnumerable models = null, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffort retrievalReasoningEffort = null, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode? outputMode = default(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode?), string eTag = null, Azure.Search.Documents.Indexes.Models.SearchResourceEncryptionKey encryptionKey = null, string description = null, string retrievalInstructions = null, string answerInstructions = null, System.Collections.Generic.IDictionary serializedAdditionalRawData = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseActivityRecord KnowledgeBaseActivityRecord(int id = 0, string type = null, int? elapsedMs = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail error = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAgenticReasoningActivityRecord KnowledgeBaseAgenticReasoningActivityRecord(int id = 0, int? elapsedMs = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail error = null, int? reasoningTokens = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffort retrievalReasoningEffort = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAzureBlobActivityArguments KnowledgeBaseAzureBlobActivityArguments(string search = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAzureBlobActivityRecord KnowledgeBaseAzureBlobActivityRecord(int id = 0, int? elapsedMs = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail error = null, string knowledgeSourceName = null, System.DateTimeOffset? queryTime = default(System.DateTimeOffset?), int? count = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAzureBlobActivityArguments azureBlobArguments = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAzureBlobReference KnowledgeBaseAzureBlobReference(string id = null, int activitySource = 0, System.Collections.Generic.IReadOnlyDictionary sourceData = null, float? rerankerScore = default(float?), string blobUrl = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorAdditionalInfo KnowledgeBaseErrorAdditionalInfo(string type = null, object info = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail KnowledgeBaseErrorDetail(string code = null, string message = null, string target = null, System.Collections.Generic.IEnumerable details = null, System.Collections.Generic.IEnumerable additionalInfo = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedOneLakeActivityArguments KnowledgeBaseIndexedOneLakeActivityArguments(string search = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedOneLakeActivityRecord KnowledgeBaseIndexedOneLakeActivityRecord(int id = 0, int? elapsedMs = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail error = null, string knowledgeSourceName = null, System.DateTimeOffset? queryTime = default(System.DateTimeOffset?), int? count = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedOneLakeActivityArguments indexedOneLakeArguments = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedOneLakeReference KnowledgeBaseIndexedOneLakeReference(string id = null, int activitySource = 0, System.Collections.Generic.IReadOnlyDictionary sourceData = null, float? rerankerScore = default(float?), string docUrl = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedSharePointActivityArguments KnowledgeBaseIndexedSharePointActivityArguments(string search = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedSharePointActivityRecord KnowledgeBaseIndexedSharePointActivityRecord(int id = 0, int? elapsedMs = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail error = null, string knowledgeSourceName = null, System.DateTimeOffset? queryTime = default(System.DateTimeOffset?), int? count = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedSharePointActivityArguments indexedSharePointArguments = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedSharePointReference KnowledgeBaseIndexedSharePointReference(string id = null, int activitySource = 0, System.Collections.Generic.IReadOnlyDictionary sourceData = null, float? rerankerScore = default(float?), string docUrl = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseModelAnswerSynthesisActivityRecord KnowledgeBaseModelAnswerSynthesisActivityRecord(int id = 0, int? elapsedMs = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail error = null, int? inputTokens = default(int?), int? outputTokens = default(int?)) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseModelQueryPlanningActivityRecord KnowledgeBaseModelQueryPlanningActivityRecord(int id = 0, int? elapsedMs = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail error = null, int? inputTokens = default(int?), int? outputTokens = default(int?)) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference KnowledgeBaseReference(string type = null, string id = null, int activitySource = 0, System.Collections.Generic.IReadOnlyDictionary sourceData = null, float? rerankerScore = default(float?)) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRemoteSharePointActivityArguments KnowledgeBaseRemoteSharePointActivityArguments(string search = null, string filterExpressionAddOn = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRemoteSharePointActivityRecord KnowledgeBaseRemoteSharePointActivityRecord(int id = 0, int? elapsedMs = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail error = null, string knowledgeSourceName = null, System.DateTimeOffset? queryTime = default(System.DateTimeOffset?), int? count = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRemoteSharePointActivityArguments remoteSharePointArguments = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRemoteSharePointReference KnowledgeBaseRemoteSharePointReference(string id = null, int activitySource = 0, System.Collections.Generic.IReadOnlyDictionary sourceData = null, float? rerankerScore = default(float?), System.Uri webUrl = null, Azure.Search.Documents.KnowledgeBases.Models.SharePointSensitivityLabelInfo searchSensitivityLabelInfo = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalActivityRecord KnowledgeBaseRetrievalActivityRecord(int id = 0, int? elapsedMs = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail error = null, string knowledgeSourceName = null, System.DateTimeOffset? queryTime = default(System.DateTimeOffset?), int? count = default(int?)) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalResponse KnowledgeBaseRetrievalResponse(System.Collections.Generic.IEnumerable response = null, System.Collections.Generic.IEnumerable activity = null, System.Collections.Generic.IEnumerable references = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseSearchIndexActivityArguments KnowledgeBaseSearchIndexActivityArguments(string search = null, string filter = null, System.Collections.Generic.IEnumerable sourceDataFields = null, System.Collections.Generic.IEnumerable searchFields = null, string semanticConfigurationName = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseSearchIndexActivityRecord KnowledgeBaseSearchIndexActivityRecord(int id = 0, int? elapsedMs = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail error = null, string knowledgeSourceName = null, System.DateTimeOffset? queryTime = default(System.DateTimeOffset?), int? count = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseSearchIndexActivityArguments searchIndexArguments = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseSearchIndexReference KnowledgeBaseSearchIndexReference(string id = null, int activitySource = 0, System.Collections.Generic.IReadOnlyDictionary sourceData = null, float? rerankerScore = default(float?), string docKey = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseWebActivityArguments KnowledgeBaseWebActivityArguments(string search = null, string language = null, string market = null, int? count = default(int?), string freshness = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseWebActivityRecord KnowledgeBaseWebActivityRecord(int id = 0, int? elapsedMs = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail error = null, string knowledgeSourceName = null, System.DateTimeOffset? queryTime = default(System.DateTimeOffset?), int? count = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseWebActivityArguments webArguments = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseWebReference KnowledgeBaseWebReference(string id = null, int activitySource = 0, System.Collections.Generic.IReadOnlyDictionary sourceData = null, float? rerankerScore = default(float?), System.Uri url = null, string title = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalSemanticIntent KnowledgeRetrievalSemanticIntent(string search = null) { throw null; } + public static Azure.Search.Documents.Indexes.Models.KnowledgeSourceStatistics KnowledgeSourceStatistics(int totalSynchronization = 0, string averageSynchronizationDuration = null, int averageItemsProcessedPerSynchronization = 0) { throw null; } + public static Azure.Search.Documents.Indexes.Models.KnowledgeSourceStatus KnowledgeSourceStatus(Azure.Search.Documents.Models.KnowledgeSourceSynchronizationStatus synchronizationStatus = default(Azure.Search.Documents.Models.KnowledgeSourceSynchronizationStatus), string synchronizationInterval = null, Azure.Search.Documents.Indexes.Models.SynchronizationState currentSynchronizationState = null, Azure.Search.Documents.Indexes.Models.CompletedSynchronizationState lastSynchronizationState = null, Azure.Search.Documents.Indexes.Models.KnowledgeSourceStatistics statistics = null) { throw null; } public static Azure.Search.Documents.Indexes.Models.LexicalAnalyzer LexicalAnalyzer(string oDataType, string name) { throw null; } public static Azure.Search.Documents.Indexes.Models.LexicalTokenizer LexicalTokenizer(string oDataType, string name) { throw null; } public static Azure.Search.Documents.Indexes.Models.ListIndexStatsSummary ListIndexStatsSummary(System.Collections.Generic.IEnumerable indexesStatistics = null) { throw null; } @@ -5863,8 +6620,8 @@ public static partial class SearchModelFactory [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Search.Documents.Indexes.Models.SearchIndexerStatus SearchIndexerStatus(Azure.Search.Documents.Indexes.Models.IndexerStatus status, Azure.Search.Documents.Indexes.Models.IndexerExecutionResult lastResult, System.Collections.Generic.IReadOnlyList executionHistory, Azure.Search.Documents.Indexes.Models.SearchIndexerLimits limits) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.Search.Documents.Indexes.Models.SearchIndexerStatus SearchIndexerStatus(string name = null, Azure.Search.Documents.Indexes.Models.IndexerStatus status = Azure.Search.Documents.Indexes.Models.IndexerStatus.Unknown, Azure.Search.Documents.Indexes.Models.IndexerExecutionResult lastResult = null, System.Collections.Generic.IEnumerable executionHistory = null, Azure.Search.Documents.Indexes.Models.SearchIndexerLimits limits = null) { throw null; } - public static Azure.Search.Documents.Indexes.Models.SearchIndexerStatus SearchIndexerStatus(string name = null, Azure.Search.Documents.Indexes.Models.IndexerStatus status = Azure.Search.Documents.Indexes.Models.IndexerStatus.Unknown, Azure.Search.Documents.Indexes.Models.IndexerExecutionResult lastResult = null, System.Collections.Generic.IEnumerable executionHistory = null, Azure.Search.Documents.Indexes.Models.SearchIndexerLimits limits = null, Azure.Search.Documents.Indexes.Models.IndexerState currentState = null) { throw null; } + public static Azure.Search.Documents.Indexes.Models.SearchIndexerStatus SearchIndexerStatus(string name = null, Azure.Search.Documents.Indexes.Models.IndexerStatus status = Azure.Search.Documents.Indexes.Models.IndexerStatus.Unknown, Azure.Search.Documents.Indexes.Models.IndexerRuntime runtime = null, Azure.Search.Documents.Indexes.Models.IndexerExecutionResult lastResult = null, System.Collections.Generic.IEnumerable executionHistory = null, Azure.Search.Documents.Indexes.Models.SearchIndexerLimits limits = null) { throw null; } + public static Azure.Search.Documents.Indexes.Models.SearchIndexerStatus SearchIndexerStatus(string name = null, Azure.Search.Documents.Indexes.Models.IndexerStatus status = Azure.Search.Documents.Indexes.Models.IndexerStatus.Unknown, Azure.Search.Documents.Indexes.Models.IndexerRuntime runtime = null, Azure.Search.Documents.Indexes.Models.IndexerExecutionResult lastResult = null, System.Collections.Generic.IEnumerable executionHistory = null, Azure.Search.Documents.Indexes.Models.SearchIndexerLimits limits = null, Azure.Search.Documents.Indexes.Models.IndexerState currentState = null) { throw null; } public static Azure.Search.Documents.Indexes.Models.SearchIndexerWarning SearchIndexerWarning(string key, string message, string name, string details, string documentationLink) { throw null; } public static Azure.Search.Documents.Indexes.Models.KnowledgeSource SearchIndexKnowledgeSource(string name = null, string description = null, string kind = null, string eTag = null, Azure.Search.Documents.Indexes.Models.SearchResourceEncryptionKey encryptionKey = null, System.Collections.Generic.IDictionary serializedAdditionalRawData = null, Azure.Search.Documents.Indexes.Models.SearchIndexKnowledgeSourceParameters searchIndexParameters = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -5891,8 +6648,11 @@ public static partial class SearchModelFactory public static Azure.Search.Documents.Indexes.Models.SearchServiceCounters SearchServiceCounters(Azure.Search.Documents.Indexes.Models.SearchResourceCounter aliasCounter = null, Azure.Search.Documents.Indexes.Models.SearchResourceCounter documentCounter = null, Azure.Search.Documents.Indexes.Models.SearchResourceCounter indexCounter = null, Azure.Search.Documents.Indexes.Models.SearchResourceCounter indexerCounter = null, Azure.Search.Documents.Indexes.Models.SearchResourceCounter dataSourceCounter = null, Azure.Search.Documents.Indexes.Models.SearchResourceCounter storageSizeCounter = null, Azure.Search.Documents.Indexes.Models.SearchResourceCounter synonymMapCounter = null, Azure.Search.Documents.Indexes.Models.SearchResourceCounter skillsetCounter = null, Azure.Search.Documents.Indexes.Models.SearchResourceCounter vectorIndexSizeCounter = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Search.Documents.Indexes.Models.SearchServiceLimits SearchServiceLimits(int? maxFieldsPerIndex, int? maxFieldNestingDepthPerIndex, int? maxComplexCollectionFieldsPerIndex, int? maxComplexObjectsInCollectionsPerDocument) { throw null; } - public static Azure.Search.Documents.Indexes.Models.SearchServiceLimits SearchServiceLimits(int? maxFieldsPerIndex = default(int?), int? maxFieldNestingDepthPerIndex = default(int?), int? maxComplexCollectionFieldsPerIndex = default(int?), int? maxComplexObjectsInCollectionsPerDocument = default(int?), long? maxStoragePerIndexInBytes = default(long?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Search.Documents.Indexes.Models.SearchServiceLimits SearchServiceLimits(int? maxFieldsPerIndex, int? maxFieldNestingDepthPerIndex, int? maxComplexCollectionFieldsPerIndex, int? maxComplexObjectsInCollectionsPerDocument, long? maxStoragePerIndexInBytes) { throw null; } + public static Azure.Search.Documents.Indexes.Models.SearchServiceLimits SearchServiceLimits(int? maxFieldsPerIndex = default(int?), int? maxFieldNestingDepthPerIndex = default(int?), int? maxComplexCollectionFieldsPerIndex = default(int?), int? maxComplexObjectsInCollectionsPerDocument = default(int?), long? maxStoragePerIndexInBytes = default(long?), long? maxCumulativeIndexerRuntimeSeconds = default(long?)) { throw null; } public static Azure.Search.Documents.Indexes.Models.SearchServiceStatistics SearchServiceStatistics(Azure.Search.Documents.Indexes.Models.SearchServiceCounters counters, Azure.Search.Documents.Indexes.Models.SearchServiceLimits limits) { throw null; } + public static Azure.Search.Documents.Indexes.Models.SearchServiceStatistics SearchServiceStatistics(Azure.Search.Documents.Indexes.Models.SearchServiceCounters counters = null, Azure.Search.Documents.Indexes.Models.ServiceIndexersRuntime indexersRuntime = null, Azure.Search.Documents.Indexes.Models.SearchServiceLimits limits = null) { throw null; } public static Azure.Search.Documents.Models.SearchSuggestion SearchSuggestion(T document, string text) { throw null; } public static Azure.Search.Documents.Models.SemanticDebugInfo SemanticDebugInfo(Azure.Search.Documents.Models.QueryResultDocumentSemanticField titleField = null, System.Collections.Generic.IEnumerable contentFields = null, System.Collections.Generic.IEnumerable keywordFields = null, Azure.Search.Documents.Models.QueryResultDocumentRerankerInput rerankerInput = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -5901,9 +6661,12 @@ public static partial class SearchModelFactory [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Search.Documents.Models.SemanticSearchResults SemanticSearchResults(System.Collections.Generic.IReadOnlyList answers, Azure.Search.Documents.Models.SemanticErrorReason? errorReason, Azure.Search.Documents.Models.SemanticSearchResultsType? resultsType) { throw null; } public static Azure.Search.Documents.Models.SemanticSearchResults SemanticSearchResults(System.Collections.Generic.IReadOnlyList answers, Azure.Search.Documents.Models.SemanticErrorReason? errorReason, Azure.Search.Documents.Models.SemanticSearchResultsType? resultsType, Azure.Search.Documents.Models.SemanticQueryRewritesResultType? semanticQueryRewritesResultType) { throw null; } + public static Azure.Search.Documents.Indexes.Models.ServiceIndexersRuntime ServiceIndexersRuntime(long usedSeconds = (long)0, long? remainingSeconds = default(long?), System.DateTimeOffset beginningTime = default(System.DateTimeOffset), System.DateTimeOffset endingTime = default(System.DateTimeOffset)) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.SharePointSensitivityLabelInfo SharePointSensitivityLabelInfo(string displayName = null, string sensitivityLabelId = null, string tooltip = null, int? priority = default(int?), string color = null, bool? isEncrypted = default(bool?)) { throw null; } public static Azure.Search.Documents.Indexes.Models.SimilarityAlgorithm SimilarityAlgorithm(string oDataType) { throw null; } public static Azure.Search.Documents.Models.SingleVectorFieldResult SingleVectorFieldResult(double? searchScore = default(double?), double? vectorSimilarity = default(double?)) { throw null; } public static Azure.Search.Documents.Models.SuggestResults SuggestResults(System.Collections.Generic.IReadOnlyList> results, double? coverage) { throw null; } + public static Azure.Search.Documents.Indexes.Models.SynchronizationState SynchronizationState(System.DateTimeOffset startTime = default(System.DateTimeOffset), int itemsUpdatesProcessed = 0, int itemsUpdatesFailed = 0, int itemsSkipped = 0) { throw null; } public static Azure.Search.Documents.Indexes.Models.SynonymMap SynonymMap(string name = null, string format = null, string synonyms = null, Azure.Search.Documents.Indexes.Models.SearchResourceEncryptionKey encryptionKey = null, string etag = null, System.Collections.Generic.IDictionary serializedAdditionalRawData = null) { throw null; } public static Azure.Search.Documents.Models.TextResult TextResult(double? searchScore = default(double?)) { throw null; } public static Azure.Search.Documents.Indexes.Models.TokenFilter TokenFilter(string oDataType, string name) { throw null; } diff --git a/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.netstandard2.0.cs b/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.netstandard2.0.cs index 930584eb782f..d1b192c844de 100644 --- a/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.netstandard2.0.cs +++ b/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.netstandard2.0.cs @@ -71,11 +71,11 @@ public SearchClient(System.Uri endpoint, string indexName, Azure.Core.TokenCrede public virtual System.Threading.Tasks.Task> DeleteDocumentsAsync(System.Collections.Generic.IEnumerable documents, Azure.Search.Documents.IndexDocumentsOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response DeleteDocuments(System.Collections.Generic.IEnumerable documents, Azure.Search.Documents.IndexDocumentsOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetDocumentAsync(string key, Azure.Search.Documents.GetDocumentOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetDocumentAsync(string key, string querySourceAuthorization, Azure.Search.Documents.GetDocumentOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetDocumentAsync(string key, string querySourceAuthorization, bool? enabledElevatedRead = default(bool?), Azure.Search.Documents.GetDocumentOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetDocumentCount(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetDocumentCountAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetDocument(string key, Azure.Search.Documents.GetDocumentOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetDocument(string key, string querySourceAuthorization, Azure.Search.Documents.GetDocumentOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetDocument(string key, string querySourceAuthorization, bool? enabledElevatedRead = default(bool?), Azure.Search.Documents.GetDocumentOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> IndexDocumentsAsync(Azure.Search.Documents.Models.IndexDocumentsBatch batch, Azure.Search.Documents.IndexDocumentsOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response IndexDocuments(Azure.Search.Documents.Models.IndexDocumentsBatch batch, Azure.Search.Documents.IndexDocumentsOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> MergeDocumentsAsync(System.Collections.Generic.IEnumerable documents, Azure.Search.Documents.IndexDocumentsOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -223,275 +223,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } -namespace Azure.Search.Documents.Agents -{ - public partial class KnowledgeAgentRetrievalClient - { - protected KnowledgeAgentRetrievalClient() { } - public KnowledgeAgentRetrievalClient(System.Uri endpoint, string agentName, Azure.AzureKeyCredential credential) { } - public KnowledgeAgentRetrievalClient(System.Uri endpoint, string agentName, Azure.AzureKeyCredential credential, Azure.Search.Documents.SearchClientOptions options) { } - public KnowledgeAgentRetrievalClient(System.Uri endpoint, string agentName, Azure.Core.TokenCredential tokenCredential) { } - public KnowledgeAgentRetrievalClient(System.Uri endpoint, string agentName, Azure.Core.TokenCredential tokenCredential, Azure.Search.Documents.SearchClientOptions options) { } - public virtual string AgentName { get { throw null; } } - public virtual System.Uri Endpoint { get { throw null; } } - public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } - public virtual Azure.Response Retrieve(Azure.Search.Documents.Agents.Models.KnowledgeAgentRetrievalRequest retrievalRequest, string xMsQuerySourceAuthorization = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RetrieveAsync(Azure.Search.Documents.Agents.Models.KnowledgeAgentRetrievalRequest retrievalRequest, string xMsQuerySourceAuthorization = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } -} -namespace Azure.Search.Documents.Agents.Models -{ - public abstract partial class KnowledgeAgentActivityRecord : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - protected KnowledgeAgentActivityRecord(int id) { } - public int? ElapsedMs { get { throw null; } } - public int Id { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentAzureBlobActivityArguments : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal KnowledgeAgentAzureBlobActivityArguments() { } - public string Search { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentAzureBlobActivityArguments System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentAzureBlobActivityArguments System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentAzureBlobActivityRecord : Azure.Search.Documents.Agents.Models.KnowledgeAgentRetrievalActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal KnowledgeAgentAzureBlobActivityRecord() { } - public Azure.Search.Documents.Agents.Models.KnowledgeAgentAzureBlobActivityArguments AzureBlobArguments { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentAzureBlobActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentAzureBlobActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentAzureBlobReference : Azure.Search.Documents.Agents.Models.KnowledgeAgentReference, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal KnowledgeAgentAzureBlobReference() : base (default(string), default(int)) { } - public string BlobUrl { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentAzureBlobReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentAzureBlobReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentMessage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public KnowledgeAgentMessage(System.Collections.Generic.IEnumerable content) { } - public System.Collections.Generic.IList Content { get { throw null; } } - public string Role { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public abstract partial class KnowledgeAgentMessageContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - protected KnowledgeAgentMessageContent() { } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct KnowledgeAgentMessageContentType : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public KnowledgeAgentMessageContentType(string value) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageContentType Image { get { throw null; } } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageContentType Text { get { throw null; } } - public bool Equals(Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageContentType other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageContentType left, Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageContentType right) { throw null; } - public static implicit operator Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageContentType (string value) { throw null; } - public static bool operator !=(Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageContentType left, Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageContentType right) { throw null; } - public override string ToString() { throw null; } - } - public partial class KnowledgeAgentMessageImageContent : Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageContent, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public KnowledgeAgentMessageImageContent(Azure.Search.Documents.Models.KnowledgeAgentMessageImageContentImage image) { } - public Azure.Search.Documents.Models.KnowledgeAgentMessageImageContentImage Image { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageImageContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageImageContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentMessageTextContent : Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageContent, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public KnowledgeAgentMessageTextContent(string text) { } - public string Text { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageTextContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentMessageTextContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentModelAnswerSynthesisActivityRecord : Azure.Search.Documents.Agents.Models.KnowledgeAgentActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal KnowledgeAgentModelAnswerSynthesisActivityRecord() : base (default(int)) { } - public int? InputTokens { get { throw null; } } - public int? OutputTokens { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentModelAnswerSynthesisActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentModelAnswerSynthesisActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentModelQueryPlanningActivityRecord : Azure.Search.Documents.Agents.Models.KnowledgeAgentActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal KnowledgeAgentModelQueryPlanningActivityRecord() : base (default(int)) { } - public int? InputTokens { get { throw null; } } - public int? OutputTokens { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentModelQueryPlanningActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentModelQueryPlanningActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public abstract partial class KnowledgeAgentReference : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - protected KnowledgeAgentReference(string id, int activitySource) { } - public int ActivitySource { get { throw null; } } - public string Id { get { throw null; } } - public float? RerankerScore { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary SourceData { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentRetrievalActivityRecord : Azure.Search.Documents.Agents.Models.KnowledgeAgentActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal KnowledgeAgentRetrievalActivityRecord() : base (default(int)) { } - public int? Count { get { throw null; } } - public string KnowledgeSourceName { get { throw null; } } - public System.DateTimeOffset? QueryTime { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentRetrievalActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentRetrievalActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentRetrievalRequest : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public KnowledgeAgentRetrievalRequest(System.Collections.Generic.IEnumerable messages) { } - public System.Collections.Generic.IList KnowledgeSourceParams { get { throw null; } } - public System.Collections.Generic.IList Messages { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentRetrievalRequest System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentRetrievalRequest System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentRetrievalResponse : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal KnowledgeAgentRetrievalResponse() { } - public System.Collections.Generic.IReadOnlyList Activity { get { throw null; } } - public System.Collections.Generic.IReadOnlyList References { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Response { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentRetrievalResponse System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentRetrievalResponse System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentSearchIndexActivityArguments : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal KnowledgeAgentSearchIndexActivityArguments() { } - public string Filter { get { throw null; } } - public string Search { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentSearchIndexActivityArguments System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentSearchIndexActivityArguments System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentSearchIndexActivityRecord : Azure.Search.Documents.Agents.Models.KnowledgeAgentRetrievalActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal KnowledgeAgentSearchIndexActivityRecord() { } - public Azure.Search.Documents.Agents.Models.KnowledgeAgentSearchIndexActivityArguments SearchIndexArguments { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentSearchIndexActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentSearchIndexActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentSearchIndexReference : Azure.Search.Documents.Agents.Models.KnowledgeAgentReference, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal KnowledgeAgentSearchIndexReference() : base (default(string), default(int)) { } - public string DocKey { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentSearchIndexReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentSearchIndexReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentSemanticRerankerActivityRecord : Azure.Search.Documents.Agents.Models.KnowledgeAgentActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - internal KnowledgeAgentSemanticRerankerActivityRecord() : base (default(int)) { } - public int? InputTokens { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentSemanticRerankerActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeAgentSemanticRerankerActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public abstract partial class KnowledgeSourceParams : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - protected KnowledgeSourceParams(string knowledgeSourceName) { } - public string KnowledgeSourceName { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeSourceParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.KnowledgeSourceParams System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class SearchIndexKnowledgeSourceParams : Azure.Search.Documents.Agents.Models.KnowledgeSourceParams, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public SearchIndexKnowledgeSourceParams(string knowledgeSourceName) : base (default(string)) { } - public string FilterAddOn { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.SearchIndexKnowledgeSourceParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Agents.Models.SearchIndexKnowledgeSourceParams System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } -} namespace Azure.Search.Documents.Indexes { public partial class FieldBuilder @@ -530,16 +261,16 @@ public SearchIndexClient(System.Uri endpoint, Azure.Core.TokenCredential tokenCr public virtual System.Threading.Tasks.Task> CreateAliasAsync(Azure.Search.Documents.Indexes.Models.SearchAlias alias, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response CreateIndex(Azure.Search.Documents.Indexes.Models.SearchIndex index, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> CreateIndexAsync(Azure.Search.Documents.Indexes.Models.SearchIndex index, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response CreateKnowledgeAgent(Azure.Search.Documents.Indexes.Models.KnowledgeAgent knowledgeAgent, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateKnowledgeAgentAsync(Azure.Search.Documents.Indexes.Models.KnowledgeAgent knowledgeAgent, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response CreateKnowledgeBase(Azure.Search.Documents.Indexes.Models.KnowledgeBase KnowledgeBase, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateKnowledgeBaseAsync(Azure.Search.Documents.Indexes.Models.KnowledgeBase KnowledgeBase, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response CreateKnowledgeSource(Azure.Search.Documents.Indexes.Models.KnowledgeSource knowledgeSource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> CreateKnowledgeSourceAsync(Azure.Search.Documents.Indexes.Models.KnowledgeSource knowledgeSource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response CreateOrUpdateAlias(string aliasName, Azure.Search.Documents.Indexes.Models.SearchAlias alias, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> CreateOrUpdateAliasAsync(string aliasName, Azure.Search.Documents.Indexes.Models.SearchAlias alias, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response CreateOrUpdateIndex(Azure.Search.Documents.Indexes.Models.SearchIndex index, bool allowIndexDowntime = false, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> CreateOrUpdateIndexAsync(Azure.Search.Documents.Indexes.Models.SearchIndex index, bool allowIndexDowntime = false, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response CreateOrUpdateKnowledgeAgent(Azure.Search.Documents.Indexes.Models.KnowledgeAgent knowledgeAgent, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateKnowledgeAgentAsync(Azure.Search.Documents.Indexes.Models.KnowledgeAgent knowledgeAgent, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response CreateOrUpdateKnowledgeBase(Azure.Search.Documents.Indexes.Models.KnowledgeBase KnowledgeBase, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateKnowledgeBaseAsync(Azure.Search.Documents.Indexes.Models.KnowledgeBase KnowledgeBase, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response CreateOrUpdateKnowledgeSource(Azure.Search.Documents.Indexes.Models.KnowledgeSource knowledgeSource, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> CreateOrUpdateKnowledgeSourceAsync(Azure.Search.Documents.Indexes.Models.KnowledgeSource knowledgeSource, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response CreateOrUpdateSynonymMap(Azure.Search.Documents.Indexes.Models.SynonymMap synonymMap, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -552,10 +283,10 @@ public SearchIndexClient(System.Uri endpoint, Azure.Core.TokenCredential tokenCr public virtual Azure.Response DeleteIndex(string indexName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteIndexAsync(Azure.Search.Documents.Indexes.Models.SearchIndex index, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteIndexAsync(string indexName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response DeleteKnowledgeAgent(Azure.Search.Documents.Indexes.Models.KnowledgeAgent knowledgeAgent, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response DeleteKnowledgeAgent(string agentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteKnowledgeAgentAsync(Azure.Search.Documents.Indexes.Models.KnowledgeAgent knowledgeAgent, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteKnowledgeAgentAsync(string agentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteKnowledgeBase(Azure.Search.Documents.Indexes.Models.KnowledgeBase KnowledgeBase, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteKnowledgeBase(string agentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteKnowledgeBaseAsync(Azure.Search.Documents.Indexes.Models.KnowledgeBase KnowledgeBase, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteKnowledgeBaseAsync(string agentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response DeleteKnowledgeSource(Azure.Search.Documents.Indexes.Models.KnowledgeSource knowledgeSource, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response DeleteKnowledgeSource(string sourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteKnowledgeSourceAsync(Azure.Search.Documents.Indexes.Models.KnowledgeSource knowledgeSource, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -578,10 +309,10 @@ public SearchIndexClient(System.Uri endpoint, Azure.Core.TokenCredential tokenCr public virtual System.Threading.Tasks.Task> GetIndexStatisticsAsync(string indexName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetIndexStatsSummary(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetIndexStatsSummaryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetKnowledgeAgent(string agentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetKnowledgeAgentAsync(string agentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetKnowledgeAgents(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetKnowledgeAgentsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetKnowledgeBase(string agentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetKnowledgeBaseAsync(string agentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetKnowledgeBases(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetKnowledgeBasesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetKnowledgeSource(string sourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetKnowledgeSourceAsync(string sourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetKnowledgeSources(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -729,6 +460,18 @@ namespace Azure.Search.Documents.Indexes.Models public static bool operator !=(Azure.Search.Documents.Indexes.Models.AIFoundryModelCatalogName left, Azure.Search.Documents.Indexes.Models.AIFoundryModelCatalogName right) { throw null; } public override string ToString() { throw null; } } + public partial class AIServices : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AIServices(System.Uri uri) { } + public string ApiKey { get { throw null; } set { } } + public System.Uri Uri { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.AIServices System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.AIServices System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class AIServicesAccountIdentity : Azure.Search.Documents.Indexes.Models.CognitiveServicesAccount, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AIServicesAccountIdentity(string subdomainUrl) { } @@ -835,15 +578,12 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public partial class AzureBlobKnowledgeSourceParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public AzureBlobKnowledgeSourceParameters(string connectionString, string containerName) { } - public Azure.Search.Documents.Indexes.Models.KnowledgeAgentModel ChatCompletionModel { get { throw null; } set { } } public string ConnectionString { get { throw null; } set { } } public string ContainerName { get { throw null; } set { } } public System.Collections.Generic.IReadOnlyDictionary CreatedResources { get { throw null; } } - public bool? DisableImageVerbalization { get { throw null; } set { } } - public Azure.Search.Documents.Indexes.Models.VectorSearchVectorizer EmbeddingModel { get { throw null; } set { } } public string FolderPath { get { throw null; } set { } } - public Azure.Search.Documents.Indexes.Models.SearchIndexerDataIdentity Identity { get { throw null; } set { } } - public Azure.Search.Documents.Indexes.Models.IndexingSchedule IngestionSchedule { get { throw null; } set { } } + public Azure.Search.Documents.Indexes.Models.KnowledgeSourceIngestionParameters IngestionParameters { get { throw null; } set { } } + public bool? IsAdlsGen2 { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Search.Documents.Indexes.Models.AzureBlobKnowledgeSourceParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -922,6 +662,9 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public static Azure.Search.Documents.Indexes.Models.AzureOpenAIModelName Gpt41Nano { get { throw null; } } public static Azure.Search.Documents.Indexes.Models.AzureOpenAIModelName Gpt4O { get { throw null; } } public static Azure.Search.Documents.Indexes.Models.AzureOpenAIModelName Gpt4OMini { get { throw null; } } + public static Azure.Search.Documents.Indexes.Models.AzureOpenAIModelName Gpt5 { get { throw null; } } + public static Azure.Search.Documents.Indexes.Models.AzureOpenAIModelName Gpt5Mini { get { throw null; } } + public static Azure.Search.Documents.Indexes.Models.AzureOpenAIModelName Gpt5Nano { get { throw null; } } public static Azure.Search.Documents.Indexes.Models.AzureOpenAIModelName TextEmbedding3Large { get { throw null; } } public static Azure.Search.Documents.Indexes.Models.AzureOpenAIModelName TextEmbedding3Small { get { throw null; } } public static Azure.Search.Documents.Indexes.Models.AzureOpenAIModelName TextEmbeddingAda002 { get { throw null; } } @@ -1254,6 +997,21 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class CompletedSynchronizationState : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal CompletedSynchronizationState() { } + public System.DateTimeOffset EndTime { get { throw null; } } + public int ItemsSkipped { get { throw null; } } + public int ItemsUpdatesFailed { get { throw null; } } + public int ItemsUpdatesProcessed { get { throw null; } } + public System.DateTimeOffset StartTime { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.CompletedSynchronizationState System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.CompletedSynchronizationState System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class ComplexField : Azure.Search.Documents.Indexes.Models.SearchFieldTemplate { public ComplexField(string name, bool collection = false) { } @@ -1269,6 +1027,66 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class ContentUnderstandingSkill : Azure.Search.Documents.Indexes.Models.SearchIndexerSkill, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ContentUnderstandingSkill(System.Collections.Generic.IEnumerable inputs, System.Collections.Generic.IEnumerable outputs) { } + public Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillChunkingProperties ChunkingProperties { get { throw null; } set { } } + public System.Collections.Generic.IList ExtractionOptions { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkill System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkill System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class ContentUnderstandingSkillChunkingProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ContentUnderstandingSkillChunkingProperties() { } + public int? MaximumLength { get { throw null; } set { } } + public int? OverlapLength { get { throw null; } set { } } + public Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillChunkingUnit? Unit { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillChunkingProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillChunkingProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ContentUnderstandingSkillChunkingUnit : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ContentUnderstandingSkillChunkingUnit(string value) { throw null; } + public static Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillChunkingUnit Characters { get { throw null; } } + public bool Equals(Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillChunkingUnit other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillChunkingUnit left, Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillChunkingUnit right) { throw null; } + public static implicit operator Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillChunkingUnit (string value) { throw null; } + public static bool operator !=(Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillChunkingUnit left, Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillChunkingUnit right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ContentUnderstandingSkillExtractionOptions : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ContentUnderstandingSkillExtractionOptions(string value) { throw null; } + public static Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillExtractionOptions Images { get { throw null; } } + public static Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillExtractionOptions LocationMetadata { get { throw null; } } + public bool Equals(Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillExtractionOptions other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillExtractionOptions left, Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillExtractionOptions right) { throw null; } + public static implicit operator Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillExtractionOptions (string value) { throw null; } + public static bool operator !=(Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillExtractionOptions left, Azure.Search.Documents.Indexes.Models.ContentUnderstandingSkillExtractionOptions right) { throw null; } + public override string ToString() { throw null; } + } public partial class CorsOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public CorsOptions(System.Collections.Generic.IEnumerable allowedOrigins) { } @@ -1944,6 +1762,58 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public static bool operator !=(Azure.Search.Documents.Indexes.Models.ImageDetail left, Azure.Search.Documents.Indexes.Models.ImageDetail right) { throw null; } public override string ToString() { throw null; } } + public partial class IndexedOneLakeKnowledgeSource : Azure.Search.Documents.Indexes.Models.KnowledgeSource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public IndexedOneLakeKnowledgeSource(string name, Azure.Search.Documents.Indexes.Models.IndexedOneLakeKnowledgeSourceParameters indexedOneLakeParameters) : base (default(string)) { } + public Azure.Search.Documents.Indexes.Models.IndexedOneLakeKnowledgeSourceParameters IndexedOneLakeParameters { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.IndexedOneLakeKnowledgeSource System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.IndexedOneLakeKnowledgeSource System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class IndexedOneLakeKnowledgeSourceParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public IndexedOneLakeKnowledgeSourceParameters(string fabricWorkspaceId, string lakehouseId) { } + public System.Collections.Generic.IReadOnlyDictionary CreatedResources { get { throw null; } } + public string FabricWorkspaceId { get { throw null; } set { } } + public Azure.Search.Documents.Indexes.Models.KnowledgeSourceIngestionParameters IngestionParameters { get { throw null; } set { } } + public string LakehouseId { get { throw null; } set { } } + public string TargetPath { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.IndexedOneLakeKnowledgeSourceParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.IndexedOneLakeKnowledgeSourceParameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class IndexedSharePointKnowledgeSource : Azure.Search.Documents.Indexes.Models.KnowledgeSource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public IndexedSharePointKnowledgeSource(string name, Azure.Search.Documents.Indexes.Models.IndexedSharePointKnowledgeSourceParameters indexedSharePointParameters) : base (default(string)) { } + public Azure.Search.Documents.Indexes.Models.IndexedSharePointKnowledgeSourceParameters IndexedSharePointParameters { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.IndexedSharePointKnowledgeSource System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.IndexedSharePointKnowledgeSource System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class IndexedSharePointKnowledgeSourceParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public IndexedSharePointKnowledgeSourceParameters(string connectionString, Azure.Search.Documents.Models.IndexedSharePointContainerName containerName) { } + public string ConnectionString { get { throw null; } set { } } + public Azure.Search.Documents.Models.IndexedSharePointContainerName ContainerName { get { throw null; } set { } } + public System.Collections.Generic.IReadOnlyDictionary CreatedResources { get { throw null; } } + public Azure.Search.Documents.Indexes.Models.KnowledgeSourceIngestionParameters IngestionParameters { get { throw null; } set { } } + public string Query { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.IndexedSharePointKnowledgeSourceParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.IndexedSharePointKnowledgeSourceParameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class IndexerChangeTrackingState { internal IndexerChangeTrackingState() { } @@ -2053,6 +1923,20 @@ public enum IndexerExecutionStatus public static bool operator !=(Azure.Search.Documents.Indexes.Models.IndexerResyncOption left, Azure.Search.Documents.Indexes.Models.IndexerResyncOption right) { throw null; } public override string ToString() { throw null; } } + public partial class IndexerRuntime : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal IndexerRuntime() { } + public System.DateTimeOffset BeginningTime { get { throw null; } } + public System.DateTimeOffset EndingTime { get { throw null; } } + public long? RemainingSeconds { get { throw null; } } + public long UsedSeconds { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.IndexerRuntime System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.IndexerRuntime System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class IndexerState : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal IndexerState() { } @@ -2296,89 +2180,64 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class KnowledgeAgent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class KnowledgeBase : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public KnowledgeAgent(string name, System.Collections.Generic.IEnumerable models, System.Collections.Generic.IEnumerable knowledgeSources) { } + public KnowledgeBase(string name, System.Collections.Generic.IEnumerable knowledgeSources) { } + public string AnswerInstructions { get { throw null; } set { } } public string Description { get { throw null; } set { } } public Azure.Search.Documents.Indexes.Models.SearchResourceEncryptionKey EncryptionKey { get { throw null; } set { } } - public Azure.ETag? ETag { get { throw null; } set { } } + public string ETag { get { throw null; } set { } } public System.Collections.Generic.IList KnowledgeSources { get { throw null; } } - public System.Collections.Generic.IList Models { get { throw null; } } + public System.Collections.Generic.IList Models { get { throw null; } } public string Name { get { throw null; } set { } } - public Azure.Search.Documents.Indexes.Models.KnowledgeAgentOutputConfiguration OutputConfiguration { get { throw null; } set { } } - public Azure.Search.Documents.Indexes.Models.KnowledgeAgentRequestLimits RequestLimits { get { throw null; } set { } } + public Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode? OutputMode { get { throw null; } set { } } public string RetrievalInstructions { get { throw null; } set { } } + public Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffort RetrievalReasoningEffort { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Indexes.Models.KnowledgeAgent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Indexes.Models.KnowledgeAgent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Search.Documents.Indexes.Models.KnowledgeBase System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeBase System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class KnowledgeAgentAzureOpenAIModel : Azure.Search.Documents.Indexes.Models.KnowledgeAgentModel, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class KnowledgeBaseAzureOpenAIModel : Azure.Search.Documents.Indexes.Models.KnowledgeBaseModel, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public KnowledgeAgentAzureOpenAIModel(Azure.Search.Documents.Indexes.Models.AzureOpenAIVectorizerParameters azureOpenAIParameters) { } + public KnowledgeBaseAzureOpenAIModel(Azure.Search.Documents.Indexes.Models.AzureOpenAIVectorizerParameters azureOpenAIParameters) { } public Azure.Search.Documents.Indexes.Models.AzureOpenAIVectorizerParameters AzureOpenAIParameters { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Indexes.Models.KnowledgeAgentAzureOpenAIModel System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Indexes.Models.KnowledgeAgentAzureOpenAIModel System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Search.Documents.Indexes.Models.KnowledgeBaseAzureOpenAIModel System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeBaseAzureOpenAIModel System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public abstract partial class KnowledgeAgentModel : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public abstract partial class KnowledgeBaseModel : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - protected KnowledgeAgentModel() { } + protected KnowledgeBaseModel() { } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Indexes.Models.KnowledgeAgentModel System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Indexes.Models.KnowledgeAgentModel System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Search.Documents.Indexes.Models.KnowledgeBaseModel System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeBaseModel System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct KnowledgeAgentModelKind : System.IEquatable + public readonly partial struct KnowledgeBaseModelKind : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public KnowledgeAgentModelKind(string value) { throw null; } - public static Azure.Search.Documents.Indexes.Models.KnowledgeAgentModelKind AzureOpenAI { get { throw null; } } - public bool Equals(Azure.Search.Documents.Indexes.Models.KnowledgeAgentModelKind other) { throw null; } + public KnowledgeBaseModelKind(string value) { throw null; } + public static Azure.Search.Documents.Indexes.Models.KnowledgeBaseModelKind AzureOpenAI { get { throw null; } } + public bool Equals(Azure.Search.Documents.Indexes.Models.KnowledgeBaseModelKind other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Search.Documents.Indexes.Models.KnowledgeAgentModelKind left, Azure.Search.Documents.Indexes.Models.KnowledgeAgentModelKind right) { throw null; } - public static implicit operator Azure.Search.Documents.Indexes.Models.KnowledgeAgentModelKind (string value) { throw null; } - public static bool operator !=(Azure.Search.Documents.Indexes.Models.KnowledgeAgentModelKind left, Azure.Search.Documents.Indexes.Models.KnowledgeAgentModelKind right) { throw null; } + public static bool operator ==(Azure.Search.Documents.Indexes.Models.KnowledgeBaseModelKind left, Azure.Search.Documents.Indexes.Models.KnowledgeBaseModelKind right) { throw null; } + public static implicit operator Azure.Search.Documents.Indexes.Models.KnowledgeBaseModelKind (string value) { throw null; } + public static bool operator !=(Azure.Search.Documents.Indexes.Models.KnowledgeBaseModelKind left, Azure.Search.Documents.Indexes.Models.KnowledgeBaseModelKind right) { throw null; } public override string ToString() { throw null; } } - public partial class KnowledgeAgentOutputConfiguration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public KnowledgeAgentOutputConfiguration() { } - public string AnswerInstructions { get { throw null; } set { } } - public bool? AttemptFastPath { get { throw null; } set { } } - public bool? IncludeActivity { get { throw null; } set { } } - public Azure.Search.Documents.Models.KnowledgeAgentOutputConfigurationModality? Modality { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Indexes.Models.KnowledgeAgentOutputConfiguration System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Indexes.Models.KnowledgeAgentOutputConfiguration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class KnowledgeAgentRequestLimits : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public KnowledgeAgentRequestLimits() { } - public int? MaxOutputSize { get { throw null; } set { } } - public int? MaxRuntimeInSeconds { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Indexes.Models.KnowledgeAgentRequestLimits System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Indexes.Models.KnowledgeAgentRequestLimits System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public abstract partial class KnowledgeSource : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { protected KnowledgeSource(string name) { } @@ -2393,15 +2252,39 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class KnowledgeSourceAzureOpenAIVectorizer : Azure.Search.Documents.Indexes.Models.KnowledgeSourceVectorizer, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public KnowledgeSourceAzureOpenAIVectorizer() { } + public Azure.Search.Documents.Indexes.Models.AzureOpenAIVectorizerParameters AzureOpenAIParameters { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeSourceAzureOpenAIVectorizer System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeSourceAzureOpenAIVectorizer System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeSourceIngestionParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public KnowledgeSourceIngestionParameters() { } + public Azure.Search.Documents.Indexes.Models.AIServices AiServices { get { throw null; } set { } } + public Azure.Search.Documents.Indexes.Models.KnowledgeBaseModel ChatCompletionModel { get { throw null; } set { } } + public Azure.Search.Documents.Models.KnowledgeSourceContentExtractionMode? ContentExtractionMode { get { throw null; } set { } } + public bool? DisableImageVerbalization { get { throw null; } set { } } + public Azure.Search.Documents.Indexes.Models.KnowledgeSourceVectorizer EmbeddingModel { get { throw null; } set { } } + public Azure.Search.Documents.Indexes.Models.SearchIndexerDataIdentity Identity { get { throw null; } set { } } + public System.Collections.Generic.IList IngestionPermissionOptions { get { throw null; } set { } } + public Azure.Search.Documents.Indexes.Models.IndexingSchedule IngestionSchedule { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeSourceIngestionParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeSourceIngestionParameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class KnowledgeSourceReference : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public KnowledgeSourceReference(string name) { } - public bool? AlwaysQuerySource { get { throw null; } set { } } - public bool? IncludeReferences { get { throw null; } set { } } - public bool? IncludeReferenceSourceData { get { throw null; } set { } } - public int? MaxSubQueries { get { throw null; } set { } } public string Name { get { throw null; } set { } } - public float? RerankerThreshold { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Search.Documents.Indexes.Models.KnowledgeSourceReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -2409,6 +2292,44 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class KnowledgeSourceStatistics : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeSourceStatistics() { } + public int AverageItemsProcessedPerSynchronization { get { throw null; } } + public string AverageSynchronizationDuration { get { throw null; } } + public int TotalSynchronization { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeSourceStatistics System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeSourceStatistics System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeSourceStatus : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeSourceStatus() { } + public Azure.Search.Documents.Indexes.Models.SynchronizationState CurrentSynchronizationState { get { throw null; } } + public Azure.Search.Documents.Indexes.Models.CompletedSynchronizationState LastSynchronizationState { get { throw null; } } + public Azure.Search.Documents.Indexes.Models.KnowledgeSourceStatistics Statistics { get { throw null; } } + public string SynchronizationInterval { get { throw null; } } + public Azure.Search.Documents.Models.KnowledgeSourceSynchronizationStatus SynchronizationStatus { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeSourceStatus System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeSourceStatus System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public abstract partial class KnowledgeSourceVectorizer : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + protected KnowledgeSourceVectorizer() { } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeSourceVectorizer System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.KnowledgeSourceVectorizer System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class KnowledgeStore : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public KnowledgeStore(string storageConnectionString, System.Collections.Generic.IEnumerable projections) { } @@ -3536,6 +3457,30 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public static bool operator !=(Azure.Search.Documents.Indexes.Models.RegexFlag left, Azure.Search.Documents.Indexes.Models.RegexFlag right) { throw null; } public override string ToString() { throw null; } } + public partial class RemoteSharePointKnowledgeSource : Azure.Search.Documents.Indexes.Models.KnowledgeSource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RemoteSharePointKnowledgeSource(string name, Azure.Search.Documents.Indexes.Models.RemoteSharePointKnowledgeSourceParameters remoteSharePointParameters) : base (default(string)) { } + public Azure.Search.Documents.Indexes.Models.RemoteSharePointKnowledgeSourceParameters RemoteSharePointParameters { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.RemoteSharePointKnowledgeSource System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.RemoteSharePointKnowledgeSource System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class RemoteSharePointKnowledgeSourceParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RemoteSharePointKnowledgeSourceParameters() { } + public string ContainerTypeId { get { throw null; } set { } } + public string FilterExpression { get { throw null; } set { } } + public System.Collections.Generic.IList ResourceMetadata { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.RemoteSharePointKnowledgeSourceParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.RemoteSharePointKnowledgeSourceParameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class RescoringOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public RescoringOptions() { } @@ -3591,6 +3536,7 @@ public enum ScoringFunctionAggregation Minimum = 2, Maximum = 3, FirstMatching = 4, + Product = 5, } public enum ScoringFunctionInterpolation { @@ -3652,6 +3598,7 @@ public SearchField(string name, Azure.Search.Documents.Indexes.Models.SearchFiel public Azure.Search.Documents.Indexes.Models.LexicalNormalizerName? NormalizerName { get { throw null; } set { } } public Azure.Search.Documents.Indexes.Models.PermissionFilter? PermissionFilter { get { throw null; } set { } } public Azure.Search.Documents.Indexes.Models.LexicalAnalyzerName? SearchAnalyzerName { get { throw null; } set { } } + public bool? SensitivityLabel { get { throw null; } set { } } public System.Collections.Generic.IList SynonymMapNames { get { throw null; } } public Azure.Search.Documents.Indexes.Models.SearchFieldDataType Type { get { throw null; } } public Azure.Search.Documents.Indexes.Models.VectorEncodingFormat? VectorEncodingFormat { get { throw null; } set { } } @@ -3718,6 +3665,7 @@ public SearchIndex(string name, System.Collections.Generic.IEnumerable Normalizers { get { throw null; } } public Azure.Search.Documents.Models.SearchIndexPermissionFilterOption? PermissionFilterOption { get { throw null; } set { } } + public bool? PurviewEnabled { get { throw null; } set { } } public System.Collections.Generic.IList ScoringProfiles { get { throw null; } } public Azure.Search.Documents.Indexes.Models.SemanticSearch SemanticSearch { get { throw null; } set { } } public Azure.Search.Documents.Indexes.Models.SimilarityAlgorithm Similarity { get { throw null; } set { } } @@ -3836,6 +3784,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static Azure.Search.Documents.Indexes.Models.SearchIndexerDataSourceType CosmosDb { get { throw null; } } public static Azure.Search.Documents.Indexes.Models.SearchIndexerDataSourceType MySql { get { throw null; } } public static Azure.Search.Documents.Indexes.Models.SearchIndexerDataSourceType OneLake { get { throw null; } } + public static Azure.Search.Documents.Indexes.Models.SearchIndexerDataSourceType SharePoint { get { throw null; } } public bool Equals(Azure.Search.Documents.Indexes.Models.SearchIndexerDataSourceType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } @@ -3977,6 +3926,7 @@ internal SearchIndexerStatus() { } public Azure.Search.Documents.Indexes.Models.IndexerExecutionResult LastResult { get { throw null; } } public Azure.Search.Documents.Indexes.Models.SearchIndexerLimits Limits { get { throw null; } } public string Name { get { throw null; } } + public Azure.Search.Documents.Indexes.Models.IndexerRuntime Runtime { get { throw null; } } public Azure.Search.Documents.Indexes.Models.IndexerStatus Status { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Search.Documents.Indexes.Models.SearchIndexerStatus System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -4000,6 +3950,17 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class SearchIndexFieldReference : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public SearchIndexFieldReference(string name) { } + public string Name { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.SearchIndexFieldReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.SearchIndexFieldReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class SearchIndexKnowledgeSource : Azure.Search.Documents.Indexes.Models.KnowledgeSource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public SearchIndexKnowledgeSource(string name, Azure.Search.Documents.Indexes.Models.SearchIndexKnowledgeSourceParameters searchIndexParameters) : base (default(string)) { } @@ -4014,8 +3975,10 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public partial class SearchIndexKnowledgeSourceParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public SearchIndexKnowledgeSourceParameters(string searchIndexName) { } + public System.Collections.Generic.IList SearchFields { get { throw null; } } public string SearchIndexName { get { throw null; } set { } } - public string SourceDataSelect { get { throw null; } set { } } + public string SemanticConfigurationName { get { throw null; } set { } } + public System.Collections.Generic.IList SourceDataFields { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Search.Documents.Indexes.Models.SearchIndexKnowledgeSourceParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -4089,6 +4052,7 @@ public partial class SearchServiceLimits : System.ClientModel.Primitives.IJsonMo internal SearchServiceLimits() { } public int? MaxComplexCollectionFieldsPerIndex { get { throw null; } } public int? MaxComplexObjectsInCollectionsPerDocument { get { throw null; } } + public long? MaxCumulativeIndexerRuntimeSeconds { get { throw null; } } public int? MaxFieldNestingDepthPerIndex { get { throw null; } } public int? MaxFieldsPerIndex { get { throw null; } } public long? MaxStoragePerIndexInBytes { get { throw null; } } @@ -4103,6 +4067,7 @@ public partial class SearchServiceStatistics : System.ClientModel.Primitives.IJs { internal SearchServiceStatistics() { } public Azure.Search.Documents.Indexes.Models.SearchServiceCounters Counters { get { throw null; } } + public Azure.Search.Documents.Indexes.Models.ServiceIndexersRuntime IndexersRuntime { get { throw null; } } public Azure.Search.Documents.Indexes.Models.SearchServiceLimits Limits { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Search.Documents.Indexes.Models.SearchServiceStatistics System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -4242,6 +4207,20 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write public static bool operator !=(Azure.Search.Documents.Indexes.Models.SentimentSkillLanguage left, Azure.Search.Documents.Indexes.Models.SentimentSkillLanguage right) { throw null; } public override string ToString() { throw null; } } + public partial class ServiceIndexersRuntime : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ServiceIndexersRuntime() { } + public System.DateTimeOffset BeginningTime { get { throw null; } } + public System.DateTimeOffset EndingTime { get { throw null; } } + public long? RemainingSeconds { get { throw null; } } + public long UsedSeconds { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.ServiceIndexersRuntime System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.ServiceIndexersRuntime System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class ShaperSkill : Azure.Search.Documents.Indexes.Models.SearchIndexerSkill, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public ShaperSkill(System.Collections.Generic.IEnumerable inputs, System.Collections.Generic.IEnumerable outputs) { } @@ -4589,6 +4568,20 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class SynchronizationState : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal SynchronizationState() { } + public int ItemsSkipped { get { throw null; } } + public int ItemsUpdatesFailed { get { throw null; } } + public int ItemsUpdatesProcessed { get { throw null; } } + public System.DateTimeOffset StartTime { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.SynchronizationState System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.SynchronizationState System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class SynonymMap : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public SynonymMap(string name, System.IO.TextReader reader) { } @@ -5100,6 +5093,52 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class WebKnowledgeSource : Azure.Search.Documents.Indexes.Models.KnowledgeSource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public WebKnowledgeSource(string name) : base (default(string)) { } + public Azure.Search.Documents.Indexes.Models.WebKnowledgeSourceParameters WebParameters { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.WebKnowledgeSource System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.WebKnowledgeSource System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class WebKnowledgeSourceDomain : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public WebKnowledgeSourceDomain(string address) { } + public string Address { get { throw null; } set { } } + public bool? IncludeSubpages { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.WebKnowledgeSourceDomain System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.WebKnowledgeSourceDomain System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class WebKnowledgeSourceDomains : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public WebKnowledgeSourceDomains() { } + public System.Collections.Generic.IList AllowedDomains { get { throw null; } } + public System.Collections.Generic.IList BlockedDomains { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.WebKnowledgeSourceDomains System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.WebKnowledgeSourceDomains System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class WebKnowledgeSourceParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public WebKnowledgeSourceParameters() { } + public Azure.Search.Documents.Indexes.Models.WebKnowledgeSourceDomains Domains { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.WebKnowledgeSourceParameters System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Indexes.Models.WebKnowledgeSourceParameters System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class WordDelimiterTokenFilter : Azure.Search.Documents.Indexes.Models.TokenFilter, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public WordDelimiterTokenFilter(string name) { } @@ -5121,6 +5160,642 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } } +namespace Azure.Search.Documents.KnowledgeBases +{ + public partial class KnowledgeBaseRetrievalClient + { + protected KnowledgeBaseRetrievalClient() { } + public KnowledgeBaseRetrievalClient(System.Uri endpoint, string agentName, Azure.AzureKeyCredential credential) { } + public KnowledgeBaseRetrievalClient(System.Uri endpoint, string agentName, Azure.AzureKeyCredential credential, Azure.Search.Documents.SearchClientOptions options) { } + public KnowledgeBaseRetrievalClient(System.Uri endpoint, string agentName, Azure.Core.TokenCredential tokenCredential) { } + public KnowledgeBaseRetrievalClient(System.Uri endpoint, string agentName, Azure.Core.TokenCredential tokenCredential, Azure.Search.Documents.SearchClientOptions options) { } + public virtual string AgentName { get { throw null; } } + public virtual System.Uri Endpoint { get { throw null; } } + public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } + public virtual Azure.Response Retrieve(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalRequest retrievalRequest, string xMsQuerySourceAuthorization = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RetrieveAsync(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalRequest retrievalRequest, string xMsQuerySourceAuthorization = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } +} +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class AzureBlobKnowledgeSourceParams : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeSourceParams, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AzureBlobKnowledgeSourceParams(string knowledgeSourceName) : base (default(string)) { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.AzureBlobKnowledgeSourceParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.AzureBlobKnowledgeSourceParams System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class IndexedOneLakeKnowledgeSourceParams : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeSourceParams, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public IndexedOneLakeKnowledgeSourceParams(string knowledgeSourceName) : base (default(string)) { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.IndexedOneLakeKnowledgeSourceParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.IndexedOneLakeKnowledgeSourceParams System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class IndexedSharePointKnowledgeSourceParams : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeSourceParams, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public IndexedSharePointKnowledgeSourceParams(string knowledgeSourceName) : base (default(string)) { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.IndexedSharePointKnowledgeSourceParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.IndexedSharePointKnowledgeSourceParams System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public abstract partial class KnowledgeBaseActivityRecord : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + protected KnowledgeBaseActivityRecord(int id) { } + public int? ElapsedMs { get { throw null; } } + public Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail Error { get { throw null; } } + public int Id { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseAgenticReasoningActivityRecord : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseAgenticReasoningActivityRecord() : base (default(int)) { } + public int? ReasoningTokens { get { throw null; } } + public Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffort RetrievalReasoningEffort { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAgenticReasoningActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAgenticReasoningActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseAzureBlobActivityArguments : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseAzureBlobActivityArguments() { } + public string Search { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAzureBlobActivityArguments System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAzureBlobActivityArguments System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseAzureBlobActivityRecord : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseAzureBlobActivityRecord() { } + public Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAzureBlobActivityArguments AzureBlobArguments { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAzureBlobActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAzureBlobActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseAzureBlobReference : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseAzureBlobReference() : base (default(string), default(int)) { } + public string BlobUrl { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAzureBlobReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAzureBlobReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseErrorAdditionalInfo : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseErrorAdditionalInfo() { } + public object Info { get { throw null; } } + public string Type { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorAdditionalInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorAdditionalInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseErrorDetail : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseErrorDetail() { } + public System.Collections.Generic.IReadOnlyList AdditionalInfo { get { throw null; } } + public string Code { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Details { get { throw null; } } + public string Message { get { throw null; } } + public string Target { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseIndexedOneLakeActivityArguments : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseIndexedOneLakeActivityArguments() { } + public string Search { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedOneLakeActivityArguments System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedOneLakeActivityArguments System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseIndexedOneLakeActivityRecord : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseIndexedOneLakeActivityRecord() { } + public Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedOneLakeActivityArguments IndexedOneLakeArguments { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedOneLakeActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedOneLakeActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseIndexedOneLakeReference : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseIndexedOneLakeReference() : base (default(string), default(int)) { } + public string DocUrl { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedOneLakeReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedOneLakeReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseIndexedSharePointActivityArguments : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseIndexedSharePointActivityArguments() { } + public string Search { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedSharePointActivityArguments System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedSharePointActivityArguments System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseIndexedSharePointActivityRecord : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseIndexedSharePointActivityRecord() { } + public Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedSharePointActivityArguments IndexedSharePointArguments { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedSharePointActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedSharePointActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseIndexedSharePointReference : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseIndexedSharePointReference() : base (default(string), default(int)) { } + public string DocUrl { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedSharePointReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedSharePointReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseMessage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public KnowledgeBaseMessage(System.Collections.Generic.IEnumerable content) { } + public System.Collections.Generic.IList Content { get { throw null; } } + public string Role { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public abstract partial class KnowledgeBaseMessageContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + protected KnowledgeBaseMessageContent() { } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct KnowledgeBaseMessageContentType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public KnowledgeBaseMessageContentType(string value) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContentType Image { get { throw null; } } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContentType Text { get { throw null; } } + public bool Equals(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContentType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContentType left, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContentType right) { throw null; } + public static implicit operator Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContentType (string value) { throw null; } + public static bool operator !=(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContentType left, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContentType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class KnowledgeBaseMessageImageContent : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContent, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public KnowledgeBaseMessageImageContent(Azure.Search.Documents.Models.KnowledgeBaseMessageImageContentImage image) { } + public Azure.Search.Documents.Models.KnowledgeBaseMessageImageContentImage Image { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageImageContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageImageContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseMessageTextContent : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageContent, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public KnowledgeBaseMessageTextContent(string text) { } + public string Text { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageTextContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseMessageTextContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseModelAnswerSynthesisActivityRecord : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseModelAnswerSynthesisActivityRecord() : base (default(int)) { } + public int? InputTokens { get { throw null; } } + public int? OutputTokens { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseModelAnswerSynthesisActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseModelAnswerSynthesisActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseModelQueryPlanningActivityRecord : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseModelQueryPlanningActivityRecord() : base (default(int)) { } + public int? InputTokens { get { throw null; } } + public int? OutputTokens { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseModelQueryPlanningActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseModelQueryPlanningActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public abstract partial class KnowledgeBaseReference : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + protected KnowledgeBaseReference(string id, int activitySource) { } + public int ActivitySource { get { throw null; } } + public string Id { get { throw null; } } + public float? RerankerScore { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary SourceData { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseRemoteSharePointActivityArguments : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseRemoteSharePointActivityArguments() { } + public string FilterExpressionAddOn { get { throw null; } } + public string Search { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRemoteSharePointActivityArguments System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRemoteSharePointActivityArguments System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseRemoteSharePointActivityRecord : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseRemoteSharePointActivityRecord() { } + public Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRemoteSharePointActivityArguments RemoteSharePointArguments { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRemoteSharePointActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRemoteSharePointActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseRemoteSharePointReference : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseRemoteSharePointReference() : base (default(string), default(int)) { } + public Azure.Search.Documents.KnowledgeBases.Models.SharePointSensitivityLabelInfo SearchSensitivityLabelInfo { get { throw null; } } + public System.Uri WebUrl { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRemoteSharePointReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRemoteSharePointReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseRetrievalActivityRecord : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseRetrievalActivityRecord() : base (default(int)) { } + public int? Count { get { throw null; } } + public string KnowledgeSourceName { get { throw null; } } + public System.DateTimeOffset? QueryTime { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseRetrievalRequest : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public KnowledgeBaseRetrievalRequest() { } + public bool? IncludeActivity { get { throw null; } set { } } + public System.Collections.Generic.IList Intents { get { throw null; } } + public System.Collections.Generic.IList KnowledgeSourceParams { get { throw null; } } + public int? MaxOutputSize { get { throw null; } set { } } + public int? MaxRuntimeInSeconds { get { throw null; } set { } } + public System.Collections.Generic.IList Messages { get { throw null; } } + public Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode? OutputMode { get { throw null; } set { } } + public Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffort RetrievalReasoningEffort { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalRequest System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalRequest System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseRetrievalResponse : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseRetrievalResponse() { } + public System.Collections.Generic.IReadOnlyList Activity { get { throw null; } } + public System.Collections.Generic.IReadOnlyList References { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Response { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalResponse System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalResponse System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseSearchIndexActivityArguments : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseSearchIndexActivityArguments() { } + public string Filter { get { throw null; } } + public string Search { get { throw null; } } + public System.Collections.Generic.IReadOnlyList SearchFields { get { throw null; } } + public string SemanticConfigurationName { get { throw null; } } + public System.Collections.Generic.IReadOnlyList SourceDataFields { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseSearchIndexActivityArguments System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseSearchIndexActivityArguments System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseSearchIndexActivityRecord : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseSearchIndexActivityRecord() { } + public Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseSearchIndexActivityArguments SearchIndexArguments { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseSearchIndexActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseSearchIndexActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseSearchIndexReference : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseSearchIndexReference() : base (default(string), default(int)) { } + public string DocKey { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseSearchIndexReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseSearchIndexReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseWebActivityArguments : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseWebActivityArguments() { } + public int? Count { get { throw null; } } + public string Freshness { get { throw null; } } + public string Language { get { throw null; } } + public string Market { get { throw null; } } + public string Search { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseWebActivityArguments System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseWebActivityArguments System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseWebActivityRecord : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalActivityRecord, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseWebActivityRecord() { } + public Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseWebActivityArguments WebArguments { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseWebActivityRecord System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseWebActivityRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeBaseWebReference : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal KnowledgeBaseWebReference() : base (default(string), default(int)) { } + public string Title { get { throw null; } } + public System.Uri Url { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseWebReference System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseWebReference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public abstract partial class KnowledgeRetrievalIntent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + protected KnowledgeRetrievalIntent() { } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalIntent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalIntent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct KnowledgeRetrievalIntentType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public KnowledgeRetrievalIntentType(string value) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalIntentType Semantic { get { throw null; } } + public bool Equals(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalIntentType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalIntentType left, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalIntentType right) { throw null; } + public static implicit operator Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalIntentType (string value) { throw null; } + public static bool operator !=(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalIntentType left, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalIntentType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class KnowledgeRetrievalLowReasoningEffort : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffort, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public KnowledgeRetrievalLowReasoningEffort() { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalLowReasoningEffort System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalLowReasoningEffort System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeRetrievalMediumReasoningEffort : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffort, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public KnowledgeRetrievalMediumReasoningEffort() { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalMediumReasoningEffort System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalMediumReasoningEffort System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class KnowledgeRetrievalMinimalReasoningEffort : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffort, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public KnowledgeRetrievalMinimalReasoningEffort() { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalMinimalReasoningEffort System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalMinimalReasoningEffort System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct KnowledgeRetrievalOutputMode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public KnowledgeRetrievalOutputMode(string value) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode AnswerSynthesis { get { throw null; } } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode ExtractiveData { get { throw null; } } + public bool Equals(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode left, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode right) { throw null; } + public static implicit operator Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode (string value) { throw null; } + public static bool operator !=(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode left, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode right) { throw null; } + public override string ToString() { throw null; } + } + public abstract partial class KnowledgeRetrievalReasoningEffort : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + protected KnowledgeRetrievalReasoningEffort() { } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffort System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffort System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct KnowledgeRetrievalReasoningEffortKind : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public KnowledgeRetrievalReasoningEffortKind(string value) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffortKind Low { get { throw null; } } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffortKind Medium { get { throw null; } } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffortKind Minimal { get { throw null; } } + public bool Equals(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffortKind other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffortKind left, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffortKind right) { throw null; } + public static implicit operator Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffortKind (string value) { throw null; } + public static bool operator !=(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffortKind left, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffortKind right) { throw null; } + public override string ToString() { throw null; } + } + public partial class KnowledgeRetrievalSemanticIntent : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalIntent, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public KnowledgeRetrievalSemanticIntent(string search) { } + public string Search { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalSemanticIntent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalSemanticIntent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public abstract partial class KnowledgeSourceParams : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + protected KnowledgeSourceParams(string knowledgeSourceName) { } + public bool? AlwaysQuerySource { get { throw null; } set { } } + public bool? IncludeReferences { get { throw null; } set { } } + public bool? IncludeReferenceSourceData { get { throw null; } set { } } + public string KnowledgeSourceName { get { throw null; } } + public float? RerankerThreshold { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeSourceParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.KnowledgeSourceParams System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class RemoteSharePointKnowledgeSourceParams : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeSourceParams, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public RemoteSharePointKnowledgeSourceParams(string knowledgeSourceName) : base (default(string)) { } + public string FilterExpressionAddOn { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.RemoteSharePointKnowledgeSourceParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.RemoteSharePointKnowledgeSourceParams System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class SearchIndexKnowledgeSourceParams : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeSourceParams, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public SearchIndexKnowledgeSourceParams(string knowledgeSourceName) : base (default(string)) { } + public string FilterAddOn { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.SearchIndexKnowledgeSourceParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.SearchIndexKnowledgeSourceParams System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class SharePointSensitivityLabelInfo : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal SharePointSensitivityLabelInfo() { } + public string Color { get { throw null; } } + public string DisplayName { get { throw null; } } + public bool? IsEncrypted { get { throw null; } } + public int? Priority { get { throw null; } } + public string SensitivityLabelId { get { throw null; } } + public string Tooltip { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.SharePointSensitivityLabelInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.SharePointSensitivityLabelInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class WebKnowledgeSourceParams : Azure.Search.Documents.KnowledgeBases.Models.KnowledgeSourceParams, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public WebKnowledgeSourceParams(string knowledgeSourceName) : base (default(string)) { } + public int? Count { get { throw null; } set { } } + public string Freshness { get { throw null; } set { } } + public string Language { get { throw null; } set { } } + public string Market { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.WebKnowledgeSourceParams System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.KnowledgeBases.Models.WebKnowledgeSourceParams System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } +} namespace Azure.Search.Documents.Models { public partial class AutocompleteItem : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel @@ -5213,12 +5888,16 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class FacetResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel, System.Collections.Generic.IEnumerable>, System.Collections.Generic.IReadOnlyCollection>, System.Collections.Generic.IReadOnlyDictionary, System.Collections.IEnumerable { internal FacetResult() { } + public double? Avg { get { throw null; } } + public long? Cardinality { get { throw null; } } public long? Count { get { throw null; } } public System.Collections.Generic.IReadOnlyDictionary> Facets { get { throw null; } } public Azure.Search.Documents.Models.FacetType FacetType { get { throw null; } } public object From { get { throw null; } } public object this[string key] { get { throw null; } } public System.Collections.Generic.IEnumerable Keys { get { throw null; } } + public double? Max { get { throw null; } } + public double? Min { get { throw null; } } public double? Sum { get { throw null; } } int System.Collections.Generic.IReadOnlyCollection>.Count { get { throw null; } } public object To { get { throw null; } } @@ -5335,6 +6014,25 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct IndexedSharePointContainerName : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public IndexedSharePointContainerName(string value) { throw null; } + public static Azure.Search.Documents.Models.IndexedSharePointContainerName AllSiteLibraries { get { throw null; } } + public static Azure.Search.Documents.Models.IndexedSharePointContainerName DefaultSiteLibrary { get { throw null; } } + public static Azure.Search.Documents.Models.IndexedSharePointContainerName UseQuery { get { throw null; } } + public bool Equals(Azure.Search.Documents.Models.IndexedSharePointContainerName other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Search.Documents.Models.IndexedSharePointContainerName left, Azure.Search.Documents.Models.IndexedSharePointContainerName right) { throw null; } + public static implicit operator Azure.Search.Documents.Models.IndexedSharePointContainerName (string value) { throw null; } + public static bool operator !=(Azure.Search.Documents.Models.IndexedSharePointContainerName left, Azure.Search.Documents.Models.IndexedSharePointContainerName right) { throw null; } + public override string ToString() { throw null; } + } public partial class IndexerResyncBody : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public IndexerResyncBody() { } @@ -5360,33 +6058,71 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class KnowledgeAgentMessageImageContentImage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class KnowledgeBaseMessageImageContentImage : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public KnowledgeAgentMessageImageContentImage(System.Uri url) { } + public KnowledgeBaseMessageImageContentImage(System.Uri url) { } public System.Uri Url { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Models.KnowledgeAgentMessageImageContentImage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.Search.Documents.Models.KnowledgeAgentMessageImageContentImage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Search.Documents.Models.KnowledgeBaseMessageImageContentImage System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Search.Documents.Models.KnowledgeBaseMessageImageContentImage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct KnowledgeAgentOutputConfigurationModality : System.IEquatable + public readonly partial struct KnowledgeSourceContentExtractionMode : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public KnowledgeAgentOutputConfigurationModality(string value) { throw null; } - public static Azure.Search.Documents.Models.KnowledgeAgentOutputConfigurationModality AnswerSynthesis { get { throw null; } } - public static Azure.Search.Documents.Models.KnowledgeAgentOutputConfigurationModality ExtractiveData { get { throw null; } } - public bool Equals(Azure.Search.Documents.Models.KnowledgeAgentOutputConfigurationModality other) { throw null; } + public KnowledgeSourceContentExtractionMode(string value) { throw null; } + public static Azure.Search.Documents.Models.KnowledgeSourceContentExtractionMode Minimal { get { throw null; } } + public static Azure.Search.Documents.Models.KnowledgeSourceContentExtractionMode Standard { get { throw null; } } + public bool Equals(Azure.Search.Documents.Models.KnowledgeSourceContentExtractionMode other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Search.Documents.Models.KnowledgeAgentOutputConfigurationModality left, Azure.Search.Documents.Models.KnowledgeAgentOutputConfigurationModality right) { throw null; } - public static implicit operator Azure.Search.Documents.Models.KnowledgeAgentOutputConfigurationModality (string value) { throw null; } - public static bool operator !=(Azure.Search.Documents.Models.KnowledgeAgentOutputConfigurationModality left, Azure.Search.Documents.Models.KnowledgeAgentOutputConfigurationModality right) { throw null; } + public static bool operator ==(Azure.Search.Documents.Models.KnowledgeSourceContentExtractionMode left, Azure.Search.Documents.Models.KnowledgeSourceContentExtractionMode right) { throw null; } + public static implicit operator Azure.Search.Documents.Models.KnowledgeSourceContentExtractionMode (string value) { throw null; } + public static bool operator !=(Azure.Search.Documents.Models.KnowledgeSourceContentExtractionMode left, Azure.Search.Documents.Models.KnowledgeSourceContentExtractionMode right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct KnowledgeSourceIngestionPermissionOption : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public KnowledgeSourceIngestionPermissionOption(string value) { throw null; } + public static Azure.Search.Documents.Models.KnowledgeSourceIngestionPermissionOption GroupIds { get { throw null; } } + public static Azure.Search.Documents.Models.KnowledgeSourceIngestionPermissionOption RbacScope { get { throw null; } } + public static Azure.Search.Documents.Models.KnowledgeSourceIngestionPermissionOption UserIds { get { throw null; } } + public bool Equals(Azure.Search.Documents.Models.KnowledgeSourceIngestionPermissionOption other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Search.Documents.Models.KnowledgeSourceIngestionPermissionOption left, Azure.Search.Documents.Models.KnowledgeSourceIngestionPermissionOption right) { throw null; } + public static implicit operator Azure.Search.Documents.Models.KnowledgeSourceIngestionPermissionOption (string value) { throw null; } + public static bool operator !=(Azure.Search.Documents.Models.KnowledgeSourceIngestionPermissionOption left, Azure.Search.Documents.Models.KnowledgeSourceIngestionPermissionOption right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct KnowledgeSourceSynchronizationStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public KnowledgeSourceSynchronizationStatus(string value) { throw null; } + public static Azure.Search.Documents.Models.KnowledgeSourceSynchronizationStatus Active { get { throw null; } } + public static Azure.Search.Documents.Models.KnowledgeSourceSynchronizationStatus Creating { get { throw null; } } + public static Azure.Search.Documents.Models.KnowledgeSourceSynchronizationStatus Deleting { get { throw null; } } + public bool Equals(Azure.Search.Documents.Models.KnowledgeSourceSynchronizationStatus other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Search.Documents.Models.KnowledgeSourceSynchronizationStatus left, Azure.Search.Documents.Models.KnowledgeSourceSynchronizationStatus right) { throw null; } + public static implicit operator Azure.Search.Documents.Models.KnowledgeSourceSynchronizationStatus (string value) { throw null; } + public static bool operator !=(Azure.Search.Documents.Models.KnowledgeSourceSynchronizationStatus left, Azure.Search.Documents.Models.KnowledgeSourceSynchronizationStatus right) { throw null; } public override string ToString() { throw null; } } public partial class QueryAnswer @@ -5799,42 +6535,63 @@ public static partial class SearchModelFactory [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Search.Documents.Models.AutocompleteResults AutocompleteResults(double? coverage, System.Collections.Generic.IReadOnlyList results) { throw null; } public static Azure.Search.Documents.Indexes.Models.KnowledgeSource AzureBlobKnowledgeSource(string name = null, string description = null, string kind = null, string eTag = null, Azure.Search.Documents.Indexes.Models.SearchResourceEncryptionKey encryptionKey = null, System.Collections.Generic.IDictionary serializedAdditionalRawData = null, Azure.Search.Documents.Indexes.Models.AzureBlobKnowledgeSourceParameters azureBlobParameters = null) { throw null; } - public static Azure.Search.Documents.Indexes.Models.AzureBlobKnowledgeSourceParameters AzureBlobKnowledgeSourceParameters(Azure.Search.Documents.Indexes.Models.SearchIndexerDataIdentity identity = null, string connectionString = null, string containerName = null, string folderPath = null, Azure.Search.Documents.Indexes.Models.VectorSearchVectorizer embeddingModel = null, Azure.Search.Documents.Indexes.Models.KnowledgeAgentModel chatCompletionModel = null, Azure.Search.Documents.Indexes.Models.IndexingSchedule ingestionSchedule = null, System.Collections.Generic.IReadOnlyDictionary createdResources = null, bool? disableImageVerbalization = default(bool?)) { throw null; } + public static Azure.Search.Documents.Indexes.Models.AzureBlobKnowledgeSourceParameters AzureBlobKnowledgeSourceParameters(string connectionString = null, string containerName = null, string folderPath = null, bool? isAdlsGen2 = default(bool?), Azure.Search.Documents.Indexes.Models.KnowledgeSourceIngestionParameters ingestionParameters = null, System.Collections.Generic.IReadOnlyDictionary createdResources = null) { throw null; } public static Azure.Search.Documents.Indexes.Models.CharFilter CharFilter(string oDataType, string name) { throw null; } public static Azure.Search.Documents.Indexes.Models.CognitiveServicesAccount CognitiveServicesAccount(string oDataType, string description) { throw null; } + public static Azure.Search.Documents.Indexes.Models.CompletedSynchronizationState CompletedSynchronizationState(System.DateTimeOffset startTime = default(System.DateTimeOffset), System.DateTimeOffset endTime = default(System.DateTimeOffset), int itemsUpdatesProcessed = 0, int itemsUpdatesFailed = 0, int itemsSkipped = 0) { throw null; } public static Azure.Search.Documents.Indexes.Models.DataChangeDetectionPolicy DataChangeDetectionPolicy(string oDataType) { throw null; } public static Azure.Search.Documents.Indexes.Models.DataDeletionDetectionPolicy DataDeletionDetectionPolicy(string oDataType) { throw null; } public static Azure.Search.Documents.Models.DebugInfo DebugInfo(Azure.Search.Documents.Models.QueryRewritesDebugInfo queryRewrites = null) { throw null; } public static Azure.Search.Documents.Models.DocumentDebugInfo DocumentDebugInfo(Azure.Search.Documents.Models.SemanticDebugInfo semantic = null, Azure.Search.Documents.Models.VectorsDebugInfo vectors = null, System.Collections.Generic.IReadOnlyDictionary> innerHits = null) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Search.Documents.Models.DocumentDebugInfo DocumentDebugInfo(Azure.Search.Documents.Models.VectorsDebugInfo vectors = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Search.Documents.Models.FacetResult FacetResult(long? count = default(long?), System.Collections.Generic.IReadOnlyDictionary additionalProperties = null) { throw null; } - public static Azure.Search.Documents.Models.FacetResult FacetResult(long? count = default(long?), double? sum = default(double?), System.Collections.Generic.IReadOnlyDictionary> facets = null, System.Collections.Generic.IReadOnlyDictionary additionalProperties = null) { throw null; } + public static Azure.Search.Documents.Models.FacetResult FacetResult(long? count = default(long?), double? avg = default(double?), double? min = default(double?), double? max = default(double?), double? sum = default(double?), long? cardinality = default(long?), System.Collections.Generic.IReadOnlyDictionary> facets = null, System.Collections.Generic.IReadOnlyDictionary additionalProperties = null) { throw null; } public static Azure.Search.Documents.Models.IndexDocumentsResult IndexDocumentsResult(System.Collections.Generic.IEnumerable results) { throw null; } + public static Azure.Search.Documents.Indexes.Models.IndexedOneLakeKnowledgeSourceParameters IndexedOneLakeKnowledgeSourceParameters(string fabricWorkspaceId = null, string lakehouseId = null, string targetPath = null, Azure.Search.Documents.Indexes.Models.KnowledgeSourceIngestionParameters ingestionParameters = null, System.Collections.Generic.IReadOnlyDictionary createdResources = null) { throw null; } + public static Azure.Search.Documents.Indexes.Models.IndexedSharePointKnowledgeSourceParameters IndexedSharePointKnowledgeSourceParameters(string connectionString = null, Azure.Search.Documents.Models.IndexedSharePointContainerName containerName = default(Azure.Search.Documents.Models.IndexedSharePointContainerName), string query = null, Azure.Search.Documents.Indexes.Models.KnowledgeSourceIngestionParameters ingestionParameters = null, System.Collections.Generic.IReadOnlyDictionary createdResources = null) { throw null; } public static Azure.Search.Documents.Indexes.Models.IndexerChangeTrackingState IndexerChangeTrackingState(string allDocumentsInitialState, string allDocumentsFinalState, string resetDocumentsInitialState, string resetDocumentsFinalState) { throw null; } public static Azure.Search.Documents.Indexes.Models.IndexerExecutionResult IndexerExecutionResult(Azure.Search.Documents.Indexes.Models.IndexerExecutionStatus status = Azure.Search.Documents.Indexes.Models.IndexerExecutionStatus.TransientFailure, Azure.Search.Documents.Indexes.Models.IndexerExecutionStatusDetail? statusDetail = default(Azure.Search.Documents.Indexes.Models.IndexerExecutionStatusDetail?), Azure.Search.Documents.Indexes.Models.IndexingMode? mode = default(Azure.Search.Documents.Indexes.Models.IndexingMode?), string errorMessage = null, System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable errors = null, System.Collections.Generic.IEnumerable warnings = null, int itemCount = 0, int failedItemCount = 0, string initialTrackingState = null, string finalTrackingState = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Search.Documents.Indexes.Models.IndexerExecutionResult IndexerExecutionResult(Azure.Search.Documents.Indexes.Models.IndexerExecutionStatus status = Azure.Search.Documents.Indexes.Models.IndexerExecutionStatus.TransientFailure, string errorMessage = null, System.DateTimeOffset? startTime = default(System.DateTimeOffset?), System.DateTimeOffset? endTime = default(System.DateTimeOffset?), System.Collections.Generic.IEnumerable errors = null, System.Collections.Generic.IEnumerable warnings = null, int itemCount = 0, int failedItemCount = 0, string initialTrackingState = null, string finalTrackingState = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Search.Documents.Indexes.Models.IndexerExecutionResult IndexerExecutionResult(Azure.Search.Documents.Indexes.Models.IndexerExecutionStatus status, string errorMessage, System.DateTimeOffset? startTime, System.DateTimeOffset? endTime, System.Collections.Generic.IReadOnlyList errors, System.Collections.Generic.IReadOnlyList warnings, int itemCount, int failedItemCount, string initialTrackingState, string finalTrackingState) { throw null; } + public static Azure.Search.Documents.Indexes.Models.IndexerRuntime IndexerRuntime(long usedSeconds = (long)0, long? remainingSeconds = default(long?), System.DateTimeOffset beginningTime = default(System.DateTimeOffset), System.DateTimeOffset endingTime = default(System.DateTimeOffset)) { throw null; } public static Azure.Search.Documents.Indexes.Models.IndexerState IndexerState(Azure.Search.Documents.Indexes.Models.IndexingMode? mode = default(Azure.Search.Documents.Indexes.Models.IndexingMode?), string allDocumentsInitialChangeTrackingState = null, string allDocumentsFinalChangeTrackingState = null, string resetDocumentsInitialChangeTrackingState = null, string resetDocumentsFinalChangeTrackingState = null, System.Collections.Generic.IEnumerable resetDocumentKeys = null, System.Collections.Generic.IEnumerable resetDataSourceDocumentIds = null) { throw null; } public static Azure.Search.Documents.Indexes.Models.IndexerState IndexerState(Azure.Search.Documents.Indexes.Models.IndexingMode? mode = default(Azure.Search.Documents.Indexes.Models.IndexingMode?), string allDocsInitialTrackingState = null, string allDocsFinalTrackingState = null, string resetDocsInitialTrackingState = null, string resetDocsFinalTrackingState = null, System.Collections.Generic.IEnumerable resetDocumentKeys = null, System.Collections.Generic.IEnumerable resetDataSourceDocumentIds = null, string resyncInitialTrackingState = null, string resyncFinalTrackingState = null) { throw null; } public static Azure.Search.Documents.Models.IndexingResult IndexingResult(string key, string errorMessage, bool succeeded, int status) { throw null; } public static Azure.Search.Documents.Indexes.Models.IndexStatisticsSummary IndexStatisticsSummary(string name = null, long documentCount = (long)0, long storageSize = (long)0, long vectorIndexSize = (long)0) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentActivityRecord KnowledgeAgentActivityRecord(int id = 0, string type = null, int? elapsedMs = default(int?)) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentAzureBlobActivityArguments KnowledgeAgentAzureBlobActivityArguments(string search = null) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentAzureBlobActivityRecord KnowledgeAgentAzureBlobActivityRecord(int id = 0, int? elapsedMs = default(int?), string knowledgeSourceName = null, System.DateTimeOffset? queryTime = default(System.DateTimeOffset?), int? count = default(int?), Azure.Search.Documents.Agents.Models.KnowledgeAgentAzureBlobActivityArguments azureBlobArguments = null) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentAzureBlobReference KnowledgeAgentAzureBlobReference(string id = null, int activitySource = 0, System.Collections.Generic.IReadOnlyDictionary sourceData = null, float? rerankerScore = default(float?), string blobUrl = null) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentModelAnswerSynthesisActivityRecord KnowledgeAgentModelAnswerSynthesisActivityRecord(int id = 0, int? elapsedMs = default(int?), int? inputTokens = default(int?), int? outputTokens = default(int?)) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentModelQueryPlanningActivityRecord KnowledgeAgentModelQueryPlanningActivityRecord(int id = 0, int? elapsedMs = default(int?), int? inputTokens = default(int?), int? outputTokens = default(int?)) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentReference KnowledgeAgentReference(string type = null, string id = null, int activitySource = 0, System.Collections.Generic.IReadOnlyDictionary sourceData = null, float? rerankerScore = default(float?)) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentRetrievalActivityRecord KnowledgeAgentRetrievalActivityRecord(int id = 0, int? elapsedMs = default(int?), string knowledgeSourceName = null, System.DateTimeOffset? queryTime = default(System.DateTimeOffset?), int? count = default(int?)) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentRetrievalResponse KnowledgeAgentRetrievalResponse(System.Collections.Generic.IEnumerable response = null, System.Collections.Generic.IEnumerable activity = null, System.Collections.Generic.IEnumerable references = null) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentSearchIndexActivityArguments KnowledgeAgentSearchIndexActivityArguments(string search = null, string filter = null) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentSearchIndexActivityRecord KnowledgeAgentSearchIndexActivityRecord(int id = 0, int? elapsedMs = default(int?), string knowledgeSourceName = null, System.DateTimeOffset? queryTime = default(System.DateTimeOffset?), int? count = default(int?), Azure.Search.Documents.Agents.Models.KnowledgeAgentSearchIndexActivityArguments searchIndexArguments = null) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentSearchIndexReference KnowledgeAgentSearchIndexReference(string id = null, int activitySource = 0, System.Collections.Generic.IReadOnlyDictionary sourceData = null, float? rerankerScore = default(float?), string docKey = null) { throw null; } - public static Azure.Search.Documents.Agents.Models.KnowledgeAgentSemanticRerankerActivityRecord KnowledgeAgentSemanticRerankerActivityRecord(int id = 0, int? elapsedMs = default(int?), int? inputTokens = default(int?)) { throw null; } + public static Azure.Search.Documents.Indexes.Models.KnowledgeBase KnowledgeBase(string name = null, System.Collections.Generic.IEnumerable knowledgeSources = null, System.Collections.Generic.IEnumerable models = null, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffort retrievalReasoningEffort = null, Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode? outputMode = default(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalOutputMode?), string eTag = null, Azure.Search.Documents.Indexes.Models.SearchResourceEncryptionKey encryptionKey = null, string description = null, string retrievalInstructions = null, string answerInstructions = null, System.Collections.Generic.IDictionary serializedAdditionalRawData = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseActivityRecord KnowledgeBaseActivityRecord(int id = 0, string type = null, int? elapsedMs = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail error = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAgenticReasoningActivityRecord KnowledgeBaseAgenticReasoningActivityRecord(int id = 0, int? elapsedMs = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail error = null, int? reasoningTokens = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalReasoningEffort retrievalReasoningEffort = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAzureBlobActivityArguments KnowledgeBaseAzureBlobActivityArguments(string search = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAzureBlobActivityRecord KnowledgeBaseAzureBlobActivityRecord(int id = 0, int? elapsedMs = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail error = null, string knowledgeSourceName = null, System.DateTimeOffset? queryTime = default(System.DateTimeOffset?), int? count = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAzureBlobActivityArguments azureBlobArguments = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseAzureBlobReference KnowledgeBaseAzureBlobReference(string id = null, int activitySource = 0, System.Collections.Generic.IReadOnlyDictionary sourceData = null, float? rerankerScore = default(float?), string blobUrl = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorAdditionalInfo KnowledgeBaseErrorAdditionalInfo(string type = null, object info = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail KnowledgeBaseErrorDetail(string code = null, string message = null, string target = null, System.Collections.Generic.IEnumerable details = null, System.Collections.Generic.IEnumerable additionalInfo = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedOneLakeActivityArguments KnowledgeBaseIndexedOneLakeActivityArguments(string search = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedOneLakeActivityRecord KnowledgeBaseIndexedOneLakeActivityRecord(int id = 0, int? elapsedMs = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail error = null, string knowledgeSourceName = null, System.DateTimeOffset? queryTime = default(System.DateTimeOffset?), int? count = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedOneLakeActivityArguments indexedOneLakeArguments = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedOneLakeReference KnowledgeBaseIndexedOneLakeReference(string id = null, int activitySource = 0, System.Collections.Generic.IReadOnlyDictionary sourceData = null, float? rerankerScore = default(float?), string docUrl = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedSharePointActivityArguments KnowledgeBaseIndexedSharePointActivityArguments(string search = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedSharePointActivityRecord KnowledgeBaseIndexedSharePointActivityRecord(int id = 0, int? elapsedMs = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail error = null, string knowledgeSourceName = null, System.DateTimeOffset? queryTime = default(System.DateTimeOffset?), int? count = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedSharePointActivityArguments indexedSharePointArguments = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseIndexedSharePointReference KnowledgeBaseIndexedSharePointReference(string id = null, int activitySource = 0, System.Collections.Generic.IReadOnlyDictionary sourceData = null, float? rerankerScore = default(float?), string docUrl = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseModelAnswerSynthesisActivityRecord KnowledgeBaseModelAnswerSynthesisActivityRecord(int id = 0, int? elapsedMs = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail error = null, int? inputTokens = default(int?), int? outputTokens = default(int?)) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseModelQueryPlanningActivityRecord KnowledgeBaseModelQueryPlanningActivityRecord(int id = 0, int? elapsedMs = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail error = null, int? inputTokens = default(int?), int? outputTokens = default(int?)) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseReference KnowledgeBaseReference(string type = null, string id = null, int activitySource = 0, System.Collections.Generic.IReadOnlyDictionary sourceData = null, float? rerankerScore = default(float?)) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRemoteSharePointActivityArguments KnowledgeBaseRemoteSharePointActivityArguments(string search = null, string filterExpressionAddOn = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRemoteSharePointActivityRecord KnowledgeBaseRemoteSharePointActivityRecord(int id = 0, int? elapsedMs = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail error = null, string knowledgeSourceName = null, System.DateTimeOffset? queryTime = default(System.DateTimeOffset?), int? count = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRemoteSharePointActivityArguments remoteSharePointArguments = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRemoteSharePointReference KnowledgeBaseRemoteSharePointReference(string id = null, int activitySource = 0, System.Collections.Generic.IReadOnlyDictionary sourceData = null, float? rerankerScore = default(float?), System.Uri webUrl = null, Azure.Search.Documents.KnowledgeBases.Models.SharePointSensitivityLabelInfo searchSensitivityLabelInfo = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalActivityRecord KnowledgeBaseRetrievalActivityRecord(int id = 0, int? elapsedMs = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail error = null, string knowledgeSourceName = null, System.DateTimeOffset? queryTime = default(System.DateTimeOffset?), int? count = default(int?)) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalResponse KnowledgeBaseRetrievalResponse(System.Collections.Generic.IEnumerable response = null, System.Collections.Generic.IEnumerable activity = null, System.Collections.Generic.IEnumerable references = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseSearchIndexActivityArguments KnowledgeBaseSearchIndexActivityArguments(string search = null, string filter = null, System.Collections.Generic.IEnumerable sourceDataFields = null, System.Collections.Generic.IEnumerable searchFields = null, string semanticConfigurationName = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseSearchIndexActivityRecord KnowledgeBaseSearchIndexActivityRecord(int id = 0, int? elapsedMs = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail error = null, string knowledgeSourceName = null, System.DateTimeOffset? queryTime = default(System.DateTimeOffset?), int? count = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseSearchIndexActivityArguments searchIndexArguments = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseSearchIndexReference KnowledgeBaseSearchIndexReference(string id = null, int activitySource = 0, System.Collections.Generic.IReadOnlyDictionary sourceData = null, float? rerankerScore = default(float?), string docKey = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseWebActivityArguments KnowledgeBaseWebActivityArguments(string search = null, string language = null, string market = null, int? count = default(int?), string freshness = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseWebActivityRecord KnowledgeBaseWebActivityRecord(int id = 0, int? elapsedMs = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseErrorDetail error = null, string knowledgeSourceName = null, System.DateTimeOffset? queryTime = default(System.DateTimeOffset?), int? count = default(int?), Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseWebActivityArguments webArguments = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseWebReference KnowledgeBaseWebReference(string id = null, int activitySource = 0, System.Collections.Generic.IReadOnlyDictionary sourceData = null, float? rerankerScore = default(float?), System.Uri url = null, string title = null) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.KnowledgeRetrievalSemanticIntent KnowledgeRetrievalSemanticIntent(string search = null) { throw null; } + public static Azure.Search.Documents.Indexes.Models.KnowledgeSourceStatistics KnowledgeSourceStatistics(int totalSynchronization = 0, string averageSynchronizationDuration = null, int averageItemsProcessedPerSynchronization = 0) { throw null; } + public static Azure.Search.Documents.Indexes.Models.KnowledgeSourceStatus KnowledgeSourceStatus(Azure.Search.Documents.Models.KnowledgeSourceSynchronizationStatus synchronizationStatus = default(Azure.Search.Documents.Models.KnowledgeSourceSynchronizationStatus), string synchronizationInterval = null, Azure.Search.Documents.Indexes.Models.SynchronizationState currentSynchronizationState = null, Azure.Search.Documents.Indexes.Models.CompletedSynchronizationState lastSynchronizationState = null, Azure.Search.Documents.Indexes.Models.KnowledgeSourceStatistics statistics = null) { throw null; } public static Azure.Search.Documents.Indexes.Models.LexicalAnalyzer LexicalAnalyzer(string oDataType, string name) { throw null; } public static Azure.Search.Documents.Indexes.Models.LexicalTokenizer LexicalTokenizer(string oDataType, string name) { throw null; } public static Azure.Search.Documents.Indexes.Models.ListIndexStatsSummary ListIndexStatsSummary(System.Collections.Generic.IEnumerable indexesStatistics = null) { throw null; } @@ -5863,8 +6620,8 @@ public static partial class SearchModelFactory [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Search.Documents.Indexes.Models.SearchIndexerStatus SearchIndexerStatus(Azure.Search.Documents.Indexes.Models.IndexerStatus status, Azure.Search.Documents.Indexes.Models.IndexerExecutionResult lastResult, System.Collections.Generic.IReadOnlyList executionHistory, Azure.Search.Documents.Indexes.Models.SearchIndexerLimits limits) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.Search.Documents.Indexes.Models.SearchIndexerStatus SearchIndexerStatus(string name = null, Azure.Search.Documents.Indexes.Models.IndexerStatus status = Azure.Search.Documents.Indexes.Models.IndexerStatus.Unknown, Azure.Search.Documents.Indexes.Models.IndexerExecutionResult lastResult = null, System.Collections.Generic.IEnumerable executionHistory = null, Azure.Search.Documents.Indexes.Models.SearchIndexerLimits limits = null) { throw null; } - public static Azure.Search.Documents.Indexes.Models.SearchIndexerStatus SearchIndexerStatus(string name = null, Azure.Search.Documents.Indexes.Models.IndexerStatus status = Azure.Search.Documents.Indexes.Models.IndexerStatus.Unknown, Azure.Search.Documents.Indexes.Models.IndexerExecutionResult lastResult = null, System.Collections.Generic.IEnumerable executionHistory = null, Azure.Search.Documents.Indexes.Models.SearchIndexerLimits limits = null, Azure.Search.Documents.Indexes.Models.IndexerState currentState = null) { throw null; } + public static Azure.Search.Documents.Indexes.Models.SearchIndexerStatus SearchIndexerStatus(string name = null, Azure.Search.Documents.Indexes.Models.IndexerStatus status = Azure.Search.Documents.Indexes.Models.IndexerStatus.Unknown, Azure.Search.Documents.Indexes.Models.IndexerRuntime runtime = null, Azure.Search.Documents.Indexes.Models.IndexerExecutionResult lastResult = null, System.Collections.Generic.IEnumerable executionHistory = null, Azure.Search.Documents.Indexes.Models.SearchIndexerLimits limits = null) { throw null; } + public static Azure.Search.Documents.Indexes.Models.SearchIndexerStatus SearchIndexerStatus(string name = null, Azure.Search.Documents.Indexes.Models.IndexerStatus status = Azure.Search.Documents.Indexes.Models.IndexerStatus.Unknown, Azure.Search.Documents.Indexes.Models.IndexerRuntime runtime = null, Azure.Search.Documents.Indexes.Models.IndexerExecutionResult lastResult = null, System.Collections.Generic.IEnumerable executionHistory = null, Azure.Search.Documents.Indexes.Models.SearchIndexerLimits limits = null, Azure.Search.Documents.Indexes.Models.IndexerState currentState = null) { throw null; } public static Azure.Search.Documents.Indexes.Models.SearchIndexerWarning SearchIndexerWarning(string key, string message, string name, string details, string documentationLink) { throw null; } public static Azure.Search.Documents.Indexes.Models.KnowledgeSource SearchIndexKnowledgeSource(string name = null, string description = null, string kind = null, string eTag = null, Azure.Search.Documents.Indexes.Models.SearchResourceEncryptionKey encryptionKey = null, System.Collections.Generic.IDictionary serializedAdditionalRawData = null, Azure.Search.Documents.Indexes.Models.SearchIndexKnowledgeSourceParameters searchIndexParameters = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -5891,8 +6648,11 @@ public static partial class SearchModelFactory public static Azure.Search.Documents.Indexes.Models.SearchServiceCounters SearchServiceCounters(Azure.Search.Documents.Indexes.Models.SearchResourceCounter aliasCounter = null, Azure.Search.Documents.Indexes.Models.SearchResourceCounter documentCounter = null, Azure.Search.Documents.Indexes.Models.SearchResourceCounter indexCounter = null, Azure.Search.Documents.Indexes.Models.SearchResourceCounter indexerCounter = null, Azure.Search.Documents.Indexes.Models.SearchResourceCounter dataSourceCounter = null, Azure.Search.Documents.Indexes.Models.SearchResourceCounter storageSizeCounter = null, Azure.Search.Documents.Indexes.Models.SearchResourceCounter synonymMapCounter = null, Azure.Search.Documents.Indexes.Models.SearchResourceCounter skillsetCounter = null, Azure.Search.Documents.Indexes.Models.SearchResourceCounter vectorIndexSizeCounter = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Search.Documents.Indexes.Models.SearchServiceLimits SearchServiceLimits(int? maxFieldsPerIndex, int? maxFieldNestingDepthPerIndex, int? maxComplexCollectionFieldsPerIndex, int? maxComplexObjectsInCollectionsPerDocument) { throw null; } - public static Azure.Search.Documents.Indexes.Models.SearchServiceLimits SearchServiceLimits(int? maxFieldsPerIndex = default(int?), int? maxFieldNestingDepthPerIndex = default(int?), int? maxComplexCollectionFieldsPerIndex = default(int?), int? maxComplexObjectsInCollectionsPerDocument = default(int?), long? maxStoragePerIndexInBytes = default(long?)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Search.Documents.Indexes.Models.SearchServiceLimits SearchServiceLimits(int? maxFieldsPerIndex, int? maxFieldNestingDepthPerIndex, int? maxComplexCollectionFieldsPerIndex, int? maxComplexObjectsInCollectionsPerDocument, long? maxStoragePerIndexInBytes) { throw null; } + public static Azure.Search.Documents.Indexes.Models.SearchServiceLimits SearchServiceLimits(int? maxFieldsPerIndex = default(int?), int? maxFieldNestingDepthPerIndex = default(int?), int? maxComplexCollectionFieldsPerIndex = default(int?), int? maxComplexObjectsInCollectionsPerDocument = default(int?), long? maxStoragePerIndexInBytes = default(long?), long? maxCumulativeIndexerRuntimeSeconds = default(long?)) { throw null; } public static Azure.Search.Documents.Indexes.Models.SearchServiceStatistics SearchServiceStatistics(Azure.Search.Documents.Indexes.Models.SearchServiceCounters counters, Azure.Search.Documents.Indexes.Models.SearchServiceLimits limits) { throw null; } + public static Azure.Search.Documents.Indexes.Models.SearchServiceStatistics SearchServiceStatistics(Azure.Search.Documents.Indexes.Models.SearchServiceCounters counters = null, Azure.Search.Documents.Indexes.Models.ServiceIndexersRuntime indexersRuntime = null, Azure.Search.Documents.Indexes.Models.SearchServiceLimits limits = null) { throw null; } public static Azure.Search.Documents.Models.SearchSuggestion SearchSuggestion(T document, string text) { throw null; } public static Azure.Search.Documents.Models.SemanticDebugInfo SemanticDebugInfo(Azure.Search.Documents.Models.QueryResultDocumentSemanticField titleField = null, System.Collections.Generic.IEnumerable contentFields = null, System.Collections.Generic.IEnumerable keywordFields = null, Azure.Search.Documents.Models.QueryResultDocumentRerankerInput rerankerInput = null) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] @@ -5901,9 +6661,12 @@ public static partial class SearchModelFactory [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Search.Documents.Models.SemanticSearchResults SemanticSearchResults(System.Collections.Generic.IReadOnlyList answers, Azure.Search.Documents.Models.SemanticErrorReason? errorReason, Azure.Search.Documents.Models.SemanticSearchResultsType? resultsType) { throw null; } public static Azure.Search.Documents.Models.SemanticSearchResults SemanticSearchResults(System.Collections.Generic.IReadOnlyList answers, Azure.Search.Documents.Models.SemanticErrorReason? errorReason, Azure.Search.Documents.Models.SemanticSearchResultsType? resultsType, Azure.Search.Documents.Models.SemanticQueryRewritesResultType? semanticQueryRewritesResultType) { throw null; } + public static Azure.Search.Documents.Indexes.Models.ServiceIndexersRuntime ServiceIndexersRuntime(long usedSeconds = (long)0, long? remainingSeconds = default(long?), System.DateTimeOffset beginningTime = default(System.DateTimeOffset), System.DateTimeOffset endingTime = default(System.DateTimeOffset)) { throw null; } + public static Azure.Search.Documents.KnowledgeBases.Models.SharePointSensitivityLabelInfo SharePointSensitivityLabelInfo(string displayName = null, string sensitivityLabelId = null, string tooltip = null, int? priority = default(int?), string color = null, bool? isEncrypted = default(bool?)) { throw null; } public static Azure.Search.Documents.Indexes.Models.SimilarityAlgorithm SimilarityAlgorithm(string oDataType) { throw null; } public static Azure.Search.Documents.Models.SingleVectorFieldResult SingleVectorFieldResult(double? searchScore = default(double?), double? vectorSimilarity = default(double?)) { throw null; } public static Azure.Search.Documents.Models.SuggestResults SuggestResults(System.Collections.Generic.IReadOnlyList> results, double? coverage) { throw null; } + public static Azure.Search.Documents.Indexes.Models.SynchronizationState SynchronizationState(System.DateTimeOffset startTime = default(System.DateTimeOffset), int itemsUpdatesProcessed = 0, int itemsUpdatesFailed = 0, int itemsSkipped = 0) { throw null; } public static Azure.Search.Documents.Indexes.Models.SynonymMap SynonymMap(string name = null, string format = null, string synonyms = null, Azure.Search.Documents.Indexes.Models.SearchResourceEncryptionKey encryptionKey = null, string etag = null, System.Collections.Generic.IDictionary serializedAdditionalRawData = null) { throw null; } public static Azure.Search.Documents.Models.TextResult TextResult(double? searchScore = default(double?)) { throw null; } public static Azure.Search.Documents.Indexes.Models.TokenFilter TokenFilter(string oDataType, string name) { throw null; } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/AliasesRestClient.cs b/sdk/search/Azure.Search.Documents/src/Generated/AliasesRestClient.cs index 9576abb13e50..547695f5d656 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/AliasesRestClient.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/AliasesRestClient.cs @@ -32,7 +32,7 @@ internal partial class AliasesRestClient /// The tracking ID sent with the request to help with debugging. /// Api Version. /// , , or is null. - public AliasesRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, Guid? xMsClientRequestId = null, string apiVersion = "2025-08-01-preview") + public AliasesRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, Guid? xMsClientRequestId = null, string apiVersion = "2025-11-01-preview") { ClientDiagnostics = clientDiagnostics ?? throw new ArgumentNullException(nameof(clientDiagnostics)); _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); diff --git a/sdk/search/Azure.Search.Documents/src/Generated/DataSourcesRestClient.cs b/sdk/search/Azure.Search.Documents/src/Generated/DataSourcesRestClient.cs index 4b5ad2c77d8d..f4d949a6db19 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/DataSourcesRestClient.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/DataSourcesRestClient.cs @@ -32,7 +32,7 @@ internal partial class DataSourcesRestClient /// The tracking ID sent with the request to help with debugging. /// Api Version. /// , , or is null. - public DataSourcesRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, Guid? xMsClientRequestId = null, string apiVersion = "2025-08-01-preview") + public DataSourcesRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, Guid? xMsClientRequestId = null, string apiVersion = "2025-11-01-preview") { ClientDiagnostics = clientDiagnostics ?? throw new ArgumentNullException(nameof(clientDiagnostics)); _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); diff --git a/sdk/search/Azure.Search.Documents/src/Generated/DocumentsRestClient.cs b/sdk/search/Azure.Search.Documents/src/Generated/DocumentsRestClient.cs index c58e19f6336b..ac38f1e7d6f6 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/DocumentsRestClient.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/DocumentsRestClient.cs @@ -36,7 +36,7 @@ internal partial class DocumentsRestClient /// Api Version. /// , , , or is null. /// is an empty string, and was expected to be non-empty. - public DocumentsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, string indexName, Guid? xMsClientRequestId = null, string apiVersion = "2025-08-01-preview") + public DocumentsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, string indexName, Guid? xMsClientRequestId = null, string apiVersion = "2025-11-01-preview") { ClientDiagnostics = clientDiagnostics ?? throw new ArgumentNullException(nameof(clientDiagnostics)); _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); @@ -103,7 +103,7 @@ public Response Count(CancellationToken cancellationToken = default) } } - internal HttpMessage CreateSearchPostRequest(SearchOptions searchOptions, string xMsQuerySourceAuthorization) + internal HttpMessage CreateSearchPostRequest(SearchOptions searchOptions, string xMsQuerySourceAuthorization, bool? xMsEnableElevatedRead) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -120,6 +120,10 @@ internal HttpMessage CreateSearchPostRequest(SearchOptions searchOptions, string { request.Headers.Add("x-ms-query-source-authorization", xMsQuerySourceAuthorization); } + if (xMsEnableElevatedRead != null) + { + request.Headers.Add("x-ms-enable-elevated-read", xMsEnableElevatedRead.Value); + } request.Headers.Add("Accept", "application/json; odata.metadata=none"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); @@ -131,16 +135,17 @@ internal HttpMessage CreateSearchPostRequest(SearchOptions searchOptions, string /// Searches for documents in the index. /// The definition of the Search request. /// Token identifying the user for which the query is being executed. This token is used to enforce security restrictions on documents. + /// A value that enables elevated read that bypass document level permission checks for the query operation. /// The cancellation token to use. /// is null. - public async Task> SearchPostAsync(SearchOptions searchOptions, string xMsQuerySourceAuthorization = null, CancellationToken cancellationToken = default) + public async Task> SearchPostAsync(SearchOptions searchOptions, string xMsQuerySourceAuthorization = null, bool? xMsEnableElevatedRead = null, CancellationToken cancellationToken = default) { if (searchOptions == null) { throw new ArgumentNullException(nameof(searchOptions)); } - using var message = CreateSearchPostRequest(searchOptions, xMsQuerySourceAuthorization); + using var message = CreateSearchPostRequest(searchOptions, xMsQuerySourceAuthorization, xMsEnableElevatedRead); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -160,16 +165,17 @@ public async Task> SearchPostAsync(SearchOptions /// Searches for documents in the index. /// The definition of the Search request. /// Token identifying the user for which the query is being executed. This token is used to enforce security restrictions on documents. + /// A value that enables elevated read that bypass document level permission checks for the query operation. /// The cancellation token to use. /// is null. - public Response SearchPost(SearchOptions searchOptions, string xMsQuerySourceAuthorization = null, CancellationToken cancellationToken = default) + public Response SearchPost(SearchOptions searchOptions, string xMsQuerySourceAuthorization = null, bool? xMsEnableElevatedRead = null, CancellationToken cancellationToken = default) { if (searchOptions == null) { throw new ArgumentNullException(nameof(searchOptions)); } - using var message = CreateSearchPostRequest(searchOptions, xMsQuerySourceAuthorization); + using var message = CreateSearchPostRequest(searchOptions, xMsQuerySourceAuthorization, xMsEnableElevatedRead); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -186,7 +192,7 @@ public Response SearchPost(SearchOptions searchOptions, s } } - internal HttpMessage CreateGetRequest(string key, IEnumerable selectedFields, string xMsQuerySourceAuthorization) + internal HttpMessage CreateGetRequest(string key, IEnumerable selectedFields, string xMsQuerySourceAuthorization, bool? xMsEnableElevatedRead) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -209,6 +215,10 @@ internal HttpMessage CreateGetRequest(string key, IEnumerable selectedFi { request.Headers.Add("x-ms-query-source-authorization", xMsQuerySourceAuthorization); } + if (xMsEnableElevatedRead != null) + { + request.Headers.Add("x-ms-enable-elevated-read", xMsEnableElevatedRead.Value); + } request.Headers.Add("Accept", "application/json; odata.metadata=none"); return message; } @@ -217,16 +227,17 @@ internal HttpMessage CreateGetRequest(string key, IEnumerable selectedFi /// The key of the document to retrieve. /// List of field names to retrieve for the document; Any field not retrieved will be missing from the returned document. /// Token identifying the user for which the query is being executed. This token is used to enforce security restrictions on documents. + /// A value that enables elevated read that bypass document level permission checks for the query operation. /// The cancellation token to use. /// is null. - public async Task>> GetAsync(string key, IEnumerable selectedFields = null, string xMsQuerySourceAuthorization = null, CancellationToken cancellationToken = default) + public async Task>> GetAsync(string key, IEnumerable selectedFields = null, string xMsQuerySourceAuthorization = null, bool? xMsEnableElevatedRead = null, CancellationToken cancellationToken = default) { if (key == null) { throw new ArgumentNullException(nameof(key)); } - using var message = CreateGetRequest(key, selectedFields, xMsQuerySourceAuthorization); + using var message = CreateGetRequest(key, selectedFields, xMsQuerySourceAuthorization, xMsEnableElevatedRead); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -258,16 +269,17 @@ public async Task>> GetAsync(string /// The key of the document to retrieve. /// List of field names to retrieve for the document; Any field not retrieved will be missing from the returned document. /// Token identifying the user for which the query is being executed. This token is used to enforce security restrictions on documents. + /// A value that enables elevated read that bypass document level permission checks for the query operation. /// The cancellation token to use. /// is null. - public Response> Get(string key, IEnumerable selectedFields = null, string xMsQuerySourceAuthorization = null, CancellationToken cancellationToken = default) + public Response> Get(string key, IEnumerable selectedFields = null, string xMsQuerySourceAuthorization = null, bool? xMsEnableElevatedRead = null, CancellationToken cancellationToken = default) { if (key == null) { throw new ArgumentNullException(nameof(key)); } - using var message = CreateGetRequest(key, selectedFields, xMsQuerySourceAuthorization); + using var message = CreateGetRequest(key, selectedFields, xMsQuerySourceAuthorization, xMsEnableElevatedRead); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/IndexersRestClient.cs b/sdk/search/Azure.Search.Documents/src/Generated/IndexersRestClient.cs index deaa3449f516..c5480b04ddcd 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/IndexersRestClient.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/IndexersRestClient.cs @@ -33,7 +33,7 @@ internal partial class IndexersRestClient /// The tracking ID sent with the request to help with debugging. /// Api Version. /// , , or is null. - public IndexersRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, Guid? xMsClientRequestId = null, string apiVersion = "2025-08-01-preview") + public IndexersRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, Guid? xMsClientRequestId = null, string apiVersion = "2025-11-01-preview") { ClientDiagnostics = clientDiagnostics ?? throw new ArgumentNullException(nameof(clientDiagnostics)); _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); diff --git a/sdk/search/Azure.Search.Documents/src/Generated/IndexesRestClient.cs b/sdk/search/Azure.Search.Documents/src/Generated/IndexesRestClient.cs index ea48bc25e051..1e457bad2bbd 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/IndexesRestClient.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/IndexesRestClient.cs @@ -32,7 +32,7 @@ internal partial class IndexesRestClient /// The tracking ID sent with the request to help with debugging. /// Api Version. /// , , or is null. - public IndexesRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, Guid? xMsClientRequestId = null, string apiVersion = "2025-08-01-preview") + public IndexesRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, Guid? xMsClientRequestId = null, string apiVersion = "2025-11-01-preview") { ClientDiagnostics = clientDiagnostics ?? throw new ArgumentNullException(nameof(clientDiagnostics)); _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); diff --git a/sdk/search/Azure.Search.Documents/src/Generated/KnowledgeAgentsRestClient.cs b/sdk/search/Azure.Search.Documents/src/Generated/KnowledgeBasesRestClient.cs similarity index 64% rename from sdk/search/Azure.Search.Documents/src/Generated/KnowledgeAgentsRestClient.cs rename to sdk/search/Azure.Search.Documents/src/Generated/KnowledgeBasesRestClient.cs index 31de216cb792..1a3be2ef6149 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/KnowledgeAgentsRestClient.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/KnowledgeBasesRestClient.cs @@ -15,7 +15,7 @@ namespace Azure.Search.Documents { - internal partial class KnowledgeAgentsRestClient + internal partial class KnowledgeBasesRestClient { private readonly HttpPipeline _pipeline; private readonly string _endpoint; @@ -25,14 +25,14 @@ internal partial class KnowledgeAgentsRestClient /// The ClientDiagnostics is used to provide tracing support for the client library. internal ClientDiagnostics ClientDiagnostics { get; } - /// Initializes a new instance of KnowledgeAgentsRestClient. + /// Initializes a new instance of KnowledgeBasesRestClient. /// The handler for diagnostic messaging in the client. /// The HTTP pipeline for sending and receiving REST requests and responses. /// The endpoint URL of the search service. /// The tracking ID sent with the request to help with debugging. /// Api Version. /// , , or is null. - public KnowledgeAgentsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, Guid? xMsClientRequestId = null, string apiVersion = "2025-08-01-preview") + public KnowledgeBasesRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, Guid? xMsClientRequestId = null, string apiVersion = "2025-11-01-preview") { ClientDiagnostics = clientDiagnostics ?? throw new ArgumentNullException(nameof(clientDiagnostics)); _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); @@ -41,15 +41,15 @@ public KnowledgeAgentsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeli _apiVersion = apiVersion ?? throw new ArgumentNullException(nameof(apiVersion)); } - internal HttpMessage CreateCreateOrUpdateRequest(string agentName, KnowledgeAgent knowledgeAgent, string ifMatch, string ifNoneMatch) + internal HttpMessage CreateCreateOrUpdateRequest(string knowledgeBaseName, KnowledgeBase knowledgeBase, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); var request = message.Request; request.Method = RequestMethod.Put; var uri = new RawRequestUriBuilder(); uri.AppendRaw(_endpoint, false); - uri.AppendPath("/agents('", false); - uri.AppendPath(agentName, true); + uri.AppendPath("/knowledgebases('", false); + uri.AppendPath(knowledgeBaseName, true); uri.AppendPath("')", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; @@ -65,39 +65,39 @@ internal HttpMessage CreateCreateOrUpdateRequest(string agentName, KnowledgeAgen request.Headers.Add("Accept", "application/json; odata.metadata=minimal"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(knowledgeAgent, ModelSerializationExtensions.WireOptions); + content.JsonWriter.WriteObjectValue(knowledgeBase, ModelSerializationExtensions.WireOptions); request.Content = content; return message; } - /// Creates a new agent or updates an agent if it already exists. - /// The name of the agent to create or update. - /// The definition of the agent to create or update. + /// Creates a new knowledge base or updates an knowledge base if it already exists. + /// The name of the knowledge base to create or update. + /// The definition of the knowledge base to create or update. /// Defines the If-Match condition. The operation will be performed only if the ETag on the server matches this value. /// Defines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value. /// The cancellation token to use. - /// or is null. - public async Task> CreateOrUpdateAsync(string agentName, KnowledgeAgent knowledgeAgent, string ifMatch = null, string ifNoneMatch = null, CancellationToken cancellationToken = default) + /// or is null. + public async Task> CreateOrUpdateAsync(string knowledgeBaseName, KnowledgeBase knowledgeBase, string ifMatch = null, string ifNoneMatch = null, CancellationToken cancellationToken = default) { - if (agentName == null) + if (knowledgeBaseName == null) { - throw new ArgumentNullException(nameof(agentName)); + throw new ArgumentNullException(nameof(knowledgeBaseName)); } - if (knowledgeAgent == null) + if (knowledgeBase == null) { - throw new ArgumentNullException(nameof(knowledgeAgent)); + throw new ArgumentNullException(nameof(knowledgeBase)); } - using var message = CreateCreateOrUpdateRequest(agentName, knowledgeAgent, ifMatch, ifNoneMatch); + using var message = CreateCreateOrUpdateRequest(knowledgeBaseName, knowledgeBase, ifMatch, ifNoneMatch); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: case 201: { - KnowledgeAgent value = default; + KnowledgeBase value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = KnowledgeAgent.DeserializeKnowledgeAgent(document.RootElement); + value = KnowledgeBase.DeserializeKnowledgeBase(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -105,34 +105,34 @@ public async Task> CreateOrUpdateAsync(string agentName } } - /// Creates a new agent or updates an agent if it already exists. - /// The name of the agent to create or update. - /// The definition of the agent to create or update. + /// Creates a new knowledge base or updates an knowledge base if it already exists. + /// The name of the knowledge base to create or update. + /// The definition of the knowledge base to create or update. /// Defines the If-Match condition. The operation will be performed only if the ETag on the server matches this value. /// Defines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value. /// The cancellation token to use. - /// or is null. - public Response CreateOrUpdate(string agentName, KnowledgeAgent knowledgeAgent, string ifMatch = null, string ifNoneMatch = null, CancellationToken cancellationToken = default) + /// or is null. + public Response CreateOrUpdate(string knowledgeBaseName, KnowledgeBase knowledgeBase, string ifMatch = null, string ifNoneMatch = null, CancellationToken cancellationToken = default) { - if (agentName == null) + if (knowledgeBaseName == null) { - throw new ArgumentNullException(nameof(agentName)); + throw new ArgumentNullException(nameof(knowledgeBaseName)); } - if (knowledgeAgent == null) + if (knowledgeBase == null) { - throw new ArgumentNullException(nameof(knowledgeAgent)); + throw new ArgumentNullException(nameof(knowledgeBase)); } - using var message = CreateCreateOrUpdateRequest(agentName, knowledgeAgent, ifMatch, ifNoneMatch); + using var message = CreateCreateOrUpdateRequest(knowledgeBaseName, knowledgeBase, ifMatch, ifNoneMatch); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: case 201: { - KnowledgeAgent value = default; + KnowledgeBase value = default; using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = KnowledgeAgent.DeserializeKnowledgeAgent(document.RootElement); + value = KnowledgeBase.DeserializeKnowledgeBase(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -140,15 +140,15 @@ public Response CreateOrUpdate(string agentName, KnowledgeAgent } } - internal HttpMessage CreateDeleteRequest(string agentName, string ifMatch, string ifNoneMatch) + internal HttpMessage CreateDeleteRequest(string knowledgeBaseName, string ifMatch, string ifNoneMatch) { var message = _pipeline.CreateMessage(); var request = message.Request; request.Method = RequestMethod.Delete; var uri = new RawRequestUriBuilder(); uri.AppendRaw(_endpoint, false); - uri.AppendPath("/agents('", false); - uri.AppendPath(agentName, true); + uri.AppendPath("/knowledgebases('", false); + uri.AppendPath(knowledgeBaseName, true); uri.AppendPath("')", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; @@ -164,20 +164,20 @@ internal HttpMessage CreateDeleteRequest(string agentName, string ifMatch, strin return message; } - /// Deletes an existing agent. - /// The name of the agent to delete. + /// Deletes an existing knowledge base. + /// The name of the knowledge base to delete. /// Defines the If-Match condition. The operation will be performed only if the ETag on the server matches this value. /// Defines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value. /// The cancellation token to use. - /// is null. - public async Task DeleteAsync(string agentName, string ifMatch = null, string ifNoneMatch = null, CancellationToken cancellationToken = default) + /// is null. + public async Task DeleteAsync(string knowledgeBaseName, string ifMatch = null, string ifNoneMatch = null, CancellationToken cancellationToken = default) { - if (agentName == null) + if (knowledgeBaseName == null) { - throw new ArgumentNullException(nameof(agentName)); + throw new ArgumentNullException(nameof(knowledgeBaseName)); } - using var message = CreateDeleteRequest(agentName, ifMatch, ifNoneMatch); + using var message = CreateDeleteRequest(knowledgeBaseName, ifMatch, ifNoneMatch); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -189,20 +189,20 @@ public async Task DeleteAsync(string agentName, string ifMatch = null, } } - /// Deletes an existing agent. - /// The name of the agent to delete. + /// Deletes an existing knowledge base. + /// The name of the knowledge base to delete. /// Defines the If-Match condition. The operation will be performed only if the ETag on the server matches this value. /// Defines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value. /// The cancellation token to use. - /// is null. - public Response Delete(string agentName, string ifMatch = null, string ifNoneMatch = null, CancellationToken cancellationToken = default) + /// is null. + public Response Delete(string knowledgeBaseName, string ifMatch = null, string ifNoneMatch = null, CancellationToken cancellationToken = default) { - if (agentName == null) + if (knowledgeBaseName == null) { - throw new ArgumentNullException(nameof(agentName)); + throw new ArgumentNullException(nameof(knowledgeBaseName)); } - using var message = CreateDeleteRequest(agentName, ifMatch, ifNoneMatch); + using var message = CreateDeleteRequest(knowledgeBaseName, ifMatch, ifNoneMatch); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -214,15 +214,15 @@ public Response Delete(string agentName, string ifMatch = null, string ifNoneMat } } - internal HttpMessage CreateGetRequest(string agentName) + internal HttpMessage CreateGetRequest(string knowledgeBaseName) { var message = _pipeline.CreateMessage(); var request = message.Request; request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(_endpoint, false); - uri.AppendPath("/agents('", false); - uri.AppendPath(agentName, true); + uri.AppendPath("/knowledgebases('", false); + uri.AppendPath(knowledgeBaseName, true); uri.AppendPath("')", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; @@ -230,26 +230,26 @@ internal HttpMessage CreateGetRequest(string agentName) return message; } - /// Retrieves an agent definition. - /// The name of the agent to retrieve. + /// Retrieves an knowledge base definition. + /// The name of the knowledge base to retrieve. /// The cancellation token to use. - /// is null. - public async Task> GetAsync(string agentName, CancellationToken cancellationToken = default) + /// is null. + public async Task> GetAsync(string knowledgeBaseName, CancellationToken cancellationToken = default) { - if (agentName == null) + if (knowledgeBaseName == null) { - throw new ArgumentNullException(nameof(agentName)); + throw new ArgumentNullException(nameof(knowledgeBaseName)); } - using var message = CreateGetRequest(agentName); + using var message = CreateGetRequest(knowledgeBaseName); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - KnowledgeAgent value = default; + KnowledgeBase value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = KnowledgeAgent.DeserializeKnowledgeAgent(document.RootElement); + value = KnowledgeBase.DeserializeKnowledgeBase(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -257,26 +257,26 @@ public async Task> GetAsync(string agentName, Cancellat } } - /// Retrieves an agent definition. - /// The name of the agent to retrieve. + /// Retrieves an knowledge base definition. + /// The name of the knowledge base to retrieve. /// The cancellation token to use. - /// is null. - public Response Get(string agentName, CancellationToken cancellationToken = default) + /// is null. + public Response Get(string knowledgeBaseName, CancellationToken cancellationToken = default) { - if (agentName == null) + if (knowledgeBaseName == null) { - throw new ArgumentNullException(nameof(agentName)); + throw new ArgumentNullException(nameof(knowledgeBaseName)); } - using var message = CreateGetRequest(agentName); + using var message = CreateGetRequest(knowledgeBaseName); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - KnowledgeAgent value = default; + KnowledgeBase value = default; using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = KnowledgeAgent.DeserializeKnowledgeAgent(document.RootElement); + value = KnowledgeBase.DeserializeKnowledgeBase(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -291,16 +291,16 @@ internal HttpMessage CreateListRequest() request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.AppendRaw(_endpoint, false); - uri.AppendPath("/agents", false); + uri.AppendPath("/knowledgebases", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json; odata.metadata=minimal"); return message; } - /// Lists all agents available for a search service. + /// Lists all knowledge bases available for a search service. /// The cancellation token to use. - public async Task> ListAsync(CancellationToken cancellationToken = default) + public async Task> ListAsync(CancellationToken cancellationToken = default) { using var message = CreateListRequest(); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); @@ -308,9 +308,9 @@ public async Task> ListAsync(CancellationTok { case 200: { - ListKnowledgeAgentsResult value = default; + ListKnowledgeBasesResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = ListKnowledgeAgentsResult.DeserializeListKnowledgeAgentsResult(document.RootElement); + value = ListKnowledgeBasesResult.DeserializeListKnowledgeBasesResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -318,9 +318,9 @@ public async Task> ListAsync(CancellationTok } } - /// Lists all agents available for a search service. + /// Lists all knowledge bases available for a search service. /// The cancellation token to use. - public Response List(CancellationToken cancellationToken = default) + public Response List(CancellationToken cancellationToken = default) { using var message = CreateListRequest(); _pipeline.Send(message, cancellationToken); @@ -328,9 +328,9 @@ public Response List(CancellationToken cancellationTo { case 200: { - ListKnowledgeAgentsResult value = default; + ListKnowledgeBasesResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = ListKnowledgeAgentsResult.DeserializeListKnowledgeAgentsResult(document.RootElement); + value = ListKnowledgeBasesResult.DeserializeListKnowledgeBasesResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -338,44 +338,44 @@ public Response List(CancellationToken cancellationTo } } - internal HttpMessage CreateCreateRequest(KnowledgeAgent knowledgeAgent) + internal HttpMessage CreateCreateRequest(KnowledgeBase knowledgeBase) { var message = _pipeline.CreateMessage(); var request = message.Request; request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(_endpoint, false); - uri.AppendPath("/agents", false); + uri.AppendPath("/knowledgebases", false); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json; odata.metadata=minimal"); request.Headers.Add("Content-Type", "application/json"); var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(knowledgeAgent, ModelSerializationExtensions.WireOptions); + content.JsonWriter.WriteObjectValue(knowledgeBase, ModelSerializationExtensions.WireOptions); request.Content = content; return message; } - /// Creates a new agent. - /// The definition of the agent to create. + /// Creates a new knowledge base. + /// The definition of the knowledge base to create. /// The cancellation token to use. - /// is null. - public async Task> CreateAsync(KnowledgeAgent knowledgeAgent, CancellationToken cancellationToken = default) + /// is null. + public async Task> CreateAsync(KnowledgeBase knowledgeBase, CancellationToken cancellationToken = default) { - if (knowledgeAgent == null) + if (knowledgeBase == null) { - throw new ArgumentNullException(nameof(knowledgeAgent)); + throw new ArgumentNullException(nameof(knowledgeBase)); } - using var message = CreateCreateRequest(knowledgeAgent); + using var message = CreateCreateRequest(knowledgeBase); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 201: { - KnowledgeAgent value = default; + KnowledgeBase value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = KnowledgeAgent.DeserializeKnowledgeAgent(document.RootElement); + value = KnowledgeBase.DeserializeKnowledgeBase(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -383,26 +383,26 @@ public async Task> CreateAsync(KnowledgeAgent knowledge } } - /// Creates a new agent. - /// The definition of the agent to create. + /// Creates a new knowledge base. + /// The definition of the knowledge base to create. /// The cancellation token to use. - /// is null. - public Response Create(KnowledgeAgent knowledgeAgent, CancellationToken cancellationToken = default) + /// is null. + public Response Create(KnowledgeBase knowledgeBase, CancellationToken cancellationToken = default) { - if (knowledgeAgent == null) + if (knowledgeBase == null) { - throw new ArgumentNullException(nameof(knowledgeAgent)); + throw new ArgumentNullException(nameof(knowledgeBase)); } - using var message = CreateCreateRequest(knowledgeAgent); + using var message = CreateCreateRequest(knowledgeBase); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 201: { - KnowledgeAgent value = default; + KnowledgeBase value = default; using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = KnowledgeAgent.DeserializeKnowledgeAgent(document.RootElement); + value = KnowledgeBase.DeserializeKnowledgeBase(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/search/Azure.Search.Documents/src/Generated/KnowledgeRetrievalRestClient.cs b/sdk/search/Azure.Search.Documents/src/Generated/KnowledgeRetrievalRestClient.cs index bb25ba5ce9d7..5b6b72ad6546 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/KnowledgeRetrievalRestClient.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/KnowledgeRetrievalRestClient.cs @@ -11,7 +11,7 @@ using System.Threading.Tasks; using Azure.Core; using Azure.Core.Pipeline; -using Azure.Search.Documents.Agents.Models; +using Azure.Search.Documents.KnowledgeBases.Models; namespace Azure.Search.Documents { @@ -19,7 +19,7 @@ internal partial class KnowledgeRetrievalRestClient { private readonly HttpPipeline _pipeline; private readonly string _endpoint; - private readonly string _agentName; + private readonly string _knowledgeBaseName; private readonly Guid? _xMsClientRequestId; private readonly string _apiVersion; @@ -30,30 +30,30 @@ internal partial class KnowledgeRetrievalRestClient /// The handler for diagnostic messaging in the client. /// The HTTP pipeline for sending and receiving REST requests and responses. /// The endpoint URL of the search service. - /// The name of the agent. + /// The name of the knowledge base. /// The tracking ID sent with the request to help with debugging. /// Api Version. - /// , , , or is null. - /// is an empty string, and was expected to be non-empty. - public KnowledgeRetrievalRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, string agentName, Guid? xMsClientRequestId = null, string apiVersion = "2025-08-01-preview") + /// , , , or is null. + /// is an empty string, and was expected to be non-empty. + public KnowledgeRetrievalRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, string knowledgeBaseName, Guid? xMsClientRequestId = null, string apiVersion = "2025-11-01-preview") { ClientDiagnostics = clientDiagnostics ?? throw new ArgumentNullException(nameof(clientDiagnostics)); _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? throw new ArgumentNullException(nameof(endpoint)); - _agentName = agentName ?? throw new ArgumentNullException(nameof(agentName)); + _knowledgeBaseName = knowledgeBaseName ?? throw new ArgumentNullException(nameof(knowledgeBaseName)); _xMsClientRequestId = xMsClientRequestId; _apiVersion = apiVersion ?? throw new ArgumentNullException(nameof(apiVersion)); } - internal HttpMessage CreateRetrieveRequest(KnowledgeAgentRetrievalRequest retrievalRequest, string xMsQuerySourceAuthorization) + internal HttpMessage CreateRetrieveRequest(KnowledgeBaseRetrievalRequest retrievalRequest, string xMsQuerySourceAuthorization) { var message = _pipeline.CreateMessage(); var request = message.Request; request.Method = RequestMethod.Post; var uri = new RawRequestUriBuilder(); uri.AppendRaw(_endpoint, false); - uri.AppendRaw("/agents('", false); - uri.AppendRaw(_agentName, true); + uri.AppendRaw("/knowledgebases('", false); + uri.AppendRaw(_knowledgeBaseName, true); uri.AppendRaw("')", false); uri.AppendPath("/retrieve", false); uri.AppendQuery("api-version", _apiVersion, true); @@ -70,12 +70,12 @@ internal HttpMessage CreateRetrieveRequest(KnowledgeAgentRetrievalRequest retrie return message; } - /// KnowledgeAgent retrieves relevant data from backing stores. + /// KnowledgeBase retrieves relevant data from backing stores. /// The retrieval request to process. /// Token identifying the user for which the query is being executed. This token is used to enforce security restrictions on documents. /// The cancellation token to use. /// is null. - public async Task> RetrieveAsync(KnowledgeAgentRetrievalRequest retrievalRequest, string xMsQuerySourceAuthorization = null, CancellationToken cancellationToken = default) + public async Task> RetrieveAsync(KnowledgeBaseRetrievalRequest retrievalRequest, string xMsQuerySourceAuthorization = null, CancellationToken cancellationToken = default) { if (retrievalRequest == null) { @@ -87,10 +87,11 @@ public async Task> RetrieveAsync(Knowl switch (message.Response.Status) { case 200: + case 206: { - KnowledgeAgentRetrievalResponse value = default; + KnowledgeBaseRetrievalResponse value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); - value = KnowledgeAgentRetrievalResponse.DeserializeKnowledgeAgentRetrievalResponse(document.RootElement); + value = KnowledgeBaseRetrievalResponse.DeserializeKnowledgeBaseRetrievalResponse(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -98,12 +99,12 @@ public async Task> RetrieveAsync(Knowl } } - /// KnowledgeAgent retrieves relevant data from backing stores. + /// KnowledgeBase retrieves relevant data from backing stores. /// The retrieval request to process. /// Token identifying the user for which the query is being executed. This token is used to enforce security restrictions on documents. /// The cancellation token to use. /// is null. - public Response Retrieve(KnowledgeAgentRetrievalRequest retrievalRequest, string xMsQuerySourceAuthorization = null, CancellationToken cancellationToken = default) + public Response Retrieve(KnowledgeBaseRetrievalRequest retrievalRequest, string xMsQuerySourceAuthorization = null, CancellationToken cancellationToken = default) { if (retrievalRequest == null) { @@ -115,10 +116,11 @@ public Response Retrieve(KnowledgeAgentRetrieva switch (message.Response.Status) { case 200: + case 206: { - KnowledgeAgentRetrievalResponse value = default; + KnowledgeBaseRetrievalResponse value = default; using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); - value = KnowledgeAgentRetrievalResponse.DeserializeKnowledgeAgentRetrievalResponse(document.RootElement); + value = KnowledgeBaseRetrievalResponse.DeserializeKnowledgeBaseRetrievalResponse(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/search/Azure.Search.Documents/src/Generated/KnowledgeSourcesRestClient.cs b/sdk/search/Azure.Search.Documents/src/Generated/KnowledgeSourcesRestClient.cs index b168b9cd54b9..0dcee572aa35 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/KnowledgeSourcesRestClient.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/KnowledgeSourcesRestClient.cs @@ -32,7 +32,7 @@ internal partial class KnowledgeSourcesRestClient /// The tracking ID sent with the request to help with debugging. /// Api Version. /// , , or is null. - public KnowledgeSourcesRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, Guid? xMsClientRequestId = null, string apiVersion = "2025-08-01-preview") + public KnowledgeSourcesRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, Guid? xMsClientRequestId = null, string apiVersion = "2025-11-01-preview") { ClientDiagnostics = clientDiagnostics ?? throw new ArgumentNullException(nameof(clientDiagnostics)); _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); @@ -409,5 +409,75 @@ public Response Create(KnowledgeSource knowledgeSource, Cancell throw new RequestFailedException(message.Response); } } + + internal HttpMessage CreateGetStatusRequest(string sourceName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.AppendRaw(_endpoint, false); + uri.AppendPath("/knowledgesources('", false); + uri.AppendPath(sourceName, true); + uri.AppendPath("')/status", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json; odata.metadata=minimal"); + return message; + } + + /// Returns the current status and synchronization history of a knowledge source. + /// The name of the knowledge source for which to retrieve status. + /// The cancellation token to use. + /// is null. + public async Task> GetStatusAsync(string sourceName, CancellationToken cancellationToken = default) + { + if (sourceName == null) + { + throw new ArgumentNullException(nameof(sourceName)); + } + + using var message = CreateGetStatusRequest(sourceName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + KnowledgeSourceStatus value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions, cancellationToken).ConfigureAwait(false); + value = KnowledgeSourceStatus.DeserializeKnowledgeSourceStatus(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Returns the current status and synchronization history of a knowledge source. + /// The name of the knowledge source for which to retrieve status. + /// The cancellation token to use. + /// is null. + public Response GetStatus(string sourceName, CancellationToken cancellationToken = default) + { + if (sourceName == null) + { + throw new ArgumentNullException(nameof(sourceName)); + } + + using var message = CreateGetStatusRequest(sourceName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + KnowledgeSourceStatus value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream, ModelSerializationExtensions.JsonDocumentOptions); + value = KnowledgeSourceStatus.DeserializeKnowledgeSourceStatus(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/AIServices.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/AIServices.Serialization.cs new file mode 100644 index 000000000000..88fe7be65b07 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/AIServices.Serialization.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.Indexes.Models +{ + public partial class AIServices : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AIServices)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("uri"u8); + writer.WriteStringValue(Uri.AbsoluteUri); + if (Optional.IsDefined(ApiKey)) + { + writer.WritePropertyName("apiKey"u8); + writer.WriteStringValue(ApiKey); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + AIServices IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AIServices)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAIServices(document.RootElement, options); + } + + internal static AIServices DeserializeAIServices(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Uri uri = default; + string apiKey = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("uri"u8)) + { + uri = new Uri(property.Value.GetString()); + continue; + } + if (property.NameEquals("apiKey"u8)) + { + apiKey = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AIServices(uri, apiKey, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(AIServices)} does not support writing '{options.Format}' format."); + } + } + + AIServices IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAIServices(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AIServices)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static AIServices FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAIServices(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/AIServices.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/AIServices.cs new file mode 100644 index 000000000000..18007fc5539d --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/AIServices.cs @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// Parameters for Azure Blob Storage knowledge source. + public partial class AIServices + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The URI of the AI Services endpoint. + /// is null. + public AIServices(Uri uri) + { + Argument.AssertNotNull(uri, nameof(uri)); + + Uri = uri; + } + + /// Initializes a new instance of . + /// The URI of the AI Services endpoint. + /// The API key for accessing AI Services. + /// Keeps track of any properties unknown to the library. + internal AIServices(Uri uri, string apiKey, IDictionary serializedAdditionalRawData) + { + Uri = uri; + ApiKey = apiKey; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal AIServices() + { + } + + /// The URI of the AI Services endpoint. + public Uri Uri { get; set; } + /// The API key for accessing AI Services. + public string ApiKey { get; set; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureBlobKnowledgeSource.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureBlobKnowledgeSource.cs index a41b5e931727..c8454a8cee83 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureBlobKnowledgeSource.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureBlobKnowledgeSource.cs @@ -30,8 +30,8 @@ public AzureBlobKnowledgeSource(string name, AzureBlobKnowledgeSourceParameters /// The name of the knowledge source. /// Optional user-defined description. /// The type of the knowledge source. - /// The ETag of the agent. - /// A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your agent definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your agent definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your agent definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. + /// The ETag of the knowledge base. + /// A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your knowledge base definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your knowledge base definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your knowledge base definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. /// Keeps track of any properties unknown to the library. /// The type of the knowledge source. internal AzureBlobKnowledgeSource(string name, string description, KnowledgeSourceKind kind, string eTag, SearchResourceEncryptionKey encryptionKey, IDictionary serializedAdditionalRawData, AzureBlobKnowledgeSourceParameters azureBlobParameters) : base(name, description, kind, eTag, encryptionKey, serializedAdditionalRawData) diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureBlobKnowledgeSourceParameters.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureBlobKnowledgeSourceParameters.Serialization.cs index 7a548848538a..797d57b3e0b2 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureBlobKnowledgeSourceParameters.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureBlobKnowledgeSourceParameters.Serialization.cs @@ -34,61 +34,37 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(AzureBlobKnowledgeSourceParameters)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Identity)) - { - if (Identity != null) - { - writer.WritePropertyName("identity"u8); - writer.WriteObjectValue(Identity, options); - } - else - { - writer.WriteNull("identity"); - } - } writer.WritePropertyName("connectionString"u8); writer.WriteStringValue(ConnectionString); writer.WritePropertyName("containerName"u8); writer.WriteStringValue(ContainerName); if (Optional.IsDefined(FolderPath)) { - writer.WritePropertyName("folderPath"u8); - writer.WriteStringValue(FolderPath); - } - if (Optional.IsDefined(EmbeddingModel)) - { - if (EmbeddingModel != null) + if (FolderPath != null) { - writer.WritePropertyName("embeddingModel"u8); - writer.WriteObjectValue(EmbeddingModel, options); + writer.WritePropertyName("folderPath"u8); + writer.WriteStringValue(FolderPath); } else { - writer.WriteNull("embeddingModel"); + writer.WriteNull("folderPath"); } } - if (Optional.IsDefined(ChatCompletionModel)) + if (Optional.IsDefined(IsAdlsGen2)) { - if (ChatCompletionModel != null) - { - writer.WritePropertyName("chatCompletionModel"u8); - writer.WriteObjectValue(ChatCompletionModel, options); - } - else - { - writer.WriteNull("chatCompletionModel"); - } + writer.WritePropertyName("isADLSGen2"u8); + writer.WriteBooleanValue(IsAdlsGen2.Value); } - if (Optional.IsDefined(IngestionSchedule)) + if (Optional.IsDefined(IngestionParameters)) { - if (IngestionSchedule != null) + if (IngestionParameters != null) { - writer.WritePropertyName("ingestionSchedule"u8); - writer.WriteObjectValue(IngestionSchedule, options); + writer.WritePropertyName("ingestionParameters"u8); + writer.WriteObjectValue(IngestionParameters, options); } else { - writer.WriteNull("ingestionSchedule"); + writer.WriteNull("ingestionParameters"); } } if (options.Format != "W" && Optional.IsCollectionDefined(CreatedResources)) @@ -102,11 +78,6 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WriteEndObject(); } - if (Optional.IsDefined(DisableImageVerbalization)) - { - writer.WritePropertyName("disableImageVerbalization"u8); - writer.WriteBooleanValue(DisableImageVerbalization.Value); - } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -144,29 +115,16 @@ internal static AzureBlobKnowledgeSourceParameters DeserializeAzureBlobKnowledge { return null; } - SearchIndexerDataIdentity identity = default; string connectionString = default; string containerName = default; string folderPath = default; - VectorSearchVectorizer embeddingModel = default; - KnowledgeAgentModel chatCompletionModel = default; - IndexingSchedule ingestionSchedule = default; + bool? isADLSGen2 = default; + KnowledgeSourceIngestionParameters ingestionParameters = default; IReadOnlyDictionary createdResources = default; - bool? disableImageVerbalization = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("identity"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - identity = null; - continue; - } - identity = SearchIndexerDataIdentity.DeserializeSearchIndexerDataIdentity(property.Value, options); - continue; - } if (property.NameEquals("connectionString"u8)) { connectionString = property.Value.GetString(); @@ -178,38 +136,32 @@ internal static AzureBlobKnowledgeSourceParameters DeserializeAzureBlobKnowledge continue; } if (property.NameEquals("folderPath"u8)) - { - folderPath = property.Value.GetString(); - continue; - } - if (property.NameEquals("embeddingModel"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { - embeddingModel = null; + folderPath = null; continue; } - embeddingModel = VectorSearchVectorizer.DeserializeVectorSearchVectorizer(property.Value, options); + folderPath = property.Value.GetString(); continue; } - if (property.NameEquals("chatCompletionModel"u8)) + if (property.NameEquals("isADLSGen2"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { - chatCompletionModel = null; continue; } - chatCompletionModel = KnowledgeAgentModel.DeserializeKnowledgeAgentModel(property.Value, options); + isADLSGen2 = property.Value.GetBoolean(); continue; } - if (property.NameEquals("ingestionSchedule"u8)) + if (property.NameEquals("ingestionParameters"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { - ingestionSchedule = null; + ingestionParameters = null; continue; } - ingestionSchedule = IndexingSchedule.DeserializeIndexingSchedule(property.Value, options); + ingestionParameters = KnowledgeSourceIngestionParameters.DeserializeKnowledgeSourceIngestionParameters(property.Value, options); continue; } if (property.NameEquals("createdResources"u8)) @@ -226,15 +178,6 @@ internal static AzureBlobKnowledgeSourceParameters DeserializeAzureBlobKnowledge createdResources = dictionary; continue; } - if (property.NameEquals("disableImageVerbalization"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - disableImageVerbalization = property.Value.GetBoolean(); - continue; - } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -242,15 +185,12 @@ internal static AzureBlobKnowledgeSourceParameters DeserializeAzureBlobKnowledge } serializedAdditionalRawData = rawDataDictionary; return new AzureBlobKnowledgeSourceParameters( - identity, connectionString, containerName, folderPath, - embeddingModel, - chatCompletionModel, - ingestionSchedule, + isADLSGen2, + ingestionParameters, createdResources ?? new ChangeTrackingDictionary(), - disableImageVerbalization, serializedAdditionalRawData); } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureBlobKnowledgeSourceParameters.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureBlobKnowledgeSourceParameters.cs index 4abd97c644f2..5528aa05a05b 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureBlobKnowledgeSourceParameters.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureBlobKnowledgeSourceParameters.cs @@ -60,39 +60,21 @@ public AzureBlobKnowledgeSourceParameters(string connectionString, string contai } /// Initializes a new instance of . - /// - /// An explicit identity to use for this knowledge source. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// /// Key-based connection string or the ResourceId format if using a managed identity. /// The name of the blob storage container. /// Optional folder path within the container. - /// - /// Optional vectorizer configuration for vectorizing content. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . - /// - /// - /// Optional chat completion model for image verbalization or context extraction. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// Optional schedule for data ingestion. + /// Set to true if connecting to an ADLS Gen2 storage account. Default is false. + /// Consolidates all general ingestion settings. /// Resources created by the knowledge source. - /// Indicates whether image verbalization should be disabled. /// Keeps track of any properties unknown to the library. - internal AzureBlobKnowledgeSourceParameters(SearchIndexerDataIdentity identity, string connectionString, string containerName, string folderPath, VectorSearchVectorizer embeddingModel, KnowledgeAgentModel chatCompletionModel, IndexingSchedule ingestionSchedule, IReadOnlyDictionary createdResources, bool? disableImageVerbalization, IDictionary serializedAdditionalRawData) + internal AzureBlobKnowledgeSourceParameters(string connectionString, string containerName, string folderPath, bool? isAdlsGen2, KnowledgeSourceIngestionParameters ingestionParameters, IReadOnlyDictionary createdResources, IDictionary serializedAdditionalRawData) { - Identity = identity; ConnectionString = connectionString; ContainerName = containerName; FolderPath = folderPath; - EmbeddingModel = embeddingModel; - ChatCompletionModel = chatCompletionModel; - IngestionSchedule = ingestionSchedule; + IsAdlsGen2 = isAdlsGen2; + IngestionParameters = ingestionParameters; CreatedResources = createdResources; - DisableImageVerbalization = disableImageVerbalization; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -101,35 +83,17 @@ internal AzureBlobKnowledgeSourceParameters() { } - /// - /// An explicit identity to use for this knowledge source. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - public SearchIndexerDataIdentity Identity { get; set; } /// Key-based connection string or the ResourceId format if using a managed identity. public string ConnectionString { get; set; } /// The name of the blob storage container. public string ContainerName { get; set; } /// Optional folder path within the container. public string FolderPath { get; set; } - /// - /// Optional vectorizer configuration for vectorizing content. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . - /// - public VectorSearchVectorizer EmbeddingModel { get; set; } - /// - /// Optional chat completion model for image verbalization or context extraction. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - public KnowledgeAgentModel ChatCompletionModel { get; set; } - /// Optional schedule for data ingestion. - public IndexingSchedule IngestionSchedule { get; set; } + /// Set to true if connecting to an ADLS Gen2 storage account. Default is false. + public bool? IsAdlsGen2 { get; set; } + /// Consolidates all general ingestion settings. + public KnowledgeSourceIngestionParameters IngestionParameters { get; set; } /// Resources created by the knowledge source. public IReadOnlyDictionary CreatedResources { get; } - /// Indicates whether image verbalization should be disabled. - public bool? DisableImageVerbalization { get; set; } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureBlobKnowledgeSourceParams.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureBlobKnowledgeSourceParams.Serialization.cs new file mode 100644 index 000000000000..2520db8ab6c1 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureBlobKnowledgeSourceParams.Serialization.cs @@ -0,0 +1,180 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.Search.Documents.Indexes.Models; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class AzureBlobKnowledgeSourceParams : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AzureBlobKnowledgeSourceParams)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + } + + AzureBlobKnowledgeSourceParams IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(AzureBlobKnowledgeSourceParams)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeAzureBlobKnowledgeSourceParams(document.RootElement, options); + } + + internal static AzureBlobKnowledgeSourceParams DeserializeAzureBlobKnowledgeSourceParams(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string knowledgeSourceName = default; + bool? includeReferences = default; + bool? includeReferenceSourceData = default; + bool? alwaysQuerySource = default; + float? rerankerThreshold = default; + KnowledgeSourceKind kind = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("knowledgeSourceName"u8)) + { + knowledgeSourceName = property.Value.GetString(); + continue; + } + if (property.NameEquals("includeReferences"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + includeReferences = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("includeReferenceSourceData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + includeReferenceSourceData = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("alwaysQuerySource"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + alwaysQuerySource = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("rerankerThreshold"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rerankerThreshold = property.Value.GetSingle(); + continue; + } + if (property.NameEquals("kind"u8)) + { + kind = new KnowledgeSourceKind(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new AzureBlobKnowledgeSourceParams( + knowledgeSourceName, + includeReferences, + includeReferenceSourceData, + alwaysQuerySource, + rerankerThreshold, + kind, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(AzureBlobKnowledgeSourceParams)} does not support writing '{options.Format}' format."); + } + } + + AzureBlobKnowledgeSourceParams IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAzureBlobKnowledgeSourceParams(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(AzureBlobKnowledgeSourceParams)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new AzureBlobKnowledgeSourceParams FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeAzureBlobKnowledgeSourceParams(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureBlobKnowledgeSourceParams.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureBlobKnowledgeSourceParams.cs new file mode 100644 index 000000000000..23e80eb0ff72 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureBlobKnowledgeSourceParams.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Search.Documents.Indexes.Models; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// Specifies runtime parameters for a azure blob knowledge source. + public partial class AzureBlobKnowledgeSourceParams : KnowledgeSourceParams + { + /// Initializes a new instance of . + /// The name of the index the params apply to. + /// is null. + public AzureBlobKnowledgeSourceParams(string knowledgeSourceName) : base(knowledgeSourceName) + { + Argument.AssertNotNull(knowledgeSourceName, nameof(knowledgeSourceName)); + + Kind = KnowledgeSourceKind.AzureBlob; + } + + /// Initializes a new instance of . + /// The name of the index the params apply to. + /// Indicates whether references should be included for data retrieved from this source. + /// Indicates whether references should include the structured data obtained during retrieval in their payload. + /// Indicates that this knowledge source should bypass source selection and always be queried at retrieval time. + /// The reranker threshold all retrieved documents must meet to be included in the response. + /// The type of the knowledge source. + /// Keeps track of any properties unknown to the library. + internal AzureBlobKnowledgeSourceParams(string knowledgeSourceName, bool? includeReferences, bool? includeReferenceSourceData, bool? alwaysQuerySource, float? rerankerThreshold, KnowledgeSourceKind kind, IDictionary serializedAdditionalRawData) : base(knowledgeSourceName, includeReferences, includeReferenceSourceData, alwaysQuerySource, rerankerThreshold, kind, serializedAdditionalRawData) + { + Kind = kind; + } + + /// Initializes a new instance of for deserialization. + internal AzureBlobKnowledgeSourceParams() + { + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureOpenAIModelName.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureOpenAIModelName.cs index 2058c258f233..2401050548f2 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureOpenAIModelName.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureOpenAIModelName.cs @@ -30,6 +30,9 @@ public AzureOpenAIModelName(string value) private const string Gpt41Value = "gpt-4.1"; private const string Gpt41MiniValue = "gpt-4.1-mini"; private const string Gpt41NanoValue = "gpt-4.1-nano"; + private const string Gpt5Value = "gpt-5"; + private const string Gpt5MiniValue = "gpt-5-mini"; + private const string Gpt5NanoValue = "gpt-5-nano"; /// text-embedding-ada-002. public static AzureOpenAIModelName TextEmbeddingAda002 { get; } = new AzureOpenAIModelName(TextEmbeddingAda002Value); @@ -47,6 +50,12 @@ public AzureOpenAIModelName(string value) public static AzureOpenAIModelName Gpt41Mini { get; } = new AzureOpenAIModelName(Gpt41MiniValue); /// gpt-4.1-nano. public static AzureOpenAIModelName Gpt41Nano { get; } = new AzureOpenAIModelName(Gpt41NanoValue); + /// gpt-5. + public static AzureOpenAIModelName Gpt5 { get; } = new AzureOpenAIModelName(Gpt5Value); + /// gpt-5-mini. + public static AzureOpenAIModelName Gpt5Mini { get; } = new AzureOpenAIModelName(Gpt5MiniValue); + /// gpt-5-nano. + public static AzureOpenAIModelName Gpt5Nano { get; } = new AzureOpenAIModelName(Gpt5NanoValue); /// Determines if two values are the same. public static bool operator ==(AzureOpenAIModelName left, AzureOpenAIModelName right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureSearchDocumentsContext.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureSearchDocumentsContext.cs index 399ce2d6fd42..e9049514a9ff 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureSearchDocumentsContext.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/AzureSearchDocumentsContext.cs @@ -6,8 +6,8 @@ #nullable disable using System.ClientModel.Primitives; -using Azure.Search.Documents.Agents.Models; using Azure.Search.Documents.Indexes.Models; +using Azure.Search.Documents.KnowledgeBases.Models; using Azure.Search.Documents.Models; namespace Azure.Search.Documents @@ -16,6 +16,7 @@ namespace Azure.Search.Documents /// Context class which will be filled in by the System.ClientModel.SourceGeneration. /// For more information see 'https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/System.ClientModel/src/docs/ModelReaderWriterContext.md' /// + [ModelReaderWriterBuildable(typeof(AIServices))] [ModelReaderWriterBuildable(typeof(AIServicesAccountIdentity))] [ModelReaderWriterBuildable(typeof(AIServicesAccountKey))] [ModelReaderWriterBuildable(typeof(AIServicesVisionParameters))] @@ -30,6 +31,7 @@ namespace Azure.Search.Documents [ModelReaderWriterBuildable(typeof(AzureActiveDirectoryApplicationCredentials))] [ModelReaderWriterBuildable(typeof(AzureBlobKnowledgeSource))] [ModelReaderWriterBuildable(typeof(AzureBlobKnowledgeSourceParameters))] + [ModelReaderWriterBuildable(typeof(AzureBlobKnowledgeSourceParams))] [ModelReaderWriterBuildable(typeof(AzureMachineLearningParameters))] [ModelReaderWriterBuildable(typeof(AzureMachineLearningSkill))] [ModelReaderWriterBuildable(typeof(AzureMachineLearningVectorizer))] @@ -51,7 +53,10 @@ namespace Azure.Search.Documents [ModelReaderWriterBuildable(typeof(CognitiveServicesAccountKey))] [ModelReaderWriterBuildable(typeof(CommonGramTokenFilter))] [ModelReaderWriterBuildable(typeof(CommonModelParameters))] + [ModelReaderWriterBuildable(typeof(CompletedSynchronizationState))] [ModelReaderWriterBuildable(typeof(ConditionalSkill))] + [ModelReaderWriterBuildable(typeof(ContentUnderstandingSkill))] + [ModelReaderWriterBuildable(typeof(ContentUnderstandingSkillChunkingProperties))] [ModelReaderWriterBuildable(typeof(CorsOptions))] [ModelReaderWriterBuildable(typeof(CustomAnalyzer))] [ModelReaderWriterBuildable(typeof(CustomEntity))] @@ -94,8 +99,15 @@ namespace Azure.Search.Documents [ModelReaderWriterBuildable(typeof(IndexAction))] [ModelReaderWriterBuildable(typeof(IndexBatch))] [ModelReaderWriterBuildable(typeof(IndexDocumentsResult))] + [ModelReaderWriterBuildable(typeof(IndexedOneLakeKnowledgeSource))] + [ModelReaderWriterBuildable(typeof(IndexedOneLakeKnowledgeSourceParameters))] + [ModelReaderWriterBuildable(typeof(IndexedOneLakeKnowledgeSourceParams))] + [ModelReaderWriterBuildable(typeof(IndexedSharePointKnowledgeSource))] + [ModelReaderWriterBuildable(typeof(IndexedSharePointKnowledgeSourceParameters))] + [ModelReaderWriterBuildable(typeof(IndexedSharePointKnowledgeSourceParams))] [ModelReaderWriterBuildable(typeof(IndexerExecutionResult))] [ModelReaderWriterBuildable(typeof(IndexerResyncBody))] + [ModelReaderWriterBuildable(typeof(IndexerRuntime))] [ModelReaderWriterBuildable(typeof(IndexerState))] [ModelReaderWriterBuildable(typeof(IndexingParameters))] [ModelReaderWriterBuildable(typeof(IndexingParametersConfiguration))] @@ -107,33 +119,56 @@ namespace Azure.Search.Documents [ModelReaderWriterBuildable(typeof(KeyPhraseExtractionSkill))] [ModelReaderWriterBuildable(typeof(KeywordMarkerTokenFilter))] [ModelReaderWriterBuildable(typeof(KeywordTokenizer))] - [ModelReaderWriterBuildable(typeof(KnowledgeAgent))] - [ModelReaderWriterBuildable(typeof(KnowledgeAgentActivityRecord))] - [ModelReaderWriterBuildable(typeof(KnowledgeAgentAzureBlobActivityArguments))] - [ModelReaderWriterBuildable(typeof(KnowledgeAgentAzureBlobActivityRecord))] - [ModelReaderWriterBuildable(typeof(KnowledgeAgentAzureBlobReference))] - [ModelReaderWriterBuildable(typeof(KnowledgeAgentAzureOpenAIModel))] - [ModelReaderWriterBuildable(typeof(KnowledgeAgentMessage))] - [ModelReaderWriterBuildable(typeof(KnowledgeAgentMessageContent))] - [ModelReaderWriterBuildable(typeof(KnowledgeAgentMessageImageContent))] - [ModelReaderWriterBuildable(typeof(KnowledgeAgentMessageImageContentImage))] - [ModelReaderWriterBuildable(typeof(KnowledgeAgentMessageTextContent))] - [ModelReaderWriterBuildable(typeof(KnowledgeAgentModel))] - [ModelReaderWriterBuildable(typeof(KnowledgeAgentModelAnswerSynthesisActivityRecord))] - [ModelReaderWriterBuildable(typeof(KnowledgeAgentModelQueryPlanningActivityRecord))] - [ModelReaderWriterBuildable(typeof(KnowledgeAgentOutputConfiguration))] - [ModelReaderWriterBuildable(typeof(KnowledgeAgentReference))] - [ModelReaderWriterBuildable(typeof(KnowledgeAgentRequestLimits))] - [ModelReaderWriterBuildable(typeof(KnowledgeAgentRetrievalActivityRecord))] - [ModelReaderWriterBuildable(typeof(KnowledgeAgentRetrievalRequest))] - [ModelReaderWriterBuildable(typeof(KnowledgeAgentRetrievalResponse))] - [ModelReaderWriterBuildable(typeof(KnowledgeAgentSearchIndexActivityArguments))] - [ModelReaderWriterBuildable(typeof(KnowledgeAgentSearchIndexActivityRecord))] - [ModelReaderWriterBuildable(typeof(KnowledgeAgentSearchIndexReference))] - [ModelReaderWriterBuildable(typeof(KnowledgeAgentSemanticRerankerActivityRecord))] + [ModelReaderWriterBuildable(typeof(KnowledgeBase))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseActivityRecord))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseAgenticReasoningActivityRecord))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseAzureBlobActivityArguments))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseAzureBlobActivityRecord))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseAzureBlobReference))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseAzureOpenAIModel))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseErrorAdditionalInfo))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseErrorDetail))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseIndexedOneLakeActivityArguments))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseIndexedOneLakeActivityRecord))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseIndexedOneLakeReference))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseIndexedSharePointActivityArguments))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseIndexedSharePointActivityRecord))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseIndexedSharePointReference))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseMessage))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseMessageContent))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseMessageImageContent))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseMessageImageContentImage))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseMessageTextContent))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseModel))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseModelAnswerSynthesisActivityRecord))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseModelQueryPlanningActivityRecord))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseReference))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseRemoteSharePointActivityArguments))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseRemoteSharePointActivityRecord))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseRemoteSharePointReference))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseRetrievalActivityRecord))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseRetrievalRequest))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseRetrievalResponse))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseSearchIndexActivityArguments))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseSearchIndexActivityRecord))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseSearchIndexReference))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseWebActivityArguments))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseWebActivityRecord))] + [ModelReaderWriterBuildable(typeof(KnowledgeBaseWebReference))] + [ModelReaderWriterBuildable(typeof(KnowledgeRetrievalIntent))] + [ModelReaderWriterBuildable(typeof(KnowledgeRetrievalLowReasoningEffort))] + [ModelReaderWriterBuildable(typeof(KnowledgeRetrievalMediumReasoningEffort))] + [ModelReaderWriterBuildable(typeof(KnowledgeRetrievalMinimalReasoningEffort))] + [ModelReaderWriterBuildable(typeof(KnowledgeRetrievalReasoningEffort))] + [ModelReaderWriterBuildable(typeof(KnowledgeRetrievalSemanticIntent))] [ModelReaderWriterBuildable(typeof(KnowledgeSource))] + [ModelReaderWriterBuildable(typeof(KnowledgeSourceAzureOpenAIVectorizer))] + [ModelReaderWriterBuildable(typeof(KnowledgeSourceIngestionParameters))] [ModelReaderWriterBuildable(typeof(KnowledgeSourceParams))] [ModelReaderWriterBuildable(typeof(KnowledgeSourceReference))] + [ModelReaderWriterBuildable(typeof(KnowledgeSourceStatistics))] + [ModelReaderWriterBuildable(typeof(KnowledgeSourceStatus))] + [ModelReaderWriterBuildable(typeof(KnowledgeSourceVectorizer))] [ModelReaderWriterBuildable(typeof(KnowledgeStore))] [ModelReaderWriterBuildable(typeof(KnowledgeStoreFileProjectionSelector))] [ModelReaderWriterBuildable(typeof(KnowledgeStoreObjectProjectionSelector))] @@ -152,7 +187,7 @@ namespace Azure.Search.Documents [ModelReaderWriterBuildable(typeof(ListIndexersResult))] [ModelReaderWriterBuildable(typeof(ListIndexesResult))] [ModelReaderWriterBuildable(typeof(ListIndexStatsSummary))] - [ModelReaderWriterBuildable(typeof(ListKnowledgeAgentsResult))] + [ModelReaderWriterBuildable(typeof(ListKnowledgeBasesResult))] [ModelReaderWriterBuildable(typeof(ListKnowledgeSourcesResult))] [ModelReaderWriterBuildable(typeof(ListSkillsetsResult))] [ModelReaderWriterBuildable(typeof(ListSynonymMapsResult))] @@ -185,6 +220,9 @@ namespace Azure.Search.Documents [ModelReaderWriterBuildable(typeof(QueryResultDocumentSubscores))] [ModelReaderWriterBuildable(typeof(QueryRewritesDebugInfo))] [ModelReaderWriterBuildable(typeof(QueryRewritesValuesDebugInfo))] + [ModelReaderWriterBuildable(typeof(RemoteSharePointKnowledgeSource))] + [ModelReaderWriterBuildable(typeof(RemoteSharePointKnowledgeSourceParameters))] + [ModelReaderWriterBuildable(typeof(RemoteSharePointKnowledgeSourceParams))] [ModelReaderWriterBuildable(typeof(RescoringOptions))] [ModelReaderWriterBuildable(typeof(ResetDocumentOptions))] [ModelReaderWriterBuildable(typeof(ResetSkillsOptions))] @@ -213,6 +251,7 @@ namespace Azure.Search.Documents [ModelReaderWriterBuildable(typeof(SearchIndexerSkillset))] [ModelReaderWriterBuildable(typeof(SearchIndexerStatus))] [ModelReaderWriterBuildable(typeof(SearchIndexerWarning))] + [ModelReaderWriterBuildable(typeof(SearchIndexFieldReference))] [ModelReaderWriterBuildable(typeof(SearchIndexKnowledgeSource))] [ModelReaderWriterBuildable(typeof(SearchIndexKnowledgeSourceParameters))] [ModelReaderWriterBuildable(typeof(SearchIndexKnowledgeSourceParams))] @@ -233,7 +272,9 @@ namespace Azure.Search.Documents [ModelReaderWriterBuildable(typeof(SemanticSearch))] [ModelReaderWriterBuildable(typeof(SentimentSkill))] [ModelReaderWriterBuildable(typeof(SentimentSkillV3))] + [ModelReaderWriterBuildable(typeof(ServiceIndexersRuntime))] [ModelReaderWriterBuildable(typeof(ShaperSkill))] + [ModelReaderWriterBuildable(typeof(SharePointSensitivityLabelInfo))] [ModelReaderWriterBuildable(typeof(ShingleTokenFilter))] [ModelReaderWriterBuildable(typeof(SimilarityAlgorithm))] [ModelReaderWriterBuildable(typeof(SingleVectorFieldResult))] @@ -248,6 +289,7 @@ namespace Azure.Search.Documents [ModelReaderWriterBuildable(typeof(SuggestDocumentsResult))] [ModelReaderWriterBuildable(typeof(SuggestOptions))] [ModelReaderWriterBuildable(typeof(SuggestResult))] + [ModelReaderWriterBuildable(typeof(SynchronizationState))] [ModelReaderWriterBuildable(typeof(SynonymMap))] [ModelReaderWriterBuildable(typeof(SynonymTokenFilter))] [ModelReaderWriterBuildable(typeof(TagScoringFunction))] @@ -263,12 +305,15 @@ namespace Azure.Search.Documents [ModelReaderWriterBuildable(typeof(UnknownCognitiveServicesAccount))] [ModelReaderWriterBuildable(typeof(UnknownDataChangeDetectionPolicy))] [ModelReaderWriterBuildable(typeof(UnknownDataDeletionDetectionPolicy))] - [ModelReaderWriterBuildable(typeof(UnknownKnowledgeAgentActivityRecord))] - [ModelReaderWriterBuildable(typeof(UnknownKnowledgeAgentMessageContent))] - [ModelReaderWriterBuildable(typeof(UnknownKnowledgeAgentModel))] - [ModelReaderWriterBuildable(typeof(UnknownKnowledgeAgentReference))] + [ModelReaderWriterBuildable(typeof(UnknownKnowledgeBaseActivityRecord))] + [ModelReaderWriterBuildable(typeof(UnknownKnowledgeBaseMessageContent))] + [ModelReaderWriterBuildable(typeof(UnknownKnowledgeBaseModel))] + [ModelReaderWriterBuildable(typeof(UnknownKnowledgeBaseReference))] + [ModelReaderWriterBuildable(typeof(UnknownKnowledgeRetrievalIntent))] + [ModelReaderWriterBuildable(typeof(UnknownKnowledgeRetrievalReasoningEffort))] [ModelReaderWriterBuildable(typeof(UnknownKnowledgeSource))] [ModelReaderWriterBuildable(typeof(UnknownKnowledgeSourceParams))] + [ModelReaderWriterBuildable(typeof(UnknownKnowledgeSourceVectorizer))] [ModelReaderWriterBuildable(typeof(UnknownLexicalAnalyzer))] [ModelReaderWriterBuildable(typeof(UnknownLexicalNormalizer))] [ModelReaderWriterBuildable(typeof(UnknownLexicalTokenizer))] @@ -299,6 +344,11 @@ namespace Azure.Search.Documents [ModelReaderWriterBuildable(typeof(WebApiSkill))] [ModelReaderWriterBuildable(typeof(WebApiVectorizer))] [ModelReaderWriterBuildable(typeof(WebApiVectorizerParameters))] + [ModelReaderWriterBuildable(typeof(WebKnowledgeSource))] + [ModelReaderWriterBuildable(typeof(WebKnowledgeSourceDomain))] + [ModelReaderWriterBuildable(typeof(WebKnowledgeSourceDomains))] + [ModelReaderWriterBuildable(typeof(WebKnowledgeSourceParameters))] + [ModelReaderWriterBuildable(typeof(WebKnowledgeSourceParams))] [ModelReaderWriterBuildable(typeof(WordDelimiterTokenFilter))] public partial class AzureSearchDocumentsContext : ModelReaderWriterContext { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/CompletedSynchronizationState.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/CompletedSynchronizationState.Serialization.cs new file mode 100644 index 000000000000..6067437dd075 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/CompletedSynchronizationState.Serialization.cs @@ -0,0 +1,180 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.Indexes.Models +{ + public partial class CompletedSynchronizationState : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(CompletedSynchronizationState)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("startTime"u8); + writer.WriteStringValue(StartTime, "O"); + writer.WritePropertyName("endTime"u8); + writer.WriteStringValue(EndTime, "O"); + writer.WritePropertyName("itemsUpdatesProcessed"u8); + writer.WriteNumberValue(ItemsUpdatesProcessed); + writer.WritePropertyName("itemsUpdatesFailed"u8); + writer.WriteNumberValue(ItemsUpdatesFailed); + writer.WritePropertyName("itemsSkipped"u8); + writer.WriteNumberValue(ItemsSkipped); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + CompletedSynchronizationState IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(CompletedSynchronizationState)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeCompletedSynchronizationState(document.RootElement, options); + } + + internal static CompletedSynchronizationState DeserializeCompletedSynchronizationState(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + DateTimeOffset startTime = default; + DateTimeOffset endTime = default; + int itemsUpdatesProcessed = default; + int itemsUpdatesFailed = default; + int itemsSkipped = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("startTime"u8)) + { + startTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("endTime"u8)) + { + endTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("itemsUpdatesProcessed"u8)) + { + itemsUpdatesProcessed = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("itemsUpdatesFailed"u8)) + { + itemsUpdatesFailed = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("itemsSkipped"u8)) + { + itemsSkipped = property.Value.GetInt32(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new CompletedSynchronizationState( + startTime, + endTime, + itemsUpdatesProcessed, + itemsUpdatesFailed, + itemsSkipped, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(CompletedSynchronizationState)} does not support writing '{options.Format}' format."); + } + } + + CompletedSynchronizationState IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeCompletedSynchronizationState(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(CompletedSynchronizationState)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static CompletedSynchronizationState FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeCompletedSynchronizationState(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/CompletedSynchronizationState.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/CompletedSynchronizationState.cs new file mode 100644 index 000000000000..e084b2aad97f --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/CompletedSynchronizationState.cs @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// Represents the completed state of the last synchronization. + public partial class CompletedSynchronizationState + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The start time of the last completed synchronization. + /// The end time of the last completed synchronization. + /// The number of item updates successfully processed in the last synchronization. + /// The number of item updates that failed in the last synchronization. + /// The number of items skipped in the last synchronization. + internal CompletedSynchronizationState(DateTimeOffset startTime, DateTimeOffset endTime, int itemsUpdatesProcessed, int itemsUpdatesFailed, int itemsSkipped) + { + StartTime = startTime; + EndTime = endTime; + ItemsUpdatesProcessed = itemsUpdatesProcessed; + ItemsUpdatesFailed = itemsUpdatesFailed; + ItemsSkipped = itemsSkipped; + } + + /// Initializes a new instance of . + /// The start time of the last completed synchronization. + /// The end time of the last completed synchronization. + /// The number of item updates successfully processed in the last synchronization. + /// The number of item updates that failed in the last synchronization. + /// The number of items skipped in the last synchronization. + /// Keeps track of any properties unknown to the library. + internal CompletedSynchronizationState(DateTimeOffset startTime, DateTimeOffset endTime, int itemsUpdatesProcessed, int itemsUpdatesFailed, int itemsSkipped, IDictionary serializedAdditionalRawData) + { + StartTime = startTime; + EndTime = endTime; + ItemsUpdatesProcessed = itemsUpdatesProcessed; + ItemsUpdatesFailed = itemsUpdatesFailed; + ItemsSkipped = itemsSkipped; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal CompletedSynchronizationState() + { + } + + /// The start time of the last completed synchronization. + public DateTimeOffset StartTime { get; } + /// The end time of the last completed synchronization. + public DateTimeOffset EndTime { get; } + /// The number of item updates successfully processed in the last synchronization. + public int ItemsUpdatesProcessed { get; } + /// The number of item updates that failed in the last synchronization. + public int ItemsUpdatesFailed { get; } + /// The number of items skipped in the last synchronization. + public int ItemsSkipped { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ContentUnderstandingSkill.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ContentUnderstandingSkill.Serialization.cs new file mode 100644 index 000000000000..83ae5b919897 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ContentUnderstandingSkill.Serialization.cs @@ -0,0 +1,231 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.Indexes.Models +{ + public partial class ContentUnderstandingSkill : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ContentUnderstandingSkill)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + if (Optional.IsCollectionDefined(ExtractionOptions)) + { + if (ExtractionOptions != null) + { + writer.WritePropertyName("extractionOptions"u8); + writer.WriteStartArray(); + foreach (var item in ExtractionOptions) + { + writer.WriteStringValue(item.ToString()); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("extractionOptions"); + } + } + if (Optional.IsDefined(ChunkingProperties)) + { + if (ChunkingProperties != null) + { + writer.WritePropertyName("chunkingProperties"u8); + writer.WriteObjectValue(ChunkingProperties, options); + } + else + { + writer.WriteNull("chunkingProperties"); + } + } + } + + ContentUnderstandingSkill IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ContentUnderstandingSkill)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeContentUnderstandingSkill(document.RootElement, options); + } + + internal static ContentUnderstandingSkill DeserializeContentUnderstandingSkill(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList extractionOptions = default; + ContentUnderstandingSkillChunkingProperties chunkingProperties = default; + string odataType = default; + string name = default; + string description = default; + string context = default; + IList inputs = default; + IList outputs = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("extractionOptions"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + extractionOptions = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(new ContentUnderstandingSkillExtractionOptions(item.GetString())); + } + extractionOptions = array; + continue; + } + if (property.NameEquals("chunkingProperties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + chunkingProperties = null; + continue; + } + chunkingProperties = ContentUnderstandingSkillChunkingProperties.DeserializeContentUnderstandingSkillChunkingProperties(property.Value, options); + continue; + } + if (property.NameEquals("@odata.type"u8)) + { + odataType = property.Value.GetString(); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("context"u8)) + { + context = property.Value.GetString(); + continue; + } + if (property.NameEquals("inputs"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(InputFieldMappingEntry.DeserializeInputFieldMappingEntry(item, options)); + } + inputs = array; + continue; + } + if (property.NameEquals("outputs"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(OutputFieldMappingEntry.DeserializeOutputFieldMappingEntry(item, options)); + } + outputs = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ContentUnderstandingSkill( + odataType, + name, + description, + context, + inputs, + outputs, + serializedAdditionalRawData, + extractionOptions ?? new ChangeTrackingList(), + chunkingProperties); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(ContentUnderstandingSkill)} does not support writing '{options.Format}' format."); + } + } + + ContentUnderstandingSkill IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeContentUnderstandingSkill(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ContentUnderstandingSkill)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new ContentUnderstandingSkill FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeContentUnderstandingSkill(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ContentUnderstandingSkill.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ContentUnderstandingSkill.cs new file mode 100644 index 000000000000..9cb9558b9269 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ContentUnderstandingSkill.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// A skill that leverages Azure AI Content Understanding to process and extract structured insights from documents, enabling enriched, searchable content for enhanced document indexing and retrieval. + public partial class ContentUnderstandingSkill : SearchIndexerSkill + { + /// Initializes a new instance of . + /// Inputs of the skills could be a column in the source data set, or the output of an upstream skill. + /// The output of a skill is either a field in a search index, or a value that can be consumed as an input by another skill. + /// or is null. + public ContentUnderstandingSkill(IEnumerable inputs, IEnumerable outputs) : base(inputs, outputs) + { + Argument.AssertNotNull(inputs, nameof(inputs)); + Argument.AssertNotNull(outputs, nameof(outputs)); + + ExtractionOptions = new ChangeTrackingList(); + ODataType = "#Microsoft.Skills.Util.ContentUnderstandingSkill"; + } + + /// Initializes a new instance of . + /// A URI fragment specifying the type of skill. + /// The name of the skill which uniquely identifies it within the skillset. A skill with no name defined will be given a default name of its 1-based index in the skills array, prefixed with the character '#'. + /// The description of the skill which describes the inputs, outputs, and usage of the skill. + /// Represents the level at which operations take place, such as the document root or document content (for example, /document or /document/content). The default is /document. + /// Inputs of the skills could be a column in the source data set, or the output of an upstream skill. + /// The output of a skill is either a field in a search index, or a value that can be consumed as an input by another skill. + /// Keeps track of any properties unknown to the library. + /// Controls the cardinality of the content extracted from the document by the skill. + /// Controls the cardinality for chunking the content. + internal ContentUnderstandingSkill(string oDataType, string name, string description, string context, IList inputs, IList outputs, IDictionary serializedAdditionalRawData, IList extractionOptions, ContentUnderstandingSkillChunkingProperties chunkingProperties) : base(oDataType, name, description, context, inputs, outputs, serializedAdditionalRawData) + { + ExtractionOptions = extractionOptions; + ChunkingProperties = chunkingProperties; + ODataType = oDataType ?? "#Microsoft.Skills.Util.ContentUnderstandingSkill"; + } + + /// Initializes a new instance of for deserialization. + internal ContentUnderstandingSkill() + { + } + + /// Controls the cardinality of the content extracted from the document by the skill. + public IList ExtractionOptions { get; set; } + /// Controls the cardinality for chunking the content. + public ContentUnderstandingSkillChunkingProperties ChunkingProperties { get; set; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ContentUnderstandingSkillChunkingProperties.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ContentUnderstandingSkillChunkingProperties.Serialization.cs new file mode 100644 index 000000000000..6437d1786e93 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ContentUnderstandingSkillChunkingProperties.Serialization.cs @@ -0,0 +1,203 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.Indexes.Models +{ + public partial class ContentUnderstandingSkillChunkingProperties : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ContentUnderstandingSkillChunkingProperties)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(Unit)) + { + if (Unit != null) + { + writer.WritePropertyName("unit"u8); + writer.WriteStringValue(Unit.Value.ToString()); + } + else + { + writer.WriteNull("unit"); + } + } + if (Optional.IsDefined(MaximumLength)) + { + if (MaximumLength != null) + { + writer.WritePropertyName("maximumLength"u8); + writer.WriteNumberValue(MaximumLength.Value); + } + else + { + writer.WriteNull("maximumLength"); + } + } + if (Optional.IsDefined(OverlapLength)) + { + if (OverlapLength != null) + { + writer.WritePropertyName("overlapLength"u8); + writer.WriteNumberValue(OverlapLength.Value); + } + else + { + writer.WriteNull("overlapLength"); + } + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + ContentUnderstandingSkillChunkingProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ContentUnderstandingSkillChunkingProperties)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeContentUnderstandingSkillChunkingProperties(document.RootElement, options); + } + + internal static ContentUnderstandingSkillChunkingProperties DeserializeContentUnderstandingSkillChunkingProperties(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ContentUnderstandingSkillChunkingUnit? unit = default; + int? maximumLength = default; + int? overlapLength = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("unit"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + unit = null; + continue; + } + unit = new ContentUnderstandingSkillChunkingUnit(property.Value.GetString()); + continue; + } + if (property.NameEquals("maximumLength"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + maximumLength = null; + continue; + } + maximumLength = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("overlapLength"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + overlapLength = null; + continue; + } + overlapLength = property.Value.GetInt32(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ContentUnderstandingSkillChunkingProperties(unit, maximumLength, overlapLength, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(ContentUnderstandingSkillChunkingProperties)} does not support writing '{options.Format}' format."); + } + } + + ContentUnderstandingSkillChunkingProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeContentUnderstandingSkillChunkingProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ContentUnderstandingSkillChunkingProperties)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ContentUnderstandingSkillChunkingProperties FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeContentUnderstandingSkillChunkingProperties(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ContentUnderstandingSkillChunkingProperties.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ContentUnderstandingSkillChunkingProperties.cs new file mode 100644 index 000000000000..4aa616a5d584 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ContentUnderstandingSkillChunkingProperties.cs @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// Controls the cardinality for chunking the content. + public partial class ContentUnderstandingSkillChunkingProperties + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public ContentUnderstandingSkillChunkingProperties() + { + } + + /// Initializes a new instance of . + /// The unit of the chunk. + /// The maximum chunk length in characters. Default is 500. + /// The length of overlap provided between two text chunks. Default is 0. + /// Keeps track of any properties unknown to the library. + internal ContentUnderstandingSkillChunkingProperties(ContentUnderstandingSkillChunkingUnit? unit, int? maximumLength, int? overlapLength, IDictionary serializedAdditionalRawData) + { + Unit = unit; + MaximumLength = maximumLength; + OverlapLength = overlapLength; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The unit of the chunk. + public ContentUnderstandingSkillChunkingUnit? Unit { get; set; } + /// The maximum chunk length in characters. Default is 500. + public int? MaximumLength { get; set; } + /// The length of overlap provided between two text chunks. Default is 0. + public int? OverlapLength { get; set; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ContentUnderstandingSkillChunkingUnit.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ContentUnderstandingSkillChunkingUnit.cs new file mode 100644 index 000000000000..164e730a6493 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ContentUnderstandingSkillChunkingUnit.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// Controls the cardinality of the chunk unit. Default is 'characters'. + public readonly partial struct ContentUnderstandingSkillChunkingUnit : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ContentUnderstandingSkillChunkingUnit(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string CharactersValue = "characters"; + + /// Specifies chunk by characters. + public static ContentUnderstandingSkillChunkingUnit Characters { get; } = new ContentUnderstandingSkillChunkingUnit(CharactersValue); + /// Determines if two values are the same. + public static bool operator ==(ContentUnderstandingSkillChunkingUnit left, ContentUnderstandingSkillChunkingUnit right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ContentUnderstandingSkillChunkingUnit left, ContentUnderstandingSkillChunkingUnit right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator ContentUnderstandingSkillChunkingUnit(string value) => new ContentUnderstandingSkillChunkingUnit(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ContentUnderstandingSkillChunkingUnit other && Equals(other); + /// + public bool Equals(ContentUnderstandingSkillChunkingUnit other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ContentUnderstandingSkillExtractionOptions.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ContentUnderstandingSkillExtractionOptions.cs new file mode 100644 index 000000000000..e2b54dedcabc --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ContentUnderstandingSkillExtractionOptions.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// Controls the cardinality of the content extracted from the document by the skill. + public readonly partial struct ContentUnderstandingSkillExtractionOptions : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ContentUnderstandingSkillExtractionOptions(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ImagesValue = "images"; + private const string LocationMetadataValue = "locationMetadata"; + + /// Specify that image content should be extracted from the document. + public static ContentUnderstandingSkillExtractionOptions Images { get; } = new ContentUnderstandingSkillExtractionOptions(ImagesValue); + /// Specify that location metadata should be extracted from the document. + public static ContentUnderstandingSkillExtractionOptions LocationMetadata { get; } = new ContentUnderstandingSkillExtractionOptions(LocationMetadataValue); + /// Determines if two values are the same. + public static bool operator ==(ContentUnderstandingSkillExtractionOptions left, ContentUnderstandingSkillExtractionOptions right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ContentUnderstandingSkillExtractionOptions left, ContentUnderstandingSkillExtractionOptions right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator ContentUnderstandingSkillExtractionOptions(string value) => new ContentUnderstandingSkillExtractionOptions(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ContentUnderstandingSkillExtractionOptions other && Equals(other); + /// + public bool Equals(ContentUnderstandingSkillExtractionOptions other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/FacetResult.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/FacetResult.Serialization.cs index 429fa87cf2c0..efe528f9be12 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/FacetResult.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/FacetResult.Serialization.cs @@ -39,11 +39,31 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("count"u8); writer.WriteNumberValue(Count.Value); } + if (options.Format != "W" && Optional.IsDefined(Avg)) + { + writer.WritePropertyName("avg"u8); + writer.WriteNumberValue(Avg.Value); + } + if (options.Format != "W" && Optional.IsDefined(Min)) + { + writer.WritePropertyName("min"u8); + writer.WriteNumberValue(Min.Value); + } + if (options.Format != "W" && Optional.IsDefined(Max)) + { + writer.WritePropertyName("max"u8); + writer.WriteNumberValue(Max.Value); + } if (options.Format != "W" && Optional.IsDefined(Sum)) { writer.WritePropertyName("sum"u8); writer.WriteNumberValue(Sum.Value); } + if (options.Format != "W" && Optional.IsDefined(Cardinality)) + { + writer.WritePropertyName("cardinality"u8); + writer.WriteNumberValue(Cardinality.Value); + } if (options.Format != "W" && Optional.IsCollectionDefined(Facets)) { writer.WritePropertyName("@search.facets"u8); @@ -93,7 +113,11 @@ internal static FacetResult DeserializeFacetResult(JsonElement element, ModelRea return null; } long? count = default; + double? avg = default; + double? min = default; + double? max = default; double? sum = default; + long? cardinality = default; IReadOnlyDictionary> searchFacets = default; IReadOnlyDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); @@ -108,6 +132,33 @@ internal static FacetResult DeserializeFacetResult(JsonElement element, ModelRea count = property.Value.GetInt64(); continue; } + if (property.NameEquals("avg"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + avg = property.Value.GetDouble(); + continue; + } + if (property.NameEquals("min"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + min = property.Value.GetDouble(); + continue; + } + if (property.NameEquals("max"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + max = property.Value.GetDouble(); + continue; + } if (property.NameEquals("sum"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -117,6 +168,15 @@ internal static FacetResult DeserializeFacetResult(JsonElement element, ModelRea sum = property.Value.GetDouble(); continue; } + if (property.NameEquals("cardinality"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + cardinality = property.Value.GetInt64(); + continue; + } if (property.NameEquals("@search.facets"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -146,7 +206,15 @@ internal static FacetResult DeserializeFacetResult(JsonElement element, ModelRea additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); } additionalProperties = additionalPropertiesDictionary; - return new FacetResult(count, sum, searchFacets ?? new ChangeTrackingDictionary>(), additionalProperties); + return new FacetResult( + count, + avg, + min, + max, + sum, + cardinality, + searchFacets ?? new ChangeTrackingDictionary>(), + additionalProperties); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/FacetResult.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/FacetResult.cs index 7370e6daf1c2..1530ab6ccf06 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/FacetResult.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/FacetResult.cs @@ -21,21 +21,37 @@ internal FacetResult() /// Initializes a new instance of . /// The approximate count of documents falling within the bucket described by this facet. + /// The resulting total avg for the facet when a avg metric is requested. + /// The resulting total min for the facet when a min metric is requested. + /// The resulting total max for the facet when a max metric is requested. /// The resulting total sum for the facet when a sum metric is requested. + /// The resulting total cardinality for the facet when a cardinality metric is requested. /// The nested facet query results for the search operation, organized as a collection of buckets for each faceted field; null if the query did not contain any nested facets. /// Additional Properties. - internal FacetResult(long? count, double? sum, IReadOnlyDictionary> facets, IReadOnlyDictionary additionalProperties) + internal FacetResult(long? count, double? avg, double? min, double? max, double? sum, long? cardinality, IReadOnlyDictionary> facets, IReadOnlyDictionary additionalProperties) { Count = count; + Avg = avg; + Min = min; + Max = max; Sum = sum; + Cardinality = cardinality; Facets = facets; AdditionalProperties = additionalProperties; } /// The approximate count of documents falling within the bucket described by this facet. public long? Count { get; } + /// The resulting total avg for the facet when a avg metric is requested. + public double? Avg { get; } + /// The resulting total min for the facet when a min metric is requested. + public double? Min { get; } + /// The resulting total max for the facet when a max metric is requested. + public double? Max { get; } /// The resulting total sum for the facet when a sum metric is requested. public double? Sum { get; } + /// The resulting total cardinality for the facet when a cardinality metric is requested. + public long? Cardinality { get; } /// The nested facet query results for the search operation, organized as a collection of buckets for each faceted field; null if the query did not contain any nested facets. public IReadOnlyDictionary> Facets { get; } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedOneLakeKnowledgeSource.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedOneLakeKnowledgeSource.Serialization.cs new file mode 100644 index 000000000000..928d066e3ba9 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedOneLakeKnowledgeSource.Serialization.cs @@ -0,0 +1,170 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.Indexes.Models +{ + public partial class IndexedOneLakeKnowledgeSource : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(IndexedOneLakeKnowledgeSource)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + writer.WritePropertyName("indexedOneLakeParameters"u8); + writer.WriteObjectValue(IndexedOneLakeParameters, options); + } + + IndexedOneLakeKnowledgeSource IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(IndexedOneLakeKnowledgeSource)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeIndexedOneLakeKnowledgeSource(document.RootElement, options); + } + + internal static IndexedOneLakeKnowledgeSource DeserializeIndexedOneLakeKnowledgeSource(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IndexedOneLakeKnowledgeSourceParameters indexedOneLakeParameters = default; + string name = default; + string description = default; + KnowledgeSourceKind kind = default; + string odataEtag = default; + SearchResourceEncryptionKey encryptionKey = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("indexedOneLakeParameters"u8)) + { + indexedOneLakeParameters = IndexedOneLakeKnowledgeSourceParameters.DeserializeIndexedOneLakeKnowledgeSourceParameters(property.Value, options); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("kind"u8)) + { + kind = new KnowledgeSourceKind(property.Value.GetString()); + continue; + } + if (property.NameEquals("@odata.etag"u8)) + { + odataEtag = property.Value.GetString(); + continue; + } + if (property.NameEquals("encryptionKey"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + encryptionKey = null; + continue; + } + encryptionKey = SearchResourceEncryptionKey.DeserializeSearchResourceEncryptionKey(property.Value, options); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new IndexedOneLakeKnowledgeSource( + name, + description, + kind, + odataEtag, + encryptionKey, + serializedAdditionalRawData, + indexedOneLakeParameters); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(IndexedOneLakeKnowledgeSource)} does not support writing '{options.Format}' format."); + } + } + + IndexedOneLakeKnowledgeSource IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeIndexedOneLakeKnowledgeSource(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(IndexedOneLakeKnowledgeSource)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new IndexedOneLakeKnowledgeSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeIndexedOneLakeKnowledgeSource(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedOneLakeKnowledgeSource.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedOneLakeKnowledgeSource.cs new file mode 100644 index 000000000000..e61b6c72ea5f --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedOneLakeKnowledgeSource.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// Configuration for OneLake knowledge source. + public partial class IndexedOneLakeKnowledgeSource : KnowledgeSource + { + /// Initializes a new instance of . + /// The name of the knowledge source. + /// The parameters for the OneLake knowledge source. + /// or is null. + public IndexedOneLakeKnowledgeSource(string name, IndexedOneLakeKnowledgeSourceParameters indexedOneLakeParameters) : base(name) + { + Argument.AssertNotNull(name, nameof(name)); + Argument.AssertNotNull(indexedOneLakeParameters, nameof(indexedOneLakeParameters)); + + IndexedOneLakeParameters = indexedOneLakeParameters; + Kind = KnowledgeSourceKind.IndexedOneLake; + } + + /// Initializes a new instance of . + /// The name of the knowledge source. + /// Optional user-defined description. + /// The type of the knowledge source. + /// The ETag of the knowledge base. + /// A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your knowledge base definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your knowledge base definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your knowledge base definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. + /// Keeps track of any properties unknown to the library. + /// The parameters for the OneLake knowledge source. + internal IndexedOneLakeKnowledgeSource(string name, string description, KnowledgeSourceKind kind, string eTag, SearchResourceEncryptionKey encryptionKey, IDictionary serializedAdditionalRawData, IndexedOneLakeKnowledgeSourceParameters indexedOneLakeParameters) : base(name, description, kind, eTag, encryptionKey, serializedAdditionalRawData) + { + IndexedOneLakeParameters = indexedOneLakeParameters; + Kind = kind; + } + + /// Initializes a new instance of for deserialization. + internal IndexedOneLakeKnowledgeSource() + { + } + + /// The parameters for the OneLake knowledge source. + public IndexedOneLakeKnowledgeSourceParameters IndexedOneLakeParameters { get; set; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedOneLakeKnowledgeSourceParameters.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedOneLakeKnowledgeSourceParameters.Serialization.cs new file mode 100644 index 000000000000..c8c70ff145f5 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedOneLakeKnowledgeSourceParameters.Serialization.cs @@ -0,0 +1,228 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.Indexes.Models +{ + public partial class IndexedOneLakeKnowledgeSourceParameters : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(IndexedOneLakeKnowledgeSourceParameters)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("fabricWorkspaceId"u8); + writer.WriteStringValue(FabricWorkspaceId); + writer.WritePropertyName("lakehouseId"u8); + writer.WriteStringValue(LakehouseId); + if (Optional.IsDefined(TargetPath)) + { + if (TargetPath != null) + { + writer.WritePropertyName("targetPath"u8); + writer.WriteStringValue(TargetPath); + } + else + { + writer.WriteNull("targetPath"); + } + } + if (Optional.IsDefined(IngestionParameters)) + { + if (IngestionParameters != null) + { + writer.WritePropertyName("ingestionParameters"u8); + writer.WriteObjectValue(IngestionParameters, options); + } + else + { + writer.WriteNull("ingestionParameters"); + } + } + if (options.Format != "W" && Optional.IsCollectionDefined(CreatedResources)) + { + writer.WritePropertyName("createdResources"u8); + writer.WriteStartObject(); + foreach (var item in CreatedResources) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + IndexedOneLakeKnowledgeSourceParameters IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(IndexedOneLakeKnowledgeSourceParameters)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeIndexedOneLakeKnowledgeSourceParameters(document.RootElement, options); + } + + internal static IndexedOneLakeKnowledgeSourceParameters DeserializeIndexedOneLakeKnowledgeSourceParameters(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string fabricWorkspaceId = default; + string lakehouseId = default; + string targetPath = default; + KnowledgeSourceIngestionParameters ingestionParameters = default; + IReadOnlyDictionary createdResources = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("fabricWorkspaceId"u8)) + { + fabricWorkspaceId = property.Value.GetString(); + continue; + } + if (property.NameEquals("lakehouseId"u8)) + { + lakehouseId = property.Value.GetString(); + continue; + } + if (property.NameEquals("targetPath"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + targetPath = null; + continue; + } + targetPath = property.Value.GetString(); + continue; + } + if (property.NameEquals("ingestionParameters"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + ingestionParameters = null; + continue; + } + ingestionParameters = KnowledgeSourceIngestionParameters.DeserializeKnowledgeSourceIngestionParameters(property.Value, options); + continue; + } + if (property.NameEquals("createdResources"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + createdResources = dictionary; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new IndexedOneLakeKnowledgeSourceParameters( + fabricWorkspaceId, + lakehouseId, + targetPath, + ingestionParameters, + createdResources ?? new ChangeTrackingDictionary(), + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(IndexedOneLakeKnowledgeSourceParameters)} does not support writing '{options.Format}' format."); + } + } + + IndexedOneLakeKnowledgeSourceParameters IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeIndexedOneLakeKnowledgeSourceParameters(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(IndexedOneLakeKnowledgeSourceParameters)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IndexedOneLakeKnowledgeSourceParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeIndexedOneLakeKnowledgeSourceParameters(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedOneLakeKnowledgeSourceParameters.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedOneLakeKnowledgeSourceParameters.cs new file mode 100644 index 000000000000..f2d261a46e9a --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedOneLakeKnowledgeSourceParameters.cs @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// Parameters for OneLake knowledge source. + public partial class IndexedOneLakeKnowledgeSourceParameters + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// OneLake workspace ID. + /// Specifies which OneLake lakehouse to access. + /// or is null. + public IndexedOneLakeKnowledgeSourceParameters(string fabricWorkspaceId, string lakehouseId) + { + Argument.AssertNotNull(fabricWorkspaceId, nameof(fabricWorkspaceId)); + Argument.AssertNotNull(lakehouseId, nameof(lakehouseId)); + + FabricWorkspaceId = fabricWorkspaceId; + LakehouseId = lakehouseId; + CreatedResources = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of . + /// OneLake workspace ID. + /// Specifies which OneLake lakehouse to access. + /// Optional OneLakehouse folder or shortcut to filter OneLake content. + /// Consolidates all general ingestion settings. + /// Resources created by the knowledge source. + /// Keeps track of any properties unknown to the library. + internal IndexedOneLakeKnowledgeSourceParameters(string fabricWorkspaceId, string lakehouseId, string targetPath, KnowledgeSourceIngestionParameters ingestionParameters, IReadOnlyDictionary createdResources, IDictionary serializedAdditionalRawData) + { + FabricWorkspaceId = fabricWorkspaceId; + LakehouseId = lakehouseId; + TargetPath = targetPath; + IngestionParameters = ingestionParameters; + CreatedResources = createdResources; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal IndexedOneLakeKnowledgeSourceParameters() + { + } + + /// OneLake workspace ID. + public string FabricWorkspaceId { get; set; } + /// Specifies which OneLake lakehouse to access. + public string LakehouseId { get; set; } + /// Optional OneLakehouse folder or shortcut to filter OneLake content. + public string TargetPath { get; set; } + /// Consolidates all general ingestion settings. + public KnowledgeSourceIngestionParameters IngestionParameters { get; set; } + /// Resources created by the knowledge source. + public IReadOnlyDictionary CreatedResources { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedOneLakeKnowledgeSourceParams.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedOneLakeKnowledgeSourceParams.Serialization.cs new file mode 100644 index 000000000000..b2df1d82e735 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedOneLakeKnowledgeSourceParams.Serialization.cs @@ -0,0 +1,180 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.Search.Documents.Indexes.Models; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class IndexedOneLakeKnowledgeSourceParams : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(IndexedOneLakeKnowledgeSourceParams)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + } + + IndexedOneLakeKnowledgeSourceParams IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(IndexedOneLakeKnowledgeSourceParams)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeIndexedOneLakeKnowledgeSourceParams(document.RootElement, options); + } + + internal static IndexedOneLakeKnowledgeSourceParams DeserializeIndexedOneLakeKnowledgeSourceParams(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string knowledgeSourceName = default; + bool? includeReferences = default; + bool? includeReferenceSourceData = default; + bool? alwaysQuerySource = default; + float? rerankerThreshold = default; + KnowledgeSourceKind kind = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("knowledgeSourceName"u8)) + { + knowledgeSourceName = property.Value.GetString(); + continue; + } + if (property.NameEquals("includeReferences"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + includeReferences = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("includeReferenceSourceData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + includeReferenceSourceData = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("alwaysQuerySource"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + alwaysQuerySource = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("rerankerThreshold"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rerankerThreshold = property.Value.GetSingle(); + continue; + } + if (property.NameEquals("kind"u8)) + { + kind = new KnowledgeSourceKind(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new IndexedOneLakeKnowledgeSourceParams( + knowledgeSourceName, + includeReferences, + includeReferenceSourceData, + alwaysQuerySource, + rerankerThreshold, + kind, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(IndexedOneLakeKnowledgeSourceParams)} does not support writing '{options.Format}' format."); + } + } + + IndexedOneLakeKnowledgeSourceParams IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeIndexedOneLakeKnowledgeSourceParams(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(IndexedOneLakeKnowledgeSourceParams)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new IndexedOneLakeKnowledgeSourceParams FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeIndexedOneLakeKnowledgeSourceParams(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedOneLakeKnowledgeSourceParams.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedOneLakeKnowledgeSourceParams.cs new file mode 100644 index 000000000000..afadbb76caad --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedOneLakeKnowledgeSourceParams.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Search.Documents.Indexes.Models; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// Specifies runtime parameters for a indexed OneLake knowledge source. + public partial class IndexedOneLakeKnowledgeSourceParams : KnowledgeSourceParams + { + /// Initializes a new instance of . + /// The name of the index the params apply to. + /// is null. + public IndexedOneLakeKnowledgeSourceParams(string knowledgeSourceName) : base(knowledgeSourceName) + { + Argument.AssertNotNull(knowledgeSourceName, nameof(knowledgeSourceName)); + + Kind = KnowledgeSourceKind.IndexedOneLake; + } + + /// Initializes a new instance of . + /// The name of the index the params apply to. + /// Indicates whether references should be included for data retrieved from this source. + /// Indicates whether references should include the structured data obtained during retrieval in their payload. + /// Indicates that this knowledge source should bypass source selection and always be queried at retrieval time. + /// The reranker threshold all retrieved documents must meet to be included in the response. + /// The type of the knowledge source. + /// Keeps track of any properties unknown to the library. + internal IndexedOneLakeKnowledgeSourceParams(string knowledgeSourceName, bool? includeReferences, bool? includeReferenceSourceData, bool? alwaysQuerySource, float? rerankerThreshold, KnowledgeSourceKind kind, IDictionary serializedAdditionalRawData) : base(knowledgeSourceName, includeReferences, includeReferenceSourceData, alwaysQuerySource, rerankerThreshold, kind, serializedAdditionalRawData) + { + Kind = kind; + } + + /// Initializes a new instance of for deserialization. + internal IndexedOneLakeKnowledgeSourceParams() + { + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointContainerName.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointContainerName.cs new file mode 100644 index 000000000000..66ad97216699 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointContainerName.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Search.Documents.Models +{ + /// Specifies which SharePoint libraries to access. + public readonly partial struct IndexedSharePointContainerName : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public IndexedSharePointContainerName(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string DefaultSiteLibraryValue = "defaultSiteLibrary"; + private const string AllSiteLibrariesValue = "allSiteLibraries"; + private const string UseQueryValue = "useQuery"; + + /// Index content from the site's default document library. + public static IndexedSharePointContainerName DefaultSiteLibrary { get; } = new IndexedSharePointContainerName(DefaultSiteLibraryValue); + /// Index content from every document library in the site. + public static IndexedSharePointContainerName AllSiteLibraries { get; } = new IndexedSharePointContainerName(AllSiteLibrariesValue); + /// Index only content that matches the query specified in the knowledge source. + public static IndexedSharePointContainerName UseQuery { get; } = new IndexedSharePointContainerName(UseQueryValue); + /// Determines if two values are the same. + public static bool operator ==(IndexedSharePointContainerName left, IndexedSharePointContainerName right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(IndexedSharePointContainerName left, IndexedSharePointContainerName right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator IndexedSharePointContainerName(string value) => new IndexedSharePointContainerName(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is IndexedSharePointContainerName other && Equals(other); + /// + public bool Equals(IndexedSharePointContainerName other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointKnowledgeSource.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointKnowledgeSource.Serialization.cs new file mode 100644 index 000000000000..3c2a6cc934f5 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointKnowledgeSource.Serialization.cs @@ -0,0 +1,170 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.Indexes.Models +{ + public partial class IndexedSharePointKnowledgeSource : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(IndexedSharePointKnowledgeSource)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + writer.WritePropertyName("indexedSharePointParameters"u8); + writer.WriteObjectValue(IndexedSharePointParameters, options); + } + + IndexedSharePointKnowledgeSource IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(IndexedSharePointKnowledgeSource)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeIndexedSharePointKnowledgeSource(document.RootElement, options); + } + + internal static IndexedSharePointKnowledgeSource DeserializeIndexedSharePointKnowledgeSource(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IndexedSharePointKnowledgeSourceParameters indexedSharePointParameters = default; + string name = default; + string description = default; + KnowledgeSourceKind kind = default; + string odataEtag = default; + SearchResourceEncryptionKey encryptionKey = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("indexedSharePointParameters"u8)) + { + indexedSharePointParameters = IndexedSharePointKnowledgeSourceParameters.DeserializeIndexedSharePointKnowledgeSourceParameters(property.Value, options); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("kind"u8)) + { + kind = new KnowledgeSourceKind(property.Value.GetString()); + continue; + } + if (property.NameEquals("@odata.etag"u8)) + { + odataEtag = property.Value.GetString(); + continue; + } + if (property.NameEquals("encryptionKey"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + encryptionKey = null; + continue; + } + encryptionKey = SearchResourceEncryptionKey.DeserializeSearchResourceEncryptionKey(property.Value, options); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new IndexedSharePointKnowledgeSource( + name, + description, + kind, + odataEtag, + encryptionKey, + serializedAdditionalRawData, + indexedSharePointParameters); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(IndexedSharePointKnowledgeSource)} does not support writing '{options.Format}' format."); + } + } + + IndexedSharePointKnowledgeSource IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeIndexedSharePointKnowledgeSource(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(IndexedSharePointKnowledgeSource)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new IndexedSharePointKnowledgeSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeIndexedSharePointKnowledgeSource(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointKnowledgeSource.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointKnowledgeSource.cs new file mode 100644 index 000000000000..95cae14b995b --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointKnowledgeSource.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// Configuration for SharePoint knowledge source. + public partial class IndexedSharePointKnowledgeSource : KnowledgeSource + { + /// Initializes a new instance of . + /// The name of the knowledge source. + /// The parameters for the SharePoint knowledge source. + /// or is null. + public IndexedSharePointKnowledgeSource(string name, IndexedSharePointKnowledgeSourceParameters indexedSharePointParameters) : base(name) + { + Argument.AssertNotNull(name, nameof(name)); + Argument.AssertNotNull(indexedSharePointParameters, nameof(indexedSharePointParameters)); + + IndexedSharePointParameters = indexedSharePointParameters; + Kind = KnowledgeSourceKind.IndexedSharePoint; + } + + /// Initializes a new instance of . + /// The name of the knowledge source. + /// Optional user-defined description. + /// The type of the knowledge source. + /// The ETag of the knowledge base. + /// A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your knowledge base definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your knowledge base definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your knowledge base definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. + /// Keeps track of any properties unknown to the library. + /// The parameters for the SharePoint knowledge source. + internal IndexedSharePointKnowledgeSource(string name, string description, KnowledgeSourceKind kind, string eTag, SearchResourceEncryptionKey encryptionKey, IDictionary serializedAdditionalRawData, IndexedSharePointKnowledgeSourceParameters indexedSharePointParameters) : base(name, description, kind, eTag, encryptionKey, serializedAdditionalRawData) + { + IndexedSharePointParameters = indexedSharePointParameters; + Kind = kind; + } + + /// Initializes a new instance of for deserialization. + internal IndexedSharePointKnowledgeSource() + { + } + + /// The parameters for the SharePoint knowledge source. + public IndexedSharePointKnowledgeSourceParameters IndexedSharePointParameters { get; set; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointKnowledgeSourceParameters.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointKnowledgeSourceParameters.Serialization.cs new file mode 100644 index 000000000000..868aa9ca459c --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointKnowledgeSourceParameters.Serialization.cs @@ -0,0 +1,229 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.Search.Documents.Models; + +namespace Azure.Search.Documents.Indexes.Models +{ + public partial class IndexedSharePointKnowledgeSourceParameters : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(IndexedSharePointKnowledgeSourceParameters)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("connectionString"u8); + writer.WriteStringValue(ConnectionString); + writer.WritePropertyName("containerName"u8); + writer.WriteStringValue(ContainerName.ToString()); + if (Optional.IsDefined(Query)) + { + if (Query != null) + { + writer.WritePropertyName("query"u8); + writer.WriteStringValue(Query); + } + else + { + writer.WriteNull("query"); + } + } + if (Optional.IsDefined(IngestionParameters)) + { + if (IngestionParameters != null) + { + writer.WritePropertyName("ingestionParameters"u8); + writer.WriteObjectValue(IngestionParameters, options); + } + else + { + writer.WriteNull("ingestionParameters"); + } + } + if (options.Format != "W" && Optional.IsCollectionDefined(CreatedResources)) + { + writer.WritePropertyName("createdResources"u8); + writer.WriteStartObject(); + foreach (var item in CreatedResources) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + IndexedSharePointKnowledgeSourceParameters IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(IndexedSharePointKnowledgeSourceParameters)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeIndexedSharePointKnowledgeSourceParameters(document.RootElement, options); + } + + internal static IndexedSharePointKnowledgeSourceParameters DeserializeIndexedSharePointKnowledgeSourceParameters(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string connectionString = default; + IndexedSharePointContainerName containerName = default; + string query = default; + KnowledgeSourceIngestionParameters ingestionParameters = default; + IReadOnlyDictionary createdResources = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("connectionString"u8)) + { + connectionString = property.Value.GetString(); + continue; + } + if (property.NameEquals("containerName"u8)) + { + containerName = new IndexedSharePointContainerName(property.Value.GetString()); + continue; + } + if (property.NameEquals("query"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + query = null; + continue; + } + query = property.Value.GetString(); + continue; + } + if (property.NameEquals("ingestionParameters"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + ingestionParameters = null; + continue; + } + ingestionParameters = KnowledgeSourceIngestionParameters.DeserializeKnowledgeSourceIngestionParameters(property.Value, options); + continue; + } + if (property.NameEquals("createdResources"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + createdResources = dictionary; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new IndexedSharePointKnowledgeSourceParameters( + connectionString, + containerName, + query, + ingestionParameters, + createdResources ?? new ChangeTrackingDictionary(), + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(IndexedSharePointKnowledgeSourceParameters)} does not support writing '{options.Format}' format."); + } + } + + IndexedSharePointKnowledgeSourceParameters IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeIndexedSharePointKnowledgeSourceParameters(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(IndexedSharePointKnowledgeSourceParameters)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IndexedSharePointKnowledgeSourceParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeIndexedSharePointKnowledgeSourceParameters(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointKnowledgeSourceParameters.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointKnowledgeSourceParameters.cs new file mode 100644 index 000000000000..c424a28ee17a --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointKnowledgeSourceParameters.cs @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Search.Documents.Models; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// Parameters for SharePoint knowledge source. + public partial class IndexedSharePointKnowledgeSourceParameters + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// SharePoint connection string with format: SharePointOnlineEndpoint=[SharePoint site url];ApplicationId=[Azure AD App ID];ApplicationSecret=[Azure AD App client secret];TenantId=[SharePoint site tenant id]. + /// Specifies which SharePoint libraries to access. + /// is null. + public IndexedSharePointKnowledgeSourceParameters(string connectionString, IndexedSharePointContainerName containerName) + { + Argument.AssertNotNull(connectionString, nameof(connectionString)); + + ConnectionString = connectionString; + ContainerName = containerName; + CreatedResources = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of . + /// SharePoint connection string with format: SharePointOnlineEndpoint=[SharePoint site url];ApplicationId=[Azure AD App ID];ApplicationSecret=[Azure AD App client secret];TenantId=[SharePoint site tenant id]. + /// Specifies which SharePoint libraries to access. + /// Optional query to filter SharePoint content. + /// Consolidates all general ingestion settings. + /// Resources created by the knowledge source. + /// Keeps track of any properties unknown to the library. + internal IndexedSharePointKnowledgeSourceParameters(string connectionString, IndexedSharePointContainerName containerName, string query, KnowledgeSourceIngestionParameters ingestionParameters, IReadOnlyDictionary createdResources, IDictionary serializedAdditionalRawData) + { + ConnectionString = connectionString; + ContainerName = containerName; + Query = query; + IngestionParameters = ingestionParameters; + CreatedResources = createdResources; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal IndexedSharePointKnowledgeSourceParameters() + { + } + + /// SharePoint connection string with format: SharePointOnlineEndpoint=[SharePoint site url];ApplicationId=[Azure AD App ID];ApplicationSecret=[Azure AD App client secret];TenantId=[SharePoint site tenant id]. + public string ConnectionString { get; set; } + /// Specifies which SharePoint libraries to access. + public IndexedSharePointContainerName ContainerName { get; set; } + /// Optional query to filter SharePoint content. + public string Query { get; set; } + /// Consolidates all general ingestion settings. + public KnowledgeSourceIngestionParameters IngestionParameters { get; set; } + /// Resources created by the knowledge source. + public IReadOnlyDictionary CreatedResources { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointKnowledgeSourceParams.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointKnowledgeSourceParams.Serialization.cs new file mode 100644 index 000000000000..333c501989e3 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointKnowledgeSourceParams.Serialization.cs @@ -0,0 +1,180 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.Search.Documents.Indexes.Models; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class IndexedSharePointKnowledgeSourceParams : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(IndexedSharePointKnowledgeSourceParams)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + } + + IndexedSharePointKnowledgeSourceParams IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(IndexedSharePointKnowledgeSourceParams)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeIndexedSharePointKnowledgeSourceParams(document.RootElement, options); + } + + internal static IndexedSharePointKnowledgeSourceParams DeserializeIndexedSharePointKnowledgeSourceParams(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string knowledgeSourceName = default; + bool? includeReferences = default; + bool? includeReferenceSourceData = default; + bool? alwaysQuerySource = default; + float? rerankerThreshold = default; + KnowledgeSourceKind kind = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("knowledgeSourceName"u8)) + { + knowledgeSourceName = property.Value.GetString(); + continue; + } + if (property.NameEquals("includeReferences"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + includeReferences = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("includeReferenceSourceData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + includeReferenceSourceData = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("alwaysQuerySource"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + alwaysQuerySource = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("rerankerThreshold"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rerankerThreshold = property.Value.GetSingle(); + continue; + } + if (property.NameEquals("kind"u8)) + { + kind = new KnowledgeSourceKind(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new IndexedSharePointKnowledgeSourceParams( + knowledgeSourceName, + includeReferences, + includeReferenceSourceData, + alwaysQuerySource, + rerankerThreshold, + kind, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(IndexedSharePointKnowledgeSourceParams)} does not support writing '{options.Format}' format."); + } + } + + IndexedSharePointKnowledgeSourceParams IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeIndexedSharePointKnowledgeSourceParams(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(IndexedSharePointKnowledgeSourceParams)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new IndexedSharePointKnowledgeSourceParams FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeIndexedSharePointKnowledgeSourceParams(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointKnowledgeSourceParams.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointKnowledgeSourceParams.cs new file mode 100644 index 000000000000..3a7df1b386fe --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexedSharePointKnowledgeSourceParams.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Search.Documents.Indexes.Models; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// Specifies runtime parameters for a indexed SharePoint knowledge source. + public partial class IndexedSharePointKnowledgeSourceParams : KnowledgeSourceParams + { + /// Initializes a new instance of . + /// The name of the index the params apply to. + /// is null. + public IndexedSharePointKnowledgeSourceParams(string knowledgeSourceName) : base(knowledgeSourceName) + { + Argument.AssertNotNull(knowledgeSourceName, nameof(knowledgeSourceName)); + + Kind = KnowledgeSourceKind.IndexedSharePoint; + } + + /// Initializes a new instance of . + /// The name of the index the params apply to. + /// Indicates whether references should be included for data retrieved from this source. + /// Indicates whether references should include the structured data obtained during retrieval in their payload. + /// Indicates that this knowledge source should bypass source selection and always be queried at retrieval time. + /// The reranker threshold all retrieved documents must meet to be included in the response. + /// The type of the knowledge source. + /// Keeps track of any properties unknown to the library. + internal IndexedSharePointKnowledgeSourceParams(string knowledgeSourceName, bool? includeReferences, bool? includeReferenceSourceData, bool? alwaysQuerySource, float? rerankerThreshold, KnowledgeSourceKind kind, IDictionary serializedAdditionalRawData) : base(knowledgeSourceName, includeReferences, includeReferenceSourceData, alwaysQuerySource, rerankerThreshold, kind, serializedAdditionalRawData) + { + Kind = kind; + } + + /// Initializes a new instance of for deserialization. + internal IndexedSharePointKnowledgeSourceParams() + { + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerRuntime.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerRuntime.Serialization.cs new file mode 100644 index 000000000000..cd6f00ad968f --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerRuntime.Serialization.cs @@ -0,0 +1,181 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.Indexes.Models +{ + public partial class IndexerRuntime : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(IndexerRuntime)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("usedSeconds"u8); + writer.WriteNumberValue(UsedSeconds); + if (Optional.IsDefined(RemainingSeconds)) + { + if (RemainingSeconds != null) + { + writer.WritePropertyName("remainingSeconds"u8); + writer.WriteNumberValue(RemainingSeconds.Value); + } + else + { + writer.WriteNull("remainingSeconds"); + } + } + writer.WritePropertyName("beginningTime"u8); + writer.WriteStringValue(BeginningTime, "O"); + writer.WritePropertyName("endingTime"u8); + writer.WriteStringValue(EndingTime, "O"); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + IndexerRuntime IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(IndexerRuntime)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeIndexerRuntime(document.RootElement, options); + } + + internal static IndexerRuntime DeserializeIndexerRuntime(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + long usedSeconds = default; + long? remainingSeconds = default; + DateTimeOffset beginningTime = default; + DateTimeOffset endingTime = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("usedSeconds"u8)) + { + usedSeconds = property.Value.GetInt64(); + continue; + } + if (property.NameEquals("remainingSeconds"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + remainingSeconds = null; + continue; + } + remainingSeconds = property.Value.GetInt64(); + continue; + } + if (property.NameEquals("beginningTime"u8)) + { + beginningTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("endingTime"u8)) + { + endingTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new IndexerRuntime(usedSeconds, remainingSeconds, beginningTime, endingTime, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(IndexerRuntime)} does not support writing '{options.Format}' format."); + } + } + + IndexerRuntime IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeIndexerRuntime(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(IndexerRuntime)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static IndexerRuntime FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeIndexerRuntime(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerRuntime.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerRuntime.cs new file mode 100644 index 000000000000..a79b33bdea10 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/IndexerRuntime.cs @@ -0,0 +1,88 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// Represents the indexer's cumulative runtime consumption in the service. + public partial class IndexerRuntime + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// Cumulative runtime of the indexer from the beginningTime to endingTime, in seconds. + /// Beginning UTC time of the 24-hour period considered for indexer runtime usage (inclusive). + /// End UTC time of the 24-hour period considered for indexer runtime usage (inclusive). + internal IndexerRuntime(long usedSeconds, DateTimeOffset beginningTime, DateTimeOffset endingTime) + { + UsedSeconds = usedSeconds; + BeginningTime = beginningTime; + EndingTime = endingTime; + } + + /// Initializes a new instance of . + /// Cumulative runtime of the indexer from the beginningTime to endingTime, in seconds. + /// Cumulative runtime remaining for all indexers in the service from the beginningTime to endingTime, in seconds. + /// Beginning UTC time of the 24-hour period considered for indexer runtime usage (inclusive). + /// End UTC time of the 24-hour period considered for indexer runtime usage (inclusive). + /// Keeps track of any properties unknown to the library. + internal IndexerRuntime(long usedSeconds, long? remainingSeconds, DateTimeOffset beginningTime, DateTimeOffset endingTime, IDictionary serializedAdditionalRawData) + { + UsedSeconds = usedSeconds; + RemainingSeconds = remainingSeconds; + BeginningTime = beginningTime; + EndingTime = endingTime; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal IndexerRuntime() + { + } + + /// Cumulative runtime of the indexer from the beginningTime to endingTime, in seconds. + public long UsedSeconds { get; } + /// Cumulative runtime remaining for all indexers in the service from the beginningTime to endingTime, in seconds. + public long? RemainingSeconds { get; } + /// Beginning UTC time of the 24-hour period considered for indexer runtime usage (inclusive). + public DateTimeOffset BeginningTime { get; } + /// End UTC time of the 24-hour period considered for indexer runtime usage (inclusive). + public DateTimeOffset EndingTime { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgent.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgent.cs deleted file mode 100644 index c69b0c178f36..000000000000 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgent.cs +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Azure.Search.Documents.Indexes.Models -{ - /// The KnowledgeAgent. - public partial class KnowledgeAgent - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - /// The name of the knowledge agent. - /// - /// Contains configuration options on how to connect to AI models. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// - /// , or is null. - public KnowledgeAgent(string name, IEnumerable models, IEnumerable knowledgeSources) - { - Argument.AssertNotNull(name, nameof(name)); - Argument.AssertNotNull(models, nameof(models)); - Argument.AssertNotNull(knowledgeSources, nameof(knowledgeSources)); - - Name = name; - Models = models.ToList(); - KnowledgeSources = knowledgeSources.ToList(); - } - - /// Initializes a new instance of . - /// The name of the knowledge agent. - /// - /// Contains configuration options on how to connect to AI models. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// - /// - /// Guardrails to limit how much resources are utilized for a single agent retrieval request. - /// Instructions considered by the knowledge agent when developing query plan. - /// The ETag of the agent. - /// A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your agent definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your agent definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your agent definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. - /// The description of the agent. - /// Keeps track of any properties unknown to the library. - internal KnowledgeAgent(string name, IList models, IList knowledgeSources, KnowledgeAgentOutputConfiguration outputConfiguration, KnowledgeAgentRequestLimits requestLimits, string retrievalInstructions, string eTag, SearchResourceEncryptionKey encryptionKey, string description, IDictionary serializedAdditionalRawData) - { - Name = name; - Models = models; - KnowledgeSources = knowledgeSources; - OutputConfiguration = outputConfiguration; - RequestLimits = requestLimits; - RetrievalInstructions = retrievalInstructions; - _eTag = eTag; - EncryptionKey = encryptionKey; - Description = description; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal KnowledgeAgent() - { - } - - /// The name of the knowledge agent. - public string Name { get; set; } - /// - /// Contains configuration options on how to connect to AI models. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - public IList Models { get; } - /// Gets the knowledge sources. - public IList KnowledgeSources { get; } - /// Gets or sets the output configuration. - public KnowledgeAgentOutputConfiguration OutputConfiguration { get; set; } - /// Guardrails to limit how much resources are utilized for a single agent retrieval request. - public KnowledgeAgentRequestLimits RequestLimits { get; set; } - /// Instructions considered by the knowledge agent when developing query plan. - public string RetrievalInstructions { get; set; } - /// A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your agent definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your agent definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your agent definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. - public SearchResourceEncryptionKey EncryptionKey { get; set; } - /// The description of the agent. - public string Description { get; set; } - } -} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageContentType.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageContentType.cs deleted file mode 100644 index 32b526ea8c5d..000000000000 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageContentType.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.Search.Documents.Agents.Models -{ - /// The type of message content. - public readonly partial struct KnowledgeAgentMessageContentType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public KnowledgeAgentMessageContentType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string TextValue = "text"; - private const string ImageValue = "image"; - - /// Text message content kind. - public static KnowledgeAgentMessageContentType Text { get; } = new KnowledgeAgentMessageContentType(TextValue); - /// Image message content kind. - public static KnowledgeAgentMessageContentType Image { get; } = new KnowledgeAgentMessageContentType(ImageValue); - /// Determines if two values are the same. - public static bool operator ==(KnowledgeAgentMessageContentType left, KnowledgeAgentMessageContentType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(KnowledgeAgentMessageContentType left, KnowledgeAgentMessageContentType right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator KnowledgeAgentMessageContentType(string value) => new KnowledgeAgentMessageContentType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is KnowledgeAgentMessageContentType other && Equals(other); - /// - public bool Equals(KnowledgeAgentMessageContentType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentOutputConfiguration.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentOutputConfiguration.cs deleted file mode 100644 index 8a7a3e960f1e..000000000000 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentOutputConfiguration.cs +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using Azure.Search.Documents.Models; - -namespace Azure.Search.Documents.Indexes.Models -{ - /// The KnowledgeAgentOutputConfiguration. - public partial class KnowledgeAgentOutputConfiguration - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public KnowledgeAgentOutputConfiguration() - { - } - - /// Initializes a new instance of . - /// The output configuration for the agent. - /// Instructions considered by the knowledge agent when generating answers. - /// Indicates whether the agent should attempt to issue the most recent chat message as a direct query to the knowledge sources, bypassing the model calls. - /// Indicates retrieval results should include activity information. - /// Keeps track of any properties unknown to the library. - internal KnowledgeAgentOutputConfiguration(KnowledgeAgentOutputConfigurationModality? modality, string answerInstructions, bool? attemptFastPath, bool? includeActivity, IDictionary serializedAdditionalRawData) - { - Modality = modality; - AnswerInstructions = answerInstructions; - AttemptFastPath = attemptFastPath; - IncludeActivity = includeActivity; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// The output configuration for the agent. - public KnowledgeAgentOutputConfigurationModality? Modality { get; set; } - /// Instructions considered by the knowledge agent when generating answers. - public string AnswerInstructions { get; set; } - /// Indicates whether the agent should attempt to issue the most recent chat message as a direct query to the knowledge sources, bypassing the model calls. - public bool? AttemptFastPath { get; set; } - /// Indicates retrieval results should include activity information. - public bool? IncludeActivity { get; set; } - } -} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentOutputConfigurationModality.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentOutputConfigurationModality.cs deleted file mode 100644 index 61bca1a426bc..000000000000 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentOutputConfigurationModality.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.Search.Documents.Models -{ - /// The output configuration for the agent. - public readonly partial struct KnowledgeAgentOutputConfigurationModality : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public KnowledgeAgentOutputConfigurationModality(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string AnswerSynthesisValue = "answerSynthesis"; - private const string ExtractiveDataValue = "extractiveData"; - - /// Synthesize an answer for the response payload. - public static KnowledgeAgentOutputConfigurationModality AnswerSynthesis { get; } = new KnowledgeAgentOutputConfigurationModality(AnswerSynthesisValue); - /// Return data from the knowledge sources directly without generative alteration. - public static KnowledgeAgentOutputConfigurationModality ExtractiveData { get; } = new KnowledgeAgentOutputConfigurationModality(ExtractiveDataValue); - /// Determines if two values are the same. - public static bool operator ==(KnowledgeAgentOutputConfigurationModality left, KnowledgeAgentOutputConfigurationModality right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(KnowledgeAgentOutputConfigurationModality left, KnowledgeAgentOutputConfigurationModality right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator KnowledgeAgentOutputConfigurationModality(string value) => new KnowledgeAgentOutputConfigurationModality(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is KnowledgeAgentOutputConfigurationModality other && Equals(other); - /// - public bool Equals(KnowledgeAgentOutputConfigurationModality other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRetrievalRequest.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRetrievalRequest.cs deleted file mode 100644 index 2b7ec6c97fa1..000000000000 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRetrievalRequest.cs +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Azure.Search.Documents.Agents.Models -{ - /// The input contract for the retrieval request. - public partial class KnowledgeAgentRetrievalRequest - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - /// - /// is null. - public KnowledgeAgentRetrievalRequest(IEnumerable messages) - { - Argument.AssertNotNull(messages, nameof(messages)); - - Messages = messages.ToList(); - KnowledgeSourceParams = new ChangeTrackingList(); - } - - /// Initializes a new instance of . - /// - /// - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// Keeps track of any properties unknown to the library. - internal KnowledgeAgentRetrievalRequest(IList messages, IList knowledgeSourceParams, IDictionary serializedAdditionalRawData) - { - Messages = messages; - KnowledgeSourceParams = knowledgeSourceParams; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal KnowledgeAgentRetrievalRequest() - { - } - - /// Gets the messages. - public IList Messages { get; } - /// - /// Gets the knowledge source params - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - public IList KnowledgeSourceParams { get; } - } -} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRetrievalResponse.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRetrievalResponse.cs deleted file mode 100644 index 8b74e5263965..000000000000 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRetrievalResponse.cs +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Search.Documents.Agents.Models -{ - /// The output contract for the retrieval response. - public partial class KnowledgeAgentRetrievalResponse - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - internal KnowledgeAgentRetrievalResponse() - { - Response = new ChangeTrackingList(); - Activity = new ChangeTrackingList(); - References = new ChangeTrackingList(); - } - - /// Initializes a new instance of . - /// - /// - /// The activity records for tracking progress and billing implications. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , and . - /// - /// - /// The references for the retrieval data used in the response. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - /// Keeps track of any properties unknown to the library. - internal KnowledgeAgentRetrievalResponse(IReadOnlyList response, IReadOnlyList activity, IReadOnlyList references, IDictionary serializedAdditionalRawData) - { - Response = response; - Activity = activity; - References = references; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Gets the response. - public IReadOnlyList Response { get; } - /// - /// The activity records for tracking progress and billing implications. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , and . - /// - public IReadOnlyList Activity { get; } - /// - /// The references for the retrieval data used in the response. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// - public IReadOnlyList References { get; } - } -} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentSemanticRerankerActivityRecord.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentSemanticRerankerActivityRecord.cs deleted file mode 100644 index 709f483f8b37..000000000000 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentSemanticRerankerActivityRecord.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.Search.Documents.Agents.Models -{ - /// Represents a semantic ranker activity record. - public partial class KnowledgeAgentSemanticRerankerActivityRecord : KnowledgeAgentActivityRecord - { - /// Initializes a new instance of . - /// The ID of the activity record. - internal KnowledgeAgentSemanticRerankerActivityRecord(int id) : base(id) - { - Type = "semanticReranker"; - } - - /// Initializes a new instance of . - /// The ID of the activity record. - /// The type of the activity record. - /// The elapsed time in milliseconds for the retrieval activity. - /// Keeps track of any properties unknown to the library. - /// The number of input tokens for the semantic ranker activity. - internal KnowledgeAgentSemanticRerankerActivityRecord(int id, string type, int? elapsedMs, IDictionary serializedAdditionalRawData, int? inputTokens) : base(id, type, elapsedMs, serializedAdditionalRawData) - { - InputTokens = inputTokens; - Type = type ?? "semanticReranker"; - } - - /// Initializes a new instance of for deserialization. - internal KnowledgeAgentSemanticRerankerActivityRecord() - { - } - - /// The number of input tokens for the semantic ranker activity. - public int? InputTokens { get; } - } -} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgent.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBase.Serialization.cs similarity index 66% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgent.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBase.Serialization.cs index 421904d33dfc..d06ac8bb25a1 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgent.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBase.Serialization.cs @@ -10,14 +10,15 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; +using Azure.Search.Documents.KnowledgeBases.Models; namespace Azure.Search.Documents.Indexes.Models { - public partial class KnowledgeAgent : IUtf8JsonSerializable, IJsonModel + public partial class KnowledgeBase : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,21 +29,14 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOp /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgent)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBase)} does not support writing '{format}' format."); } writer.WritePropertyName("name"u8); writer.WriteStringValue(Name); - writer.WritePropertyName("models"u8); - writer.WriteStartArray(); - foreach (var item in Models) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); writer.WritePropertyName("knowledgeSources"u8); writer.WriteStartArray(); foreach (var item in KnowledgeSources) @@ -50,25 +44,30 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WriteObjectValue(item, options); } writer.WriteEndArray(); - if (Optional.IsDefined(OutputConfiguration)) + if (Optional.IsCollectionDefined(Models)) { - writer.WritePropertyName("outputConfiguration"u8); - writer.WriteObjectValue(OutputConfiguration, options); + writer.WritePropertyName("models"u8); + writer.WriteStartArray(); + foreach (var item in Models) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); } - if (Optional.IsDefined(RequestLimits)) + if (Optional.IsDefined(RetrievalReasoningEffort)) { - writer.WritePropertyName("requestLimits"u8); - writer.WriteObjectValue(RequestLimits, options); + writer.WritePropertyName("retrievalReasoningEffort"u8); + writer.WriteObjectValue(RetrievalReasoningEffort, options); } - if (Optional.IsDefined(RetrievalInstructions)) + if (Optional.IsDefined(OutputMode)) { - writer.WritePropertyName("retrievalInstructions"u8); - writer.WriteStringValue(RetrievalInstructions); + writer.WritePropertyName("outputMode"u8); + writer.WriteStringValue(OutputMode.Value.ToString()); } - if (Optional.IsDefined(_eTag)) + if (Optional.IsDefined(ETag)) { writer.WritePropertyName("@odata.etag"u8); - writer.WriteStringValue(_eTag); + writer.WriteStringValue(ETag); } if (Optional.IsDefined(EncryptionKey)) { @@ -87,6 +86,16 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("description"u8); writer.WriteStringValue(Description); } + if (Optional.IsDefined(RetrievalInstructions)) + { + writer.WritePropertyName("retrievalInstructions"u8); + writer.WriteStringValue(RetrievalInstructions); + } + if (Optional.IsDefined(AnswerInstructions)) + { + writer.WritePropertyName("answerInstructions"u8); + writer.WriteStringValue(AnswerInstructions); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -104,19 +113,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - KnowledgeAgent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeBase IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgent)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBase)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgent(document.RootElement, options); + return DeserializeKnowledgeBase(document.RootElement, options); } - internal static KnowledgeAgent DeserializeKnowledgeAgent(JsonElement element, ModelReaderWriterOptions options = null) + internal static KnowledgeBase DeserializeKnowledgeBase(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -125,14 +134,15 @@ internal static KnowledgeAgent DeserializeKnowledgeAgent(JsonElement element, Mo return null; } string name = default; - IList models = default; IList knowledgeSources = default; - KnowledgeAgentOutputConfiguration outputConfiguration = default; - KnowledgeAgentRequestLimits requestLimits = default; - string retrievalInstructions = default; + IList models = default; + KnowledgeRetrievalReasoningEffort retrievalReasoningEffort = default; + KnowledgeRetrievalOutputMode? outputMode = default; string odataEtag = default; SearchResourceEncryptionKey encryptionKey = default; string description = default; + string retrievalInstructions = default; + string answerInstructions = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -142,16 +152,6 @@ internal static KnowledgeAgent DeserializeKnowledgeAgent(JsonElement element, Mo name = property.Value.GetString(); continue; } - if (property.NameEquals("models"u8)) - { - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(KnowledgeAgentModel.DeserializeKnowledgeAgentModel(item, options)); - } - models = array; - continue; - } if (property.NameEquals("knowledgeSources"u8)) { List array = new List(); @@ -162,27 +162,36 @@ internal static KnowledgeAgent DeserializeKnowledgeAgent(JsonElement element, Mo knowledgeSources = array; continue; } - if (property.NameEquals("outputConfiguration"u8)) + if (property.NameEquals("models"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - outputConfiguration = KnowledgeAgentOutputConfiguration.DeserializeKnowledgeAgentOutputConfiguration(property.Value, options); + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(KnowledgeBaseModel.DeserializeKnowledgeBaseModel(item, options)); + } + models = array; continue; } - if (property.NameEquals("requestLimits"u8)) + if (property.NameEquals("retrievalReasoningEffort"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - requestLimits = KnowledgeAgentRequestLimits.DeserializeKnowledgeAgentRequestLimits(property.Value, options); + retrievalReasoningEffort = KnowledgeRetrievalReasoningEffort.DeserializeKnowledgeRetrievalReasoningEffort(property.Value, options); continue; } - if (property.NameEquals("retrievalInstructions"u8)) + if (property.NameEquals("outputMode"u8)) { - retrievalInstructions = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + outputMode = new KnowledgeRetrievalOutputMode(property.Value.GetString()); continue; } if (property.NameEquals("@odata.etag"u8)) @@ -205,62 +214,73 @@ internal static KnowledgeAgent DeserializeKnowledgeAgent(JsonElement element, Mo description = property.Value.GetString(); continue; } + if (property.NameEquals("retrievalInstructions"u8)) + { + retrievalInstructions = property.Value.GetString(); + continue; + } + if (property.NameEquals("answerInstructions"u8)) + { + answerInstructions = property.Value.GetString(); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new KnowledgeAgent( + return new KnowledgeBase( name, - models, knowledgeSources, - outputConfiguration, - requestLimits, - retrievalInstructions, + models ?? new ChangeTrackingList(), + retrievalReasoningEffort, + outputMode, odataEtag, encryptionKey, description, + retrievalInstructions, + answerInstructions, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgent)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBase)} does not support writing '{options.Format}' format."); } } - KnowledgeAgent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeBase IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgent(document.RootElement, options); + return DeserializeKnowledgeBase(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgent)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBase)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static KnowledgeAgent FromResponse(Response response) + internal static KnowledgeBase FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgent(document.RootElement); + return DeserializeKnowledgeBase(document.RootElement); } /// Convert into a . diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBase.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBase.cs new file mode 100644 index 000000000000..21a1d1b3fa5e --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBase.cs @@ -0,0 +1,132 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; +using Azure.Search.Documents.KnowledgeBases.Models; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// The KnowledgeBase. + public partial class KnowledgeBase + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The name of the knowledge knowledge base. + /// + /// or is null. + public KnowledgeBase(string name, IEnumerable knowledgeSources) + { + Argument.AssertNotNull(name, nameof(name)); + Argument.AssertNotNull(knowledgeSources, nameof(knowledgeSources)); + + Name = name; + KnowledgeSources = knowledgeSources.ToList(); + Models = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// The name of the knowledge knowledge base. + /// + /// + /// Contains configuration options on how to connect to AI models. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + /// + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// The output configuration for this retrieval. + /// The ETag of the knowledge base. + /// A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your knowledge base definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your knowledge base definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your knowledge base definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. + /// The description of the knowledge base. + /// Instructions considered by the knowledge knowledge base when developing query plan. + /// Instructions considered by the knowledge knowledge base when generating answers. + /// Keeps track of any properties unknown to the library. + internal KnowledgeBase(string name, IList knowledgeSources, IList models, KnowledgeRetrievalReasoningEffort retrievalReasoningEffort, KnowledgeRetrievalOutputMode? outputMode, string eTag, SearchResourceEncryptionKey encryptionKey, string description, string retrievalInstructions, string answerInstructions, IDictionary serializedAdditionalRawData) + { + Name = name; + KnowledgeSources = knowledgeSources; + Models = models; + RetrievalReasoningEffort = retrievalReasoningEffort; + OutputMode = outputMode; + ETag = eTag; + EncryptionKey = encryptionKey; + Description = description; + RetrievalInstructions = retrievalInstructions; + AnswerInstructions = answerInstructions; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal KnowledgeBase() + { + } + + /// The name of the knowledge knowledge base. + public string Name { get; set; } + /// Gets the knowledge sources. + public IList KnowledgeSources { get; } + /// + /// Contains configuration options on how to connect to AI models. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public IList Models { get; } + /// + /// Gets or sets the retrieval reasoning effort + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public KnowledgeRetrievalReasoningEffort RetrievalReasoningEffort { get; set; } + /// The output configuration for this retrieval. + public KnowledgeRetrievalOutputMode? OutputMode { get; set; } + /// The ETag of the knowledge base. + public string ETag { get; set; } + /// A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your knowledge base definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your knowledge base definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your knowledge base definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. + public SearchResourceEncryptionKey EncryptionKey { get; set; } + /// The description of the knowledge base. + public string Description { get; set; } + /// Instructions considered by the knowledge knowledge base when developing query plan. + public string RetrievalInstructions { get; set; } + /// Instructions considered by the knowledge knowledge base when generating answers. + public string AnswerInstructions { get; set; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentActivityRecord.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseActivityRecord.Serialization.cs similarity index 50% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentActivityRecord.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseActivityRecord.Serialization.cs index 41965016621e..bab70a54ff9a 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentActivityRecord.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseActivityRecord.Serialization.cs @@ -11,14 +11,14 @@ using Azure.Core; using Azure.Search.Documents.Models; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { - [PersistableModelProxy(typeof(UnknownKnowledgeAgentActivityRecord))] - public partial class KnowledgeAgentActivityRecord : IUtf8JsonSerializable, IJsonModel + [PersistableModelProxy(typeof(UnknownKnowledgeBaseActivityRecord))] + public partial class KnowledgeBaseActivityRecord : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -29,10 +29,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, Model /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentActivityRecord)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseActivityRecord)} does not support writing '{format}' format."); } writer.WritePropertyName("id"u8); @@ -44,6 +44,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("elapsedMs"u8); writer.WriteNumberValue(ElapsedMs.Value); } + if (Optional.IsDefined(Error)) + { + writer.WritePropertyName("error"u8); + writer.WriteObjectValue(Error, options); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -61,19 +66,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - KnowledgeAgentActivityRecord IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeBaseActivityRecord IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentActivityRecord)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseActivityRecord)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentActivityRecord(document.RootElement, options); + return DeserializeKnowledgeBaseActivityRecord(document.RootElement, options); } - internal static KnowledgeAgentActivityRecord DeserializeKnowledgeAgentActivityRecord(JsonElement element, ModelReaderWriterOptions options = null) + internal static KnowledgeBaseActivityRecord DeserializeKnowledgeBaseActivityRecord(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -85,54 +90,58 @@ internal static KnowledgeAgentActivityRecord DeserializeKnowledgeAgentActivityRe { switch (discriminator.GetString()) { - case "azureBlob": return KnowledgeAgentAzureBlobActivityRecord.DeserializeKnowledgeAgentAzureBlobActivityRecord(element, options); - case "KnowledgeAgentRetrievalActivityRecord": return KnowledgeAgentRetrievalActivityRecord.DeserializeKnowledgeAgentRetrievalActivityRecord(element, options); - case "modelAnswerSynthesis": return KnowledgeAgentModelAnswerSynthesisActivityRecord.DeserializeKnowledgeAgentModelAnswerSynthesisActivityRecord(element, options); - case "modelQueryPlanning": return KnowledgeAgentModelQueryPlanningActivityRecord.DeserializeKnowledgeAgentModelQueryPlanningActivityRecord(element, options); - case "searchIndex": return KnowledgeAgentSearchIndexActivityRecord.DeserializeKnowledgeAgentSearchIndexActivityRecord(element, options); - case "semanticReranker": return KnowledgeAgentSemanticRerankerActivityRecord.DeserializeKnowledgeAgentSemanticRerankerActivityRecord(element, options); + case "agenticReasoning": return KnowledgeBaseAgenticReasoningActivityRecord.DeserializeKnowledgeBaseAgenticReasoningActivityRecord(element, options); + case "azureBlob": return KnowledgeBaseAzureBlobActivityRecord.DeserializeKnowledgeBaseAzureBlobActivityRecord(element, options); + case "indexedOneLake": return KnowledgeBaseIndexedOneLakeActivityRecord.DeserializeKnowledgeBaseIndexedOneLakeActivityRecord(element, options); + case "indexedSharePoint": return KnowledgeBaseIndexedSharePointActivityRecord.DeserializeKnowledgeBaseIndexedSharePointActivityRecord(element, options); + case "KnowledgeBaseRetrievalActivityRecord": return KnowledgeBaseRetrievalActivityRecord.DeserializeKnowledgeBaseRetrievalActivityRecord(element, options); + case "modelAnswerSynthesis": return KnowledgeBaseModelAnswerSynthesisActivityRecord.DeserializeKnowledgeBaseModelAnswerSynthesisActivityRecord(element, options); + case "modelQueryPlanning": return KnowledgeBaseModelQueryPlanningActivityRecord.DeserializeKnowledgeBaseModelQueryPlanningActivityRecord(element, options); + case "remoteSharePoint": return KnowledgeBaseRemoteSharePointActivityRecord.DeserializeKnowledgeBaseRemoteSharePointActivityRecord(element, options); + case "searchIndex": return KnowledgeBaseSearchIndexActivityRecord.DeserializeKnowledgeBaseSearchIndexActivityRecord(element, options); + case "web": return KnowledgeBaseWebActivityRecord.DeserializeKnowledgeBaseWebActivityRecord(element, options); } } - return UnknownKnowledgeAgentActivityRecord.DeserializeUnknownKnowledgeAgentActivityRecord(element, options); + return UnknownKnowledgeBaseActivityRecord.DeserializeUnknownKnowledgeBaseActivityRecord(element, options); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentActivityRecord)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseActivityRecord)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentActivityRecord IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeBaseActivityRecord IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentActivityRecord(document.RootElement, options); + return DeserializeKnowledgeBaseActivityRecord(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentActivityRecord)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseActivityRecord)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static KnowledgeAgentActivityRecord FromResponse(Response response) + internal static KnowledgeBaseActivityRecord FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentActivityRecord(document.RootElement); + return DeserializeKnowledgeBaseActivityRecord(document.RootElement); } /// Convert into a . diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentActivityRecord.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseActivityRecord.cs similarity index 62% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentActivityRecord.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseActivityRecord.cs index 07599052a92e..0b6ee5605a80 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentActivityRecord.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseActivityRecord.cs @@ -8,14 +8,14 @@ using System; using System.Collections.Generic; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { /// /// Base type for activity records. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , and . /// - public abstract partial class KnowledgeAgentActivityRecord + public abstract partial class KnowledgeBaseActivityRecord { /// /// Keeps track of any properties unknown to the library. @@ -49,28 +49,30 @@ public abstract partial class KnowledgeAgentActivityRecord /// private protected IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . + /// Initializes a new instance of . /// The ID of the activity record. - protected KnowledgeAgentActivityRecord(int id) + protected KnowledgeBaseActivityRecord(int id) { Id = id; } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The ID of the activity record. /// The type of the activity record. /// The elapsed time in milliseconds for the retrieval activity. + /// The error detail explaining why the operation failed. This property is only included when the activity does not succeed. /// Keeps track of any properties unknown to the library. - internal KnowledgeAgentActivityRecord(int id, string type, int? elapsedMs, IDictionary serializedAdditionalRawData) + internal KnowledgeBaseActivityRecord(int id, string type, int? elapsedMs, KnowledgeBaseErrorDetail error, IDictionary serializedAdditionalRawData) { Id = id; Type = type; ElapsedMs = elapsedMs; + Error = error; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Initializes a new instance of for deserialization. - internal KnowledgeAgentActivityRecord() + /// Initializes a new instance of for deserialization. + internal KnowledgeBaseActivityRecord() { } @@ -80,5 +82,7 @@ internal KnowledgeAgentActivityRecord() internal string Type { get; set; } /// The elapsed time in milliseconds for the retrieval activity. public int? ElapsedMs { get; } + /// The error detail explaining why the operation failed. This property is only included when the activity does not succeed. + public KnowledgeBaseErrorDetail Error { get; } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAgenticReasoningActivityRecord.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAgenticReasoningActivityRecord.Serialization.cs new file mode 100644 index 000000000000..ee83e716d3e2 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAgenticReasoningActivityRecord.Serialization.cs @@ -0,0 +1,189 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class KnowledgeBaseAgenticReasoningActivityRecord : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseAgenticReasoningActivityRecord)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(ReasoningTokens)) + { + writer.WritePropertyName("reasoningTokens"u8); + writer.WriteNumberValue(ReasoningTokens.Value); + } + if (Optional.IsDefined(RetrievalReasoningEffort)) + { + writer.WritePropertyName("retrievalReasoningEffort"u8); + writer.WriteObjectValue(RetrievalReasoningEffort, options); + } + } + + KnowledgeBaseAgenticReasoningActivityRecord IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseAgenticReasoningActivityRecord)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeBaseAgenticReasoningActivityRecord(document.RootElement, options); + } + + internal static KnowledgeBaseAgenticReasoningActivityRecord DeserializeKnowledgeBaseAgenticReasoningActivityRecord(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + int? reasoningTokens = default; + KnowledgeRetrievalReasoningEffort retrievalReasoningEffort = default; + int id = default; + string type = default; + int? elapsedMs = default; + KnowledgeBaseErrorDetail error = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("reasoningTokens"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + reasoningTokens = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("retrievalReasoningEffort"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + retrievalReasoningEffort = KnowledgeRetrievalReasoningEffort.DeserializeKnowledgeRetrievalReasoningEffort(property.Value, options); + continue; + } + if (property.NameEquals("id"u8)) + { + id = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("elapsedMs"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + elapsedMs = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("error"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + error = KnowledgeBaseErrorDetail.DeserializeKnowledgeBaseErrorDetail(property.Value, options); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new KnowledgeBaseAgenticReasoningActivityRecord( + id, + type, + elapsedMs, + error, + serializedAdditionalRawData, + reasoningTokens, + retrievalReasoningEffort); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeBaseAgenticReasoningActivityRecord)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeBaseAgenticReasoningActivityRecord IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseAgenticReasoningActivityRecord(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeBaseAgenticReasoningActivityRecord)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KnowledgeBaseAgenticReasoningActivityRecord FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseAgenticReasoningActivityRecord(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAgenticReasoningActivityRecord.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAgenticReasoningActivityRecord.cs new file mode 100644 index 000000000000..53e1d0db6ccf --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAgenticReasoningActivityRecord.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// Represents an agentic reasoning activity record. + public partial class KnowledgeBaseAgenticReasoningActivityRecord : KnowledgeBaseActivityRecord + { + /// Initializes a new instance of . + /// The ID of the activity record. + internal KnowledgeBaseAgenticReasoningActivityRecord(int id) : base(id) + { + Type = "agenticReasoning"; + } + + /// Initializes a new instance of . + /// The ID of the activity record. + /// The type of the activity record. + /// The elapsed time in milliseconds for the retrieval activity. + /// The error detail explaining why the operation failed. This property is only included when the activity does not succeed. + /// Keeps track of any properties unknown to the library. + /// The number of input tokens for agentic reasoning. + /// + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + internal KnowledgeBaseAgenticReasoningActivityRecord(int id, string type, int? elapsedMs, KnowledgeBaseErrorDetail error, IDictionary serializedAdditionalRawData, int? reasoningTokens, KnowledgeRetrievalReasoningEffort retrievalReasoningEffort) : base(id, type, elapsedMs, error, serializedAdditionalRawData) + { + ReasoningTokens = reasoningTokens; + RetrievalReasoningEffort = retrievalReasoningEffort; + Type = type ?? "agenticReasoning"; + } + + /// Initializes a new instance of for deserialization. + internal KnowledgeBaseAgenticReasoningActivityRecord() + { + } + + /// The number of input tokens for agentic reasoning. + public int? ReasoningTokens { get; } + /// + /// Gets the retrieval reasoning effort + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public KnowledgeRetrievalReasoningEffort RetrievalReasoningEffort { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentAzureBlobActivityArguments.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAzureBlobActivityArguments.Serialization.cs similarity index 63% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentAzureBlobActivityArguments.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAzureBlobActivityArguments.Serialization.cs index 21ecd1ab5ab3..d830b2823e8e 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentAzureBlobActivityArguments.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAzureBlobActivityArguments.Serialization.cs @@ -11,13 +11,13 @@ using System.Text.Json; using Azure.Core; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { - public partial class KnowledgeAgentAzureBlobActivityArguments : IUtf8JsonSerializable, IJsonModel + public partial class KnowledgeBaseAzureBlobActivityArguments : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter w /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentAzureBlobActivityArguments)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseAzureBlobActivityArguments)} does not support writing '{format}' format."); } if (Optional.IsDefined(Search)) @@ -56,19 +56,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - KnowledgeAgentAzureBlobActivityArguments IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeBaseAzureBlobActivityArguments IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentAzureBlobActivityArguments)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseAzureBlobActivityArguments)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentAzureBlobActivityArguments(document.RootElement, options); + return DeserializeKnowledgeBaseAzureBlobActivityArguments(document.RootElement, options); } - internal static KnowledgeAgentAzureBlobActivityArguments DeserializeKnowledgeAgentAzureBlobActivityArguments(JsonElement element, ModelReaderWriterOptions options = null) + internal static KnowledgeBaseAzureBlobActivityArguments DeserializeKnowledgeBaseAzureBlobActivityArguments(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -92,46 +92,46 @@ internal static KnowledgeAgentAzureBlobActivityArguments DeserializeKnowledgeAge } } serializedAdditionalRawData = rawDataDictionary; - return new KnowledgeAgentAzureBlobActivityArguments(search, serializedAdditionalRawData); + return new KnowledgeBaseAzureBlobActivityArguments(search, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentAzureBlobActivityArguments)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseAzureBlobActivityArguments)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentAzureBlobActivityArguments IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeBaseAzureBlobActivityArguments IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentAzureBlobActivityArguments(document.RootElement, options); + return DeserializeKnowledgeBaseAzureBlobActivityArguments(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentAzureBlobActivityArguments)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseAzureBlobActivityArguments)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static KnowledgeAgentAzureBlobActivityArguments FromResponse(Response response) + internal static KnowledgeBaseAzureBlobActivityArguments FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentAzureBlobActivityArguments(document.RootElement); + return DeserializeKnowledgeBaseAzureBlobActivityArguments(document.RootElement); } /// Convert into a . diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentAzureBlobActivityArguments.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAzureBlobActivityArguments.cs similarity index 84% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentAzureBlobActivityArguments.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAzureBlobActivityArguments.cs index 6d0974094d67..4a5d230f92e5 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentAzureBlobActivityArguments.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAzureBlobActivityArguments.cs @@ -8,10 +8,10 @@ using System; using System.Collections.Generic; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { /// Represents the arguments the azure blob retrieval activity was run with. - public partial class KnowledgeAgentAzureBlobActivityArguments + public partial class KnowledgeBaseAzureBlobActivityArguments { /// /// Keeps track of any properties unknown to the library. @@ -45,15 +45,15 @@ public partial class KnowledgeAgentAzureBlobActivityArguments /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - internal KnowledgeAgentAzureBlobActivityArguments() + /// Initializes a new instance of . + internal KnowledgeBaseAzureBlobActivityArguments() { } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The search string used to query blob contents. /// Keeps track of any properties unknown to the library. - internal KnowledgeAgentAzureBlobActivityArguments(string search, IDictionary serializedAdditionalRawData) + internal KnowledgeBaseAzureBlobActivityArguments(string search, IDictionary serializedAdditionalRawData) { Search = search; _serializedAdditionalRawData = serializedAdditionalRawData; diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentAzureBlobActivityRecord.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAzureBlobActivityRecord.Serialization.cs similarity index 66% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentAzureBlobActivityRecord.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAzureBlobActivityRecord.Serialization.cs index d8be5898d60e..fe7a9201e3cd 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentAzureBlobActivityRecord.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAzureBlobActivityRecord.Serialization.cs @@ -11,13 +11,13 @@ using System.Text.Json; using Azure.Core; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { - public partial class KnowledgeAgentAzureBlobActivityRecord : IUtf8JsonSerializable, IJsonModel + public partial class KnowledgeBaseAzureBlobActivityRecord : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter writ /// The client options for reading and writing models. protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentAzureBlobActivityRecord)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseAzureBlobActivityRecord)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); @@ -42,19 +42,19 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } } - KnowledgeAgentAzureBlobActivityRecord IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeBaseAzureBlobActivityRecord IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentAzureBlobActivityRecord)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseAzureBlobActivityRecord)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentAzureBlobActivityRecord(document.RootElement, options); + return DeserializeKnowledgeBaseAzureBlobActivityRecord(document.RootElement, options); } - internal static KnowledgeAgentAzureBlobActivityRecord DeserializeKnowledgeAgentAzureBlobActivityRecord(JsonElement element, ModelReaderWriterOptions options = null) + internal static KnowledgeBaseAzureBlobActivityRecord DeserializeKnowledgeBaseAzureBlobActivityRecord(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -62,13 +62,14 @@ internal static KnowledgeAgentAzureBlobActivityRecord DeserializeKnowledgeAgentA { return null; } - KnowledgeAgentAzureBlobActivityArguments azureBlobArguments = default; + KnowledgeBaseAzureBlobActivityArguments azureBlobArguments = default; string knowledgeSourceName = default; DateTimeOffset? queryTime = default; int? count = default; int id = default; string type = default; int? elapsedMs = default; + KnowledgeBaseErrorDetail error = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -79,7 +80,7 @@ internal static KnowledgeAgentAzureBlobActivityRecord DeserializeKnowledgeAgentA { continue; } - azureBlobArguments = KnowledgeAgentAzureBlobActivityArguments.DeserializeKnowledgeAgentAzureBlobActivityArguments(property.Value, options); + azureBlobArguments = KnowledgeBaseAzureBlobActivityArguments.DeserializeKnowledgeBaseAzureBlobActivityArguments(property.Value, options); continue; } if (property.NameEquals("knowledgeSourceName"u8)) @@ -124,16 +125,26 @@ internal static KnowledgeAgentAzureBlobActivityRecord DeserializeKnowledgeAgentA elapsedMs = property.Value.GetInt32(); continue; } + if (property.NameEquals("error"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + error = KnowledgeBaseErrorDetail.DeserializeKnowledgeBaseErrorDetail(property.Value, options); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new KnowledgeAgentAzureBlobActivityRecord( + return new KnowledgeBaseAzureBlobActivityRecord( id, type, elapsedMs, + error, serializedAdditionalRawData, knowledgeSourceName, queryTime, @@ -141,43 +152,43 @@ internal static KnowledgeAgentAzureBlobActivityRecord DeserializeKnowledgeAgentA azureBlobArguments); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentAzureBlobActivityRecord)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseAzureBlobActivityRecord)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentAzureBlobActivityRecord IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeBaseAzureBlobActivityRecord IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentAzureBlobActivityRecord(document.RootElement, options); + return DeserializeKnowledgeBaseAzureBlobActivityRecord(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentAzureBlobActivityRecord)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseAzureBlobActivityRecord)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static new KnowledgeAgentAzureBlobActivityRecord FromResponse(Response response) + internal static new KnowledgeBaseAzureBlobActivityRecord FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentAzureBlobActivityRecord(document.RootElement); + return DeserializeKnowledgeBaseAzureBlobActivityRecord(document.RootElement); } /// Convert into a . diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentAzureBlobActivityRecord.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAzureBlobActivityRecord.cs similarity index 59% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentAzureBlobActivityRecord.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAzureBlobActivityRecord.cs index 6b1677e616c0..f0a476980ff2 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentAzureBlobActivityRecord.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAzureBlobActivityRecord.cs @@ -8,39 +8,40 @@ using System; using System.Collections.Generic; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { /// Represents a azure blob retrieval activity record. - public partial class KnowledgeAgentAzureBlobActivityRecord : KnowledgeAgentRetrievalActivityRecord + public partial class KnowledgeBaseAzureBlobActivityRecord : KnowledgeBaseRetrievalActivityRecord { - /// Initializes a new instance of . + /// Initializes a new instance of . /// The ID of the activity record. - internal KnowledgeAgentAzureBlobActivityRecord(int id) : base(id) + internal KnowledgeBaseAzureBlobActivityRecord(int id) : base(id) { Type = "azureBlob"; } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The ID of the activity record. /// The type of the activity record. /// The elapsed time in milliseconds for the retrieval activity. + /// The error detail explaining why the operation failed. This property is only included when the activity does not succeed. /// Keeps track of any properties unknown to the library. /// The knowledge source for the retrieval activity. /// The query time for this retrieval activity. /// The count of documents retrieved that were sufficiently relevant to pass the reranker threshold. /// The azure blob arguments for the retrieval activity. - internal KnowledgeAgentAzureBlobActivityRecord(int id, string type, int? elapsedMs, IDictionary serializedAdditionalRawData, string knowledgeSourceName, DateTimeOffset? queryTime, int? count, KnowledgeAgentAzureBlobActivityArguments azureBlobArguments) : base(id, type, elapsedMs, serializedAdditionalRawData, knowledgeSourceName, queryTime, count) + internal KnowledgeBaseAzureBlobActivityRecord(int id, string type, int? elapsedMs, KnowledgeBaseErrorDetail error, IDictionary serializedAdditionalRawData, string knowledgeSourceName, DateTimeOffset? queryTime, int? count, KnowledgeBaseAzureBlobActivityArguments azureBlobArguments) : base(id, type, elapsedMs, error, serializedAdditionalRawData, knowledgeSourceName, queryTime, count) { AzureBlobArguments = azureBlobArguments; Type = type ?? "azureBlob"; } - /// Initializes a new instance of for deserialization. - internal KnowledgeAgentAzureBlobActivityRecord() + /// Initializes a new instance of for deserialization. + internal KnowledgeBaseAzureBlobActivityRecord() { } /// The azure blob arguments for the retrieval activity. - public KnowledgeAgentAzureBlobActivityArguments AzureBlobArguments { get; } + public KnowledgeBaseAzureBlobActivityArguments AzureBlobArguments { get; } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentAzureBlobReference.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAzureBlobReference.Serialization.cs similarity index 72% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentAzureBlobReference.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAzureBlobReference.Serialization.cs index 3d3a5ad782c7..73a473a6dc07 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentAzureBlobReference.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAzureBlobReference.Serialization.cs @@ -11,13 +11,13 @@ using System.Text.Json; using Azure.Core; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { - public partial class KnowledgeAgentAzureBlobReference : IUtf8JsonSerializable, IJsonModel + public partial class KnowledgeBaseAzureBlobReference : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, M /// The client options for reading and writing models. protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentAzureBlobReference)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseAzureBlobReference)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); @@ -42,19 +42,19 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } } - KnowledgeAgentAzureBlobReference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeBaseAzureBlobReference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentAzureBlobReference)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseAzureBlobReference)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentAzureBlobReference(document.RootElement, options); + return DeserializeKnowledgeBaseAzureBlobReference(document.RootElement, options); } - internal static KnowledgeAgentAzureBlobReference DeserializeKnowledgeAgentAzureBlobReference(JsonElement element, ModelReaderWriterOptions options = null) + internal static KnowledgeBaseAzureBlobReference DeserializeKnowledgeBaseAzureBlobReference(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -128,7 +128,7 @@ internal static KnowledgeAgentAzureBlobReference DeserializeKnowledgeAgentAzureB } } serializedAdditionalRawData = rawDataDictionary; - return new KnowledgeAgentAzureBlobReference( + return new KnowledgeBaseAzureBlobReference( type, id, activitySource, @@ -138,43 +138,43 @@ internal static KnowledgeAgentAzureBlobReference DeserializeKnowledgeAgentAzureB blobUrl); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentAzureBlobReference)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseAzureBlobReference)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentAzureBlobReference IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeBaseAzureBlobReference IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentAzureBlobReference(document.RootElement, options); + return DeserializeKnowledgeBaseAzureBlobReference(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentAzureBlobReference)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseAzureBlobReference)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static new KnowledgeAgentAzureBlobReference FromResponse(Response response) + internal static new KnowledgeBaseAzureBlobReference FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentAzureBlobReference(document.RootElement); + return DeserializeKnowledgeBaseAzureBlobReference(document.RootElement); } /// Convert into a . diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentAzureBlobReference.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAzureBlobReference.cs similarity index 67% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentAzureBlobReference.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAzureBlobReference.cs index 30d89a6496b0..4bbd3ed541b5 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentAzureBlobReference.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAzureBlobReference.cs @@ -8,23 +8,23 @@ using System; using System.Collections.Generic; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { /// Represents an Azure Blob Storage document reference. - public partial class KnowledgeAgentAzureBlobReference : KnowledgeAgentReference + public partial class KnowledgeBaseAzureBlobReference : KnowledgeBaseReference { - /// Initializes a new instance of . + /// Initializes a new instance of . /// The ID of the reference. /// The source activity ID for the reference. /// is null. - internal KnowledgeAgentAzureBlobReference(string id, int activitySource) : base(id, activitySource) + internal KnowledgeBaseAzureBlobReference(string id, int activitySource) : base(id, activitySource) { Argument.AssertNotNull(id, nameof(id)); Type = "azureBlob"; } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The type of the reference. /// The ID of the reference. /// The source activity ID for the reference. @@ -32,14 +32,14 @@ internal KnowledgeAgentAzureBlobReference(string id, int activitySource) : base( /// The reranker score for the document reference. /// Keeps track of any properties unknown to the library. /// The blob URL for the reference. - internal KnowledgeAgentAzureBlobReference(string type, string id, int activitySource, IReadOnlyDictionary sourceData, float? rerankerScore, IDictionary serializedAdditionalRawData, string blobUrl) : base(type, id, activitySource, sourceData, rerankerScore, serializedAdditionalRawData) + internal KnowledgeBaseAzureBlobReference(string type, string id, int activitySource, IReadOnlyDictionary sourceData, float? rerankerScore, IDictionary serializedAdditionalRawData, string blobUrl) : base(type, id, activitySource, sourceData, rerankerScore, serializedAdditionalRawData) { BlobUrl = blobUrl; Type = type ?? "azureBlob"; } - /// Initializes a new instance of for deserialization. - internal KnowledgeAgentAzureBlobReference() + /// Initializes a new instance of for deserialization. + internal KnowledgeBaseAzureBlobReference() { } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentAzureOpenAIModel.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAzureOpenAIModel.Serialization.cs similarity index 63% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentAzureOpenAIModel.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAzureOpenAIModel.Serialization.cs index b6bf28d82bcc..ad7b277cd7ca 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentAzureOpenAIModel.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAzureOpenAIModel.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.Search.Documents.Indexes.Models { - public partial class KnowledgeAgentAzureOpenAIModel : IUtf8JsonSerializable, IJsonModel + public partial class KnowledgeBaseAzureOpenAIModel : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, Mod /// The client options for reading and writing models. protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentAzureOpenAIModel)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseAzureOpenAIModel)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); @@ -39,19 +39,19 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WriteObjectValue(AzureOpenAIParameters, options); } - KnowledgeAgentAzureOpenAIModel IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeBaseAzureOpenAIModel IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentAzureOpenAIModel)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseAzureOpenAIModel)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentAzureOpenAIModel(document.RootElement, options); + return DeserializeKnowledgeBaseAzureOpenAIModel(document.RootElement, options); } - internal static KnowledgeAgentAzureOpenAIModel DeserializeKnowledgeAgentAzureOpenAIModel(JsonElement element, ModelReaderWriterOptions options = null) + internal static KnowledgeBaseAzureOpenAIModel DeserializeKnowledgeBaseAzureOpenAIModel(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -60,7 +60,7 @@ internal static KnowledgeAgentAzureOpenAIModel DeserializeKnowledgeAgentAzureOpe return null; } AzureOpenAIVectorizerParameters azureOpenAIParameters = default; - KnowledgeAgentModelKind kind = default; + KnowledgeBaseModelKind kind = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -72,7 +72,7 @@ internal static KnowledgeAgentAzureOpenAIModel DeserializeKnowledgeAgentAzureOpe } if (property.NameEquals("kind"u8)) { - kind = new KnowledgeAgentModelKind(property.Value.GetString()); + kind = new KnowledgeBaseModelKind(property.Value.GetString()); continue; } if (options.Format != "W") @@ -81,46 +81,46 @@ internal static KnowledgeAgentAzureOpenAIModel DeserializeKnowledgeAgentAzureOpe } } serializedAdditionalRawData = rawDataDictionary; - return new KnowledgeAgentAzureOpenAIModel(kind, serializedAdditionalRawData, azureOpenAIParameters); + return new KnowledgeBaseAzureOpenAIModel(kind, serializedAdditionalRawData, azureOpenAIParameters); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentAzureOpenAIModel)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseAzureOpenAIModel)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentAzureOpenAIModel IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeBaseAzureOpenAIModel IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentAzureOpenAIModel(document.RootElement, options); + return DeserializeKnowledgeBaseAzureOpenAIModel(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentAzureOpenAIModel)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseAzureOpenAIModel)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static new KnowledgeAgentAzureOpenAIModel FromResponse(Response response) + internal static new KnowledgeBaseAzureOpenAIModel FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentAzureOpenAIModel(document.RootElement); + return DeserializeKnowledgeBaseAzureOpenAIModel(document.RootElement); } /// Convert into a . diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentAzureOpenAIModel.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAzureOpenAIModel.cs similarity index 69% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentAzureOpenAIModel.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAzureOpenAIModel.cs index 65ee5e9e5b46..1e7be3327b07 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentAzureOpenAIModel.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseAzureOpenAIModel.cs @@ -11,31 +11,31 @@ namespace Azure.Search.Documents.Indexes.Models { /// Specifies the Azure OpenAI resource used to do query planning. - public partial class KnowledgeAgentAzureOpenAIModel : KnowledgeAgentModel + public partial class KnowledgeBaseAzureOpenAIModel : KnowledgeBaseModel { - /// Initializes a new instance of . + /// Initializes a new instance of . /// Contains the parameters specific to Azure OpenAI model endpoint. /// is null. - public KnowledgeAgentAzureOpenAIModel(AzureOpenAIVectorizerParameters azureOpenAIParameters) + public KnowledgeBaseAzureOpenAIModel(AzureOpenAIVectorizerParameters azureOpenAIParameters) { Argument.AssertNotNull(azureOpenAIParameters, nameof(azureOpenAIParameters)); AzureOpenAIParameters = azureOpenAIParameters; - Kind = KnowledgeAgentModelKind.AzureOpenAI; + Kind = KnowledgeBaseModelKind.AzureOpenAI; } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The type of AI model. /// Keeps track of any properties unknown to the library. /// Contains the parameters specific to Azure OpenAI model endpoint. - internal KnowledgeAgentAzureOpenAIModel(KnowledgeAgentModelKind kind, IDictionary serializedAdditionalRawData, AzureOpenAIVectorizerParameters azureOpenAIParameters) : base(kind, serializedAdditionalRawData) + internal KnowledgeBaseAzureOpenAIModel(KnowledgeBaseModelKind kind, IDictionary serializedAdditionalRawData, AzureOpenAIVectorizerParameters azureOpenAIParameters) : base(kind, serializedAdditionalRawData) { AzureOpenAIParameters = azureOpenAIParameters; Kind = kind; } - /// Initializes a new instance of for deserialization. - internal KnowledgeAgentAzureOpenAIModel() + /// Initializes a new instance of for deserialization. + internal KnowledgeBaseAzureOpenAIModel() { } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRequestLimits.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseErrorAdditionalInfo.Serialization.cs similarity index 58% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRequestLimits.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseErrorAdditionalInfo.Serialization.cs index 25ae9e8b6c69..94604d8f4a6c 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRequestLimits.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseErrorAdditionalInfo.Serialization.cs @@ -11,13 +11,13 @@ using System.Text.Json; using Azure.Core; -namespace Azure.Search.Documents.Indexes.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { - public partial class KnowledgeAgentRequestLimits : IUtf8JsonSerializable, IJsonModel + public partial class KnowledgeBaseErrorAdditionalInfo : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,21 +28,21 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelR /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentRequestLimits)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseErrorAdditionalInfo)} does not support writing '{format}' format."); } - if (Optional.IsDefined(MaxRuntimeInSeconds)) + if (options.Format != "W" && Optional.IsDefined(Type)) { - writer.WritePropertyName("maxRuntimeInSeconds"u8); - writer.WriteNumberValue(MaxRuntimeInSeconds.Value); + writer.WritePropertyName("type"u8); + writer.WriteStringValue(Type); } - if (Optional.IsDefined(MaxOutputSize)) + if (options.Format != "W" && Optional.IsDefined(Info)) { - writer.WritePropertyName("maxOutputSize"u8); - writer.WriteNumberValue(MaxOutputSize.Value); + writer.WritePropertyName("info"u8); + writer.WriteObjectValue(Info, options); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -61,19 +61,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - KnowledgeAgentRequestLimits IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeBaseErrorAdditionalInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentRequestLimits)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseErrorAdditionalInfo)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentRequestLimits(document.RootElement, options); + return DeserializeKnowledgeBaseErrorAdditionalInfo(document.RootElement, options); } - internal static KnowledgeAgentRequestLimits DeserializeKnowledgeAgentRequestLimits(JsonElement element, ModelReaderWriterOptions options = null) + internal static KnowledgeBaseErrorAdditionalInfo DeserializeKnowledgeBaseErrorAdditionalInfo(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -81,28 +81,24 @@ internal static KnowledgeAgentRequestLimits DeserializeKnowledgeAgentRequestLimi { return null; } - int? maxRuntimeInSeconds = default; - int? maxOutputSize = default; + string type = default; + object info = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("maxRuntimeInSeconds"u8)) + if (property.NameEquals("type"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - maxRuntimeInSeconds = property.Value.GetInt32(); + type = property.Value.GetString(); continue; } - if (property.NameEquals("maxOutputSize"u8)) + if (property.NameEquals("info"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - maxOutputSize = property.Value.GetInt32(); + info = property.Value.GetObject(); continue; } if (options.Format != "W") @@ -111,46 +107,46 @@ internal static KnowledgeAgentRequestLimits DeserializeKnowledgeAgentRequestLimi } } serializedAdditionalRawData = rawDataDictionary; - return new KnowledgeAgentRequestLimits(maxRuntimeInSeconds, maxOutputSize, serializedAdditionalRawData); + return new KnowledgeBaseErrorAdditionalInfo(type, info, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentRequestLimits)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseErrorAdditionalInfo)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentRequestLimits IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeBaseErrorAdditionalInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentRequestLimits(document.RootElement, options); + return DeserializeKnowledgeBaseErrorAdditionalInfo(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentRequestLimits)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseErrorAdditionalInfo)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static KnowledgeAgentRequestLimits FromResponse(Response response) + internal static KnowledgeBaseErrorAdditionalInfo FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentRequestLimits(document.RootElement); + return DeserializeKnowledgeBaseErrorAdditionalInfo(document.RootElement); } /// Convert into a . diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRequestLimits.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseErrorAdditionalInfo.cs similarity index 64% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRequestLimits.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseErrorAdditionalInfo.cs index ca19d04159e8..d604c88dfa21 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRequestLimits.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseErrorAdditionalInfo.cs @@ -8,10 +8,10 @@ using System; using System.Collections.Generic; -namespace Azure.Search.Documents.Indexes.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { - /// Guardrails to limit how much resources are utilized for a single agent retrieval request. - public partial class KnowledgeAgentRequestLimits + /// The resource management error additional info. + public partial class KnowledgeBaseErrorAdditionalInfo { /// /// Keeps track of any properties unknown to the library. @@ -45,25 +45,25 @@ public partial class KnowledgeAgentRequestLimits /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public KnowledgeAgentRequestLimits() + /// Initializes a new instance of . + internal KnowledgeBaseErrorAdditionalInfo() { } - /// Initializes a new instance of . - /// The maximum runtime in seconds. - /// Limits the maximum size of the content in the output. + /// Initializes a new instance of . + /// The additional info type. + /// The additional info. /// Keeps track of any properties unknown to the library. - internal KnowledgeAgentRequestLimits(int? maxRuntimeInSeconds, int? maxOutputSize, IDictionary serializedAdditionalRawData) + internal KnowledgeBaseErrorAdditionalInfo(string type, object info, IDictionary serializedAdditionalRawData) { - MaxRuntimeInSeconds = maxRuntimeInSeconds; - MaxOutputSize = maxOutputSize; + Type = type; + Info = info; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The maximum runtime in seconds. - public int? MaxRuntimeInSeconds { get; set; } - /// Limits the maximum size of the content in the output. - public int? MaxOutputSize { get; set; } + /// The additional info type. + public string Type { get; } + /// The additional info. + public object Info { get; } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseErrorDetail.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseErrorDetail.Serialization.cs new file mode 100644 index 000000000000..bfa3277f02f0 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseErrorDetail.Serialization.cs @@ -0,0 +1,223 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class KnowledgeBaseErrorDetail : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseErrorDetail)} does not support writing '{format}' format."); + } + + if (options.Format != "W" && Optional.IsDefined(Code)) + { + writer.WritePropertyName("code"u8); + writer.WriteStringValue(Code); + } + if (options.Format != "W" && Optional.IsDefined(Message)) + { + writer.WritePropertyName("message"u8); + writer.WriteStringValue(Message); + } + if (options.Format != "W" && Optional.IsDefined(Target)) + { + writer.WritePropertyName("target"u8); + writer.WriteStringValue(Target); + } + if (options.Format != "W" && Optional.IsCollectionDefined(Details)) + { + writer.WritePropertyName("details"u8); + writer.WriteStartArray(); + foreach (var item in Details) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && Optional.IsCollectionDefined(AdditionalInfo)) + { + writer.WritePropertyName("additionalInfo"u8); + writer.WriteStartArray(); + foreach (var item in AdditionalInfo) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + KnowledgeBaseErrorDetail IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseErrorDetail)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeBaseErrorDetail(document.RootElement, options); + } + + internal static KnowledgeBaseErrorDetail DeserializeKnowledgeBaseErrorDetail(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string code = default; + string message = default; + string target = default; + IReadOnlyList details = default; + IReadOnlyList additionalInfo = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("code"u8)) + { + code = property.Value.GetString(); + continue; + } + if (property.NameEquals("message"u8)) + { + message = property.Value.GetString(); + continue; + } + if (property.NameEquals("target"u8)) + { + target = property.Value.GetString(); + continue; + } + if (property.NameEquals("details"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(DeserializeKnowledgeBaseErrorDetail(item, options)); + } + details = array; + continue; + } + if (property.NameEquals("additionalInfo"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(KnowledgeBaseErrorAdditionalInfo.DeserializeKnowledgeBaseErrorAdditionalInfo(item, options)); + } + additionalInfo = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new KnowledgeBaseErrorDetail( + code, + message, + target, + details ?? new ChangeTrackingList(), + additionalInfo ?? new ChangeTrackingList(), + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeBaseErrorDetail)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeBaseErrorDetail IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseErrorDetail(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeBaseErrorDetail)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KnowledgeBaseErrorDetail FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseErrorDetail(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseErrorDetail.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseErrorDetail.cs new file mode 100644 index 000000000000..a014b73458b6 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseErrorDetail.cs @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// The error details. + public partial class KnowledgeBaseErrorDetail + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal KnowledgeBaseErrorDetail() + { + Details = new ChangeTrackingList(); + AdditionalInfo = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// The error code. + /// The error message. + /// The error target. + /// The error details. + /// The error additional info. + /// Keeps track of any properties unknown to the library. + internal KnowledgeBaseErrorDetail(string code, string message, string target, IReadOnlyList details, IReadOnlyList additionalInfo, IDictionary serializedAdditionalRawData) + { + Code = code; + Message = message; + Target = target; + Details = details; + AdditionalInfo = additionalInfo; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The error code. + public string Code { get; } + /// The error message. + public string Message { get; } + /// The error target. + public string Target { get; } + /// The error details. + public IReadOnlyList Details { get; } + /// The error additional info. + public IReadOnlyList AdditionalInfo { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentSearchIndexActivityArguments.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedOneLakeActivityArguments.Serialization.cs similarity index 59% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentSearchIndexActivityArguments.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedOneLakeActivityArguments.Serialization.cs index ba8c9a19c991..3a637a1c1cd5 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentSearchIndexActivityArguments.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedOneLakeActivityArguments.Serialization.cs @@ -11,13 +11,13 @@ using System.Text.Json; using Azure.Core; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { - public partial class KnowledgeAgentSearchIndexActivityArguments : IUtf8JsonSerializable, IJsonModel + public partial class KnowledgeBaseIndexedOneLakeActivityArguments : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentSearchIndexActivityArguments)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseIndexedOneLakeActivityArguments)} does not support writing '{format}' format."); } if (Optional.IsDefined(Search)) @@ -39,11 +39,6 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("search"u8); writer.WriteStringValue(Search); } - if (Optional.IsDefined(Filter)) - { - writer.WritePropertyName("filter"u8); - writer.WriteStringValue(Filter); - } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -61,19 +56,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - KnowledgeAgentSearchIndexActivityArguments IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeBaseIndexedOneLakeActivityArguments IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentSearchIndexActivityArguments)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseIndexedOneLakeActivityArguments)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentSearchIndexActivityArguments(document.RootElement, options); + return DeserializeKnowledgeBaseIndexedOneLakeActivityArguments(document.RootElement, options); } - internal static KnowledgeAgentSearchIndexActivityArguments DeserializeKnowledgeAgentSearchIndexActivityArguments(JsonElement element, ModelReaderWriterOptions options = null) + internal static KnowledgeBaseIndexedOneLakeActivityArguments DeserializeKnowledgeBaseIndexedOneLakeActivityArguments(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -82,7 +77,6 @@ internal static KnowledgeAgentSearchIndexActivityArguments DeserializeKnowledgeA return null; } string search = default; - string filter = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -92,57 +86,52 @@ internal static KnowledgeAgentSearchIndexActivityArguments DeserializeKnowledgeA search = property.Value.GetString(); continue; } - if (property.NameEquals("filter"u8)) - { - filter = property.Value.GetString(); - continue; - } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new KnowledgeAgentSearchIndexActivityArguments(search, filter, serializedAdditionalRawData); + return new KnowledgeBaseIndexedOneLakeActivityArguments(search, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentSearchIndexActivityArguments)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseIndexedOneLakeActivityArguments)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentSearchIndexActivityArguments IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeBaseIndexedOneLakeActivityArguments IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentSearchIndexActivityArguments(document.RootElement, options); + return DeserializeKnowledgeBaseIndexedOneLakeActivityArguments(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentSearchIndexActivityArguments)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseIndexedOneLakeActivityArguments)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static KnowledgeAgentSearchIndexActivityArguments FromResponse(Response response) + internal static KnowledgeBaseIndexedOneLakeActivityArguments FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentSearchIndexActivityArguments(document.RootElement); + return DeserializeKnowledgeBaseIndexedOneLakeActivityArguments(document.RootElement); } /// Convert into a . diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentSearchIndexActivityArguments.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedOneLakeActivityArguments.cs similarity index 71% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentSearchIndexActivityArguments.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedOneLakeActivityArguments.cs index 7848825a2928..4666085d31dd 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentSearchIndexActivityArguments.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedOneLakeActivityArguments.cs @@ -8,10 +8,10 @@ using System; using System.Collections.Generic; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { - /// Represents the arguments the search index retrieval activity was run with. - public partial class KnowledgeAgentSearchIndexActivityArguments + /// Represents the arguments the indexed OneLake retrieval activity was run with. + public partial class KnowledgeBaseIndexedOneLakeActivityArguments { /// /// Keeps track of any properties unknown to the library. @@ -45,25 +45,21 @@ public partial class KnowledgeAgentSearchIndexActivityArguments /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - internal KnowledgeAgentSearchIndexActivityArguments() + /// Initializes a new instance of . + internal KnowledgeBaseIndexedOneLakeActivityArguments() { } - /// Initializes a new instance of . - /// The search string used to query the search index. - /// The filter string. + /// Initializes a new instance of . + /// The search string used to query indexed OneLake contents. /// Keeps track of any properties unknown to the library. - internal KnowledgeAgentSearchIndexActivityArguments(string search, string filter, IDictionary serializedAdditionalRawData) + internal KnowledgeBaseIndexedOneLakeActivityArguments(string search, IDictionary serializedAdditionalRawData) { Search = search; - Filter = filter; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// The search string used to query the search index. + /// The search string used to query indexed OneLake contents. public string Search { get; } - /// The filter string. - public string Filter { get; } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedOneLakeActivityRecord.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedOneLakeActivityRecord.Serialization.cs new file mode 100644 index 000000000000..2b3064f65e13 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedOneLakeActivityRecord.Serialization.cs @@ -0,0 +1,202 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class KnowledgeBaseIndexedOneLakeActivityRecord : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseIndexedOneLakeActivityRecord)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(IndexedOneLakeArguments)) + { + writer.WritePropertyName("indexedOneLakeArguments"u8); + writer.WriteObjectValue(IndexedOneLakeArguments, options); + } + } + + KnowledgeBaseIndexedOneLakeActivityRecord IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseIndexedOneLakeActivityRecord)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeBaseIndexedOneLakeActivityRecord(document.RootElement, options); + } + + internal static KnowledgeBaseIndexedOneLakeActivityRecord DeserializeKnowledgeBaseIndexedOneLakeActivityRecord(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + KnowledgeBaseIndexedOneLakeActivityArguments indexedOneLakeArguments = default; + string knowledgeSourceName = default; + DateTimeOffset? queryTime = default; + int? count = default; + int id = default; + string type = default; + int? elapsedMs = default; + KnowledgeBaseErrorDetail error = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("indexedOneLakeArguments"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + indexedOneLakeArguments = KnowledgeBaseIndexedOneLakeActivityArguments.DeserializeKnowledgeBaseIndexedOneLakeActivityArguments(property.Value, options); + continue; + } + if (property.NameEquals("knowledgeSourceName"u8)) + { + knowledgeSourceName = property.Value.GetString(); + continue; + } + if (property.NameEquals("queryTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + queryTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("count"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + count = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("id"u8)) + { + id = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("elapsedMs"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + elapsedMs = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("error"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + error = KnowledgeBaseErrorDetail.DeserializeKnowledgeBaseErrorDetail(property.Value, options); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new KnowledgeBaseIndexedOneLakeActivityRecord( + id, + type, + elapsedMs, + error, + serializedAdditionalRawData, + knowledgeSourceName, + queryTime, + count, + indexedOneLakeArguments); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeBaseIndexedOneLakeActivityRecord)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeBaseIndexedOneLakeActivityRecord IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseIndexedOneLakeActivityRecord(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeBaseIndexedOneLakeActivityRecord)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KnowledgeBaseIndexedOneLakeActivityRecord FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseIndexedOneLakeActivityRecord(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedOneLakeActivityRecord.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedOneLakeActivityRecord.cs new file mode 100644 index 000000000000..33b47241d5e2 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedOneLakeActivityRecord.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// Represents a indexed OneLake retrieval activity record. + public partial class KnowledgeBaseIndexedOneLakeActivityRecord : KnowledgeBaseRetrievalActivityRecord + { + /// Initializes a new instance of . + /// The ID of the activity record. + internal KnowledgeBaseIndexedOneLakeActivityRecord(int id) : base(id) + { + Type = "indexedOneLake"; + } + + /// Initializes a new instance of . + /// The ID of the activity record. + /// The type of the activity record. + /// The elapsed time in milliseconds for the retrieval activity. + /// The error detail explaining why the operation failed. This property is only included when the activity does not succeed. + /// Keeps track of any properties unknown to the library. + /// The knowledge source for the retrieval activity. + /// The query time for this retrieval activity. + /// The count of documents retrieved that were sufficiently relevant to pass the reranker threshold. + /// The indexed OneLake arguments for the retrieval activity. + internal KnowledgeBaseIndexedOneLakeActivityRecord(int id, string type, int? elapsedMs, KnowledgeBaseErrorDetail error, IDictionary serializedAdditionalRawData, string knowledgeSourceName, DateTimeOffset? queryTime, int? count, KnowledgeBaseIndexedOneLakeActivityArguments indexedOneLakeArguments) : base(id, type, elapsedMs, error, serializedAdditionalRawData, knowledgeSourceName, queryTime, count) + { + IndexedOneLakeArguments = indexedOneLakeArguments; + Type = type ?? "indexedOneLake"; + } + + /// Initializes a new instance of for deserialization. + internal KnowledgeBaseIndexedOneLakeActivityRecord() + { + } + + /// The indexed OneLake arguments for the retrieval activity. + public KnowledgeBaseIndexedOneLakeActivityArguments IndexedOneLakeArguments { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedOneLakeReference.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedOneLakeReference.Serialization.cs new file mode 100644 index 000000000000..305d36ed20cd --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedOneLakeReference.Serialization.cs @@ -0,0 +1,188 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class KnowledgeBaseIndexedOneLakeReference : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseIndexedOneLakeReference)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(DocUrl)) + { + writer.WritePropertyName("docUrl"u8); + writer.WriteStringValue(DocUrl); + } + } + + KnowledgeBaseIndexedOneLakeReference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseIndexedOneLakeReference)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeBaseIndexedOneLakeReference(document.RootElement, options); + } + + internal static KnowledgeBaseIndexedOneLakeReference DeserializeKnowledgeBaseIndexedOneLakeReference(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string docUrl = default; + string type = default; + string id = default; + int activitySource = default; + IReadOnlyDictionary sourceData = default; + float? rerankerScore = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("docUrl"u8)) + { + docUrl = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("activitySource"u8)) + { + activitySource = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("sourceData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(property0.Name, null); + } + else + { + dictionary.Add(property0.Name, property0.Value.GetObject()); + } + } + sourceData = dictionary; + continue; + } + if (property.NameEquals("rerankerScore"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rerankerScore = property.Value.GetSingle(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new KnowledgeBaseIndexedOneLakeReference( + type, + id, + activitySource, + sourceData ?? new ChangeTrackingDictionary(), + rerankerScore, + serializedAdditionalRawData, + docUrl); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeBaseIndexedOneLakeReference)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeBaseIndexedOneLakeReference IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseIndexedOneLakeReference(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeBaseIndexedOneLakeReference)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KnowledgeBaseIndexedOneLakeReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseIndexedOneLakeReference(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedOneLakeReference.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedOneLakeReference.cs new file mode 100644 index 000000000000..dedd6289c952 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedOneLakeReference.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// Represents an Azure Blob Storage document reference. + public partial class KnowledgeBaseIndexedOneLakeReference : KnowledgeBaseReference + { + /// Initializes a new instance of . + /// The ID of the reference. + /// The source activity ID for the reference. + /// is null. + internal KnowledgeBaseIndexedOneLakeReference(string id, int activitySource) : base(id, activitySource) + { + Argument.AssertNotNull(id, nameof(id)); + + Type = "indexedOneLake"; + } + + /// Initializes a new instance of . + /// The type of the reference. + /// The ID of the reference. + /// The source activity ID for the reference. + /// Dictionary of <any>. + /// The reranker score for the document reference. + /// Keeps track of any properties unknown to the library. + /// The document URL for the reference. + internal KnowledgeBaseIndexedOneLakeReference(string type, string id, int activitySource, IReadOnlyDictionary sourceData, float? rerankerScore, IDictionary serializedAdditionalRawData, string docUrl) : base(type, id, activitySource, sourceData, rerankerScore, serializedAdditionalRawData) + { + DocUrl = docUrl; + Type = type ?? "indexedOneLake"; + } + + /// Initializes a new instance of for deserialization. + internal KnowledgeBaseIndexedOneLakeReference() + { + } + + /// The document URL for the reference. + public string DocUrl { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedSharePointActivityArguments.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedSharePointActivityArguments.Serialization.cs new file mode 100644 index 000000000000..b5948e377d88 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedSharePointActivityArguments.Serialization.cs @@ -0,0 +1,145 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class KnowledgeBaseIndexedSharePointActivityArguments : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseIndexedSharePointActivityArguments)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(Search)) + { + writer.WritePropertyName("search"u8); + writer.WriteStringValue(Search); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + KnowledgeBaseIndexedSharePointActivityArguments IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseIndexedSharePointActivityArguments)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeBaseIndexedSharePointActivityArguments(document.RootElement, options); + } + + internal static KnowledgeBaseIndexedSharePointActivityArguments DeserializeKnowledgeBaseIndexedSharePointActivityArguments(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string search = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("search"u8)) + { + search = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new KnowledgeBaseIndexedSharePointActivityArguments(search, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeBaseIndexedSharePointActivityArguments)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeBaseIndexedSharePointActivityArguments IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseIndexedSharePointActivityArguments(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeBaseIndexedSharePointActivityArguments)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KnowledgeBaseIndexedSharePointActivityArguments FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseIndexedSharePointActivityArguments(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedSharePointActivityArguments.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedSharePointActivityArguments.cs new file mode 100644 index 000000000000..4b20878db4fc --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedSharePointActivityArguments.cs @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// Represents the arguments the indexed SharePoint retrieval activity was run with. + public partial class KnowledgeBaseIndexedSharePointActivityArguments + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal KnowledgeBaseIndexedSharePointActivityArguments() + { + } + + /// Initializes a new instance of . + /// The search string used to query indexed SharePoint contents. + /// Keeps track of any properties unknown to the library. + internal KnowledgeBaseIndexedSharePointActivityArguments(string search, IDictionary serializedAdditionalRawData) + { + Search = search; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The search string used to query indexed SharePoint contents. + public string Search { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentSemanticRerankerActivityRecord.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedSharePointActivityRecord.Serialization.cs similarity index 56% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentSemanticRerankerActivityRecord.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedSharePointActivityRecord.Serialization.cs index a08e202f7725..06a8396b8e8b 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentSemanticRerankerActivityRecord.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedSharePointActivityRecord.Serialization.cs @@ -11,13 +11,13 @@ using System.Text.Json; using Azure.Core; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { - public partial class KnowledgeAgentSemanticRerankerActivityRecord : IUtf8JsonSerializable, IJsonModel + public partial class KnowledgeBaseIndexedSharePointActivityRecord : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,33 +28,33 @@ void IJsonModel.Write(Utf8JsonWrit /// The client options for reading and writing models. protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentSemanticRerankerActivityRecord)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseIndexedSharePointActivityRecord)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); - if (Optional.IsDefined(InputTokens)) + if (Optional.IsDefined(IndexedSharePointArguments)) { - writer.WritePropertyName("inputTokens"u8); - writer.WriteNumberValue(InputTokens.Value); + writer.WritePropertyName("indexedSharePointArguments"u8); + writer.WriteObjectValue(IndexedSharePointArguments, options); } } - KnowledgeAgentSemanticRerankerActivityRecord IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeBaseIndexedSharePointActivityRecord IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentSemanticRerankerActivityRecord)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseIndexedSharePointActivityRecord)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentSemanticRerankerActivityRecord(document.RootElement, options); + return DeserializeKnowledgeBaseIndexedSharePointActivityRecord(document.RootElement, options); } - internal static KnowledgeAgentSemanticRerankerActivityRecord DeserializeKnowledgeAgentSemanticRerankerActivityRecord(JsonElement element, ModelReaderWriterOptions options = null) + internal static KnowledgeBaseIndexedSharePointActivityRecord DeserializeKnowledgeBaseIndexedSharePointActivityRecord(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -62,21 +62,48 @@ internal static KnowledgeAgentSemanticRerankerActivityRecord DeserializeKnowledg { return null; } - int? inputTokens = default; + KnowledgeBaseIndexedSharePointActivityArguments indexedSharePointArguments = default; + string knowledgeSourceName = default; + DateTimeOffset? queryTime = default; + int? count = default; int id = default; string type = default; int? elapsedMs = default; + KnowledgeBaseErrorDetail error = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("inputTokens"u8)) + if (property.NameEquals("indexedSharePointArguments"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - inputTokens = property.Value.GetInt32(); + indexedSharePointArguments = KnowledgeBaseIndexedSharePointActivityArguments.DeserializeKnowledgeBaseIndexedSharePointActivityArguments(property.Value, options); + continue; + } + if (property.NameEquals("knowledgeSourceName"u8)) + { + knowledgeSourceName = property.Value.GetString(); + continue; + } + if (property.NameEquals("queryTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + queryTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("count"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + count = property.Value.GetInt32(); continue; } if (property.NameEquals("id"u8)) @@ -98,52 +125,70 @@ internal static KnowledgeAgentSemanticRerankerActivityRecord DeserializeKnowledg elapsedMs = property.Value.GetInt32(); continue; } + if (property.NameEquals("error"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + error = KnowledgeBaseErrorDetail.DeserializeKnowledgeBaseErrorDetail(property.Value, options); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new KnowledgeAgentSemanticRerankerActivityRecord(id, type, elapsedMs, serializedAdditionalRawData, inputTokens); + return new KnowledgeBaseIndexedSharePointActivityRecord( + id, + type, + elapsedMs, + error, + serializedAdditionalRawData, + knowledgeSourceName, + queryTime, + count, + indexedSharePointArguments); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentSemanticRerankerActivityRecord)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseIndexedSharePointActivityRecord)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentSemanticRerankerActivityRecord IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeBaseIndexedSharePointActivityRecord IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentSemanticRerankerActivityRecord(document.RootElement, options); + return DeserializeKnowledgeBaseIndexedSharePointActivityRecord(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentSemanticRerankerActivityRecord)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseIndexedSharePointActivityRecord)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static new KnowledgeAgentSemanticRerankerActivityRecord FromResponse(Response response) + internal static new KnowledgeBaseIndexedSharePointActivityRecord FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentSemanticRerankerActivityRecord(document.RootElement); + return DeserializeKnowledgeBaseIndexedSharePointActivityRecord(document.RootElement); } /// Convert into a . diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedSharePointActivityRecord.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedSharePointActivityRecord.cs new file mode 100644 index 000000000000..f5570f15234e --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedSharePointActivityRecord.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// Represents a indexed SharePoint retrieval activity record. + public partial class KnowledgeBaseIndexedSharePointActivityRecord : KnowledgeBaseRetrievalActivityRecord + { + /// Initializes a new instance of . + /// The ID of the activity record. + internal KnowledgeBaseIndexedSharePointActivityRecord(int id) : base(id) + { + Type = "indexedSharePoint"; + } + + /// Initializes a new instance of . + /// The ID of the activity record. + /// The type of the activity record. + /// The elapsed time in milliseconds for the retrieval activity. + /// The error detail explaining why the operation failed. This property is only included when the activity does not succeed. + /// Keeps track of any properties unknown to the library. + /// The knowledge source for the retrieval activity. + /// The query time for this retrieval activity. + /// The count of documents retrieved that were sufficiently relevant to pass the reranker threshold. + /// The indexed SharePoint arguments for the retrieval activity. + internal KnowledgeBaseIndexedSharePointActivityRecord(int id, string type, int? elapsedMs, KnowledgeBaseErrorDetail error, IDictionary serializedAdditionalRawData, string knowledgeSourceName, DateTimeOffset? queryTime, int? count, KnowledgeBaseIndexedSharePointActivityArguments indexedSharePointArguments) : base(id, type, elapsedMs, error, serializedAdditionalRawData, knowledgeSourceName, queryTime, count) + { + IndexedSharePointArguments = indexedSharePointArguments; + Type = type ?? "indexedSharePoint"; + } + + /// Initializes a new instance of for deserialization. + internal KnowledgeBaseIndexedSharePointActivityRecord() + { + } + + /// The indexed SharePoint arguments for the retrieval activity. + public KnowledgeBaseIndexedSharePointActivityArguments IndexedSharePointArguments { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedSharePointReference.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedSharePointReference.Serialization.cs new file mode 100644 index 000000000000..8781dfdb7a36 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedSharePointReference.Serialization.cs @@ -0,0 +1,188 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class KnowledgeBaseIndexedSharePointReference : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseIndexedSharePointReference)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(DocUrl)) + { + writer.WritePropertyName("docUrl"u8); + writer.WriteStringValue(DocUrl); + } + } + + KnowledgeBaseIndexedSharePointReference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseIndexedSharePointReference)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeBaseIndexedSharePointReference(document.RootElement, options); + } + + internal static KnowledgeBaseIndexedSharePointReference DeserializeKnowledgeBaseIndexedSharePointReference(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string docUrl = default; + string type = default; + string id = default; + int activitySource = default; + IReadOnlyDictionary sourceData = default; + float? rerankerScore = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("docUrl"u8)) + { + docUrl = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("activitySource"u8)) + { + activitySource = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("sourceData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(property0.Name, null); + } + else + { + dictionary.Add(property0.Name, property0.Value.GetObject()); + } + } + sourceData = dictionary; + continue; + } + if (property.NameEquals("rerankerScore"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rerankerScore = property.Value.GetSingle(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new KnowledgeBaseIndexedSharePointReference( + type, + id, + activitySource, + sourceData ?? new ChangeTrackingDictionary(), + rerankerScore, + serializedAdditionalRawData, + docUrl); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeBaseIndexedSharePointReference)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeBaseIndexedSharePointReference IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseIndexedSharePointReference(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeBaseIndexedSharePointReference)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KnowledgeBaseIndexedSharePointReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseIndexedSharePointReference(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedSharePointReference.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedSharePointReference.cs new file mode 100644 index 000000000000..2ad41dd21bc6 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseIndexedSharePointReference.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// Represents an Azure Blob Storage document reference. + public partial class KnowledgeBaseIndexedSharePointReference : KnowledgeBaseReference + { + /// Initializes a new instance of . + /// The ID of the reference. + /// The source activity ID for the reference. + /// is null. + internal KnowledgeBaseIndexedSharePointReference(string id, int activitySource) : base(id, activitySource) + { + Argument.AssertNotNull(id, nameof(id)); + + Type = "indexedSharePoint"; + } + + /// Initializes a new instance of . + /// The type of the reference. + /// The ID of the reference. + /// The source activity ID for the reference. + /// Dictionary of <any>. + /// The reranker score for the document reference. + /// Keeps track of any properties unknown to the library. + /// The document URL for the reference. + internal KnowledgeBaseIndexedSharePointReference(string type, string id, int activitySource, IReadOnlyDictionary sourceData, float? rerankerScore, IDictionary serializedAdditionalRawData, string docUrl) : base(type, id, activitySource, sourceData, rerankerScore, serializedAdditionalRawData) + { + DocUrl = docUrl; + Type = type ?? "indexedSharePoint"; + } + + /// Initializes a new instance of for deserialization. + internal KnowledgeBaseIndexedSharePointReference() + { + } + + /// The document URL for the reference. + public string DocUrl { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessage.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessage.Serialization.cs similarity index 67% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessage.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessage.Serialization.cs index 2aba543c1fc1..cb85227c375d 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessage.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessage.Serialization.cs @@ -11,13 +11,13 @@ using System.Text.Json; using Azure.Core; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { - public partial class KnowledgeAgentMessage : IUtf8JsonSerializable, IJsonModel + public partial class KnowledgeBaseMessage : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderW /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentMessage)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseMessage)} does not support writing '{format}' format."); } if (Optional.IsDefined(Role)) @@ -63,19 +63,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - KnowledgeAgentMessage IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeBaseMessage IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentMessage)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseMessage)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentMessage(document.RootElement, options); + return DeserializeKnowledgeBaseMessage(document.RootElement, options); } - internal static KnowledgeAgentMessage DeserializeKnowledgeAgentMessage(JsonElement element, ModelReaderWriterOptions options = null) + internal static KnowledgeBaseMessage DeserializeKnowledgeBaseMessage(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -84,7 +84,7 @@ internal static KnowledgeAgentMessage DeserializeKnowledgeAgentMessage(JsonEleme return null; } string role = default; - IList content = default; + IList content = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -96,10 +96,10 @@ internal static KnowledgeAgentMessage DeserializeKnowledgeAgentMessage(JsonEleme } if (property.NameEquals("content"u8)) { - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(KnowledgeAgentMessageContent.DeserializeKnowledgeAgentMessageContent(item, options)); + array.Add(KnowledgeBaseMessageContent.DeserializeKnowledgeBaseMessageContent(item, options)); } content = array; continue; @@ -110,46 +110,46 @@ internal static KnowledgeAgentMessage DeserializeKnowledgeAgentMessage(JsonEleme } } serializedAdditionalRawData = rawDataDictionary; - return new KnowledgeAgentMessage(role, content, serializedAdditionalRawData); + return new KnowledgeBaseMessage(role, content, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentMessage)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseMessage)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentMessage IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeBaseMessage IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentMessage(document.RootElement, options); + return DeserializeKnowledgeBaseMessage(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentMessage)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseMessage)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static KnowledgeAgentMessage FromResponse(Response response) + internal static KnowledgeBaseMessage FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentMessage(document.RootElement); + return DeserializeKnowledgeBaseMessage(document.RootElement); } /// Convert into a . diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessage.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessage.cs similarity index 64% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessage.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessage.cs index 59360a6d2b99..662fe4d7b9e7 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessage.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessage.cs @@ -9,10 +9,10 @@ using System.Collections.Generic; using System.Linq; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { /// The natural language message style object. - public partial class KnowledgeAgentMessage + public partial class KnowledgeBaseMessage { /// /// Keeps track of any properties unknown to the library. @@ -46,35 +46,35 @@ public partial class KnowledgeAgentMessage /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . + /// Initializes a new instance of . /// - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . /// /// is null. - public KnowledgeAgentMessage(IEnumerable content) + public KnowledgeBaseMessage(IEnumerable content) { Argument.AssertNotNull(content, nameof(content)); Content = content.ToList(); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The role of the tool response. /// - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . /// /// Keeps track of any properties unknown to the library. - internal KnowledgeAgentMessage(string role, IList content, IDictionary serializedAdditionalRawData) + internal KnowledgeBaseMessage(string role, IList content, IDictionary serializedAdditionalRawData) { Role = role; Content = content; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Initializes a new instance of for deserialization. - internal KnowledgeAgentMessage() + /// Initializes a new instance of for deserialization. + internal KnowledgeBaseMessage() { } @@ -82,9 +82,9 @@ internal KnowledgeAgentMessage() public string Role { get; set; } /// /// Gets the content - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . /// - public IList Content { get; } + public IList Content { get; } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageContent.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageContent.Serialization.cs similarity index 59% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageContent.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageContent.Serialization.cs index aa7e1a317f7b..6540e6a45bb6 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageContent.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageContent.Serialization.cs @@ -11,14 +11,14 @@ using Azure.Core; using Azure.Search.Documents.Models; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { - [PersistableModelProxy(typeof(UnknownKnowledgeAgentMessageContent))] - public partial class KnowledgeAgentMessageContent : IUtf8JsonSerializable, IJsonModel + [PersistableModelProxy(typeof(UnknownKnowledgeBaseMessageContent))] + public partial class KnowledgeBaseMessageContent : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -29,10 +29,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, Model /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentMessageContent)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseMessageContent)} does not support writing '{format}' format."); } writer.WritePropertyName("type"u8); @@ -54,19 +54,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - KnowledgeAgentMessageContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeBaseMessageContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentMessageContent)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseMessageContent)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentMessageContent(document.RootElement, options); + return DeserializeKnowledgeBaseMessageContent(document.RootElement, options); } - internal static KnowledgeAgentMessageContent DeserializeKnowledgeAgentMessageContent(JsonElement element, ModelReaderWriterOptions options = null) + internal static KnowledgeBaseMessageContent DeserializeKnowledgeBaseMessageContent(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -78,50 +78,50 @@ internal static KnowledgeAgentMessageContent DeserializeKnowledgeAgentMessageCon { switch (discriminator.GetString()) { - case "image": return KnowledgeAgentMessageImageContent.DeserializeKnowledgeAgentMessageImageContent(element, options); - case "text": return KnowledgeAgentMessageTextContent.DeserializeKnowledgeAgentMessageTextContent(element, options); + case "image": return KnowledgeBaseMessageImageContent.DeserializeKnowledgeBaseMessageImageContent(element, options); + case "text": return KnowledgeBaseMessageTextContent.DeserializeKnowledgeBaseMessageTextContent(element, options); } } - return UnknownKnowledgeAgentMessageContent.DeserializeUnknownKnowledgeAgentMessageContent(element, options); + return UnknownKnowledgeBaseMessageContent.DeserializeUnknownKnowledgeBaseMessageContent(element, options); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentMessageContent)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseMessageContent)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentMessageContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeBaseMessageContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentMessageContent(document.RootElement, options); + return DeserializeKnowledgeBaseMessageContent(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentMessageContent)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseMessageContent)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static KnowledgeAgentMessageContent FromResponse(Response response) + internal static KnowledgeBaseMessageContent FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentMessageContent(document.RootElement); + return DeserializeKnowledgeBaseMessageContent(document.RootElement); } /// Convert into a . diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageContent.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageContent.cs similarity index 73% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageContent.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageContent.cs index 5e5f38514f1a..55264e38a988 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageContent.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageContent.cs @@ -8,14 +8,14 @@ using System; using System.Collections.Generic; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { /// /// Specifies the type of the message content. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . /// - public abstract partial class KnowledgeAgentMessageContent + public abstract partial class KnowledgeBaseMessageContent { /// /// Keeps track of any properties unknown to the library. @@ -49,21 +49,21 @@ public abstract partial class KnowledgeAgentMessageContent /// private protected IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - protected KnowledgeAgentMessageContent() + /// Initializes a new instance of . + protected KnowledgeBaseMessageContent() { } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The type of the message. /// Keeps track of any properties unknown to the library. - internal KnowledgeAgentMessageContent(KnowledgeAgentMessageContentType type, IDictionary serializedAdditionalRawData) + internal KnowledgeBaseMessageContent(KnowledgeBaseMessageContentType type, IDictionary serializedAdditionalRawData) { Type = type; _serializedAdditionalRawData = serializedAdditionalRawData; } /// The type of the message. - internal KnowledgeAgentMessageContentType Type { get; set; } + internal KnowledgeBaseMessageContentType Type { get; set; } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageContentType.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageContentType.cs new file mode 100644 index 000000000000..6bd74baeb9e1 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageContentType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// The type of message content. + public readonly partial struct KnowledgeBaseMessageContentType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public KnowledgeBaseMessageContentType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string TextValue = "text"; + private const string ImageValue = "image"; + + /// Text message content kind. + public static KnowledgeBaseMessageContentType Text { get; } = new KnowledgeBaseMessageContentType(TextValue); + /// Image message content kind. + public static KnowledgeBaseMessageContentType Image { get; } = new KnowledgeBaseMessageContentType(ImageValue); + /// Determines if two values are the same. + public static bool operator ==(KnowledgeBaseMessageContentType left, KnowledgeBaseMessageContentType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(KnowledgeBaseMessageContentType left, KnowledgeBaseMessageContentType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator KnowledgeBaseMessageContentType(string value) => new KnowledgeBaseMessageContentType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is KnowledgeBaseMessageContentType other && Equals(other); + /// + public bool Equals(KnowledgeBaseMessageContentType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageImageContent.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageImageContent.Serialization.cs new file mode 100644 index 000000000000..8d5f1609206a --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageImageContent.Serialization.cs @@ -0,0 +1,135 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.Search.Documents.Models; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class KnowledgeBaseMessageImageContent : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseMessageImageContent)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + writer.WritePropertyName("image"u8); + writer.WriteObjectValue(Image, options); + } + + KnowledgeBaseMessageImageContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseMessageImageContent)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeBaseMessageImageContent(document.RootElement, options); + } + + internal static KnowledgeBaseMessageImageContent DeserializeKnowledgeBaseMessageImageContent(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + KnowledgeBaseMessageImageContentImage image = default; + KnowledgeBaseMessageContentType type = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("image"u8)) + { + image = KnowledgeBaseMessageImageContentImage.DeserializeKnowledgeBaseMessageImageContentImage(property.Value, options); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new KnowledgeBaseMessageContentType(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new KnowledgeBaseMessageImageContent(type, serializedAdditionalRawData, image); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeBaseMessageImageContent)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeBaseMessageImageContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseMessageImageContent(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeBaseMessageImageContent)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KnowledgeBaseMessageImageContent FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseMessageImageContent(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageImageContent.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageImageContent.cs similarity index 57% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageImageContent.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageImageContent.cs index 30aef63ab16e..4288eaa4aabe 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageImageContent.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageImageContent.cs @@ -9,38 +9,38 @@ using System.Collections.Generic; using Azure.Search.Documents.Models; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { /// Text message type. - public partial class KnowledgeAgentMessageImageContent : KnowledgeAgentMessageContent + public partial class KnowledgeBaseMessageImageContent : KnowledgeBaseMessageContent { - /// Initializes a new instance of . + /// Initializes a new instance of . /// /// is null. - public KnowledgeAgentMessageImageContent(KnowledgeAgentMessageImageContentImage image) + public KnowledgeBaseMessageImageContent(KnowledgeBaseMessageImageContentImage image) { Argument.AssertNotNull(image, nameof(image)); Image = image; - Type = KnowledgeAgentMessageContentType.Image; + Type = KnowledgeBaseMessageContentType.Image; } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The type of the message. /// Keeps track of any properties unknown to the library. /// - internal KnowledgeAgentMessageImageContent(KnowledgeAgentMessageContentType type, IDictionary serializedAdditionalRawData, KnowledgeAgentMessageImageContentImage image) : base(type, serializedAdditionalRawData) + internal KnowledgeBaseMessageImageContent(KnowledgeBaseMessageContentType type, IDictionary serializedAdditionalRawData, KnowledgeBaseMessageImageContentImage image) : base(type, serializedAdditionalRawData) { Image = image; Type = type; } - /// Initializes a new instance of for deserialization. - internal KnowledgeAgentMessageImageContent() + /// Initializes a new instance of for deserialization. + internal KnowledgeBaseMessageImageContent() { } /// Gets or sets the image. - public KnowledgeAgentMessageImageContentImage Image { get; set; } + public KnowledgeBaseMessageImageContentImage Image { get; set; } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageImageContentImage.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageImageContentImage.Serialization.cs similarity index 64% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageImageContentImage.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageImageContentImage.Serialization.cs index 08960618aa82..86fc70124ece 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageImageContentImage.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageImageContentImage.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.Search.Documents.Models { - public partial class KnowledgeAgentMessageImageContentImage : IUtf8JsonSerializable, IJsonModel + public partial class KnowledgeBaseMessageImageContentImage : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter wri /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentMessageImageContentImage)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseMessageImageContentImage)} does not support writing '{format}' format."); } writer.WritePropertyName("url"u8); @@ -53,19 +53,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - KnowledgeAgentMessageImageContentImage IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeBaseMessageImageContentImage IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentMessageImageContentImage)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseMessageImageContentImage)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentMessageImageContentImage(document.RootElement, options); + return DeserializeKnowledgeBaseMessageImageContentImage(document.RootElement, options); } - internal static KnowledgeAgentMessageImageContentImage DeserializeKnowledgeAgentMessageImageContentImage(JsonElement element, ModelReaderWriterOptions options = null) + internal static KnowledgeBaseMessageImageContentImage DeserializeKnowledgeBaseMessageImageContentImage(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -89,46 +89,46 @@ internal static KnowledgeAgentMessageImageContentImage DeserializeKnowledgeAgent } } serializedAdditionalRawData = rawDataDictionary; - return new KnowledgeAgentMessageImageContentImage(url, serializedAdditionalRawData); + return new KnowledgeBaseMessageImageContentImage(url, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentMessageImageContentImage)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseMessageImageContentImage)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentMessageImageContentImage IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeBaseMessageImageContentImage IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentMessageImageContentImage(document.RootElement, options); + return DeserializeKnowledgeBaseMessageImageContentImage(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentMessageImageContentImage)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseMessageImageContentImage)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static KnowledgeAgentMessageImageContentImage FromResponse(Response response) + internal static KnowledgeBaseMessageImageContentImage FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentMessageImageContentImage(document.RootElement); + return DeserializeKnowledgeBaseMessageImageContentImage(document.RootElement); } /// Convert into a . diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageImageContentImage.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageImageContentImage.cs similarity index 81% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageImageContentImage.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageImageContentImage.cs index 4316d184246f..b0b394b85fff 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageImageContentImage.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageImageContentImage.cs @@ -10,8 +10,8 @@ namespace Azure.Search.Documents.Models { - /// The KnowledgeAgentMessageImageContentImage. - public partial class KnowledgeAgentMessageImageContentImage + /// The KnowledgeBaseMessageImageContentImage. + public partial class KnowledgeBaseMessageImageContentImage { /// /// Keeps track of any properties unknown to the library. @@ -45,27 +45,27 @@ public partial class KnowledgeAgentMessageImageContentImage /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . + /// Initializes a new instance of . /// The url of the image. /// is null. - public KnowledgeAgentMessageImageContentImage(Uri url) + public KnowledgeBaseMessageImageContentImage(Uri url) { Argument.AssertNotNull(url, nameof(url)); Url = url; } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The url of the image. /// Keeps track of any properties unknown to the library. - internal KnowledgeAgentMessageImageContentImage(Uri url, IDictionary serializedAdditionalRawData) + internal KnowledgeBaseMessageImageContentImage(Uri url, IDictionary serializedAdditionalRawData) { Url = url; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Initializes a new instance of for deserialization. - internal KnowledgeAgentMessageImageContentImage() + /// Initializes a new instance of for deserialization. + internal KnowledgeBaseMessageImageContentImage() { } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageTextContent.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageTextContent.Serialization.cs new file mode 100644 index 000000000000..09b97099614a --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageTextContent.Serialization.cs @@ -0,0 +1,134 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class KnowledgeBaseMessageTextContent : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseMessageTextContent)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + writer.WritePropertyName("text"u8); + writer.WriteStringValue(Text); + } + + KnowledgeBaseMessageTextContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseMessageTextContent)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeBaseMessageTextContent(document.RootElement, options); + } + + internal static KnowledgeBaseMessageTextContent DeserializeKnowledgeBaseMessageTextContent(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string text = default; + KnowledgeBaseMessageContentType type = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("text"u8)) + { + text = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new KnowledgeBaseMessageContentType(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new KnowledgeBaseMessageTextContent(type, serializedAdditionalRawData, text); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeBaseMessageTextContent)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeBaseMessageTextContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseMessageTextContent(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeBaseMessageTextContent)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KnowledgeBaseMessageTextContent FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseMessageTextContent(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageTextContent.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageTextContent.cs similarity index 61% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageTextContent.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageTextContent.cs index 87a49ecebe8b..c99568ffe105 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageTextContent.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseMessageTextContent.cs @@ -8,34 +8,34 @@ using System; using System.Collections.Generic; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { /// Text message type. - public partial class KnowledgeAgentMessageTextContent : KnowledgeAgentMessageContent + public partial class KnowledgeBaseMessageTextContent : KnowledgeBaseMessageContent { - /// Initializes a new instance of . + /// Initializes a new instance of . /// /// is null. - public KnowledgeAgentMessageTextContent(string text) + public KnowledgeBaseMessageTextContent(string text) { Argument.AssertNotNull(text, nameof(text)); Text = text; - Type = KnowledgeAgentMessageContentType.Text; + Type = KnowledgeBaseMessageContentType.Text; } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The type of the message. /// Keeps track of any properties unknown to the library. /// - internal KnowledgeAgentMessageTextContent(KnowledgeAgentMessageContentType type, IDictionary serializedAdditionalRawData, string text) : base(type, serializedAdditionalRawData) + internal KnowledgeBaseMessageTextContent(KnowledgeBaseMessageContentType type, IDictionary serializedAdditionalRawData, string text) : base(type, serializedAdditionalRawData) { Text = text; Type = type; } - /// Initializes a new instance of for deserialization. - internal KnowledgeAgentMessageTextContent() + /// Initializes a new instance of for deserialization. + internal KnowledgeBaseMessageTextContent() { } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentModel.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseModel.Serialization.cs similarity index 63% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentModel.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseModel.Serialization.cs index 121e7e4df3ea..d90d95d50cf4 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentModel.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseModel.Serialization.cs @@ -13,12 +13,12 @@ namespace Azure.Search.Documents.Indexes.Models { - [PersistableModelProxy(typeof(UnknownKnowledgeAgentModel))] - public partial class KnowledgeAgentModel : IUtf8JsonSerializable, IJsonModel + [PersistableModelProxy(typeof(UnknownKnowledgeBaseModel))] + public partial class KnowledgeBaseModel : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -29,10 +29,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWri /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentModel)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseModel)} does not support writing '{format}' format."); } writer.WritePropertyName("kind"u8); @@ -54,19 +54,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - KnowledgeAgentModel IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeBaseModel IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentModel)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseModel)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentModel(document.RootElement, options); + return DeserializeKnowledgeBaseModel(document.RootElement, options); } - internal static KnowledgeAgentModel DeserializeKnowledgeAgentModel(JsonElement element, ModelReaderWriterOptions options = null) + internal static KnowledgeBaseModel DeserializeKnowledgeBaseModel(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -78,49 +78,49 @@ internal static KnowledgeAgentModel DeserializeKnowledgeAgentModel(JsonElement e { switch (discriminator.GetString()) { - case "azureOpenAI": return KnowledgeAgentAzureOpenAIModel.DeserializeKnowledgeAgentAzureOpenAIModel(element, options); + case "azureOpenAI": return KnowledgeBaseAzureOpenAIModel.DeserializeKnowledgeBaseAzureOpenAIModel(element, options); } } - return UnknownKnowledgeAgentModel.DeserializeUnknownKnowledgeAgentModel(element, options); + return UnknownKnowledgeBaseModel.DeserializeUnknownKnowledgeBaseModel(element, options); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentModel)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseModel)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentModel IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeBaseModel IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentModel(document.RootElement, options); + return DeserializeKnowledgeBaseModel(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentModel)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseModel)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static KnowledgeAgentModel FromResponse(Response response) + internal static KnowledgeBaseModel FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentModel(document.RootElement); + return DeserializeKnowledgeBaseModel(document.RootElement); } /// Convert into a . diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentModel.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseModel.cs similarity index 78% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentModel.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseModel.cs index c31a4703beba..34283048c01e 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentModel.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseModel.cs @@ -12,10 +12,10 @@ namespace Azure.Search.Documents.Indexes.Models { /// /// Specifies the connection parameters for the model to use for query planning. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . /// - public abstract partial class KnowledgeAgentModel + public abstract partial class KnowledgeBaseModel { /// /// Keeps track of any properties unknown to the library. @@ -49,21 +49,21 @@ public abstract partial class KnowledgeAgentModel /// private protected IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - protected KnowledgeAgentModel() + /// Initializes a new instance of . + protected KnowledgeBaseModel() { } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The type of AI model. /// Keeps track of any properties unknown to the library. - internal KnowledgeAgentModel(KnowledgeAgentModelKind kind, IDictionary serializedAdditionalRawData) + internal KnowledgeBaseModel(KnowledgeBaseModelKind kind, IDictionary serializedAdditionalRawData) { Kind = kind; _serializedAdditionalRawData = serializedAdditionalRawData; } /// The type of AI model. - internal KnowledgeAgentModelKind Kind { get; set; } + internal KnowledgeBaseModelKind Kind { get; set; } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentModelQueryPlanningActivityRecord.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseModelAnswerSynthesisActivityRecord.Serialization.cs similarity index 64% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentModelQueryPlanningActivityRecord.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseModelAnswerSynthesisActivityRecord.Serialization.cs index 720fdf42b86e..2d3dc3bcfea1 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentModelQueryPlanningActivityRecord.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseModelAnswerSynthesisActivityRecord.Serialization.cs @@ -11,13 +11,13 @@ using System.Text.Json; using Azure.Core; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { - public partial class KnowledgeAgentModelQueryPlanningActivityRecord : IUtf8JsonSerializable, IJsonModel + public partial class KnowledgeBaseModelAnswerSynthesisActivityRecord : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWr /// The client options for reading and writing models. protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentModelQueryPlanningActivityRecord)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseModelAnswerSynthesisActivityRecord)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); @@ -47,19 +47,19 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } } - KnowledgeAgentModelQueryPlanningActivityRecord IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeBaseModelAnswerSynthesisActivityRecord IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentModelQueryPlanningActivityRecord)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseModelAnswerSynthesisActivityRecord)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentModelQueryPlanningActivityRecord(document.RootElement, options); + return DeserializeKnowledgeBaseModelAnswerSynthesisActivityRecord(document.RootElement, options); } - internal static KnowledgeAgentModelQueryPlanningActivityRecord DeserializeKnowledgeAgentModelQueryPlanningActivityRecord(JsonElement element, ModelReaderWriterOptions options = null) + internal static KnowledgeBaseModelAnswerSynthesisActivityRecord DeserializeKnowledgeBaseModelAnswerSynthesisActivityRecord(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -72,6 +72,7 @@ internal static KnowledgeAgentModelQueryPlanningActivityRecord DeserializeKnowle int id = default; string type = default; int? elapsedMs = default; + KnowledgeBaseErrorDetail error = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -113,58 +114,68 @@ internal static KnowledgeAgentModelQueryPlanningActivityRecord DeserializeKnowle elapsedMs = property.Value.GetInt32(); continue; } + if (property.NameEquals("error"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + error = KnowledgeBaseErrorDetail.DeserializeKnowledgeBaseErrorDetail(property.Value, options); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new KnowledgeAgentModelQueryPlanningActivityRecord( + return new KnowledgeBaseModelAnswerSynthesisActivityRecord( id, type, elapsedMs, + error, serializedAdditionalRawData, inputTokens, outputTokens); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentModelQueryPlanningActivityRecord)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseModelAnswerSynthesisActivityRecord)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentModelQueryPlanningActivityRecord IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeBaseModelAnswerSynthesisActivityRecord IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentModelQueryPlanningActivityRecord(document.RootElement, options); + return DeserializeKnowledgeBaseModelAnswerSynthesisActivityRecord(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentModelQueryPlanningActivityRecord)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseModelAnswerSynthesisActivityRecord)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static new KnowledgeAgentModelQueryPlanningActivityRecord FromResponse(Response response) + internal static new KnowledgeBaseModelAnswerSynthesisActivityRecord FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentModelQueryPlanningActivityRecord(document.RootElement); + return DeserializeKnowledgeBaseModelAnswerSynthesisActivityRecord(document.RootElement); } /// Convert into a . diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentModelAnswerSynthesisActivityRecord.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseModelAnswerSynthesisActivityRecord.cs similarity index 63% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentModelAnswerSynthesisActivityRecord.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseModelAnswerSynthesisActivityRecord.cs index a82de914a87d..675246a59f8d 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentModelAnswerSynthesisActivityRecord.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseModelAnswerSynthesisActivityRecord.cs @@ -8,34 +8,35 @@ using System; using System.Collections.Generic; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { /// Represents an LLM answer synthesis activity record. - public partial class KnowledgeAgentModelAnswerSynthesisActivityRecord : KnowledgeAgentActivityRecord + public partial class KnowledgeBaseModelAnswerSynthesisActivityRecord : KnowledgeBaseActivityRecord { - /// Initializes a new instance of . + /// Initializes a new instance of . /// The ID of the activity record. - internal KnowledgeAgentModelAnswerSynthesisActivityRecord(int id) : base(id) + internal KnowledgeBaseModelAnswerSynthesisActivityRecord(int id) : base(id) { Type = "modelAnswerSynthesis"; } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The ID of the activity record. /// The type of the activity record. /// The elapsed time in milliseconds for the retrieval activity. + /// The error detail explaining why the operation failed. This property is only included when the activity does not succeed. /// Keeps track of any properties unknown to the library. /// The number of input tokens for the LLM answer synthesis activity. /// The number of output tokens for the LLM answer synthesis activity. - internal KnowledgeAgentModelAnswerSynthesisActivityRecord(int id, string type, int? elapsedMs, IDictionary serializedAdditionalRawData, int? inputTokens, int? outputTokens) : base(id, type, elapsedMs, serializedAdditionalRawData) + internal KnowledgeBaseModelAnswerSynthesisActivityRecord(int id, string type, int? elapsedMs, KnowledgeBaseErrorDetail error, IDictionary serializedAdditionalRawData, int? inputTokens, int? outputTokens) : base(id, type, elapsedMs, error, serializedAdditionalRawData) { InputTokens = inputTokens; OutputTokens = outputTokens; Type = type ?? "modelAnswerSynthesis"; } - /// Initializes a new instance of for deserialization. - internal KnowledgeAgentModelAnswerSynthesisActivityRecord() + /// Initializes a new instance of for deserialization. + internal KnowledgeBaseModelAnswerSynthesisActivityRecord() { } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentModelKind.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseModelKind.cs similarity index 53% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentModelKind.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseModelKind.cs index 7b06357ba598..96eeb651d1e2 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentModelKind.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseModelKind.cs @@ -11,13 +11,13 @@ namespace Azure.Search.Documents.Indexes.Models { /// The AI model to be used for query planning. - public readonly partial struct KnowledgeAgentModelKind : IEquatable + public readonly partial struct KnowledgeBaseModelKind : IEquatable { private readonly string _value; - /// Initializes a new instance of . + /// Initializes a new instance of . /// is null. - public KnowledgeAgentModelKind(string value) + public KnowledgeBaseModelKind(string value) { _value = value ?? throw new ArgumentNullException(nameof(value)); } @@ -25,19 +25,19 @@ public KnowledgeAgentModelKind(string value) private const string AzureOpenAIValue = "azureOpenAI"; /// Use Azure Open AI models for query planning. - public static KnowledgeAgentModelKind AzureOpenAI { get; } = new KnowledgeAgentModelKind(AzureOpenAIValue); - /// Determines if two values are the same. - public static bool operator ==(KnowledgeAgentModelKind left, KnowledgeAgentModelKind right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(KnowledgeAgentModelKind left, KnowledgeAgentModelKind right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator KnowledgeAgentModelKind(string value) => new KnowledgeAgentModelKind(value); + public static KnowledgeBaseModelKind AzureOpenAI { get; } = new KnowledgeBaseModelKind(AzureOpenAIValue); + /// Determines if two values are the same. + public static bool operator ==(KnowledgeBaseModelKind left, KnowledgeBaseModelKind right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(KnowledgeBaseModelKind left, KnowledgeBaseModelKind right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator KnowledgeBaseModelKind(string value) => new KnowledgeBaseModelKind(value); /// [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is KnowledgeAgentModelKind other && Equals(other); + public override bool Equals(object obj) => obj is KnowledgeBaseModelKind other && Equals(other); /// - public bool Equals(KnowledgeAgentModelKind other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + public bool Equals(KnowledgeBaseModelKind other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); /// [EditorBrowsable(EditorBrowsableState.Never)] diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentModelAnswerSynthesisActivityRecord.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseModelQueryPlanningActivityRecord.Serialization.cs similarity index 64% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentModelAnswerSynthesisActivityRecord.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseModelQueryPlanningActivityRecord.Serialization.cs index 22d222b8d11e..04939e2e7f30 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentModelAnswerSynthesisActivityRecord.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseModelQueryPlanningActivityRecord.Serialization.cs @@ -11,13 +11,13 @@ using System.Text.Json; using Azure.Core; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { - public partial class KnowledgeAgentModelAnswerSynthesisActivityRecord : IUtf8JsonSerializable, IJsonModel + public partial class KnowledgeBaseModelQueryPlanningActivityRecord : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8Json /// The client options for reading and writing models. protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentModelAnswerSynthesisActivityRecord)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseModelQueryPlanningActivityRecord)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); @@ -47,19 +47,19 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } } - KnowledgeAgentModelAnswerSynthesisActivityRecord IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeBaseModelQueryPlanningActivityRecord IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentModelAnswerSynthesisActivityRecord)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseModelQueryPlanningActivityRecord)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentModelAnswerSynthesisActivityRecord(document.RootElement, options); + return DeserializeKnowledgeBaseModelQueryPlanningActivityRecord(document.RootElement, options); } - internal static KnowledgeAgentModelAnswerSynthesisActivityRecord DeserializeKnowledgeAgentModelAnswerSynthesisActivityRecord(JsonElement element, ModelReaderWriterOptions options = null) + internal static KnowledgeBaseModelQueryPlanningActivityRecord DeserializeKnowledgeBaseModelQueryPlanningActivityRecord(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -72,6 +72,7 @@ internal static KnowledgeAgentModelAnswerSynthesisActivityRecord DeserializeKnow int id = default; string type = default; int? elapsedMs = default; + KnowledgeBaseErrorDetail error = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -113,58 +114,68 @@ internal static KnowledgeAgentModelAnswerSynthesisActivityRecord DeserializeKnow elapsedMs = property.Value.GetInt32(); continue; } + if (property.NameEquals("error"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + error = KnowledgeBaseErrorDetail.DeserializeKnowledgeBaseErrorDetail(property.Value, options); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new KnowledgeAgentModelAnswerSynthesisActivityRecord( + return new KnowledgeBaseModelQueryPlanningActivityRecord( id, type, elapsedMs, + error, serializedAdditionalRawData, inputTokens, outputTokens); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentModelAnswerSynthesisActivityRecord)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseModelQueryPlanningActivityRecord)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentModelAnswerSynthesisActivityRecord IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeBaseModelQueryPlanningActivityRecord IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentModelAnswerSynthesisActivityRecord(document.RootElement, options); + return DeserializeKnowledgeBaseModelQueryPlanningActivityRecord(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentModelAnswerSynthesisActivityRecord)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseModelQueryPlanningActivityRecord)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static new KnowledgeAgentModelAnswerSynthesisActivityRecord FromResponse(Response response) + internal static new KnowledgeBaseModelQueryPlanningActivityRecord FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentModelAnswerSynthesisActivityRecord(document.RootElement); + return DeserializeKnowledgeBaseModelQueryPlanningActivityRecord(document.RootElement); } /// Convert into a . diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentModelQueryPlanningActivityRecord.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseModelQueryPlanningActivityRecord.cs similarity index 63% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentModelQueryPlanningActivityRecord.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseModelQueryPlanningActivityRecord.cs index 6869a99d02d5..40b2cd1533ee 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentModelQueryPlanningActivityRecord.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseModelQueryPlanningActivityRecord.cs @@ -8,34 +8,35 @@ using System; using System.Collections.Generic; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { /// Represents an LLM query planning activity record. - public partial class KnowledgeAgentModelQueryPlanningActivityRecord : KnowledgeAgentActivityRecord + public partial class KnowledgeBaseModelQueryPlanningActivityRecord : KnowledgeBaseActivityRecord { - /// Initializes a new instance of . + /// Initializes a new instance of . /// The ID of the activity record. - internal KnowledgeAgentModelQueryPlanningActivityRecord(int id) : base(id) + internal KnowledgeBaseModelQueryPlanningActivityRecord(int id) : base(id) { Type = "modelQueryPlanning"; } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The ID of the activity record. /// The type of the activity record. /// The elapsed time in milliseconds for the retrieval activity. + /// The error detail explaining why the operation failed. This property is only included when the activity does not succeed. /// Keeps track of any properties unknown to the library. /// The number of input tokens for the LLM query planning activity. /// The number of output tokens for the LLM query planning activity. - internal KnowledgeAgentModelQueryPlanningActivityRecord(int id, string type, int? elapsedMs, IDictionary serializedAdditionalRawData, int? inputTokens, int? outputTokens) : base(id, type, elapsedMs, serializedAdditionalRawData) + internal KnowledgeBaseModelQueryPlanningActivityRecord(int id, string type, int? elapsedMs, KnowledgeBaseErrorDetail error, IDictionary serializedAdditionalRawData, int? inputTokens, int? outputTokens) : base(id, type, elapsedMs, error, serializedAdditionalRawData) { InputTokens = inputTokens; OutputTokens = outputTokens; Type = type ?? "modelQueryPlanning"; } - /// Initializes a new instance of for deserialization. - internal KnowledgeAgentModelQueryPlanningActivityRecord() + /// Initializes a new instance of for deserialization. + internal KnowledgeBaseModelQueryPlanningActivityRecord() { } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentReference.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseReference.Serialization.cs similarity index 61% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentReference.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseReference.Serialization.cs index bd56da20b44a..850df210f396 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentReference.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseReference.Serialization.cs @@ -11,14 +11,14 @@ using Azure.Core; using Azure.Search.Documents.Models; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { - [PersistableModelProxy(typeof(UnknownKnowledgeAgentReference))] - public partial class KnowledgeAgentReference : IUtf8JsonSerializable, IJsonModel + [PersistableModelProxy(typeof(UnknownKnowledgeBaseReference))] + public partial class KnowledgeBaseReference : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -29,10 +29,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReade /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentReference)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseReference)} does not support writing '{format}' format."); } writer.WritePropertyName("type"u8); @@ -79,19 +79,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - KnowledgeAgentReference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeBaseReference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentReference)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseReference)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentReference(document.RootElement, options); + return DeserializeKnowledgeBaseReference(document.RootElement, options); } - internal static KnowledgeAgentReference DeserializeKnowledgeAgentReference(JsonElement element, ModelReaderWriterOptions options = null) + internal static KnowledgeBaseReference DeserializeKnowledgeBaseReference(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -103,50 +103,54 @@ internal static KnowledgeAgentReference DeserializeKnowledgeAgentReference(JsonE { switch (discriminator.GetString()) { - case "azureBlob": return KnowledgeAgentAzureBlobReference.DeserializeKnowledgeAgentAzureBlobReference(element, options); - case "searchIndex": return KnowledgeAgentSearchIndexReference.DeserializeKnowledgeAgentSearchIndexReference(element, options); + case "azureBlob": return KnowledgeBaseAzureBlobReference.DeserializeKnowledgeBaseAzureBlobReference(element, options); + case "indexedOneLake": return KnowledgeBaseIndexedOneLakeReference.DeserializeKnowledgeBaseIndexedOneLakeReference(element, options); + case "indexedSharePoint": return KnowledgeBaseIndexedSharePointReference.DeserializeKnowledgeBaseIndexedSharePointReference(element, options); + case "remoteSharePoint": return KnowledgeBaseRemoteSharePointReference.DeserializeKnowledgeBaseRemoteSharePointReference(element, options); + case "searchIndex": return KnowledgeBaseSearchIndexReference.DeserializeKnowledgeBaseSearchIndexReference(element, options); + case "web": return KnowledgeBaseWebReference.DeserializeKnowledgeBaseWebReference(element, options); } } - return UnknownKnowledgeAgentReference.DeserializeUnknownKnowledgeAgentReference(element, options); + return UnknownKnowledgeBaseReference.DeserializeUnknownKnowledgeBaseReference(element, options); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentReference)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseReference)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentReference IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeBaseReference IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentReference(document.RootElement, options); + return DeserializeKnowledgeBaseReference(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentReference)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseReference)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static KnowledgeAgentReference FromResponse(Response response) + internal static KnowledgeBaseReference FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentReference(document.RootElement); + return DeserializeKnowledgeBaseReference(document.RootElement); } /// Convert into a . diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentReference.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseReference.cs similarity index 77% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentReference.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseReference.cs index 29c0c4e0c3da..9a6b126e5432 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentReference.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseReference.cs @@ -8,14 +8,14 @@ using System; using System.Collections.Generic; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { /// /// Base type for references. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , and . /// - public abstract partial class KnowledgeAgentReference + public abstract partial class KnowledgeBaseReference { /// /// Keeps track of any properties unknown to the library. @@ -49,11 +49,11 @@ public abstract partial class KnowledgeAgentReference /// private protected IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . + /// Initializes a new instance of . /// The ID of the reference. /// The source activity ID for the reference. /// is null. - protected KnowledgeAgentReference(string id, int activitySource) + protected KnowledgeBaseReference(string id, int activitySource) { Argument.AssertNotNull(id, nameof(id)); @@ -62,14 +62,14 @@ protected KnowledgeAgentReference(string id, int activitySource) SourceData = new ChangeTrackingDictionary(); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The type of the reference. /// The ID of the reference. /// The source activity ID for the reference. /// Dictionary of <any>. /// The reranker score for the document reference. /// Keeps track of any properties unknown to the library. - internal KnowledgeAgentReference(string type, string id, int activitySource, IReadOnlyDictionary sourceData, float? rerankerScore, IDictionary serializedAdditionalRawData) + internal KnowledgeBaseReference(string type, string id, int activitySource, IReadOnlyDictionary sourceData, float? rerankerScore, IDictionary serializedAdditionalRawData) { Type = type; Id = id; @@ -79,8 +79,8 @@ internal KnowledgeAgentReference(string type, string id, int activitySource, IRe _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Initializes a new instance of for deserialization. - internal KnowledgeAgentReference() + /// Initializes a new instance of for deserialization. + internal KnowledgeBaseReference() { } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRemoteSharePointActivityArguments.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRemoteSharePointActivityArguments.Serialization.cs new file mode 100644 index 000000000000..b78380f6b149 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRemoteSharePointActivityArguments.Serialization.cs @@ -0,0 +1,156 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class KnowledgeBaseRemoteSharePointActivityArguments : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseRemoteSharePointActivityArguments)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(Search)) + { + writer.WritePropertyName("search"u8); + writer.WriteStringValue(Search); + } + if (Optional.IsDefined(FilterExpressionAddOn)) + { + writer.WritePropertyName("filterExpressionAddOn"u8); + writer.WriteStringValue(FilterExpressionAddOn); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + KnowledgeBaseRemoteSharePointActivityArguments IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseRemoteSharePointActivityArguments)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeBaseRemoteSharePointActivityArguments(document.RootElement, options); + } + + internal static KnowledgeBaseRemoteSharePointActivityArguments DeserializeKnowledgeBaseRemoteSharePointActivityArguments(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string search = default; + string filterExpressionAddOn = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("search"u8)) + { + search = property.Value.GetString(); + continue; + } + if (property.NameEquals("filterExpressionAddOn"u8)) + { + filterExpressionAddOn = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new KnowledgeBaseRemoteSharePointActivityArguments(search, filterExpressionAddOn, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeBaseRemoteSharePointActivityArguments)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeBaseRemoteSharePointActivityArguments IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseRemoteSharePointActivityArguments(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeBaseRemoteSharePointActivityArguments)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KnowledgeBaseRemoteSharePointActivityArguments FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseRemoteSharePointActivityArguments(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRemoteSharePointActivityArguments.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRemoteSharePointActivityArguments.cs new file mode 100644 index 000000000000..0305d9a282b6 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRemoteSharePointActivityArguments.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// Represents the arguments the remote SharePoint retrieval activity was run with. + public partial class KnowledgeBaseRemoteSharePointActivityArguments + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal KnowledgeBaseRemoteSharePointActivityArguments() + { + } + + /// Initializes a new instance of . + /// The search string used to query the remote SharePoint knowledge source. + /// The filter expression add-on for the retrieval activity. + /// Keeps track of any properties unknown to the library. + internal KnowledgeBaseRemoteSharePointActivityArguments(string search, string filterExpressionAddOn, IDictionary serializedAdditionalRawData) + { + Search = search; + FilterExpressionAddOn = filterExpressionAddOn; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The search string used to query the remote SharePoint knowledge source. + public string Search { get; } + /// The filter expression add-on for the retrieval activity. + public string FilterExpressionAddOn { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRemoteSharePointActivityRecord.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRemoteSharePointActivityRecord.Serialization.cs new file mode 100644 index 000000000000..f220edd65b76 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRemoteSharePointActivityRecord.Serialization.cs @@ -0,0 +1,202 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class KnowledgeBaseRemoteSharePointActivityRecord : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseRemoteSharePointActivityRecord)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(RemoteSharePointArguments)) + { + writer.WritePropertyName("remoteSharePointArguments"u8); + writer.WriteObjectValue(RemoteSharePointArguments, options); + } + } + + KnowledgeBaseRemoteSharePointActivityRecord IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseRemoteSharePointActivityRecord)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeBaseRemoteSharePointActivityRecord(document.RootElement, options); + } + + internal static KnowledgeBaseRemoteSharePointActivityRecord DeserializeKnowledgeBaseRemoteSharePointActivityRecord(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + KnowledgeBaseRemoteSharePointActivityArguments remoteSharePointArguments = default; + string knowledgeSourceName = default; + DateTimeOffset? queryTime = default; + int? count = default; + int id = default; + string type = default; + int? elapsedMs = default; + KnowledgeBaseErrorDetail error = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("remoteSharePointArguments"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + remoteSharePointArguments = KnowledgeBaseRemoteSharePointActivityArguments.DeserializeKnowledgeBaseRemoteSharePointActivityArguments(property.Value, options); + continue; + } + if (property.NameEquals("knowledgeSourceName"u8)) + { + knowledgeSourceName = property.Value.GetString(); + continue; + } + if (property.NameEquals("queryTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + queryTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("count"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + count = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("id"u8)) + { + id = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("elapsedMs"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + elapsedMs = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("error"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + error = KnowledgeBaseErrorDetail.DeserializeKnowledgeBaseErrorDetail(property.Value, options); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new KnowledgeBaseRemoteSharePointActivityRecord( + id, + type, + elapsedMs, + error, + serializedAdditionalRawData, + knowledgeSourceName, + queryTime, + count, + remoteSharePointArguments); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeBaseRemoteSharePointActivityRecord)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeBaseRemoteSharePointActivityRecord IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseRemoteSharePointActivityRecord(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeBaseRemoteSharePointActivityRecord)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KnowledgeBaseRemoteSharePointActivityRecord FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseRemoteSharePointActivityRecord(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRemoteSharePointActivityRecord.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRemoteSharePointActivityRecord.cs new file mode 100644 index 000000000000..27ee1ecab8ed --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRemoteSharePointActivityRecord.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// Represents a remote SharePoint retrieval activity record. + public partial class KnowledgeBaseRemoteSharePointActivityRecord : KnowledgeBaseRetrievalActivityRecord + { + /// Initializes a new instance of . + /// The ID of the activity record. + internal KnowledgeBaseRemoteSharePointActivityRecord(int id) : base(id) + { + Type = "remoteSharePoint"; + } + + /// Initializes a new instance of . + /// The ID of the activity record. + /// The type of the activity record. + /// The elapsed time in milliseconds for the retrieval activity. + /// The error detail explaining why the operation failed. This property is only included when the activity does not succeed. + /// Keeps track of any properties unknown to the library. + /// The knowledge source for the retrieval activity. + /// The query time for this retrieval activity. + /// The count of documents retrieved that were sufficiently relevant to pass the reranker threshold. + /// The remote SharePoint arguments for the retrieval activity. + internal KnowledgeBaseRemoteSharePointActivityRecord(int id, string type, int? elapsedMs, KnowledgeBaseErrorDetail error, IDictionary serializedAdditionalRawData, string knowledgeSourceName, DateTimeOffset? queryTime, int? count, KnowledgeBaseRemoteSharePointActivityArguments remoteSharePointArguments) : base(id, type, elapsedMs, error, serializedAdditionalRawData, knowledgeSourceName, queryTime, count) + { + RemoteSharePointArguments = remoteSharePointArguments; + Type = type ?? "remoteSharePoint"; + } + + /// Initializes a new instance of for deserialization. + internal KnowledgeBaseRemoteSharePointActivityRecord() + { + } + + /// The remote SharePoint arguments for the retrieval activity. + public KnowledgeBaseRemoteSharePointActivityArguments RemoteSharePointArguments { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRemoteSharePointReference.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRemoteSharePointReference.Serialization.cs new file mode 100644 index 000000000000..1c113fecea62 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRemoteSharePointReference.Serialization.cs @@ -0,0 +1,208 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class KnowledgeBaseRemoteSharePointReference : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseRemoteSharePointReference)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(WebUrl)) + { + writer.WritePropertyName("webUrl"u8); + writer.WriteStringValue(WebUrl.AbsoluteUri); + } + if (Optional.IsDefined(SearchSensitivityLabelInfo)) + { + writer.WritePropertyName("searchSensitivityLabelInfo"u8); + writer.WriteObjectValue(SearchSensitivityLabelInfo, options); + } + } + + KnowledgeBaseRemoteSharePointReference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseRemoteSharePointReference)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeBaseRemoteSharePointReference(document.RootElement, options); + } + + internal static KnowledgeBaseRemoteSharePointReference DeserializeKnowledgeBaseRemoteSharePointReference(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Uri webUrl = default; + SharePointSensitivityLabelInfo searchSensitivityLabelInfo = default; + string type = default; + string id = default; + int activitySource = default; + IReadOnlyDictionary sourceData = default; + float? rerankerScore = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("webUrl"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + webUrl = new Uri(property.Value.GetString()); + continue; + } + if (property.NameEquals("searchSensitivityLabelInfo"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + searchSensitivityLabelInfo = SharePointSensitivityLabelInfo.DeserializeSharePointSensitivityLabelInfo(property.Value, options); + continue; + } + if (property.NameEquals("type"u8)) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("activitySource"u8)) + { + activitySource = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("sourceData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(property0.Name, null); + } + else + { + dictionary.Add(property0.Name, property0.Value.GetObject()); + } + } + sourceData = dictionary; + continue; + } + if (property.NameEquals("rerankerScore"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rerankerScore = property.Value.GetSingle(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new KnowledgeBaseRemoteSharePointReference( + type, + id, + activitySource, + sourceData ?? new ChangeTrackingDictionary(), + rerankerScore, + serializedAdditionalRawData, + webUrl, + searchSensitivityLabelInfo); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeBaseRemoteSharePointReference)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeBaseRemoteSharePointReference IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseRemoteSharePointReference(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeBaseRemoteSharePointReference)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KnowledgeBaseRemoteSharePointReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseRemoteSharePointReference(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRemoteSharePointReference.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRemoteSharePointReference.cs new file mode 100644 index 000000000000..a8f06af84186 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRemoteSharePointReference.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// Represents a remote SharePoint document reference. + public partial class KnowledgeBaseRemoteSharePointReference : KnowledgeBaseReference + { + /// Initializes a new instance of . + /// The ID of the reference. + /// The source activity ID for the reference. + /// is null. + internal KnowledgeBaseRemoteSharePointReference(string id, int activitySource) : base(id, activitySource) + { + Argument.AssertNotNull(id, nameof(id)); + + Type = "remoteSharePoint"; + } + + /// Initializes a new instance of . + /// The type of the reference. + /// The ID of the reference. + /// The source activity ID for the reference. + /// Dictionary of <any>. + /// The reranker score for the document reference. + /// Keeps track of any properties unknown to the library. + /// The url the reference data originated from. + /// Information about the sensitivity label applied to a SharePoint document. + internal KnowledgeBaseRemoteSharePointReference(string type, string id, int activitySource, IReadOnlyDictionary sourceData, float? rerankerScore, IDictionary serializedAdditionalRawData, Uri webUrl, SharePointSensitivityLabelInfo searchSensitivityLabelInfo) : base(type, id, activitySource, sourceData, rerankerScore, serializedAdditionalRawData) + { + WebUrl = webUrl; + SearchSensitivityLabelInfo = searchSensitivityLabelInfo; + Type = type ?? "remoteSharePoint"; + } + + /// Initializes a new instance of for deserialization. + internal KnowledgeBaseRemoteSharePointReference() + { + } + + /// The url the reference data originated from. + public Uri WebUrl { get; } + /// Information about the sensitivity label applied to a SharePoint document. + public SharePointSensitivityLabelInfo SearchSensitivityLabelInfo { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRetrievalActivityRecord.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRetrievalActivityRecord.Serialization.cs similarity index 61% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRetrievalActivityRecord.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRetrievalActivityRecord.Serialization.cs index ccc9cb76170b..6f3395ca57b8 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRetrievalActivityRecord.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRetrievalActivityRecord.Serialization.cs @@ -11,13 +11,13 @@ using System.Text.Json; using Azure.Core; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { - public partial class KnowledgeAgentRetrievalActivityRecord : IUtf8JsonSerializable, IJsonModel + public partial class KnowledgeBaseRetrievalActivityRecord : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter writ /// The client options for reading and writing models. protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentRetrievalActivityRecord)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseRetrievalActivityRecord)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); @@ -52,19 +52,19 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } } - KnowledgeAgentRetrievalActivityRecord IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeBaseRetrievalActivityRecord IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentRetrievalActivityRecord)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseRetrievalActivityRecord)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentRetrievalActivityRecord(document.RootElement, options); + return DeserializeKnowledgeBaseRetrievalActivityRecord(document.RootElement, options); } - internal static KnowledgeAgentRetrievalActivityRecord DeserializeKnowledgeAgentRetrievalActivityRecord(JsonElement element, ModelReaderWriterOptions options = null) + internal static KnowledgeBaseRetrievalActivityRecord DeserializeKnowledgeBaseRetrievalActivityRecord(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -76,16 +76,21 @@ internal static KnowledgeAgentRetrievalActivityRecord DeserializeKnowledgeAgentR { switch (discriminator.GetString()) { - case "azureBlob": return KnowledgeAgentAzureBlobActivityRecord.DeserializeKnowledgeAgentAzureBlobActivityRecord(element, options); - case "searchIndex": return KnowledgeAgentSearchIndexActivityRecord.DeserializeKnowledgeAgentSearchIndexActivityRecord(element, options); + case "azureBlob": return KnowledgeBaseAzureBlobActivityRecord.DeserializeKnowledgeBaseAzureBlobActivityRecord(element, options); + case "indexedOneLake": return KnowledgeBaseIndexedOneLakeActivityRecord.DeserializeKnowledgeBaseIndexedOneLakeActivityRecord(element, options); + case "indexedSharePoint": return KnowledgeBaseIndexedSharePointActivityRecord.DeserializeKnowledgeBaseIndexedSharePointActivityRecord(element, options); + case "remoteSharePoint": return KnowledgeBaseRemoteSharePointActivityRecord.DeserializeKnowledgeBaseRemoteSharePointActivityRecord(element, options); + case "searchIndex": return KnowledgeBaseSearchIndexActivityRecord.DeserializeKnowledgeBaseSearchIndexActivityRecord(element, options); + case "web": return KnowledgeBaseWebActivityRecord.DeserializeKnowledgeBaseWebActivityRecord(element, options); } } string knowledgeSourceName = default; DateTimeOffset? queryTime = default; int? count = default; int id = default; - string type = "KnowledgeAgentRetrievalActivityRecord"; + string type = "KnowledgeBaseRetrievalActivityRecord"; int? elapsedMs = default; + KnowledgeBaseErrorDetail error = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -132,59 +137,69 @@ internal static KnowledgeAgentRetrievalActivityRecord DeserializeKnowledgeAgentR elapsedMs = property.Value.GetInt32(); continue; } + if (property.NameEquals("error"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + error = KnowledgeBaseErrorDetail.DeserializeKnowledgeBaseErrorDetail(property.Value, options); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new KnowledgeAgentRetrievalActivityRecord( + return new KnowledgeBaseRetrievalActivityRecord( id, type, elapsedMs, + error, serializedAdditionalRawData, knowledgeSourceName, queryTime, count); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentRetrievalActivityRecord)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseRetrievalActivityRecord)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentRetrievalActivityRecord IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeBaseRetrievalActivityRecord IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentRetrievalActivityRecord(document.RootElement, options); + return DeserializeKnowledgeBaseRetrievalActivityRecord(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentRetrievalActivityRecord)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseRetrievalActivityRecord)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static new KnowledgeAgentRetrievalActivityRecord FromResponse(Response response) + internal static new KnowledgeBaseRetrievalActivityRecord FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentRetrievalActivityRecord(document.RootElement); + return DeserializeKnowledgeBaseRetrievalActivityRecord(document.RootElement); } /// Convert into a . diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRetrievalActivityRecord.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRetrievalActivityRecord.cs similarity index 54% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRetrievalActivityRecord.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRetrievalActivityRecord.cs index 8a9df4c66dcd..c668f50679f2 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRetrievalActivityRecord.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRetrievalActivityRecord.cs @@ -8,40 +8,41 @@ using System; using System.Collections.Generic; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { /// /// Represents a retrieval activity record. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , and . /// - public partial class KnowledgeAgentRetrievalActivityRecord : KnowledgeAgentActivityRecord + public partial class KnowledgeBaseRetrievalActivityRecord : KnowledgeBaseActivityRecord { - /// Initializes a new instance of . + /// Initializes a new instance of . /// The ID of the activity record. - internal KnowledgeAgentRetrievalActivityRecord(int id) : base(id) + internal KnowledgeBaseRetrievalActivityRecord(int id) : base(id) { - Type = "KnowledgeAgentRetrievalActivityRecord"; + Type = "KnowledgeBaseRetrievalActivityRecord"; } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The ID of the activity record. /// The type of the activity record. /// The elapsed time in milliseconds for the retrieval activity. + /// The error detail explaining why the operation failed. This property is only included when the activity does not succeed. /// Keeps track of any properties unknown to the library. /// The knowledge source for the retrieval activity. /// The query time for this retrieval activity. /// The count of documents retrieved that were sufficiently relevant to pass the reranker threshold. - internal KnowledgeAgentRetrievalActivityRecord(int id, string type, int? elapsedMs, IDictionary serializedAdditionalRawData, string knowledgeSourceName, DateTimeOffset? queryTime, int? count) : base(id, type, elapsedMs, serializedAdditionalRawData) + internal KnowledgeBaseRetrievalActivityRecord(int id, string type, int? elapsedMs, KnowledgeBaseErrorDetail error, IDictionary serializedAdditionalRawData, string knowledgeSourceName, DateTimeOffset? queryTime, int? count) : base(id, type, elapsedMs, error, serializedAdditionalRawData) { KnowledgeSourceName = knowledgeSourceName; QueryTime = queryTime; Count = count; - Type = type ?? "KnowledgeAgentRetrievalActivityRecord"; + Type = type ?? "KnowledgeBaseRetrievalActivityRecord"; } - /// Initializes a new instance of for deserialization. - internal KnowledgeAgentRetrievalActivityRecord() + /// Initializes a new instance of for deserialization. + internal KnowledgeBaseRetrievalActivityRecord() { } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRetrievalRequest.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRetrievalRequest.Serialization.cs new file mode 100644 index 000000000000..a09d65490c4d --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRetrievalRequest.Serialization.cs @@ -0,0 +1,293 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class KnowledgeBaseRetrievalRequest : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseRetrievalRequest)} does not support writing '{format}' format."); + } + + if (Optional.IsCollectionDefined(Messages)) + { + writer.WritePropertyName("messages"u8); + writer.WriteStartArray(); + foreach (var item in Messages) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Intents)) + { + writer.WritePropertyName("intents"u8); + writer.WriteStartArray(); + foreach (var item in Intents) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(MaxRuntimeInSeconds)) + { + writer.WritePropertyName("maxRuntimeInSeconds"u8); + writer.WriteNumberValue(MaxRuntimeInSeconds.Value); + } + if (Optional.IsDefined(MaxOutputSize)) + { + writer.WritePropertyName("maxOutputSize"u8); + writer.WriteNumberValue(MaxOutputSize.Value); + } + if (Optional.IsDefined(RetrievalReasoningEffort)) + { + writer.WritePropertyName("retrievalReasoningEffort"u8); + writer.WriteObjectValue(RetrievalReasoningEffort, options); + } + if (Optional.IsDefined(IncludeActivity)) + { + writer.WritePropertyName("includeActivity"u8); + writer.WriteBooleanValue(IncludeActivity.Value); + } + if (Optional.IsDefined(OutputMode)) + { + writer.WritePropertyName("outputMode"u8); + writer.WriteStringValue(OutputMode.Value.ToString()); + } + if (Optional.IsCollectionDefined(KnowledgeSourceParams)) + { + writer.WritePropertyName("knowledgeSourceParams"u8); + writer.WriteStartArray(); + foreach (var item in KnowledgeSourceParams) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + KnowledgeBaseRetrievalRequest IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseRetrievalRequest)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeBaseRetrievalRequest(document.RootElement, options); + } + + internal static KnowledgeBaseRetrievalRequest DeserializeKnowledgeBaseRetrievalRequest(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList messages = default; + IList intents = default; + int? maxRuntimeInSeconds = default; + int? maxOutputSize = default; + KnowledgeRetrievalReasoningEffort retrievalReasoningEffort = default; + bool? includeActivity = default; + KnowledgeRetrievalOutputMode? outputMode = default; + IList knowledgeSourceParams = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("messages"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(KnowledgeBaseMessage.DeserializeKnowledgeBaseMessage(item, options)); + } + messages = array; + continue; + } + if (property.NameEquals("intents"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(KnowledgeRetrievalIntent.DeserializeKnowledgeRetrievalIntent(item, options)); + } + intents = array; + continue; + } + if (property.NameEquals("maxRuntimeInSeconds"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + maxRuntimeInSeconds = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("maxOutputSize"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + maxOutputSize = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("retrievalReasoningEffort"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + retrievalReasoningEffort = KnowledgeRetrievalReasoningEffort.DeserializeKnowledgeRetrievalReasoningEffort(property.Value, options); + continue; + } + if (property.NameEquals("includeActivity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + includeActivity = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("outputMode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + outputMode = new KnowledgeRetrievalOutputMode(property.Value.GetString()); + continue; + } + if (property.NameEquals("knowledgeSourceParams"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(Models.KnowledgeSourceParams.DeserializeKnowledgeSourceParams(item, options)); + } + knowledgeSourceParams = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new KnowledgeBaseRetrievalRequest( + messages ?? new ChangeTrackingList(), + intents ?? new ChangeTrackingList(), + maxRuntimeInSeconds, + maxOutputSize, + retrievalReasoningEffort, + includeActivity, + outputMode, + knowledgeSourceParams ?? new ChangeTrackingList(), + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeBaseRetrievalRequest)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeBaseRetrievalRequest IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseRetrievalRequest(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeBaseRetrievalRequest)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KnowledgeBaseRetrievalRequest FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseRetrievalRequest(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRetrievalRequest.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRetrievalRequest.cs new file mode 100644 index 000000000000..16445391c340 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRetrievalRequest.cs @@ -0,0 +1,119 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// The input contract for the retrieval request. + public partial class KnowledgeBaseRetrievalRequest + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public KnowledgeBaseRetrievalRequest() + { + Messages = new ChangeTrackingList(); + Intents = new ChangeTrackingList(); + KnowledgeSourceParams = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// A list of chat message style input. + /// + /// A list of intended queries to execute without model query planning. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + /// The maximum runtime in seconds. + /// Limits the maximum size of the content in the output. + /// + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// Indicates retrieval results should include activity information. + /// The output configuration for this retrieval. + /// + /// A list of runtime parameters for the knowledge sources. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , and . + /// + /// Keeps track of any properties unknown to the library. + internal KnowledgeBaseRetrievalRequest(IList messages, IList intents, int? maxRuntimeInSeconds, int? maxOutputSize, KnowledgeRetrievalReasoningEffort retrievalReasoningEffort, bool? includeActivity, KnowledgeRetrievalOutputMode? outputMode, IList knowledgeSourceParams, IDictionary serializedAdditionalRawData) + { + Messages = messages; + Intents = intents; + MaxRuntimeInSeconds = maxRuntimeInSeconds; + MaxOutputSize = maxOutputSize; + RetrievalReasoningEffort = retrievalReasoningEffort; + IncludeActivity = includeActivity; + OutputMode = outputMode; + KnowledgeSourceParams = knowledgeSourceParams; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// A list of chat message style input. + public IList Messages { get; } + /// + /// A list of intended queries to execute without model query planning. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public IList Intents { get; } + /// The maximum runtime in seconds. + public int? MaxRuntimeInSeconds { get; set; } + /// Limits the maximum size of the content in the output. + public int? MaxOutputSize { get; set; } + /// + /// Gets or sets the retrieval reasoning effort + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public KnowledgeRetrievalReasoningEffort RetrievalReasoningEffort { get; set; } + /// Indicates retrieval results should include activity information. + public bool? IncludeActivity { get; set; } + /// The output configuration for this retrieval. + public KnowledgeRetrievalOutputMode? OutputMode { get; set; } + /// + /// A list of runtime parameters for the knowledge sources. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , and . + /// + public IList KnowledgeSourceParams { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRetrievalResponse.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRetrievalResponse.Serialization.cs similarity index 65% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRetrievalResponse.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRetrievalResponse.Serialization.cs index 428d573d8b1a..2eaed9d55f0d 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRetrievalResponse.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRetrievalResponse.Serialization.cs @@ -11,13 +11,13 @@ using System.Text.Json; using Azure.Core; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { - public partial class KnowledgeAgentRetrievalResponse : IUtf8JsonSerializable, IJsonModel + public partial class KnowledgeBaseRetrievalResponse : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, Mo /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentRetrievalResponse)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseRetrievalResponse)} does not support writing '{format}' format."); } if (Optional.IsCollectionDefined(Response)) @@ -81,19 +81,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - KnowledgeAgentRetrievalResponse IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeBaseRetrievalResponse IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentRetrievalResponse)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseRetrievalResponse)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentRetrievalResponse(document.RootElement, options); + return DeserializeKnowledgeBaseRetrievalResponse(document.RootElement, options); } - internal static KnowledgeAgentRetrievalResponse DeserializeKnowledgeAgentRetrievalResponse(JsonElement element, ModelReaderWriterOptions options = null) + internal static KnowledgeBaseRetrievalResponse DeserializeKnowledgeBaseRetrievalResponse(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -101,9 +101,9 @@ internal static KnowledgeAgentRetrievalResponse DeserializeKnowledgeAgentRetriev { return null; } - IReadOnlyList response = default; - IReadOnlyList activity = default; - IReadOnlyList references = default; + IReadOnlyList response = default; + IReadOnlyList activity = default; + IReadOnlyList references = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -114,10 +114,10 @@ internal static KnowledgeAgentRetrievalResponse DeserializeKnowledgeAgentRetriev { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(KnowledgeAgentMessage.DeserializeKnowledgeAgentMessage(item, options)); + array.Add(KnowledgeBaseMessage.DeserializeKnowledgeBaseMessage(item, options)); } response = array; continue; @@ -128,10 +128,10 @@ internal static KnowledgeAgentRetrievalResponse DeserializeKnowledgeAgentRetriev { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(KnowledgeAgentActivityRecord.DeserializeKnowledgeAgentActivityRecord(item, options)); + array.Add(KnowledgeBaseActivityRecord.DeserializeKnowledgeBaseActivityRecord(item, options)); } activity = array; continue; @@ -142,10 +142,10 @@ internal static KnowledgeAgentRetrievalResponse DeserializeKnowledgeAgentRetriev { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(KnowledgeAgentReference.DeserializeKnowledgeAgentReference(item, options)); + array.Add(KnowledgeBaseReference.DeserializeKnowledgeBaseReference(item, options)); } references = array; continue; @@ -156,46 +156,46 @@ internal static KnowledgeAgentRetrievalResponse DeserializeKnowledgeAgentRetriev } } serializedAdditionalRawData = rawDataDictionary; - return new KnowledgeAgentRetrievalResponse(response ?? new ChangeTrackingList(), activity ?? new ChangeTrackingList(), references ?? new ChangeTrackingList(), serializedAdditionalRawData); + return new KnowledgeBaseRetrievalResponse(response ?? new ChangeTrackingList(), activity ?? new ChangeTrackingList(), references ?? new ChangeTrackingList(), serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentRetrievalResponse)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseRetrievalResponse)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentRetrievalResponse IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeBaseRetrievalResponse IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentRetrievalResponse(document.RootElement, options); + return DeserializeKnowledgeBaseRetrievalResponse(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentRetrievalResponse)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseRetrievalResponse)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static KnowledgeAgentRetrievalResponse FromResponse(Response response) + internal static KnowledgeBaseRetrievalResponse FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentRetrievalResponse(document.RootElement); + return DeserializeKnowledgeBaseRetrievalResponse(document.RootElement); } /// Convert into a . diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRetrievalResponse.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRetrievalResponse.cs new file mode 100644 index 000000000000..953085be027c --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseRetrievalResponse.cs @@ -0,0 +1,92 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// The output contract for the retrieval response. + public partial class KnowledgeBaseRetrievalResponse + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal KnowledgeBaseRetrievalResponse() + { + Response = new ChangeTrackingList(); + Activity = new ChangeTrackingList(); + References = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// + /// + /// The activity records for tracking progress and billing implications. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , and . + /// + /// + /// The references for the retrieval data used in the response. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , and . + /// + /// Keeps track of any properties unknown to the library. + internal KnowledgeBaseRetrievalResponse(IReadOnlyList response, IReadOnlyList activity, IReadOnlyList references, IDictionary serializedAdditionalRawData) + { + Response = response; + Activity = activity; + References = references; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Gets the response. + public IReadOnlyList Response { get; } + /// + /// The activity records for tracking progress and billing implications. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , and . + /// + public IReadOnlyList Activity { get; } + /// + /// The references for the retrieval data used in the response. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , and . + /// + public IReadOnlyList References { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseSearchIndexActivityArguments.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseSearchIndexActivityArguments.Serialization.cs new file mode 100644 index 000000000000..022f01024085 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseSearchIndexActivityArguments.Serialization.cs @@ -0,0 +1,224 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.Search.Documents.Indexes.Models; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class KnowledgeBaseSearchIndexActivityArguments : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseSearchIndexActivityArguments)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(Search)) + { + writer.WritePropertyName("search"u8); + writer.WriteStringValue(Search); + } + if (Optional.IsDefined(Filter)) + { + writer.WritePropertyName("filter"u8); + writer.WriteStringValue(Filter); + } + if (Optional.IsCollectionDefined(SourceDataFields)) + { + writer.WritePropertyName("sourceDataFields"u8); + writer.WriteStartArray(); + foreach (var item in SourceDataFields) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(SearchFields)) + { + writer.WritePropertyName("searchFields"u8); + writer.WriteStartArray(); + foreach (var item in SearchFields) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(SemanticConfigurationName)) + { + writer.WritePropertyName("semanticConfigurationName"u8); + writer.WriteStringValue(SemanticConfigurationName); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + KnowledgeBaseSearchIndexActivityArguments IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseSearchIndexActivityArguments)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeBaseSearchIndexActivityArguments(document.RootElement, options); + } + + internal static KnowledgeBaseSearchIndexActivityArguments DeserializeKnowledgeBaseSearchIndexActivityArguments(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string search = default; + string filter = default; + IReadOnlyList sourceDataFields = default; + IReadOnlyList searchFields = default; + string semanticConfigurationName = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("search"u8)) + { + search = property.Value.GetString(); + continue; + } + if (property.NameEquals("filter"u8)) + { + filter = property.Value.GetString(); + continue; + } + if (property.NameEquals("sourceDataFields"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(SearchIndexFieldReference.DeserializeSearchIndexFieldReference(item, options)); + } + sourceDataFields = array; + continue; + } + if (property.NameEquals("searchFields"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(SearchIndexFieldReference.DeserializeSearchIndexFieldReference(item, options)); + } + searchFields = array; + continue; + } + if (property.NameEquals("semanticConfigurationName"u8)) + { + semanticConfigurationName = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new KnowledgeBaseSearchIndexActivityArguments( + search, + filter, + sourceDataFields ?? new ChangeTrackingList(), + searchFields ?? new ChangeTrackingList(), + semanticConfigurationName, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeBaseSearchIndexActivityArguments)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeBaseSearchIndexActivityArguments IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseSearchIndexActivityArguments(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeBaseSearchIndexActivityArguments)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KnowledgeBaseSearchIndexActivityArguments FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseSearchIndexActivityArguments(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseSearchIndexActivityArguments.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseSearchIndexActivityArguments.cs new file mode 100644 index 000000000000..4e04b5aa8de0 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseSearchIndexActivityArguments.cs @@ -0,0 +1,84 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Search.Documents.Indexes.Models; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// Represents the arguments the search index retrieval activity was run with. + public partial class KnowledgeBaseSearchIndexActivityArguments + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal KnowledgeBaseSearchIndexActivityArguments() + { + SourceDataFields = new ChangeTrackingList(); + SearchFields = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// The search string used to query the search index. + /// The filter string. + /// What fields were selected for search. + /// What fields were searched against. + /// What semantic configuration was used from the search index. + /// Keeps track of any properties unknown to the library. + internal KnowledgeBaseSearchIndexActivityArguments(string search, string filter, IReadOnlyList sourceDataFields, IReadOnlyList searchFields, string semanticConfigurationName, IDictionary serializedAdditionalRawData) + { + Search = search; + Filter = filter; + SourceDataFields = sourceDataFields; + SearchFields = searchFields; + SemanticConfigurationName = semanticConfigurationName; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The search string used to query the search index. + public string Search { get; } + /// The filter string. + public string Filter { get; } + /// What fields were selected for search. + public IReadOnlyList SourceDataFields { get; } + /// What fields were searched against. + public IReadOnlyList SearchFields { get; } + /// What semantic configuration was used from the search index. + public string SemanticConfigurationName { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentSearchIndexActivityRecord.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseSearchIndexActivityRecord.Serialization.cs similarity index 65% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentSearchIndexActivityRecord.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseSearchIndexActivityRecord.Serialization.cs index 17b3213326d1..5860f76b904a 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentSearchIndexActivityRecord.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseSearchIndexActivityRecord.Serialization.cs @@ -11,13 +11,13 @@ using System.Text.Json; using Azure.Core; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { - public partial class KnowledgeAgentSearchIndexActivityRecord : IUtf8JsonSerializable, IJsonModel + public partial class KnowledgeBaseSearchIndexActivityRecord : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter wr /// The client options for reading and writing models. protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentSearchIndexActivityRecord)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseSearchIndexActivityRecord)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); @@ -42,19 +42,19 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } } - KnowledgeAgentSearchIndexActivityRecord IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeBaseSearchIndexActivityRecord IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentSearchIndexActivityRecord)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseSearchIndexActivityRecord)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentSearchIndexActivityRecord(document.RootElement, options); + return DeserializeKnowledgeBaseSearchIndexActivityRecord(document.RootElement, options); } - internal static KnowledgeAgentSearchIndexActivityRecord DeserializeKnowledgeAgentSearchIndexActivityRecord(JsonElement element, ModelReaderWriterOptions options = null) + internal static KnowledgeBaseSearchIndexActivityRecord DeserializeKnowledgeBaseSearchIndexActivityRecord(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -62,13 +62,14 @@ internal static KnowledgeAgentSearchIndexActivityRecord DeserializeKnowledgeAgen { return null; } - KnowledgeAgentSearchIndexActivityArguments searchIndexArguments = default; + KnowledgeBaseSearchIndexActivityArguments searchIndexArguments = default; string knowledgeSourceName = default; DateTimeOffset? queryTime = default; int? count = default; int id = default; string type = default; int? elapsedMs = default; + KnowledgeBaseErrorDetail error = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -79,7 +80,7 @@ internal static KnowledgeAgentSearchIndexActivityRecord DeserializeKnowledgeAgen { continue; } - searchIndexArguments = KnowledgeAgentSearchIndexActivityArguments.DeserializeKnowledgeAgentSearchIndexActivityArguments(property.Value, options); + searchIndexArguments = KnowledgeBaseSearchIndexActivityArguments.DeserializeKnowledgeBaseSearchIndexActivityArguments(property.Value, options); continue; } if (property.NameEquals("knowledgeSourceName"u8)) @@ -124,16 +125,26 @@ internal static KnowledgeAgentSearchIndexActivityRecord DeserializeKnowledgeAgen elapsedMs = property.Value.GetInt32(); continue; } + if (property.NameEquals("error"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + error = KnowledgeBaseErrorDetail.DeserializeKnowledgeBaseErrorDetail(property.Value, options); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new KnowledgeAgentSearchIndexActivityRecord( + return new KnowledgeBaseSearchIndexActivityRecord( id, type, elapsedMs, + error, serializedAdditionalRawData, knowledgeSourceName, queryTime, @@ -141,43 +152,43 @@ internal static KnowledgeAgentSearchIndexActivityRecord DeserializeKnowledgeAgen searchIndexArguments); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentSearchIndexActivityRecord)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseSearchIndexActivityRecord)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentSearchIndexActivityRecord IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeBaseSearchIndexActivityRecord IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentSearchIndexActivityRecord(document.RootElement, options); + return DeserializeKnowledgeBaseSearchIndexActivityRecord(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentSearchIndexActivityRecord)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseSearchIndexActivityRecord)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static new KnowledgeAgentSearchIndexActivityRecord FromResponse(Response response) + internal static new KnowledgeBaseSearchIndexActivityRecord FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentSearchIndexActivityRecord(document.RootElement); + return DeserializeKnowledgeBaseSearchIndexActivityRecord(document.RootElement); } /// Convert into a . diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentSearchIndexActivityRecord.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseSearchIndexActivityRecord.cs similarity index 59% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentSearchIndexActivityRecord.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseSearchIndexActivityRecord.cs index ba8b420bdec6..2a21a87f1476 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentSearchIndexActivityRecord.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseSearchIndexActivityRecord.cs @@ -8,39 +8,40 @@ using System; using System.Collections.Generic; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { /// Represents a search index retrieval activity record. - public partial class KnowledgeAgentSearchIndexActivityRecord : KnowledgeAgentRetrievalActivityRecord + public partial class KnowledgeBaseSearchIndexActivityRecord : KnowledgeBaseRetrievalActivityRecord { - /// Initializes a new instance of . + /// Initializes a new instance of . /// The ID of the activity record. - internal KnowledgeAgentSearchIndexActivityRecord(int id) : base(id) + internal KnowledgeBaseSearchIndexActivityRecord(int id) : base(id) { Type = "searchIndex"; } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The ID of the activity record. /// The type of the activity record. /// The elapsed time in milliseconds for the retrieval activity. + /// The error detail explaining why the operation failed. This property is only included when the activity does not succeed. /// Keeps track of any properties unknown to the library. /// The knowledge source for the retrieval activity. /// The query time for this retrieval activity. /// The count of documents retrieved that were sufficiently relevant to pass the reranker threshold. /// The search index arguments for the retrieval activity. - internal KnowledgeAgentSearchIndexActivityRecord(int id, string type, int? elapsedMs, IDictionary serializedAdditionalRawData, string knowledgeSourceName, DateTimeOffset? queryTime, int? count, KnowledgeAgentSearchIndexActivityArguments searchIndexArguments) : base(id, type, elapsedMs, serializedAdditionalRawData, knowledgeSourceName, queryTime, count) + internal KnowledgeBaseSearchIndexActivityRecord(int id, string type, int? elapsedMs, KnowledgeBaseErrorDetail error, IDictionary serializedAdditionalRawData, string knowledgeSourceName, DateTimeOffset? queryTime, int? count, KnowledgeBaseSearchIndexActivityArguments searchIndexArguments) : base(id, type, elapsedMs, error, serializedAdditionalRawData, knowledgeSourceName, queryTime, count) { SearchIndexArguments = searchIndexArguments; Type = type ?? "searchIndex"; } - /// Initializes a new instance of for deserialization. - internal KnowledgeAgentSearchIndexActivityRecord() + /// Initializes a new instance of for deserialization. + internal KnowledgeBaseSearchIndexActivityRecord() { } /// The search index arguments for the retrieval activity. - public KnowledgeAgentSearchIndexActivityArguments SearchIndexArguments { get; } + public KnowledgeBaseSearchIndexActivityArguments SearchIndexArguments { get; } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentSearchIndexReference.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseSearchIndexReference.Serialization.cs similarity index 72% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentSearchIndexReference.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseSearchIndexReference.Serialization.cs index 7d9be10eaa62..c7f3026245f3 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentSearchIndexReference.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseSearchIndexReference.Serialization.cs @@ -11,13 +11,13 @@ using System.Text.Json; using Azure.Core; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { - public partial class KnowledgeAgentSearchIndexReference : IUtf8JsonSerializable, IJsonModel + public partial class KnowledgeBaseSearchIndexReference : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,10 +28,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, /// The client options for reading and writing models. protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentSearchIndexReference)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseSearchIndexReference)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); @@ -42,19 +42,19 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } } - KnowledgeAgentSearchIndexReference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeBaseSearchIndexReference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentSearchIndexReference)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseSearchIndexReference)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentSearchIndexReference(document.RootElement, options); + return DeserializeKnowledgeBaseSearchIndexReference(document.RootElement, options); } - internal static KnowledgeAgentSearchIndexReference DeserializeKnowledgeAgentSearchIndexReference(JsonElement element, ModelReaderWriterOptions options = null) + internal static KnowledgeBaseSearchIndexReference DeserializeKnowledgeBaseSearchIndexReference(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -128,7 +128,7 @@ internal static KnowledgeAgentSearchIndexReference DeserializeKnowledgeAgentSear } } serializedAdditionalRawData = rawDataDictionary; - return new KnowledgeAgentSearchIndexReference( + return new KnowledgeBaseSearchIndexReference( type, id, activitySource, @@ -138,43 +138,43 @@ internal static KnowledgeAgentSearchIndexReference DeserializeKnowledgeAgentSear docKey); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentSearchIndexReference)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseSearchIndexReference)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentSearchIndexReference IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeBaseSearchIndexReference IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentSearchIndexReference(document.RootElement, options); + return DeserializeKnowledgeBaseSearchIndexReference(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentSearchIndexReference)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseSearchIndexReference)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static new KnowledgeAgentSearchIndexReference FromResponse(Response response) + internal static new KnowledgeBaseSearchIndexReference FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentSearchIndexReference(document.RootElement); + return DeserializeKnowledgeBaseSearchIndexReference(document.RootElement); } /// Convert into a . diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentSearchIndexReference.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseSearchIndexReference.cs similarity index 67% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentSearchIndexReference.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseSearchIndexReference.cs index a7c4da066381..a5ccadb0f7b2 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentSearchIndexReference.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseSearchIndexReference.cs @@ -8,23 +8,23 @@ using System; using System.Collections.Generic; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { /// Represents an Azure Search document reference. - public partial class KnowledgeAgentSearchIndexReference : KnowledgeAgentReference + public partial class KnowledgeBaseSearchIndexReference : KnowledgeBaseReference { - /// Initializes a new instance of . + /// Initializes a new instance of . /// The ID of the reference. /// The source activity ID for the reference. /// is null. - internal KnowledgeAgentSearchIndexReference(string id, int activitySource) : base(id, activitySource) + internal KnowledgeBaseSearchIndexReference(string id, int activitySource) : base(id, activitySource) { Argument.AssertNotNull(id, nameof(id)); Type = "searchIndex"; } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The type of the reference. /// The ID of the reference. /// The source activity ID for the reference. @@ -32,14 +32,14 @@ internal KnowledgeAgentSearchIndexReference(string id, int activitySource) : bas /// The reranker score for the document reference. /// Keeps track of any properties unknown to the library. /// The document key for the reference. - internal KnowledgeAgentSearchIndexReference(string type, string id, int activitySource, IReadOnlyDictionary sourceData, float? rerankerScore, IDictionary serializedAdditionalRawData, string docKey) : base(type, id, activitySource, sourceData, rerankerScore, serializedAdditionalRawData) + internal KnowledgeBaseSearchIndexReference(string type, string id, int activitySource, IReadOnlyDictionary sourceData, float? rerankerScore, IDictionary serializedAdditionalRawData, string docKey) : base(type, id, activitySource, sourceData, rerankerScore, serializedAdditionalRawData) { DocKey = docKey; Type = type ?? "searchIndex"; } - /// Initializes a new instance of for deserialization. - internal KnowledgeAgentSearchIndexReference() + /// Initializes a new instance of for deserialization. + internal KnowledgeBaseSearchIndexReference() { } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentOutputConfiguration.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseWebActivityArguments.Serialization.cs similarity index 57% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentOutputConfiguration.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseWebActivityArguments.Serialization.cs index ef9716a3354b..c138f2ff2543 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentOutputConfiguration.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseWebActivityArguments.Serialization.cs @@ -10,15 +10,14 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; -using Azure.Search.Documents.Models; -namespace Azure.Search.Documents.Indexes.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { - public partial class KnowledgeAgentOutputConfiguration : IUtf8JsonSerializable, IJsonModel + public partial class KnowledgeBaseWebActivityArguments : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -29,31 +28,36 @@ void IJsonModel.Write(Utf8JsonWriter writer, /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentOutputConfiguration)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseWebActivityArguments)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Modality)) + if (Optional.IsDefined(Search)) { - writer.WritePropertyName("modality"u8); - writer.WriteStringValue(Modality.Value.ToString()); + writer.WritePropertyName("search"u8); + writer.WriteStringValue(Search); } - if (Optional.IsDefined(AnswerInstructions)) + if (Optional.IsDefined(Language)) { - writer.WritePropertyName("answerInstructions"u8); - writer.WriteStringValue(AnswerInstructions); + writer.WritePropertyName("language"u8); + writer.WriteStringValue(Language); } - if (Optional.IsDefined(AttemptFastPath)) + if (Optional.IsDefined(Market)) { - writer.WritePropertyName("attemptFastPath"u8); - writer.WriteBooleanValue(AttemptFastPath.Value); + writer.WritePropertyName("market"u8); + writer.WriteStringValue(Market); } - if (Optional.IsDefined(IncludeActivity)) + if (Optional.IsDefined(Count)) { - writer.WritePropertyName("includeActivity"u8); - writer.WriteBooleanValue(IncludeActivity.Value); + writer.WritePropertyName("count"u8); + writer.WriteNumberValue(Count.Value); + } + if (Optional.IsDefined(Freshness)) + { + writer.WritePropertyName("freshness"u8); + writer.WriteStringValue(Freshness); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -72,19 +76,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - KnowledgeAgentOutputConfiguration IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeBaseWebActivityArguments IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentOutputConfiguration)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseWebActivityArguments)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentOutputConfiguration(document.RootElement, options); + return DeserializeKnowledgeBaseWebActivityArguments(document.RootElement, options); } - internal static KnowledgeAgentOutputConfiguration DeserializeKnowledgeAgentOutputConfiguration(JsonElement element, ModelReaderWriterOptions options = null) + internal static KnowledgeBaseWebActivityArguments DeserializeKnowledgeBaseWebActivityArguments(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -92,44 +96,42 @@ internal static KnowledgeAgentOutputConfiguration DeserializeKnowledgeAgentOutpu { return null; } - KnowledgeAgentOutputConfigurationModality? modality = default; - string answerInstructions = default; - bool? attemptFastPath = default; - bool? includeActivity = default; + string search = default; + string language = default; + string market = default; + int? count = default; + string freshness = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("modality"u8)) + if (property.NameEquals("search"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - modality = new KnowledgeAgentOutputConfigurationModality(property.Value.GetString()); + search = property.Value.GetString(); continue; } - if (property.NameEquals("answerInstructions"u8)) + if (property.NameEquals("language"u8)) { - answerInstructions = property.Value.GetString(); + language = property.Value.GetString(); continue; } - if (property.NameEquals("attemptFastPath"u8)) + if (property.NameEquals("market"u8)) { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - attemptFastPath = property.Value.GetBoolean(); + market = property.Value.GetString(); continue; } - if (property.NameEquals("includeActivity"u8)) + if (property.NameEquals("count"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - includeActivity = property.Value.GetBoolean(); + count = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("freshness"u8)) + { + freshness = property.Value.GetString(); continue; } if (options.Format != "W") @@ -138,46 +140,52 @@ internal static KnowledgeAgentOutputConfiguration DeserializeKnowledgeAgentOutpu } } serializedAdditionalRawData = rawDataDictionary; - return new KnowledgeAgentOutputConfiguration(modality, answerInstructions, attemptFastPath, includeActivity, serializedAdditionalRawData); + return new KnowledgeBaseWebActivityArguments( + search, + language, + market, + count, + freshness, + serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentOutputConfiguration)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseWebActivityArguments)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentOutputConfiguration IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeBaseWebActivityArguments IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentOutputConfiguration(document.RootElement, options); + return DeserializeKnowledgeBaseWebActivityArguments(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentOutputConfiguration)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseWebActivityArguments)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static KnowledgeAgentOutputConfiguration FromResponse(Response response) + internal static KnowledgeBaseWebActivityArguments FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentOutputConfiguration(document.RootElement); + return DeserializeKnowledgeBaseWebActivityArguments(document.RootElement); } /// Convert into a . diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseWebActivityArguments.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseWebActivityArguments.cs new file mode 100644 index 000000000000..0f0035d90c05 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseWebActivityArguments.cs @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// Represents the arguments the web retrieval activity was run with. + public partial class KnowledgeBaseWebActivityArguments + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal KnowledgeBaseWebActivityArguments() + { + } + + /// Initializes a new instance of . + /// The search string used to query the web. + /// The language for the retrieval activity. + /// The market for the retrieval activity. + /// The number of web results returned. + /// The freshness for the retrieval activity. + /// Keeps track of any properties unknown to the library. + internal KnowledgeBaseWebActivityArguments(string search, string language, string market, int? count, string freshness, IDictionary serializedAdditionalRawData) + { + Search = search; + Language = language; + Market = market; + Count = count; + Freshness = freshness; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The search string used to query the web. + public string Search { get; } + /// The language for the retrieval activity. + public string Language { get; } + /// The market for the retrieval activity. + public string Market { get; } + /// The number of web results returned. + public int? Count { get; } + /// The freshness for the retrieval activity. + public string Freshness { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseWebActivityRecord.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseWebActivityRecord.Serialization.cs new file mode 100644 index 000000000000..fb2cc2bcdae2 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseWebActivityRecord.Serialization.cs @@ -0,0 +1,202 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class KnowledgeBaseWebActivityRecord : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseWebActivityRecord)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(WebArguments)) + { + writer.WritePropertyName("webArguments"u8); + writer.WriteObjectValue(WebArguments, options); + } + } + + KnowledgeBaseWebActivityRecord IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseWebActivityRecord)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeBaseWebActivityRecord(document.RootElement, options); + } + + internal static KnowledgeBaseWebActivityRecord DeserializeKnowledgeBaseWebActivityRecord(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + KnowledgeBaseWebActivityArguments webArguments = default; + string knowledgeSourceName = default; + DateTimeOffset? queryTime = default; + int? count = default; + int id = default; + string type = default; + int? elapsedMs = default; + KnowledgeBaseErrorDetail error = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("webArguments"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + webArguments = KnowledgeBaseWebActivityArguments.DeserializeKnowledgeBaseWebActivityArguments(property.Value, options); + continue; + } + if (property.NameEquals("knowledgeSourceName"u8)) + { + knowledgeSourceName = property.Value.GetString(); + continue; + } + if (property.NameEquals("queryTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + queryTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("count"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + count = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("id"u8)) + { + id = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("elapsedMs"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + elapsedMs = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("error"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + error = KnowledgeBaseErrorDetail.DeserializeKnowledgeBaseErrorDetail(property.Value, options); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new KnowledgeBaseWebActivityRecord( + id, + type, + elapsedMs, + error, + serializedAdditionalRawData, + knowledgeSourceName, + queryTime, + count, + webArguments); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeBaseWebActivityRecord)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeBaseWebActivityRecord IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseWebActivityRecord(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeBaseWebActivityRecord)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KnowledgeBaseWebActivityRecord FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseWebActivityRecord(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseWebActivityRecord.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseWebActivityRecord.cs new file mode 100644 index 000000000000..035363e8c348 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseWebActivityRecord.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// Represents a web retrieval activity record. + public partial class KnowledgeBaseWebActivityRecord : KnowledgeBaseRetrievalActivityRecord + { + /// Initializes a new instance of . + /// The ID of the activity record. + internal KnowledgeBaseWebActivityRecord(int id) : base(id) + { + Type = "web"; + } + + /// Initializes a new instance of . + /// The ID of the activity record. + /// The type of the activity record. + /// The elapsed time in milliseconds for the retrieval activity. + /// The error detail explaining why the operation failed. This property is only included when the activity does not succeed. + /// Keeps track of any properties unknown to the library. + /// The knowledge source for the retrieval activity. + /// The query time for this retrieval activity. + /// The count of documents retrieved that were sufficiently relevant to pass the reranker threshold. + /// The web arguments for the retrieval activity. + internal KnowledgeBaseWebActivityRecord(int id, string type, int? elapsedMs, KnowledgeBaseErrorDetail error, IDictionary serializedAdditionalRawData, string knowledgeSourceName, DateTimeOffset? queryTime, int? count, KnowledgeBaseWebActivityArguments webArguments) : base(id, type, elapsedMs, error, serializedAdditionalRawData, knowledgeSourceName, queryTime, count) + { + WebArguments = webArguments; + Type = type ?? "web"; + } + + /// Initializes a new instance of for deserialization. + internal KnowledgeBaseWebActivityRecord() + { + } + + /// The web arguments for the retrieval activity. + public KnowledgeBaseWebActivityArguments WebArguments { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseWebReference.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseWebReference.Serialization.cs new file mode 100644 index 000000000000..0acc679a9f4d --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseWebReference.Serialization.cs @@ -0,0 +1,204 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class KnowledgeBaseWebReference : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseWebReference)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(Url)) + { + writer.WritePropertyName("url"u8); + writer.WriteStringValue(Url.AbsoluteUri); + } + if (Optional.IsDefined(Title)) + { + writer.WritePropertyName("title"u8); + writer.WriteStringValue(Title); + } + } + + KnowledgeBaseWebReference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeBaseWebReference)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeBaseWebReference(document.RootElement, options); + } + + internal static KnowledgeBaseWebReference DeserializeKnowledgeBaseWebReference(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Uri url = default; + string title = default; + string type = default; + string id = default; + int activitySource = default; + IReadOnlyDictionary sourceData = default; + float? rerankerScore = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("url"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + url = new Uri(property.Value.GetString()); + continue; + } + if (property.NameEquals("title"u8)) + { + title = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("id"u8)) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("activitySource"u8)) + { + activitySource = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("sourceData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(property0.Name, null); + } + else + { + dictionary.Add(property0.Name, property0.Value.GetObject()); + } + } + sourceData = dictionary; + continue; + } + if (property.NameEquals("rerankerScore"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rerankerScore = property.Value.GetSingle(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new KnowledgeBaseWebReference( + type, + id, + activitySource, + sourceData ?? new ChangeTrackingDictionary(), + rerankerScore, + serializedAdditionalRawData, + url, + title); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeBaseWebReference)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeBaseWebReference IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseWebReference(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeBaseWebReference)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KnowledgeBaseWebReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeBaseWebReference(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseWebReference.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseWebReference.cs new file mode 100644 index 000000000000..5418c463ab93 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeBaseWebReference.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// Represents a web document reference. + public partial class KnowledgeBaseWebReference : KnowledgeBaseReference + { + /// Initializes a new instance of . + /// The ID of the reference. + /// The source activity ID for the reference. + /// is null. + internal KnowledgeBaseWebReference(string id, int activitySource) : base(id, activitySource) + { + Argument.AssertNotNull(id, nameof(id)); + + Type = "web"; + } + + /// Initializes a new instance of . + /// The type of the reference. + /// The ID of the reference. + /// The source activity ID for the reference. + /// Dictionary of <any>. + /// The reranker score for the document reference. + /// Keeps track of any properties unknown to the library. + /// The url the reference data originated from. + /// The title of the web document. + internal KnowledgeBaseWebReference(string type, string id, int activitySource, IReadOnlyDictionary sourceData, float? rerankerScore, IDictionary serializedAdditionalRawData, Uri url, string title) : base(type, id, activitySource, sourceData, rerankerScore, serializedAdditionalRawData) + { + Url = url; + Title = title; + Type = type ?? "web"; + } + + /// Initializes a new instance of for deserialization. + internal KnowledgeBaseWebReference() + { + } + + /// The url the reference data originated from. + public Uri Url { get; } + /// The title of the web document. + public string Title { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalIntent.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalIntent.Serialization.cs new file mode 100644 index 000000000000..86a5009048d5 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalIntent.Serialization.cs @@ -0,0 +1,134 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; +using Azure.Core; +using Azure.Search.Documents.Models; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + [PersistableModelProxy(typeof(UnknownKnowledgeRetrievalIntent))] + public partial class KnowledgeRetrievalIntent : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeRetrievalIntent)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("type"u8); + writer.WriteStringValue(Type.ToString()); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + KnowledgeRetrievalIntent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeRetrievalIntent)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeRetrievalIntent(document.RootElement, options); + } + + internal static KnowledgeRetrievalIntent DeserializeKnowledgeRetrievalIntent(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("type", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "semantic": return KnowledgeRetrievalSemanticIntent.DeserializeKnowledgeRetrievalSemanticIntent(element, options); + } + } + return UnknownKnowledgeRetrievalIntent.DeserializeUnknownKnowledgeRetrievalIntent(element, options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeRetrievalIntent)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeRetrievalIntent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeRetrievalIntent(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeRetrievalIntent)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KnowledgeRetrievalIntent FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeRetrievalIntent(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalIntent.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalIntent.cs new file mode 100644 index 000000000000..960e431d358a --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalIntent.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// + /// An intended query to execute without model query planning. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public abstract partial class KnowledgeRetrievalIntent + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private protected IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + protected KnowledgeRetrievalIntent() + { + } + + /// Initializes a new instance of . + /// The type of the intent. + /// Keeps track of any properties unknown to the library. + internal KnowledgeRetrievalIntent(KnowledgeRetrievalIntentType type, IDictionary serializedAdditionalRawData) + { + Type = type; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The type of the intent. + internal KnowledgeRetrievalIntentType Type { get; set; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalIntentType.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalIntentType.cs new file mode 100644 index 000000000000..a26151a137fd --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalIntentType.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// The kind of knowledge base configuration to use. + public readonly partial struct KnowledgeRetrievalIntentType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public KnowledgeRetrievalIntentType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SemanticValue = "semantic"; + + /// A natural language semantic query intent. + public static KnowledgeRetrievalIntentType Semantic { get; } = new KnowledgeRetrievalIntentType(SemanticValue); + /// Determines if two values are the same. + public static bool operator ==(KnowledgeRetrievalIntentType left, KnowledgeRetrievalIntentType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(KnowledgeRetrievalIntentType left, KnowledgeRetrievalIntentType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator KnowledgeRetrievalIntentType(string value) => new KnowledgeRetrievalIntentType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is KnowledgeRetrievalIntentType other && Equals(other); + /// + public bool Equals(KnowledgeRetrievalIntentType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalLowReasoningEffort.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalLowReasoningEffort.Serialization.cs new file mode 100644 index 000000000000..9884a9542683 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalLowReasoningEffort.Serialization.cs @@ -0,0 +1,126 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class KnowledgeRetrievalLowReasoningEffort : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeRetrievalLowReasoningEffort)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + } + + KnowledgeRetrievalLowReasoningEffort IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeRetrievalLowReasoningEffort)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeRetrievalLowReasoningEffort(document.RootElement, options); + } + + internal static KnowledgeRetrievalLowReasoningEffort DeserializeKnowledgeRetrievalLowReasoningEffort(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + KnowledgeRetrievalReasoningEffortKind kind = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("kind"u8)) + { + kind = new KnowledgeRetrievalReasoningEffortKind(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new KnowledgeRetrievalLowReasoningEffort(kind, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeRetrievalLowReasoningEffort)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeRetrievalLowReasoningEffort IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeRetrievalLowReasoningEffort(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeRetrievalLowReasoningEffort)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KnowledgeRetrievalLowReasoningEffort FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeRetrievalLowReasoningEffort(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalLowReasoningEffort.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalLowReasoningEffort.cs new file mode 100644 index 000000000000..cfa599750a12 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalLowReasoningEffort.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// Run knowledge retrieval with low reasoning effort. + public partial class KnowledgeRetrievalLowReasoningEffort : KnowledgeRetrievalReasoningEffort + { + /// Initializes a new instance of . + public KnowledgeRetrievalLowReasoningEffort() + { + Kind = KnowledgeRetrievalReasoningEffortKind.Low; + } + + /// Initializes a new instance of . + /// The kind of reasoning effort. + /// Keeps track of any properties unknown to the library. + internal KnowledgeRetrievalLowReasoningEffort(KnowledgeRetrievalReasoningEffortKind kind, IDictionary serializedAdditionalRawData) : base(kind, serializedAdditionalRawData) + { + Kind = kind; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalMediumReasoningEffort.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalMediumReasoningEffort.Serialization.cs new file mode 100644 index 000000000000..a997c0150f5c --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalMediumReasoningEffort.Serialization.cs @@ -0,0 +1,126 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class KnowledgeRetrievalMediumReasoningEffort : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeRetrievalMediumReasoningEffort)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + } + + KnowledgeRetrievalMediumReasoningEffort IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeRetrievalMediumReasoningEffort)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeRetrievalMediumReasoningEffort(document.RootElement, options); + } + + internal static KnowledgeRetrievalMediumReasoningEffort DeserializeKnowledgeRetrievalMediumReasoningEffort(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + KnowledgeRetrievalReasoningEffortKind kind = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("kind"u8)) + { + kind = new KnowledgeRetrievalReasoningEffortKind(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new KnowledgeRetrievalMediumReasoningEffort(kind, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeRetrievalMediumReasoningEffort)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeRetrievalMediumReasoningEffort IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeRetrievalMediumReasoningEffort(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeRetrievalMediumReasoningEffort)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KnowledgeRetrievalMediumReasoningEffort FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeRetrievalMediumReasoningEffort(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalMediumReasoningEffort.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalMediumReasoningEffort.cs new file mode 100644 index 000000000000..cf25d1ce1f45 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalMediumReasoningEffort.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// Run knowledge retrieval with medium reasoning effort. + public partial class KnowledgeRetrievalMediumReasoningEffort : KnowledgeRetrievalReasoningEffort + { + /// Initializes a new instance of . + public KnowledgeRetrievalMediumReasoningEffort() + { + Kind = KnowledgeRetrievalReasoningEffortKind.Medium; + } + + /// Initializes a new instance of . + /// The kind of reasoning effort. + /// Keeps track of any properties unknown to the library. + internal KnowledgeRetrievalMediumReasoningEffort(KnowledgeRetrievalReasoningEffortKind kind, IDictionary serializedAdditionalRawData) : base(kind, serializedAdditionalRawData) + { + Kind = kind; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalMinimalReasoningEffort.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalMinimalReasoningEffort.Serialization.cs new file mode 100644 index 000000000000..4dbe2a4990a6 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalMinimalReasoningEffort.Serialization.cs @@ -0,0 +1,126 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class KnowledgeRetrievalMinimalReasoningEffort : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeRetrievalMinimalReasoningEffort)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + } + + KnowledgeRetrievalMinimalReasoningEffort IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeRetrievalMinimalReasoningEffort)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeRetrievalMinimalReasoningEffort(document.RootElement, options); + } + + internal static KnowledgeRetrievalMinimalReasoningEffort DeserializeKnowledgeRetrievalMinimalReasoningEffort(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + KnowledgeRetrievalReasoningEffortKind kind = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("kind"u8)) + { + kind = new KnowledgeRetrievalReasoningEffortKind(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new KnowledgeRetrievalMinimalReasoningEffort(kind, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeRetrievalMinimalReasoningEffort)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeRetrievalMinimalReasoningEffort IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeRetrievalMinimalReasoningEffort(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeRetrievalMinimalReasoningEffort)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KnowledgeRetrievalMinimalReasoningEffort FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeRetrievalMinimalReasoningEffort(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalMinimalReasoningEffort.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalMinimalReasoningEffort.cs new file mode 100644 index 000000000000..a42c9b14e065 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalMinimalReasoningEffort.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// Run knowledge retrieval with minimal reasoning effort. + public partial class KnowledgeRetrievalMinimalReasoningEffort : KnowledgeRetrievalReasoningEffort + { + /// Initializes a new instance of . + public KnowledgeRetrievalMinimalReasoningEffort() + { + Kind = KnowledgeRetrievalReasoningEffortKind.Minimal; + } + + /// Initializes a new instance of . + /// The kind of reasoning effort. + /// Keeps track of any properties unknown to the library. + internal KnowledgeRetrievalMinimalReasoningEffort(KnowledgeRetrievalReasoningEffortKind kind, IDictionary serializedAdditionalRawData) : base(kind, serializedAdditionalRawData) + { + Kind = kind; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalOutputMode.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalOutputMode.cs new file mode 100644 index 000000000000..6c9bb45877f0 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalOutputMode.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// The output configuration for this retrieval. + public readonly partial struct KnowledgeRetrievalOutputMode : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public KnowledgeRetrievalOutputMode(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ExtractiveDataValue = "extractiveData"; + private const string AnswerSynthesisValue = "answerSynthesis"; + + /// Return data from the knowledge sources directly without generative alteration. + public static KnowledgeRetrievalOutputMode ExtractiveData { get; } = new KnowledgeRetrievalOutputMode(ExtractiveDataValue); + /// Synthesize an answer for the response payload. + public static KnowledgeRetrievalOutputMode AnswerSynthesis { get; } = new KnowledgeRetrievalOutputMode(AnswerSynthesisValue); + /// Determines if two values are the same. + public static bool operator ==(KnowledgeRetrievalOutputMode left, KnowledgeRetrievalOutputMode right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(KnowledgeRetrievalOutputMode left, KnowledgeRetrievalOutputMode right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator KnowledgeRetrievalOutputMode(string value) => new KnowledgeRetrievalOutputMode(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is KnowledgeRetrievalOutputMode other && Equals(other); + /// + public bool Equals(KnowledgeRetrievalOutputMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalReasoningEffort.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalReasoningEffort.Serialization.cs new file mode 100644 index 000000000000..e3e581a7f2f8 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalReasoningEffort.Serialization.cs @@ -0,0 +1,136 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; +using Azure.Core; +using Azure.Search.Documents.Models; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + [PersistableModelProxy(typeof(UnknownKnowledgeRetrievalReasoningEffort))] + public partial class KnowledgeRetrievalReasoningEffort : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeRetrievalReasoningEffort)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(Kind.ToString()); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + KnowledgeRetrievalReasoningEffort IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeRetrievalReasoningEffort)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeRetrievalReasoningEffort(document.RootElement, options); + } + + internal static KnowledgeRetrievalReasoningEffort DeserializeKnowledgeRetrievalReasoningEffort(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("kind", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "low": return KnowledgeRetrievalLowReasoningEffort.DeserializeKnowledgeRetrievalLowReasoningEffort(element, options); + case "medium": return KnowledgeRetrievalMediumReasoningEffort.DeserializeKnowledgeRetrievalMediumReasoningEffort(element, options); + case "minimal": return KnowledgeRetrievalMinimalReasoningEffort.DeserializeKnowledgeRetrievalMinimalReasoningEffort(element, options); + } + } + return UnknownKnowledgeRetrievalReasoningEffort.DeserializeUnknownKnowledgeRetrievalReasoningEffort(element, options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeRetrievalReasoningEffort)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeRetrievalReasoningEffort IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeRetrievalReasoningEffort(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeRetrievalReasoningEffort)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KnowledgeRetrievalReasoningEffort FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeRetrievalReasoningEffort(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalReasoningEffort.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalReasoningEffort.cs new file mode 100644 index 000000000000..3984d69278fb --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalReasoningEffort.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// + /// The KnowledgeRetrievalReasoningEffort. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + public abstract partial class KnowledgeRetrievalReasoningEffort + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private protected IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + protected KnowledgeRetrievalReasoningEffort() + { + } + + /// Initializes a new instance of . + /// The kind of reasoning effort. + /// Keeps track of any properties unknown to the library. + internal KnowledgeRetrievalReasoningEffort(KnowledgeRetrievalReasoningEffortKind kind, IDictionary serializedAdditionalRawData) + { + Kind = kind; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The kind of reasoning effort. + internal KnowledgeRetrievalReasoningEffortKind Kind { get; set; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalReasoningEffortKind.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalReasoningEffortKind.cs new file mode 100644 index 000000000000..56ed0811acbb --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalReasoningEffortKind.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// The amount of effort to use during retrieval. + public readonly partial struct KnowledgeRetrievalReasoningEffortKind : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public KnowledgeRetrievalReasoningEffortKind(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string MinimalValue = "minimal"; + private const string LowValue = "low"; + private const string MediumValue = "medium"; + + /// Does not perform any source selections, any query planning, or any iterative search. + public static KnowledgeRetrievalReasoningEffortKind Minimal { get; } = new KnowledgeRetrievalReasoningEffortKind(MinimalValue); + /// Use low reasoning during retrieval. + public static KnowledgeRetrievalReasoningEffortKind Low { get; } = new KnowledgeRetrievalReasoningEffortKind(LowValue); + /// Use a moderate amount of reasoning during retrieval. + public static KnowledgeRetrievalReasoningEffortKind Medium { get; } = new KnowledgeRetrievalReasoningEffortKind(MediumValue); + /// Determines if two values are the same. + public static bool operator ==(KnowledgeRetrievalReasoningEffortKind left, KnowledgeRetrievalReasoningEffortKind right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(KnowledgeRetrievalReasoningEffortKind left, KnowledgeRetrievalReasoningEffortKind right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator KnowledgeRetrievalReasoningEffortKind(string value) => new KnowledgeRetrievalReasoningEffortKind(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is KnowledgeRetrievalReasoningEffortKind other && Equals(other); + /// + public bool Equals(KnowledgeRetrievalReasoningEffortKind other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageTextContent.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalSemanticIntent.Serialization.cs similarity index 66% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageTextContent.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalSemanticIntent.Serialization.cs index 10407c7c3e03..4561c936e9b4 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageTextContent.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalSemanticIntent.Serialization.cs @@ -11,13 +11,13 @@ using System.Text.Json; using Azure.Core; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { - public partial class KnowledgeAgentMessageTextContent : IUtf8JsonSerializable, IJsonModel + public partial class KnowledgeRetrievalSemanticIntent : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,30 +28,30 @@ void IJsonModel.Write(Utf8JsonWriter writer, M /// The client options for reading and writing models. protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentMessageTextContent)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeRetrievalSemanticIntent)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); - writer.WritePropertyName("text"u8); - writer.WriteStringValue(Text); + writer.WritePropertyName("search"u8); + writer.WriteStringValue(Search); } - KnowledgeAgentMessageTextContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeRetrievalSemanticIntent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentMessageTextContent)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeRetrievalSemanticIntent)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentMessageTextContent(document.RootElement, options); + return DeserializeKnowledgeRetrievalSemanticIntent(document.RootElement, options); } - internal static KnowledgeAgentMessageTextContent DeserializeKnowledgeAgentMessageTextContent(JsonElement element, ModelReaderWriterOptions options = null) + internal static KnowledgeRetrievalSemanticIntent DeserializeKnowledgeRetrievalSemanticIntent(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -59,20 +59,20 @@ internal static KnowledgeAgentMessageTextContent DeserializeKnowledgeAgentMessag { return null; } - string text = default; - KnowledgeAgentMessageContentType type = default; + string search = default; + KnowledgeRetrievalIntentType type = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("text"u8)) + if (property.NameEquals("search"u8)) { - text = property.Value.GetString(); + search = property.Value.GetString(); continue; } if (property.NameEquals("type"u8)) { - type = new KnowledgeAgentMessageContentType(property.Value.GetString()); + type = new KnowledgeRetrievalIntentType(property.Value.GetString()); continue; } if (options.Format != "W") @@ -81,46 +81,46 @@ internal static KnowledgeAgentMessageTextContent DeserializeKnowledgeAgentMessag } } serializedAdditionalRawData = rawDataDictionary; - return new KnowledgeAgentMessageTextContent(type, serializedAdditionalRawData, text); + return new KnowledgeRetrievalSemanticIntent(type, serializedAdditionalRawData, search); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentMessageTextContent)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeRetrievalSemanticIntent)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentMessageTextContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeRetrievalSemanticIntent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentMessageTextContent(document.RootElement, options); + return DeserializeKnowledgeRetrievalSemanticIntent(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentMessageTextContent)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeRetrievalSemanticIntent)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static new KnowledgeAgentMessageTextContent FromResponse(Response response) + internal static new KnowledgeRetrievalSemanticIntent FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentMessageTextContent(document.RootElement); + return DeserializeKnowledgeRetrievalSemanticIntent(document.RootElement); } /// Convert into a . diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalSemanticIntent.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalSemanticIntent.cs new file mode 100644 index 000000000000..b2676cfd8566 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeRetrievalSemanticIntent.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// The KnowledgeRetrievalSemanticIntent. + public partial class KnowledgeRetrievalSemanticIntent : KnowledgeRetrievalIntent + { + /// Initializes a new instance of . + /// The semantic query to execute. + /// is null. + public KnowledgeRetrievalSemanticIntent(string search) + { + Argument.AssertNotNull(search, nameof(search)); + + Search = search; + Type = KnowledgeRetrievalIntentType.Semantic; + } + + /// Initializes a new instance of . + /// The type of the intent. + /// Keeps track of any properties unknown to the library. + /// The semantic query to execute. + internal KnowledgeRetrievalSemanticIntent(KnowledgeRetrievalIntentType type, IDictionary serializedAdditionalRawData, string search) : base(type, serializedAdditionalRawData) + { + Search = search; + Type = type; + } + + /// Initializes a new instance of for deserialization. + internal KnowledgeRetrievalSemanticIntent() + { + } + + /// The semantic query to execute. + public string Search { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSource.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSource.Serialization.cs index c18d9159a44c..25a45860b44f 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSource.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSource.Serialization.cs @@ -103,7 +103,11 @@ internal static KnowledgeSource DeserializeKnowledgeSource(JsonElement element, switch (discriminator.GetString()) { case "azureBlob": return AzureBlobKnowledgeSource.DeserializeAzureBlobKnowledgeSource(element, options); + case "indexedOneLake": return IndexedOneLakeKnowledgeSource.DeserializeIndexedOneLakeKnowledgeSource(element, options); + case "indexedSharePoint": return IndexedSharePointKnowledgeSource.DeserializeIndexedSharePointKnowledgeSource(element, options); + case "remoteSharePoint": return RemoteSharePointKnowledgeSource.DeserializeRemoteSharePointKnowledgeSource(element, options); case "searchIndex": return SearchIndexKnowledgeSource.DeserializeSearchIndexKnowledgeSource(element, options); + case "web": return WebKnowledgeSource.DeserializeWebKnowledgeSource(element, options); } } return UnknownKnowledgeSource.DeserializeUnknownKnowledgeSource(element, options); diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSource.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSource.cs index 6691ff2d5173..2a3a0694206e 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSource.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSource.cs @@ -13,7 +13,7 @@ namespace Azure.Search.Documents.Indexes.Models /// /// Represents a knowledge source definition. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// The available derived classes include , , , , and . /// public abstract partial class KnowledgeSource { @@ -63,8 +63,8 @@ protected KnowledgeSource(string name) /// The name of the knowledge source. /// Optional user-defined description. /// The type of the knowledge source. - /// The ETag of the agent. - /// A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your agent definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your agent definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your agent definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. + /// The ETag of the knowledge base. + /// A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your knowledge base definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your knowledge base definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your knowledge base definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. /// Keeps track of any properties unknown to the library. internal KnowledgeSource(string name, string description, KnowledgeSourceKind kind, string eTag, SearchResourceEncryptionKey encryptionKey, IDictionary serializedAdditionalRawData) { @@ -87,7 +87,7 @@ internal KnowledgeSource() public string Description { get; set; } /// The type of the knowledge source. internal KnowledgeSourceKind Kind { get; set; } - /// A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your agent definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your agent definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your agent definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. + /// A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your knowledge base definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your knowledge base definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your knowledge base definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. public SearchResourceEncryptionKey EncryptionKey { get; set; } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceAzureOpenAIVectorizer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceAzureOpenAIVectorizer.Serialization.cs new file mode 100644 index 000000000000..adda8ea6b338 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceAzureOpenAIVectorizer.Serialization.cs @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.Indexes.Models +{ + public partial class KnowledgeSourceAzureOpenAIVectorizer : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeSourceAzureOpenAIVectorizer)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(AzureOpenAIParameters)) + { + writer.WritePropertyName("azureOpenAIParameters"u8); + writer.WriteObjectValue(AzureOpenAIParameters, options); + } + } + + KnowledgeSourceAzureOpenAIVectorizer IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeSourceAzureOpenAIVectorizer)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeSourceAzureOpenAIVectorizer(document.RootElement, options); + } + + internal static KnowledgeSourceAzureOpenAIVectorizer DeserializeKnowledgeSourceAzureOpenAIVectorizer(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + AzureOpenAIVectorizerParameters azureOpenAIParameters = default; + VectorSearchVectorizerKind kind = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("azureOpenAIParameters"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + azureOpenAIParameters = AzureOpenAIVectorizerParameters.DeserializeAzureOpenAIVectorizerParameters(property.Value, options); + continue; + } + if (property.NameEquals("kind"u8)) + { + kind = new VectorSearchVectorizerKind(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new KnowledgeSourceAzureOpenAIVectorizer(kind, serializedAdditionalRawData, azureOpenAIParameters); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeSourceAzureOpenAIVectorizer)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeSourceAzureOpenAIVectorizer IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeSourceAzureOpenAIVectorizer(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeSourceAzureOpenAIVectorizer)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new KnowledgeSourceAzureOpenAIVectorizer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeSourceAzureOpenAIVectorizer(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceAzureOpenAIVectorizer.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceAzureOpenAIVectorizer.cs new file mode 100644 index 000000000000..e591678838f6 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceAzureOpenAIVectorizer.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// Specifies the Azure OpenAI resource used to vectorize a query string. + public partial class KnowledgeSourceAzureOpenAIVectorizer : KnowledgeSourceVectorizer + { + /// Initializes a new instance of . + public KnowledgeSourceAzureOpenAIVectorizer() + { + Kind = VectorSearchVectorizerKind.AzureOpenAI; + } + + /// Initializes a new instance of . + /// The name of the kind of vectorization method being configured for use with vector search. + /// Keeps track of any properties unknown to the library. + /// Contains the parameters specific to Azure OpenAI embedding vectorization. + internal KnowledgeSourceAzureOpenAIVectorizer(VectorSearchVectorizerKind kind, IDictionary serializedAdditionalRawData, AzureOpenAIVectorizerParameters azureOpenAIParameters) : base(kind, serializedAdditionalRawData) + { + AzureOpenAIParameters = azureOpenAIParameters; + Kind = kind; + } + + /// Contains the parameters specific to Azure OpenAI embedding vectorization. + public AzureOpenAIVectorizerParameters AzureOpenAIParameters { get; set; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceContentExtractionMode.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceContentExtractionMode.cs new file mode 100644 index 000000000000..099f7f32a0f9 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceContentExtractionMode.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Search.Documents.Models +{ + /// Optional content extraction mode. Default is 'minimal'. + public readonly partial struct KnowledgeSourceContentExtractionMode : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public KnowledgeSourceContentExtractionMode(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string MinimalValue = "minimal"; + private const string StandardValue = "standard"; + + /// Extracts only essential metadata while deferring most content processing. + public static KnowledgeSourceContentExtractionMode Minimal { get; } = new KnowledgeSourceContentExtractionMode(MinimalValue); + /// Performs the full default content extraction pipeline. + public static KnowledgeSourceContentExtractionMode Standard { get; } = new KnowledgeSourceContentExtractionMode(StandardValue); + /// Determines if two values are the same. + public static bool operator ==(KnowledgeSourceContentExtractionMode left, KnowledgeSourceContentExtractionMode right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(KnowledgeSourceContentExtractionMode left, KnowledgeSourceContentExtractionMode right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator KnowledgeSourceContentExtractionMode(string value) => new KnowledgeSourceContentExtractionMode(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is KnowledgeSourceContentExtractionMode other && Equals(other); + /// + public bool Equals(KnowledgeSourceContentExtractionMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceIngestionParameters.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceIngestionParameters.Serialization.cs new file mode 100644 index 000000000000..b4de25f1b604 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceIngestionParameters.Serialization.cs @@ -0,0 +1,330 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.Search.Documents.Models; + +namespace Azure.Search.Documents.Indexes.Models +{ + public partial class KnowledgeSourceIngestionParameters : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeSourceIngestionParameters)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(Identity)) + { + if (Identity != null) + { + writer.WritePropertyName("identity"u8); + writer.WriteObjectValue(Identity, options); + } + else + { + writer.WriteNull("identity"); + } + } + if (Optional.IsDefined(EmbeddingModel)) + { + if (EmbeddingModel != null) + { + writer.WritePropertyName("embeddingModel"u8); + writer.WriteObjectValue(EmbeddingModel, options); + } + else + { + writer.WriteNull("embeddingModel"); + } + } + if (Optional.IsDefined(ChatCompletionModel)) + { + if (ChatCompletionModel != null) + { + writer.WritePropertyName("chatCompletionModel"u8); + writer.WriteObjectValue(ChatCompletionModel, options); + } + else + { + writer.WriteNull("chatCompletionModel"); + } + } + if (Optional.IsDefined(DisableImageVerbalization)) + { + writer.WritePropertyName("disableImageVerbalization"u8); + writer.WriteBooleanValue(DisableImageVerbalization.Value); + } + if (Optional.IsDefined(IngestionSchedule)) + { + if (IngestionSchedule != null) + { + writer.WritePropertyName("ingestionSchedule"u8); + writer.WriteObjectValue(IngestionSchedule, options); + } + else + { + writer.WriteNull("ingestionSchedule"); + } + } + if (Optional.IsCollectionDefined(IngestionPermissionOptions)) + { + if (IngestionPermissionOptions != null) + { + writer.WritePropertyName("ingestionPermissionOptions"u8); + writer.WriteStartArray(); + foreach (var item in IngestionPermissionOptions) + { + writer.WriteStringValue(item.ToString()); + } + writer.WriteEndArray(); + } + else + { + writer.WriteNull("ingestionPermissionOptions"); + } + } + if (Optional.IsDefined(ContentExtractionMode)) + { + if (ContentExtractionMode != null) + { + writer.WritePropertyName("contentExtractionMode"u8); + writer.WriteStringValue(ContentExtractionMode.Value.ToString()); + } + else + { + writer.WriteNull("contentExtractionMode"); + } + } + if (Optional.IsDefined(AiServices)) + { + if (AiServices != null) + { + writer.WritePropertyName("aiServices"u8); + writer.WriteObjectValue(AiServices, options); + } + else + { + writer.WriteNull("aiServices"); + } + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + KnowledgeSourceIngestionParameters IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeSourceIngestionParameters)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeSourceIngestionParameters(document.RootElement, options); + } + + internal static KnowledgeSourceIngestionParameters DeserializeKnowledgeSourceIngestionParameters(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + SearchIndexerDataIdentity identity = default; + KnowledgeSourceVectorizer embeddingModel = default; + KnowledgeBaseModel chatCompletionModel = default; + bool? disableImageVerbalization = default; + IndexingSchedule ingestionSchedule = default; + IList ingestionPermissionOptions = default; + KnowledgeSourceContentExtractionMode? contentExtractionMode = default; + AIServices aiServices = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("identity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + identity = null; + continue; + } + identity = SearchIndexerDataIdentity.DeserializeSearchIndexerDataIdentity(property.Value, options); + continue; + } + if (property.NameEquals("embeddingModel"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + embeddingModel = null; + continue; + } + embeddingModel = KnowledgeSourceVectorizer.DeserializeKnowledgeSourceVectorizer(property.Value, options); + continue; + } + if (property.NameEquals("chatCompletionModel"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + chatCompletionModel = null; + continue; + } + chatCompletionModel = KnowledgeBaseModel.DeserializeKnowledgeBaseModel(property.Value, options); + continue; + } + if (property.NameEquals("disableImageVerbalization"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + disableImageVerbalization = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("ingestionSchedule"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + ingestionSchedule = null; + continue; + } + ingestionSchedule = IndexingSchedule.DeserializeIndexingSchedule(property.Value, options); + continue; + } + if (property.NameEquals("ingestionPermissionOptions"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + ingestionPermissionOptions = null; + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(new KnowledgeSourceIngestionPermissionOption(item.GetString())); + } + ingestionPermissionOptions = array; + continue; + } + if (property.NameEquals("contentExtractionMode"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + contentExtractionMode = null; + continue; + } + contentExtractionMode = new KnowledgeSourceContentExtractionMode(property.Value.GetString()); + continue; + } + if (property.NameEquals("aiServices"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + aiServices = null; + continue; + } + aiServices = AIServices.DeserializeAIServices(property.Value, options); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new KnowledgeSourceIngestionParameters( + identity, + embeddingModel, + chatCompletionModel, + disableImageVerbalization, + ingestionSchedule, + ingestionPermissionOptions ?? new ChangeTrackingList(), + contentExtractionMode, + aiServices, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeSourceIngestionParameters)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeSourceIngestionParameters IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeSourceIngestionParameters(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeSourceIngestionParameters)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KnowledgeSourceIngestionParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeSourceIngestionParameters(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceIngestionParameters.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceIngestionParameters.cs new file mode 100644 index 000000000000..70d79de06aa5 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceIngestionParameters.cs @@ -0,0 +1,119 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Search.Documents.Models; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// Consolidates all general ingestion settings for knowledge sources. + public partial class KnowledgeSourceIngestionParameters + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public KnowledgeSourceIngestionParameters() + { + IngestionPermissionOptions = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// + /// An explicit identity to use for this knowledge source. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + /// + /// Optional vectorizer configuration for vectorizing content. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + /// + /// Optional chat completion model for image verbalization or context extraction. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + /// Indicates whether image verbalization should be disabled. Default is false. + /// Optional schedule for data ingestion. + /// Optional list of permission types to ingest together with document content. If specified, it will set the indexer permission options for the data source. + /// Optional content extraction mode. Default is 'minimal'. + /// Optional AI Services configuration for content processing. + /// Keeps track of any properties unknown to the library. + internal KnowledgeSourceIngestionParameters(SearchIndexerDataIdentity identity, KnowledgeSourceVectorizer embeddingModel, KnowledgeBaseModel chatCompletionModel, bool? disableImageVerbalization, IndexingSchedule ingestionSchedule, IList ingestionPermissionOptions, KnowledgeSourceContentExtractionMode? contentExtractionMode, AIServices aiServices, IDictionary serializedAdditionalRawData) + { + Identity = identity; + EmbeddingModel = embeddingModel; + ChatCompletionModel = chatCompletionModel; + DisableImageVerbalization = disableImageVerbalization; + IngestionSchedule = ingestionSchedule; + IngestionPermissionOptions = ingestionPermissionOptions; + ContentExtractionMode = contentExtractionMode; + AiServices = aiServices; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// + /// An explicit identity to use for this knowledge source. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include and . + /// + public SearchIndexerDataIdentity Identity { get; set; } + /// + /// Optional vectorizer configuration for vectorizing content. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public KnowledgeSourceVectorizer EmbeddingModel { get; set; } + /// + /// Optional chat completion model for image verbalization or context extraction. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public KnowledgeBaseModel ChatCompletionModel { get; set; } + /// Indicates whether image verbalization should be disabled. Default is false. + public bool? DisableImageVerbalization { get; set; } + /// Optional schedule for data ingestion. + public IndexingSchedule IngestionSchedule { get; set; } + /// Optional list of permission types to ingest together with document content. If specified, it will set the indexer permission options for the data source. + public IList IngestionPermissionOptions { get; set; } + /// Optional content extraction mode. Default is 'minimal'. + public KnowledgeSourceContentExtractionMode? ContentExtractionMode { get; set; } + /// Optional AI Services configuration for content processing. + public AIServices AiServices { get; set; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceIngestionPermissionOption.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceIngestionPermissionOption.cs new file mode 100644 index 000000000000..7516720297e6 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceIngestionPermissionOption.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Search.Documents.Models +{ + /// The KnowledgeSourceIngestionPermissionOption. + public readonly partial struct KnowledgeSourceIngestionPermissionOption : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public KnowledgeSourceIngestionPermissionOption(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string UserIdsValue = "userIds"; + private const string GroupIdsValue = "groupIds"; + private const string RbacScopeValue = "rbacScope"; + + /// Ingest explicit user identifiers alongside document content. + public static KnowledgeSourceIngestionPermissionOption UserIds { get; } = new KnowledgeSourceIngestionPermissionOption(UserIdsValue); + /// Ingest group identifiers alongside document content. + public static KnowledgeSourceIngestionPermissionOption GroupIds { get; } = new KnowledgeSourceIngestionPermissionOption(GroupIdsValue); + /// Ingest RBAC scope information alongside document content. + public static KnowledgeSourceIngestionPermissionOption RbacScope { get; } = new KnowledgeSourceIngestionPermissionOption(RbacScopeValue); + /// Determines if two values are the same. + public static bool operator ==(KnowledgeSourceIngestionPermissionOption left, KnowledgeSourceIngestionPermissionOption right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(KnowledgeSourceIngestionPermissionOption left, KnowledgeSourceIngestionPermissionOption right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator KnowledgeSourceIngestionPermissionOption(string value) => new KnowledgeSourceIngestionPermissionOption(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is KnowledgeSourceIngestionPermissionOption other && Equals(other); + /// + public bool Equals(KnowledgeSourceIngestionPermissionOption other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceKind.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceKind.cs index 7ac5a6cec032..a200018e60e7 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceKind.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceKind.cs @@ -24,11 +24,23 @@ public KnowledgeSourceKind(string value) private const string SearchIndexValue = "searchIndex"; private const string AzureBlobValue = "azureBlob"; + private const string WebValue = "web"; + private const string RemoteSharePointValue = "remoteSharePoint"; + private const string IndexedSharePointValue = "indexedSharePoint"; + private const string IndexedOneLakeValue = "indexedOneLake"; - /// A knowledge source that reads data from a Search Index. + /// A knowledge source that retrieves data from a Search Index. public static KnowledgeSourceKind SearchIndex { get; } = new KnowledgeSourceKind(SearchIndexValue); - /// A knowledge source that read and ingest data from Azure Blob Storage to a Search Index. + /// A knowledge source that retrieves and ingests data from Azure Blob Storage to a Search Index. public static KnowledgeSourceKind AzureBlob { get; } = new KnowledgeSourceKind(AzureBlobValue); + /// A knowledge source that retrieves data from the web. + public static KnowledgeSourceKind Web { get; } = new KnowledgeSourceKind(WebValue); + /// A knowledge source that retrieves data from a remote SharePoint endpoint. + public static KnowledgeSourceKind RemoteSharePoint { get; } = new KnowledgeSourceKind(RemoteSharePointValue); + /// A knowledge source that retrieves and ingests data from SharePoint to a Search Index. + public static KnowledgeSourceKind IndexedSharePoint { get; } = new KnowledgeSourceKind(IndexedSharePointValue); + /// A knowledge source that retrieves and ingests data from OneLake to a Search Index. + public static KnowledgeSourceKind IndexedOneLake { get; } = new KnowledgeSourceKind(IndexedOneLakeValue); /// Determines if two values are the same. public static bool operator ==(KnowledgeSourceKind left, KnowledgeSourceKind right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceParams.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceParams.Serialization.cs index f51dba6d8175..42888560fc46 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceParams.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceParams.Serialization.cs @@ -11,7 +11,7 @@ using Azure.Core; using Azure.Search.Documents.Models; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { [PersistableModelProxy(typeof(UnknownKnowledgeSourceParams))] public partial class KnowledgeSourceParams : IUtf8JsonSerializable, IJsonModel @@ -37,6 +37,26 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("knowledgeSourceName"u8); writer.WriteStringValue(KnowledgeSourceName); + if (Optional.IsDefined(IncludeReferences)) + { + writer.WritePropertyName("includeReferences"u8); + writer.WriteBooleanValue(IncludeReferences.Value); + } + if (Optional.IsDefined(IncludeReferenceSourceData)) + { + writer.WritePropertyName("includeReferenceSourceData"u8); + writer.WriteBooleanValue(IncludeReferenceSourceData.Value); + } + if (Optional.IsDefined(AlwaysQuerySource)) + { + writer.WritePropertyName("alwaysQuerySource"u8); + writer.WriteBooleanValue(AlwaysQuerySource.Value); + } + if (Optional.IsDefined(RerankerThreshold)) + { + writer.WritePropertyName("rerankerThreshold"u8); + writer.WriteNumberValue(RerankerThreshold.Value); + } writer.WritePropertyName("kind"u8); writer.WriteStringValue(Kind.ToString()); if (options.Format != "W" && _serializedAdditionalRawData != null) @@ -80,7 +100,12 @@ internal static KnowledgeSourceParams DeserializeKnowledgeSourceParams(JsonEleme { switch (discriminator.GetString()) { + case "azureBlob": return AzureBlobKnowledgeSourceParams.DeserializeAzureBlobKnowledgeSourceParams(element, options); + case "indexedOneLake": return IndexedOneLakeKnowledgeSourceParams.DeserializeIndexedOneLakeKnowledgeSourceParams(element, options); + case "indexedSharePoint": return IndexedSharePointKnowledgeSourceParams.DeserializeIndexedSharePointKnowledgeSourceParams(element, options); + case "remoteSharePoint": return RemoteSharePointKnowledgeSourceParams.DeserializeRemoteSharePointKnowledgeSourceParams(element, options); case "searchIndex": return SearchIndexKnowledgeSourceParams.DeserializeSearchIndexKnowledgeSourceParams(element, options); + case "web": return WebKnowledgeSourceParams.DeserializeWebKnowledgeSourceParams(element, options); } } return UnknownKnowledgeSourceParams.DeserializeUnknownKnowledgeSourceParams(element, options); diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceParams.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceParams.cs index 30e3ef5a7d62..69eb828a447c 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceParams.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceParams.cs @@ -9,12 +9,12 @@ using System.Collections.Generic; using Azure.Search.Documents.Indexes.Models; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { /// /// The KnowledgeSourceParams. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . + /// The available derived classes include , , , , and . /// public abstract partial class KnowledgeSourceParams { @@ -62,11 +62,19 @@ protected KnowledgeSourceParams(string knowledgeSourceName) /// Initializes a new instance of . /// The name of the index the params apply to. + /// Indicates whether references should be included for data retrieved from this source. + /// Indicates whether references should include the structured data obtained during retrieval in their payload. + /// Indicates that this knowledge source should bypass source selection and always be queried at retrieval time. + /// The reranker threshold all retrieved documents must meet to be included in the response. /// The type of the knowledge source. /// Keeps track of any properties unknown to the library. - internal KnowledgeSourceParams(string knowledgeSourceName, KnowledgeSourceKind kind, IDictionary serializedAdditionalRawData) + internal KnowledgeSourceParams(string knowledgeSourceName, bool? includeReferences, bool? includeReferenceSourceData, bool? alwaysQuerySource, float? rerankerThreshold, KnowledgeSourceKind kind, IDictionary serializedAdditionalRawData) { KnowledgeSourceName = knowledgeSourceName; + IncludeReferences = includeReferences; + IncludeReferenceSourceData = includeReferenceSourceData; + AlwaysQuerySource = alwaysQuerySource; + RerankerThreshold = rerankerThreshold; Kind = kind; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -78,6 +86,14 @@ internal KnowledgeSourceParams() /// The name of the index the params apply to. public string KnowledgeSourceName { get; } + /// Indicates whether references should be included for data retrieved from this source. + public bool? IncludeReferences { get; set; } + /// Indicates whether references should include the structured data obtained during retrieval in their payload. + public bool? IncludeReferenceSourceData { get; set; } + /// Indicates that this knowledge source should bypass source selection and always be queried at retrieval time. + public bool? AlwaysQuerySource { get; set; } + /// The reranker threshold all retrieved documents must meet to be included in the response. + public float? RerankerThreshold { get; set; } /// The type of the knowledge source. internal KnowledgeSourceKind Kind { get; set; } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceReference.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceReference.Serialization.cs index 9602f597615f..607300e9be64 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceReference.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceReference.Serialization.cs @@ -36,31 +36,6 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("name"u8); writer.WriteStringValue(Name); - if (Optional.IsDefined(IncludeReferences)) - { - writer.WritePropertyName("includeReferences"u8); - writer.WriteBooleanValue(IncludeReferences.Value); - } - if (Optional.IsDefined(IncludeReferenceSourceData)) - { - writer.WritePropertyName("includeReferenceSourceData"u8); - writer.WriteBooleanValue(IncludeReferenceSourceData.Value); - } - if (Optional.IsDefined(AlwaysQuerySource)) - { - writer.WritePropertyName("alwaysQuerySource"u8); - writer.WriteBooleanValue(AlwaysQuerySource.Value); - } - if (Optional.IsDefined(MaxSubQueries)) - { - writer.WritePropertyName("maxSubQueries"u8); - writer.WriteNumberValue(MaxSubQueries.Value); - } - if (Optional.IsDefined(RerankerThreshold)) - { - writer.WritePropertyName("rerankerThreshold"u8); - writer.WriteNumberValue(RerankerThreshold.Value); - } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -99,11 +74,6 @@ internal static KnowledgeSourceReference DeserializeKnowledgeSourceReference(Jso return null; } string name = default; - bool? includeReferences = default; - bool? includeReferenceSourceData = default; - bool? alwaysQuerySource = default; - int? maxSubQueries = default; - float? rerankerThreshold = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -113,65 +83,13 @@ internal static KnowledgeSourceReference DeserializeKnowledgeSourceReference(Jso name = property.Value.GetString(); continue; } - if (property.NameEquals("includeReferences"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - includeReferences = property.Value.GetBoolean(); - continue; - } - if (property.NameEquals("includeReferenceSourceData"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - includeReferenceSourceData = property.Value.GetBoolean(); - continue; - } - if (property.NameEquals("alwaysQuerySource"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - alwaysQuerySource = property.Value.GetBoolean(); - continue; - } - if (property.NameEquals("maxSubQueries"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - maxSubQueries = property.Value.GetInt32(); - continue; - } - if (property.NameEquals("rerankerThreshold"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - rerankerThreshold = property.Value.GetSingle(); - continue; - } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new KnowledgeSourceReference( - name, - includeReferences, - includeReferenceSourceData, - alwaysQuerySource, - maxSubQueries, - rerankerThreshold, - serializedAdditionalRawData); + return new KnowledgeSourceReference(name, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceReference.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceReference.cs index 6f035f93a254..935f4934855a 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceReference.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceReference.cs @@ -57,20 +57,10 @@ public KnowledgeSourceReference(string name) /// Initializes a new instance of . /// The name of the knowledge source. - /// Indicates whether references should be included for data retrieved from this source. - /// Indicates whether references should include the structured data obtained during retrieval in their payload. - /// Indicates that this knowledge source should bypass source selection and always be queried at retrieval time. - /// The maximum number of queries that can be issued at a time when retrieving data from this source. - /// The reranker threshold all retrieved documents must meet to be included in the response. /// Keeps track of any properties unknown to the library. - internal KnowledgeSourceReference(string name, bool? includeReferences, bool? includeReferenceSourceData, bool? alwaysQuerySource, int? maxSubQueries, float? rerankerThreshold, IDictionary serializedAdditionalRawData) + internal KnowledgeSourceReference(string name, IDictionary serializedAdditionalRawData) { Name = name; - IncludeReferences = includeReferences; - IncludeReferenceSourceData = includeReferenceSourceData; - AlwaysQuerySource = alwaysQuerySource; - MaxSubQueries = maxSubQueries; - RerankerThreshold = rerankerThreshold; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -81,15 +71,5 @@ internal KnowledgeSourceReference() /// The name of the knowledge source. public string Name { get; set; } - /// Indicates whether references should be included for data retrieved from this source. - public bool? IncludeReferences { get; set; } - /// Indicates whether references should include the structured data obtained during retrieval in their payload. - public bool? IncludeReferenceSourceData { get; set; } - /// Indicates that this knowledge source should bypass source selection and always be queried at retrieval time. - public bool? AlwaysQuerySource { get; set; } - /// The maximum number of queries that can be issued at a time when retrieving data from this source. - public int? MaxSubQueries { get; set; } - /// The reranker threshold all retrieved documents must meet to be included in the response. - public float? RerankerThreshold { get; set; } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceStatistics.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceStatistics.Serialization.cs new file mode 100644 index 000000000000..1171997bea3b --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceStatistics.Serialization.cs @@ -0,0 +1,158 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.Indexes.Models +{ + public partial class KnowledgeSourceStatistics : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeSourceStatistics)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("totalSynchronization"u8); + writer.WriteNumberValue(TotalSynchronization); + writer.WritePropertyName("averageSynchronizationDuration"u8); + writer.WriteStringValue(AverageSynchronizationDuration); + writer.WritePropertyName("averageItemsProcessedPerSynchronization"u8); + writer.WriteNumberValue(AverageItemsProcessedPerSynchronization); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + KnowledgeSourceStatistics IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeSourceStatistics)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeSourceStatistics(document.RootElement, options); + } + + internal static KnowledgeSourceStatistics DeserializeKnowledgeSourceStatistics(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + int totalSynchronization = default; + string averageSynchronizationDuration = default; + int averageItemsProcessedPerSynchronization = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("totalSynchronization"u8)) + { + totalSynchronization = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("averageSynchronizationDuration"u8)) + { + averageSynchronizationDuration = property.Value.GetString(); + continue; + } + if (property.NameEquals("averageItemsProcessedPerSynchronization"u8)) + { + averageItemsProcessedPerSynchronization = property.Value.GetInt32(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new KnowledgeSourceStatistics(totalSynchronization, averageSynchronizationDuration, averageItemsProcessedPerSynchronization, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeSourceStatistics)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeSourceStatistics IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeSourceStatistics(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeSourceStatistics)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KnowledgeSourceStatistics FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeSourceStatistics(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceStatistics.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceStatistics.cs new file mode 100644 index 000000000000..20ab5e5f3874 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceStatistics.cs @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// Statistical information about knowledge source synchronization history. + public partial class KnowledgeSourceStatistics + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The total number of synchronizations completed. + /// The average duration of synchronizations in HH:MM:SS format. + /// The average number of items processed per synchronization. + /// is null. + internal KnowledgeSourceStatistics(int totalSynchronization, string averageSynchronizationDuration, int averageItemsProcessedPerSynchronization) + { + Argument.AssertNotNull(averageSynchronizationDuration, nameof(averageSynchronizationDuration)); + + TotalSynchronization = totalSynchronization; + AverageSynchronizationDuration = averageSynchronizationDuration; + AverageItemsProcessedPerSynchronization = averageItemsProcessedPerSynchronization; + } + + /// Initializes a new instance of . + /// The total number of synchronizations completed. + /// The average duration of synchronizations in HH:MM:SS format. + /// The average number of items processed per synchronization. + /// Keeps track of any properties unknown to the library. + internal KnowledgeSourceStatistics(int totalSynchronization, string averageSynchronizationDuration, int averageItemsProcessedPerSynchronization, IDictionary serializedAdditionalRawData) + { + TotalSynchronization = totalSynchronization; + AverageSynchronizationDuration = averageSynchronizationDuration; + AverageItemsProcessedPerSynchronization = averageItemsProcessedPerSynchronization; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal KnowledgeSourceStatistics() + { + } + + /// The total number of synchronizations completed. + public int TotalSynchronization { get; } + /// The average duration of synchronizations in HH:MM:SS format. + public string AverageSynchronizationDuration { get; } + /// The average number of items processed per synchronization. + public int AverageItemsProcessedPerSynchronization { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceStatus.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceStatus.Serialization.cs new file mode 100644 index 000000000000..aebf432c09fe --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceStatus.Serialization.cs @@ -0,0 +1,241 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.Search.Documents.Models; + +namespace Azure.Search.Documents.Indexes.Models +{ + public partial class KnowledgeSourceStatus : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeSourceStatus)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("synchronizationStatus"u8); + writer.WriteStringValue(SynchronizationStatus.ToString()); + if (Optional.IsDefined(SynchronizationInterval)) + { + if (SynchronizationInterval != null) + { + writer.WritePropertyName("synchronizationInterval"u8); + writer.WriteStringValue(SynchronizationInterval); + } + else + { + writer.WriteNull("synchronizationInterval"); + } + } + if (Optional.IsDefined(CurrentSynchronizationState)) + { + if (CurrentSynchronizationState != null) + { + writer.WritePropertyName("currentSynchronizationState"u8); + writer.WriteObjectValue(CurrentSynchronizationState, options); + } + else + { + writer.WriteNull("currentSynchronizationState"); + } + } + if (Optional.IsDefined(LastSynchronizationState)) + { + if (LastSynchronizationState != null) + { + writer.WritePropertyName("lastSynchronizationState"u8); + writer.WriteObjectValue(LastSynchronizationState, options); + } + else + { + writer.WriteNull("lastSynchronizationState"); + } + } + if (Optional.IsDefined(Statistics)) + { + if (Statistics != null) + { + writer.WritePropertyName("statistics"u8); + writer.WriteObjectValue(Statistics, options); + } + else + { + writer.WriteNull("statistics"); + } + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + KnowledgeSourceStatus IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeSourceStatus)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeSourceStatus(document.RootElement, options); + } + + internal static KnowledgeSourceStatus DeserializeKnowledgeSourceStatus(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + KnowledgeSourceSynchronizationStatus synchronizationStatus = default; + string synchronizationInterval = default; + SynchronizationState currentSynchronizationState = default; + CompletedSynchronizationState lastSynchronizationState = default; + KnowledgeSourceStatistics statistics = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("synchronizationStatus"u8)) + { + synchronizationStatus = new KnowledgeSourceSynchronizationStatus(property.Value.GetString()); + continue; + } + if (property.NameEquals("synchronizationInterval"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + synchronizationInterval = null; + continue; + } + synchronizationInterval = property.Value.GetString(); + continue; + } + if (property.NameEquals("currentSynchronizationState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + currentSynchronizationState = null; + continue; + } + currentSynchronizationState = SynchronizationState.DeserializeSynchronizationState(property.Value, options); + continue; + } + if (property.NameEquals("lastSynchronizationState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + lastSynchronizationState = null; + continue; + } + lastSynchronizationState = CompletedSynchronizationState.DeserializeCompletedSynchronizationState(property.Value, options); + continue; + } + if (property.NameEquals("statistics"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + statistics = null; + continue; + } + statistics = KnowledgeSourceStatistics.DeserializeKnowledgeSourceStatistics(property.Value, options); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new KnowledgeSourceStatus( + synchronizationStatus, + synchronizationInterval, + currentSynchronizationState, + lastSynchronizationState, + statistics, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeSourceStatus)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeSourceStatus IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeSourceStatus(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeSourceStatus)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KnowledgeSourceStatus FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeSourceStatus(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceStatus.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceStatus.cs new file mode 100644 index 000000000000..5f2567732fc9 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceStatus.cs @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Search.Documents.Models; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// Represents the status and synchronization history of a knowledge source. + public partial class KnowledgeSourceStatus + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The current synchronization status of the knowledge source. + internal KnowledgeSourceStatus(KnowledgeSourceSynchronizationStatus synchronizationStatus) + { + SynchronizationStatus = synchronizationStatus; + } + + /// Initializes a new instance of . + /// The current synchronization status of the knowledge source. + /// The synchronization interval (e.g., '1d' for daily). Null if no schedule is configured. + /// Current synchronization state that spans multiple indexer runs. + /// Details of the last completed synchronization. Null on first sync. + /// Statistical information about the knowledge source synchronization history. Null on first sync. + /// Keeps track of any properties unknown to the library. + internal KnowledgeSourceStatus(KnowledgeSourceSynchronizationStatus synchronizationStatus, string synchronizationInterval, SynchronizationState currentSynchronizationState, CompletedSynchronizationState lastSynchronizationState, KnowledgeSourceStatistics statistics, IDictionary serializedAdditionalRawData) + { + SynchronizationStatus = synchronizationStatus; + SynchronizationInterval = synchronizationInterval; + CurrentSynchronizationState = currentSynchronizationState; + LastSynchronizationState = lastSynchronizationState; + Statistics = statistics; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal KnowledgeSourceStatus() + { + } + + /// The current synchronization status of the knowledge source. + public KnowledgeSourceSynchronizationStatus SynchronizationStatus { get; } + /// The synchronization interval (e.g., '1d' for daily). Null if no schedule is configured. + public string SynchronizationInterval { get; } + /// Current synchronization state that spans multiple indexer runs. + public SynchronizationState CurrentSynchronizationState { get; } + /// Details of the last completed synchronization. Null on first sync. + public CompletedSynchronizationState LastSynchronizationState { get; } + /// Statistical information about the knowledge source synchronization history. Null on first sync. + public KnowledgeSourceStatistics Statistics { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceSynchronizationStatus.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceSynchronizationStatus.cs new file mode 100644 index 000000000000..0adcab3f073c --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceSynchronizationStatus.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Search.Documents.Models +{ + /// The current synchronization status of the knowledge source. + public readonly partial struct KnowledgeSourceSynchronizationStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public KnowledgeSourceSynchronizationStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string CreatingValue = "creating"; + private const string ActiveValue = "active"; + private const string DeletingValue = "deleting"; + + /// The knowledge source is being provisioned. + public static KnowledgeSourceSynchronizationStatus Creating { get; } = new KnowledgeSourceSynchronizationStatus(CreatingValue); + /// The knowledge source is active and synchronization runs are occurring. + public static KnowledgeSourceSynchronizationStatus Active { get; } = new KnowledgeSourceSynchronizationStatus(ActiveValue); + /// The knowledge source is being deleted and synchronization is paused. + public static KnowledgeSourceSynchronizationStatus Deleting { get; } = new KnowledgeSourceSynchronizationStatus(DeletingValue); + /// Determines if two values are the same. + public static bool operator ==(KnowledgeSourceSynchronizationStatus left, KnowledgeSourceSynchronizationStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(KnowledgeSourceSynchronizationStatus left, KnowledgeSourceSynchronizationStatus right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator KnowledgeSourceSynchronizationStatus(string value) => new KnowledgeSourceSynchronizationStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is KnowledgeSourceSynchronizationStatus other && Equals(other); + /// + public bool Equals(KnowledgeSourceSynchronizationStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceVectorizer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceVectorizer.Serialization.cs new file mode 100644 index 000000000000..2c9541ad1fc8 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceVectorizer.Serialization.cs @@ -0,0 +1,134 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Text.Json; +using Azure.Core; +using Azure.Search.Documents.Models; + +namespace Azure.Search.Documents.Indexes.Models +{ + [PersistableModelProxy(typeof(UnknownKnowledgeSourceVectorizer))] + public partial class KnowledgeSourceVectorizer : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeSourceVectorizer)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(Kind.ToString()); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + KnowledgeSourceVectorizer IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeSourceVectorizer)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeSourceVectorizer(document.RootElement, options); + } + + internal static KnowledgeSourceVectorizer DeserializeKnowledgeSourceVectorizer(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + if (element.TryGetProperty("kind", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "azureOpenAI": return KnowledgeSourceAzureOpenAIVectorizer.DeserializeKnowledgeSourceAzureOpenAIVectorizer(element, options); + } + } + return UnknownKnowledgeSourceVectorizer.DeserializeUnknownKnowledgeSourceVectorizer(element, options); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeSourceVectorizer)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeSourceVectorizer IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeSourceVectorizer(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeSourceVectorizer)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static KnowledgeSourceVectorizer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeSourceVectorizer(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceVectorizer.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceVectorizer.cs new file mode 100644 index 000000000000..949a2805e64b --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeSourceVectorizer.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// + /// Specifies the vectorization method to be used for knowledge source embedding model, with optional name. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + public abstract partial class KnowledgeSourceVectorizer + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private protected IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + protected KnowledgeSourceVectorizer() + { + } + + /// Initializes a new instance of . + /// The name of the kind of vectorization method being configured for use with vector search. + /// Keeps track of any properties unknown to the library. + internal KnowledgeSourceVectorizer(VectorSearchVectorizerKind kind, IDictionary serializedAdditionalRawData) + { + Kind = kind; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The name of the kind of vectorization method being configured for use with vector search. + internal VectorSearchVectorizerKind Kind { get; set; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ListKnowledgeAgentsResult.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ListKnowledgeBasesResult.Serialization.cs similarity index 65% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/ListKnowledgeAgentsResult.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/ListKnowledgeBasesResult.Serialization.cs index 7fd11cf8fbed..98ddfafddacd 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ListKnowledgeAgentsResult.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ListKnowledgeBasesResult.Serialization.cs @@ -13,11 +13,11 @@ namespace Azure.Search.Documents.Indexes.Models { - internal partial class ListKnowledgeAgentsResult : IUtf8JsonSerializable, IJsonModel + internal partial class ListKnowledgeBasesResult : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,15 +28,15 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelRea /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ListKnowledgeAgentsResult)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(ListKnowledgeBasesResult)} does not support writing '{format}' format."); } writer.WritePropertyName("value"u8); writer.WriteStartArray(); - foreach (var item in KnowledgeAgents) + foreach (var item in KnowledgeBases) { writer.WriteObjectValue(item, options); } @@ -58,19 +58,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - ListKnowledgeAgentsResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + ListKnowledgeBasesResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(ListKnowledgeAgentsResult)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(ListKnowledgeBasesResult)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeListKnowledgeAgentsResult(document.RootElement, options); + return DeserializeListKnowledgeBasesResult(document.RootElement, options); } - internal static ListKnowledgeAgentsResult DeserializeListKnowledgeAgentsResult(JsonElement element, ModelReaderWriterOptions options = null) + internal static ListKnowledgeBasesResult DeserializeListKnowledgeBasesResult(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -78,17 +78,17 @@ internal static ListKnowledgeAgentsResult DeserializeListKnowledgeAgentsResult(J { return null; } - IReadOnlyList value = default; + IReadOnlyList value = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(KnowledgeAgent.DeserializeKnowledgeAgent(item, options)); + array.Add(KnowledgeBase.DeserializeKnowledgeBase(item, options)); } value = array; continue; @@ -99,46 +99,46 @@ internal static ListKnowledgeAgentsResult DeserializeListKnowledgeAgentsResult(J } } serializedAdditionalRawData = rawDataDictionary; - return new ListKnowledgeAgentsResult(value, serializedAdditionalRawData); + return new ListKnowledgeBasesResult(value, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(ListKnowledgeAgentsResult)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(ListKnowledgeBasesResult)} does not support writing '{options.Format}' format."); } } - ListKnowledgeAgentsResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + ListKnowledgeBasesResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeListKnowledgeAgentsResult(document.RootElement, options); + return DeserializeListKnowledgeBasesResult(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(ListKnowledgeAgentsResult)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(ListKnowledgeBasesResult)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static ListKnowledgeAgentsResult FromResponse(Response response) + internal static ListKnowledgeBasesResult FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeListKnowledgeAgentsResult(document.RootElement); + return DeserializeListKnowledgeBasesResult(document.RootElement); } /// Convert into a . diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ListKnowledgeAgentsResult.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ListKnowledgeBasesResult.cs similarity index 68% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/ListKnowledgeAgentsResult.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/ListKnowledgeBasesResult.cs index 39cadc23fb85..21c84de7aec5 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ListKnowledgeAgentsResult.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ListKnowledgeBasesResult.cs @@ -11,8 +11,8 @@ namespace Azure.Search.Documents.Indexes.Models { - /// The ListKnowledgeAgentsResult. - internal partial class ListKnowledgeAgentsResult + /// The ListKnowledgeBasesResult. + internal partial class ListKnowledgeBasesResult { /// /// Keeps track of any properties unknown to the library. @@ -46,31 +46,31 @@ internal partial class ListKnowledgeAgentsResult /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - /// - /// is null. - internal ListKnowledgeAgentsResult(IEnumerable knowledgeAgents) + /// Initializes a new instance of . + /// + /// is null. + internal ListKnowledgeBasesResult(IEnumerable knowledgeBases) { - Argument.AssertNotNull(knowledgeAgents, nameof(knowledgeAgents)); + Argument.AssertNotNull(knowledgeBases, nameof(knowledgeBases)); - KnowledgeAgents = knowledgeAgents.ToList(); + KnowledgeBases = knowledgeBases.ToList(); } - /// Initializes a new instance of . - /// + /// Initializes a new instance of . + /// /// Keeps track of any properties unknown to the library. - internal ListKnowledgeAgentsResult(IReadOnlyList knowledgeAgents, IDictionary serializedAdditionalRawData) + internal ListKnowledgeBasesResult(IReadOnlyList knowledgeBases, IDictionary serializedAdditionalRawData) { - KnowledgeAgents = knowledgeAgents; + KnowledgeBases = knowledgeBases; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Initializes a new instance of for deserialization. - internal ListKnowledgeAgentsResult() + /// Initializes a new instance of for deserialization. + internal ListKnowledgeBasesResult() { } - /// Gets the knowledge agents. - public IReadOnlyList KnowledgeAgents { get; } + /// Gets the knowledge bases. + public IReadOnlyList KnowledgeBases { get; } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ListKnowledgeSourcesResult.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ListKnowledgeSourcesResult.cs index 253c0cc7ad1e..2c4d67d05045 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ListKnowledgeSourcesResult.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ListKnowledgeSourcesResult.cs @@ -49,7 +49,7 @@ internal partial class ListKnowledgeSourcesResult /// Initializes a new instance of . /// /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// The available derived classes include , , , , and . /// /// is null. internal ListKnowledgeSourcesResult(IEnumerable knowledgeSources) @@ -62,7 +62,7 @@ internal ListKnowledgeSourcesResult(IEnumerable knowledgeSource /// Initializes a new instance of . /// /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// The available derived classes include , , , , and . /// /// Keeps track of any properties unknown to the library. internal ListKnowledgeSourcesResult(IReadOnlyList knowledgeSources, IDictionary serializedAdditionalRawData) @@ -79,7 +79,7 @@ internal ListKnowledgeSourcesResult() /// /// Gets the knowledge sources /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// The available derived classes include , , , , and . /// public IReadOnlyList KnowledgeSources { get; } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/RemoteSharePointKnowledgeSource.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/RemoteSharePointKnowledgeSource.Serialization.cs new file mode 100644 index 000000000000..0d541eff8fbb --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/RemoteSharePointKnowledgeSource.Serialization.cs @@ -0,0 +1,170 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.Indexes.Models +{ + public partial class RemoteSharePointKnowledgeSource : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(RemoteSharePointKnowledgeSource)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + writer.WritePropertyName("remoteSharePointParameters"u8); + writer.WriteObjectValue(RemoteSharePointParameters, options); + } + + RemoteSharePointKnowledgeSource IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(RemoteSharePointKnowledgeSource)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeRemoteSharePointKnowledgeSource(document.RootElement, options); + } + + internal static RemoteSharePointKnowledgeSource DeserializeRemoteSharePointKnowledgeSource(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + RemoteSharePointKnowledgeSourceParameters remoteSharePointParameters = default; + string name = default; + string description = default; + KnowledgeSourceKind kind = default; + string odataEtag = default; + SearchResourceEncryptionKey encryptionKey = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("remoteSharePointParameters"u8)) + { + remoteSharePointParameters = RemoteSharePointKnowledgeSourceParameters.DeserializeRemoteSharePointKnowledgeSourceParameters(property.Value, options); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("kind"u8)) + { + kind = new KnowledgeSourceKind(property.Value.GetString()); + continue; + } + if (property.NameEquals("@odata.etag"u8)) + { + odataEtag = property.Value.GetString(); + continue; + } + if (property.NameEquals("encryptionKey"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + encryptionKey = null; + continue; + } + encryptionKey = SearchResourceEncryptionKey.DeserializeSearchResourceEncryptionKey(property.Value, options); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new RemoteSharePointKnowledgeSource( + name, + description, + kind, + odataEtag, + encryptionKey, + serializedAdditionalRawData, + remoteSharePointParameters); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(RemoteSharePointKnowledgeSource)} does not support writing '{options.Format}' format."); + } + } + + RemoteSharePointKnowledgeSource IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeRemoteSharePointKnowledgeSource(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(RemoteSharePointKnowledgeSource)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new RemoteSharePointKnowledgeSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeRemoteSharePointKnowledgeSource(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/RemoteSharePointKnowledgeSource.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/RemoteSharePointKnowledgeSource.cs new file mode 100644 index 000000000000..8ab25e2c638d --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/RemoteSharePointKnowledgeSource.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// Configuration for remote SharePoint knowledge source. + public partial class RemoteSharePointKnowledgeSource : KnowledgeSource + { + /// Initializes a new instance of . + /// The name of the knowledge source. + /// The parameters for the knowledge source. + /// or is null. + public RemoteSharePointKnowledgeSource(string name, RemoteSharePointKnowledgeSourceParameters remoteSharePointParameters) : base(name) + { + Argument.AssertNotNull(name, nameof(name)); + Argument.AssertNotNull(remoteSharePointParameters, nameof(remoteSharePointParameters)); + + RemoteSharePointParameters = remoteSharePointParameters; + Kind = KnowledgeSourceKind.RemoteSharePoint; + } + + /// Initializes a new instance of . + /// The name of the knowledge source. + /// Optional user-defined description. + /// The type of the knowledge source. + /// The ETag of the knowledge base. + /// A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your knowledge base definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your knowledge base definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your knowledge base definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. + /// Keeps track of any properties unknown to the library. + /// The parameters for the knowledge source. + internal RemoteSharePointKnowledgeSource(string name, string description, KnowledgeSourceKind kind, string eTag, SearchResourceEncryptionKey encryptionKey, IDictionary serializedAdditionalRawData, RemoteSharePointKnowledgeSourceParameters remoteSharePointParameters) : base(name, description, kind, eTag, encryptionKey, serializedAdditionalRawData) + { + RemoteSharePointParameters = remoteSharePointParameters; + Kind = kind; + } + + /// Initializes a new instance of for deserialization. + internal RemoteSharePointKnowledgeSource() + { + } + + /// The parameters for the knowledge source. + public RemoteSharePointKnowledgeSourceParameters RemoteSharePointParameters { get; set; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/RemoteSharePointKnowledgeSourceParameters.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/RemoteSharePointKnowledgeSourceParameters.Serialization.cs new file mode 100644 index 000000000000..d08c82d5f4c3 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/RemoteSharePointKnowledgeSourceParameters.Serialization.cs @@ -0,0 +1,181 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.Indexes.Models +{ + public partial class RemoteSharePointKnowledgeSourceParameters : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(RemoteSharePointKnowledgeSourceParameters)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(FilterExpression)) + { + writer.WritePropertyName("filterExpression"u8); + writer.WriteStringValue(FilterExpression); + } + if (Optional.IsCollectionDefined(ResourceMetadata)) + { + writer.WritePropertyName("resourceMetadata"u8); + writer.WriteStartArray(); + foreach (var item in ResourceMetadata) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(ContainerTypeId)) + { + writer.WritePropertyName("containerTypeId"u8); + writer.WriteStringValue(ContainerTypeId); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + RemoteSharePointKnowledgeSourceParameters IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(RemoteSharePointKnowledgeSourceParameters)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeRemoteSharePointKnowledgeSourceParameters(document.RootElement, options); + } + + internal static RemoteSharePointKnowledgeSourceParameters DeserializeRemoteSharePointKnowledgeSourceParameters(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string filterExpression = default; + IList resourceMetadata = default; + string containerTypeId = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("filterExpression"u8)) + { + filterExpression = property.Value.GetString(); + continue; + } + if (property.NameEquals("resourceMetadata"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + resourceMetadata = array; + continue; + } + if (property.NameEquals("containerTypeId"u8)) + { + containerTypeId = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new RemoteSharePointKnowledgeSourceParameters(filterExpression, resourceMetadata ?? new ChangeTrackingList(), containerTypeId, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(RemoteSharePointKnowledgeSourceParameters)} does not support writing '{options.Format}' format."); + } + } + + RemoteSharePointKnowledgeSourceParameters IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeRemoteSharePointKnowledgeSourceParameters(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(RemoteSharePointKnowledgeSourceParameters)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static RemoteSharePointKnowledgeSourceParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeRemoteSharePointKnowledgeSourceParameters(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/RemoteSharePointKnowledgeSourceParameters.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/RemoteSharePointKnowledgeSourceParameters.cs new file mode 100644 index 000000000000..eb6a26aa5259 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/RemoteSharePointKnowledgeSourceParameters.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// Parameters for remote SharePoint knowledge source. + public partial class RemoteSharePointKnowledgeSourceParameters + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public RemoteSharePointKnowledgeSourceParameters() + { + ResourceMetadata = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Keyword Query Language (KQL) expression with queryable SharePoint properties and attributes to scope the retrieval before the query runs. See documentation: https://learn.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference. + /// A list of metadata fields to be returned for each item in the response. Only retrievable metadata properties can be included in this list. By default, no metadata is returned. Optional. + /// Container ID for SharePoint Embedded connection. When this is null, it will use SharePoint Online. + /// Keeps track of any properties unknown to the library. + internal RemoteSharePointKnowledgeSourceParameters(string filterExpression, IList resourceMetadata, string containerTypeId, IDictionary serializedAdditionalRawData) + { + FilterExpression = filterExpression; + ResourceMetadata = resourceMetadata; + ContainerTypeId = containerTypeId; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Keyword Query Language (KQL) expression with queryable SharePoint properties and attributes to scope the retrieval before the query runs. See documentation: https://learn.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference. + public string FilterExpression { get; set; } + /// A list of metadata fields to be returned for each item in the response. Only retrievable metadata properties can be included in this list. By default, no metadata is returned. Optional. + public IList ResourceMetadata { get; } + /// Container ID for SharePoint Embedded connection. When this is null, it will use SharePoint Online. + public string ContainerTypeId { get; set; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/RemoteSharePointKnowledgeSourceParams.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/RemoteSharePointKnowledgeSourceParams.Serialization.cs new file mode 100644 index 000000000000..71e9fd4ae00c --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/RemoteSharePointKnowledgeSourceParams.Serialization.cs @@ -0,0 +1,192 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.Search.Documents.Indexes.Models; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class RemoteSharePointKnowledgeSourceParams : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(RemoteSharePointKnowledgeSourceParams)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(FilterExpressionAddOn)) + { + writer.WritePropertyName("filterExpressionAddOn"u8); + writer.WriteStringValue(FilterExpressionAddOn); + } + } + + RemoteSharePointKnowledgeSourceParams IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(RemoteSharePointKnowledgeSourceParams)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeRemoteSharePointKnowledgeSourceParams(document.RootElement, options); + } + + internal static RemoteSharePointKnowledgeSourceParams DeserializeRemoteSharePointKnowledgeSourceParams(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string filterExpressionAddOn = default; + string knowledgeSourceName = default; + bool? includeReferences = default; + bool? includeReferenceSourceData = default; + bool? alwaysQuerySource = default; + float? rerankerThreshold = default; + KnowledgeSourceKind kind = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("filterExpressionAddOn"u8)) + { + filterExpressionAddOn = property.Value.GetString(); + continue; + } + if (property.NameEquals("knowledgeSourceName"u8)) + { + knowledgeSourceName = property.Value.GetString(); + continue; + } + if (property.NameEquals("includeReferences"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + includeReferences = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("includeReferenceSourceData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + includeReferenceSourceData = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("alwaysQuerySource"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + alwaysQuerySource = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("rerankerThreshold"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rerankerThreshold = property.Value.GetSingle(); + continue; + } + if (property.NameEquals("kind"u8)) + { + kind = new KnowledgeSourceKind(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new RemoteSharePointKnowledgeSourceParams( + knowledgeSourceName, + includeReferences, + includeReferenceSourceData, + alwaysQuerySource, + rerankerThreshold, + kind, + serializedAdditionalRawData, + filterExpressionAddOn); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(RemoteSharePointKnowledgeSourceParams)} does not support writing '{options.Format}' format."); + } + } + + RemoteSharePointKnowledgeSourceParams IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeRemoteSharePointKnowledgeSourceParams(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(RemoteSharePointKnowledgeSourceParams)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new RemoteSharePointKnowledgeSourceParams FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeRemoteSharePointKnowledgeSourceParams(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/RemoteSharePointKnowledgeSourceParams.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/RemoteSharePointKnowledgeSourceParams.cs new file mode 100644 index 000000000000..6a38a76c1fd1 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/RemoteSharePointKnowledgeSourceParams.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Search.Documents.Indexes.Models; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// Specifies runtime parameters for a remote SharePoint knowledge source. + public partial class RemoteSharePointKnowledgeSourceParams : KnowledgeSourceParams + { + /// Initializes a new instance of . + /// The name of the index the params apply to. + /// is null. + public RemoteSharePointKnowledgeSourceParams(string knowledgeSourceName) : base(knowledgeSourceName) + { + Argument.AssertNotNull(knowledgeSourceName, nameof(knowledgeSourceName)); + + Kind = KnowledgeSourceKind.RemoteSharePoint; + } + + /// Initializes a new instance of . + /// The name of the index the params apply to. + /// Indicates whether references should be included for data retrieved from this source. + /// Indicates whether references should include the structured data obtained during retrieval in their payload. + /// Indicates that this knowledge source should bypass source selection and always be queried at retrieval time. + /// The reranker threshold all retrieved documents must meet to be included in the response. + /// The type of the knowledge source. + /// Keeps track of any properties unknown to the library. + /// A filter condition applied to the SharePoint data source. It must be specified in the Keyword Query Language syntax. It will be combined as a conjunction with the filter expression specified in the knowledge source definition. + internal RemoteSharePointKnowledgeSourceParams(string knowledgeSourceName, bool? includeReferences, bool? includeReferenceSourceData, bool? alwaysQuerySource, float? rerankerThreshold, KnowledgeSourceKind kind, IDictionary serializedAdditionalRawData, string filterExpressionAddOn) : base(knowledgeSourceName, includeReferences, includeReferenceSourceData, alwaysQuerySource, rerankerThreshold, kind, serializedAdditionalRawData) + { + FilterExpressionAddOn = filterExpressionAddOn; + Kind = kind; + } + + /// Initializes a new instance of for deserialization. + internal RemoteSharePointKnowledgeSourceParams() + { + } + + /// A filter condition applied to the SharePoint data source. It must be specified in the Keyword Query Language syntax. It will be combined as a conjunction with the filter expression specified in the knowledge source definition. + public string FilterExpressionAddOn { get; set; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringFunctionAggregation.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringFunctionAggregation.Serialization.cs index fa763b68d5da..3deb393fa7d8 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringFunctionAggregation.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringFunctionAggregation.Serialization.cs @@ -18,6 +18,7 @@ internal static partial class ScoringFunctionAggregationExtensions ScoringFunctionAggregation.Minimum => "minimum", ScoringFunctionAggregation.Maximum => "maximum", ScoringFunctionAggregation.FirstMatching => "firstMatching", + ScoringFunctionAggregation.Product => "product", _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ScoringFunctionAggregation value.") }; @@ -28,6 +29,7 @@ public static ScoringFunctionAggregation ToScoringFunctionAggregation(this strin if (StringComparer.OrdinalIgnoreCase.Equals(value, "minimum")) return ScoringFunctionAggregation.Minimum; if (StringComparer.OrdinalIgnoreCase.Equals(value, "maximum")) return ScoringFunctionAggregation.Maximum; if (StringComparer.OrdinalIgnoreCase.Equals(value, "firstMatching")) return ScoringFunctionAggregation.FirstMatching; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "product")) return ScoringFunctionAggregation.Product; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown ScoringFunctionAggregation value."); } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringFunctionAggregation.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringFunctionAggregation.cs index fee3a34f148c..5f1e8387ffd4 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringFunctionAggregation.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ScoringFunctionAggregation.cs @@ -19,6 +19,8 @@ public enum ScoringFunctionAggregation /// Boost scores by the maximum of all scoring function results. Maximum, /// Boost scores using the first applicable scoring function in the scoring profile. - FirstMatching + FirstMatching, + /// Boost scores by the product of all scoring function results. + Product } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchField.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchField.Serialization.cs index 376791f11c16..26db2350b328 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchField.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchField.Serialization.cs @@ -85,6 +85,18 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WriteNull("permissionFilter"); } } + if (Optional.IsDefined(SensitivityLabel)) + { + if (SensitivityLabel != null) + { + writer.WritePropertyName("sensitivityLabel"u8); + writer.WriteBooleanValue(SensitivityLabel.Value); + } + else + { + writer.WriteNull("sensitivityLabel"); + } + } if (Optional.IsDefined(AnalyzerName)) { if (AnalyzerName != null) @@ -236,6 +248,7 @@ internal static SearchField DeserializeSearchField(JsonElement element, ModelRea bool? sortable = default; bool? facetable = default; PermissionFilter? permissionFilter = default; + bool? sensitivityLabel = default; LexicalAnalyzerName? analyzer = default; LexicalAnalyzerName? searchAnalyzer = default; LexicalAnalyzerName? indexAnalyzer = default; @@ -332,6 +345,16 @@ internal static SearchField DeserializeSearchField(JsonElement element, ModelRea permissionFilter = new PermissionFilter(property.Value.GetString()); continue; } + if (property.NameEquals("sensitivityLabel"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + sensitivityLabel = null; + continue; + } + sensitivityLabel = property.Value.GetBoolean(); + continue; + } if (property.NameEquals("analyzer"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -447,6 +470,7 @@ internal static SearchField DeserializeSearchField(JsonElement element, ModelRea sortable, facetable, permissionFilter, + sensitivityLabel, analyzer, searchAnalyzer, indexAnalyzer, diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchField.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchField.cs index 7e3503f32c45..0397de94b78e 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchField.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchField.cs @@ -56,6 +56,7 @@ public partial class SearchField /// A value indicating whether to enable the field to be referenced in $orderby expressions. By default, the search engine sorts results by score, but in many experiences users will want to sort by fields in the documents. A simple field can be sortable only if it is single-valued (it has a single value in the scope of the parent document). Simple collection fields cannot be sortable, since they are multi-valued. Simple sub-fields of complex collections are also multi-valued, and therefore cannot be sortable. This is true whether it's an immediate parent field, or an ancestor field, that's the complex collection. Complex fields cannot be sortable and the sortable property must be null for such fields. The default for sortable is true for single-valued simple fields, false for multi-valued simple fields, and null for complex fields. /// A value indicating whether to enable the field to be referenced in facet queries. Typically used in a presentation of search results that includes hit count by category (for example, search for digital cameras and see hits by brand, by megapixels, by price, and so on). This property must be null for complex fields. Fields of type Edm.GeographyPoint or Collection(Edm.GeographyPoint) cannot be facetable. Default is true for all other simple fields. /// A value indicating whether the field should be used as a permission filter. + /// A value indicating whether the field should be used for sensitivity label filtering. This enables document-level filtering based on Microsoft Purview sensitivity labels. /// The name of the analyzer to use for the field. This option can be used only with searchable fields and it can't be set together with either searchAnalyzer or indexAnalyzer. Once the analyzer is chosen, it cannot be changed for the field. Must be null for complex fields. /// The name of the analyzer used at search time for the field. This option can be used only with searchable fields. It must be set together with indexAnalyzer and it cannot be set together with the analyzer option. This property cannot be set to the name of a language analyzer; use the analyzer property instead if you need a language analyzer. This analyzer can be updated on an existing field. Must be null for complex fields. /// The name of the analyzer used at indexing time for the field. This option can be used only with searchable fields. It must be set together with searchAnalyzer and it cannot be set together with the analyzer option. This property cannot be set to the name of a language analyzer; use the analyzer property instead if you need a language analyzer. Once the analyzer is chosen, it cannot be changed for the field. Must be null for complex fields. @@ -66,7 +67,7 @@ public partial class SearchField /// A list of the names of synonym maps to associate with this field. This option can be used only with searchable fields. Currently only one synonym map per field is supported. Assigning a synonym map to a field ensures that query terms targeting that field are expanded at query-time using the rules in the synonym map. This attribute can be changed on existing fields. Must be null or an empty collection for complex fields. /// A list of sub-fields if this is a field of type Edm.ComplexType or Collection(Edm.ComplexType). Must be null or empty for simple fields. /// Keeps track of any properties unknown to the library. - internal SearchField(string name, SearchFieldDataType type, bool? isKey, bool? isRetrievable, bool? isStored, bool? isSearchable, bool? isFilterable, bool? isSortable, bool? isFacetable, PermissionFilter? permissionFilter, LexicalAnalyzerName? analyzerName, LexicalAnalyzerName? searchAnalyzerName, LexicalAnalyzerName? indexAnalyzerName, LexicalNormalizerName? normalizerName, int? vectorSearchDimensions, string vectorSearchProfileName, VectorEncodingFormat? vectorEncodingFormat, IList synonymMapNames, IList fields, IDictionary serializedAdditionalRawData) + internal SearchField(string name, SearchFieldDataType type, bool? isKey, bool? isRetrievable, bool? isStored, bool? isSearchable, bool? isFilterable, bool? isSortable, bool? isFacetable, PermissionFilter? permissionFilter, bool? sensitivityLabel, LexicalAnalyzerName? analyzerName, LexicalAnalyzerName? searchAnalyzerName, LexicalAnalyzerName? indexAnalyzerName, LexicalNormalizerName? normalizerName, int? vectorSearchDimensions, string vectorSearchProfileName, VectorEncodingFormat? vectorEncodingFormat, IList synonymMapNames, IList fields, IDictionary serializedAdditionalRawData) { Name = name; Type = type; @@ -78,6 +79,7 @@ internal SearchField(string name, SearchFieldDataType type, bool? isKey, bool? i IsSortable = isSortable; IsFacetable = isFacetable; PermissionFilter = permissionFilter; + SensitivityLabel = sensitivityLabel; AnalyzerName = analyzerName; SearchAnalyzerName = searchAnalyzerName; IndexAnalyzerName = indexAnalyzerName; @@ -96,6 +98,8 @@ internal SearchField() } /// A value indicating whether the field should be used as a permission filter. public PermissionFilter? PermissionFilter { get; set; } + /// A value indicating whether the field should be used for sensitivity label filtering. This enables document-level filtering based on Microsoft Purview sensitivity labels. + public bool? SensitivityLabel { get; set; } /// The dimensionality of the vector field. public int? VectorSearchDimensions { get; set; } /// The name of the vector search profile that specifies the algorithm and vectorizer to use when searching the vector field. diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndex.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndex.Serialization.cs index d432af74783e..96e47f9e01d9 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndex.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndex.Serialization.cs @@ -189,6 +189,18 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WriteNull("permissionFilterOption"); } } + if (Optional.IsDefined(PurviewEnabled)) + { + if (PurviewEnabled != null) + { + writer.WritePropertyName("purviewEnabled"u8); + writer.WriteBooleanValue(PurviewEnabled.Value); + } + else + { + writer.WriteNull("purviewEnabled"); + } + } if (Optional.IsDefined(_etag)) { writer.WritePropertyName("@odata.etag"u8); @@ -248,6 +260,7 @@ internal static SearchIndex DeserializeSearchIndex(JsonElement element, ModelRea SemanticSearch semantic = default; VectorSearch vectorSearch = default; SearchIndexPermissionFilterOption? permissionFilterOption = default; + bool? purviewEnabled = default; string odataEtag = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -435,6 +448,16 @@ internal static SearchIndex DeserializeSearchIndex(JsonElement element, ModelRea permissionFilterOption = new SearchIndexPermissionFilterOption(property.Value.GetString()); continue; } + if (property.NameEquals("purviewEnabled"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + purviewEnabled = null; + continue; + } + purviewEnabled = property.Value.GetBoolean(); + continue; + } if (property.NameEquals("@odata.etag"u8)) { odataEtag = property.Value.GetString(); @@ -464,6 +487,7 @@ internal static SearchIndex DeserializeSearchIndex(JsonElement element, ModelRea semantic, vectorSearch, permissionFilterOption, + purviewEnabled, odataEtag, serializedAdditionalRawData); } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndex.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndex.cs index 6ed5d32a8596..82bf40945a3a 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndex.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndex.cs @@ -89,9 +89,10 @@ public partial class SearchIndex /// Defines parameters for a search index that influence semantic capabilities. /// Contains configuration options related to vector search. /// A value indicating whether permission filtering is enabled for the index. + /// A value indicating whether the index is leveraging Purview-specific features. This property defaults to false and cannot be changed after index creation. /// The ETag of the index. /// Keeps track of any properties unknown to the library. - internal SearchIndex(string name, string description, IList fields, IList scoringProfiles, string defaultScoringProfile, CorsOptions corsOptions, IList suggesters, IList analyzers, IList tokenizers, IList tokenFilters, IList charFilters, IList normalizers, SearchResourceEncryptionKey encryptionKey, SimilarityAlgorithm similarity, SemanticSearch semanticSearch, VectorSearch vectorSearch, SearchIndexPermissionFilterOption? permissionFilterOption, string etag, IDictionary serializedAdditionalRawData) + internal SearchIndex(string name, string description, IList fields, IList scoringProfiles, string defaultScoringProfile, CorsOptions corsOptions, IList suggesters, IList analyzers, IList tokenizers, IList tokenFilters, IList charFilters, IList normalizers, SearchResourceEncryptionKey encryptionKey, SimilarityAlgorithm similarity, SemanticSearch semanticSearch, VectorSearch vectorSearch, SearchIndexPermissionFilterOption? permissionFilterOption, bool? purviewEnabled, string etag, IDictionary serializedAdditionalRawData) { Name = name; Description = description; @@ -110,6 +111,7 @@ internal SearchIndex(string name, string description, IList fields, SemanticSearch = semanticSearch; VectorSearch = vectorSearch; PermissionFilterOption = permissionFilterOption; + PurviewEnabled = purviewEnabled; _etag = etag; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -138,5 +140,7 @@ internal SearchIndex() public VectorSearch VectorSearch { get; set; } /// A value indicating whether permission filtering is enabled for the index. public SearchIndexPermissionFilterOption? PermissionFilterOption { get; set; } + /// A value indicating whether the index is leveraging Purview-specific features. This property defaults to false and cannot be changed after index creation. + public bool? PurviewEnabled { get; set; } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexFieldReference.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexFieldReference.Serialization.cs new file mode 100644 index 000000000000..68d190f2313c --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexFieldReference.Serialization.cs @@ -0,0 +1,142 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.Indexes.Models +{ + public partial class SearchIndexFieldReference : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SearchIndexFieldReference)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + SearchIndexFieldReference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SearchIndexFieldReference)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeSearchIndexFieldReference(document.RootElement, options); + } + + internal static SearchIndexFieldReference DeserializeSearchIndexFieldReference(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string name = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new SearchIndexFieldReference(name, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(SearchIndexFieldReference)} does not support writing '{options.Format}' format."); + } + } + + SearchIndexFieldReference IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeSearchIndexFieldReference(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(SearchIndexFieldReference)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SearchIndexFieldReference FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeSearchIndexFieldReference(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexFieldReference.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexFieldReference.cs new file mode 100644 index 000000000000..54102abe0ebe --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexFieldReference.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// The SearchIndexFieldReference. + public partial class SearchIndexFieldReference + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// + /// is null. + public SearchIndexFieldReference(string name) + { + Argument.AssertNotNull(name, nameof(name)); + + Name = name; + } + + /// Initializes a new instance of . + /// + /// Keeps track of any properties unknown to the library. + internal SearchIndexFieldReference(string name, IDictionary serializedAdditionalRawData) + { + Name = name; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal SearchIndexFieldReference() + { + } + + /// Gets or sets the name. + public string Name { get; set; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexKnowledgeSource.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexKnowledgeSource.cs index 5aa95ea061e7..11ea26739b19 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexKnowledgeSource.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexKnowledgeSource.cs @@ -30,8 +30,8 @@ public SearchIndexKnowledgeSource(string name, SearchIndexKnowledgeSourceParamet /// The name of the knowledge source. /// Optional user-defined description. /// The type of the knowledge source. - /// The ETag of the agent. - /// A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your agent definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your agent definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your agent definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. + /// The ETag of the knowledge base. + /// A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your knowledge base definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your knowledge base definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your knowledge base definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. /// Keeps track of any properties unknown to the library. /// The parameters for the knowledge source. internal SearchIndexKnowledgeSource(string name, string description, KnowledgeSourceKind kind, string eTag, SearchResourceEncryptionKey encryptionKey, IDictionary serializedAdditionalRawData, SearchIndexKnowledgeSourceParameters searchIndexParameters) : base(name, description, kind, eTag, encryptionKey, serializedAdditionalRawData) diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexKnowledgeSourceParameters.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexKnowledgeSourceParameters.Serialization.cs index d5de38dbde7f..fb2b8e692a71 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexKnowledgeSourceParameters.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexKnowledgeSourceParameters.Serialization.cs @@ -36,10 +36,30 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("searchIndexName"u8); writer.WriteStringValue(SearchIndexName); - if (Optional.IsDefined(SourceDataSelect)) + if (Optional.IsCollectionDefined(SourceDataFields)) { - writer.WritePropertyName("sourceDataSelect"u8); - writer.WriteStringValue(SourceDataSelect); + writer.WritePropertyName("sourceDataFields"u8); + writer.WriteStartArray(); + foreach (var item in SourceDataFields) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(SearchFields)) + { + writer.WritePropertyName("searchFields"u8); + writer.WriteStartArray(); + foreach (var item in SearchFields) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(SemanticConfigurationName)) + { + writer.WritePropertyName("semanticConfigurationName"u8); + writer.WriteStringValue(SemanticConfigurationName); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -79,7 +99,9 @@ internal static SearchIndexKnowledgeSourceParameters DeserializeSearchIndexKnowl return null; } string searchIndexName = default; - string sourceDataSelect = default; + IList sourceDataFields = default; + IList searchFields = default; + string semanticConfigurationName = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -89,9 +111,37 @@ internal static SearchIndexKnowledgeSourceParameters DeserializeSearchIndexKnowl searchIndexName = property.Value.GetString(); continue; } - if (property.NameEquals("sourceDataSelect"u8)) + if (property.NameEquals("sourceDataFields"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(SearchIndexFieldReference.DeserializeSearchIndexFieldReference(item, options)); + } + sourceDataFields = array; + continue; + } + if (property.NameEquals("searchFields"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(SearchIndexFieldReference.DeserializeSearchIndexFieldReference(item, options)); + } + searchFields = array; + continue; + } + if (property.NameEquals("semanticConfigurationName"u8)) { - sourceDataSelect = property.Value.GetString(); + semanticConfigurationName = property.Value.GetString(); continue; } if (options.Format != "W") @@ -100,7 +150,7 @@ internal static SearchIndexKnowledgeSourceParameters DeserializeSearchIndexKnowl } } serializedAdditionalRawData = rawDataDictionary; - return new SearchIndexKnowledgeSourceParameters(searchIndexName, sourceDataSelect, serializedAdditionalRawData); + return new SearchIndexKnowledgeSourceParameters(searchIndexName, sourceDataFields ?? new ChangeTrackingList(), searchFields ?? new ChangeTrackingList(), semanticConfigurationName, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexKnowledgeSourceParameters.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexKnowledgeSourceParameters.cs index bf9baee8a9b1..c6635424187f 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexKnowledgeSourceParameters.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexKnowledgeSourceParameters.cs @@ -53,16 +53,22 @@ public SearchIndexKnowledgeSourceParameters(string searchIndexName) Argument.AssertNotNull(searchIndexName, nameof(searchIndexName)); SearchIndexName = searchIndexName; + SourceDataFields = new ChangeTrackingList(); + SearchFields = new ChangeTrackingList(); } /// Initializes a new instance of . /// The name of the Search index. - /// Used to request additional fields for referenced source data. + /// Used to request additional fields for referenced source data. + /// Used to restrict which fields to search on the search index. + /// Used to specify a different semantic configuration on the target search index other than the default one. /// Keeps track of any properties unknown to the library. - internal SearchIndexKnowledgeSourceParameters(string searchIndexName, string sourceDataSelect, IDictionary serializedAdditionalRawData) + internal SearchIndexKnowledgeSourceParameters(string searchIndexName, IList sourceDataFields, IList searchFields, string semanticConfigurationName, IDictionary serializedAdditionalRawData) { SearchIndexName = searchIndexName; - SourceDataSelect = sourceDataSelect; + SourceDataFields = sourceDataFields; + SearchFields = searchFields; + SemanticConfigurationName = semanticConfigurationName; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -74,6 +80,10 @@ internal SearchIndexKnowledgeSourceParameters() /// The name of the Search index. public string SearchIndexName { get; set; } /// Used to request additional fields for referenced source data. - public string SourceDataSelect { get; set; } + public IList SourceDataFields { get; } + /// Used to restrict which fields to search on the search index. + public IList SearchFields { get; } + /// Used to specify a different semantic configuration on the target search index other than the default one. + public string SemanticConfigurationName { get; set; } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexKnowledgeSourceParams.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexKnowledgeSourceParams.Serialization.cs index 1e876bf7c01f..5c97122ba7ff 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexKnowledgeSourceParams.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexKnowledgeSourceParams.Serialization.cs @@ -12,7 +12,7 @@ using Azure.Core; using Azure.Search.Documents.Indexes.Models; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { public partial class SearchIndexKnowledgeSourceParams : IUtf8JsonSerializable, IJsonModel { @@ -65,6 +65,10 @@ internal static SearchIndexKnowledgeSourceParams DeserializeSearchIndexKnowledge } string filterAddOn = default; string knowledgeSourceName = default; + bool? includeReferences = default; + bool? includeReferenceSourceData = default; + bool? alwaysQuerySource = default; + float? rerankerThreshold = default; KnowledgeSourceKind kind = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -80,6 +84,42 @@ internal static SearchIndexKnowledgeSourceParams DeserializeSearchIndexKnowledge knowledgeSourceName = property.Value.GetString(); continue; } + if (property.NameEquals("includeReferences"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + includeReferences = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("includeReferenceSourceData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + includeReferenceSourceData = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("alwaysQuerySource"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + alwaysQuerySource = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("rerankerThreshold"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rerankerThreshold = property.Value.GetSingle(); + continue; + } if (property.NameEquals("kind"u8)) { kind = new KnowledgeSourceKind(property.Value.GetString()); @@ -91,7 +131,15 @@ internal static SearchIndexKnowledgeSourceParams DeserializeSearchIndexKnowledge } } serializedAdditionalRawData = rawDataDictionary; - return new SearchIndexKnowledgeSourceParams(knowledgeSourceName, kind, serializedAdditionalRawData, filterAddOn); + return new SearchIndexKnowledgeSourceParams( + knowledgeSourceName, + includeReferences, + includeReferenceSourceData, + alwaysQuerySource, + rerankerThreshold, + kind, + serializedAdditionalRawData, + filterAddOn); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexKnowledgeSourceParams.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexKnowledgeSourceParams.cs index 63f8d2b090d8..ef1f999a9ff6 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexKnowledgeSourceParams.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexKnowledgeSourceParams.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using Azure.Search.Documents.Indexes.Models; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.KnowledgeBases.Models { /// Specifies runtime parameters for a search index knowledge source. public partial class SearchIndexKnowledgeSourceParams : KnowledgeSourceParams @@ -26,10 +26,14 @@ public SearchIndexKnowledgeSourceParams(string knowledgeSourceName) : base(knowl /// Initializes a new instance of . /// The name of the index the params apply to. + /// Indicates whether references should be included for data retrieved from this source. + /// Indicates whether references should include the structured data obtained during retrieval in their payload. + /// Indicates that this knowledge source should bypass source selection and always be queried at retrieval time. + /// The reranker threshold all retrieved documents must meet to be included in the response. /// The type of the knowledge source. /// Keeps track of any properties unknown to the library. /// A filter condition applied to the index (e.g., 'State eq VA'). - internal SearchIndexKnowledgeSourceParams(string knowledgeSourceName, KnowledgeSourceKind kind, IDictionary serializedAdditionalRawData, string filterAddOn) : base(knowledgeSourceName, kind, serializedAdditionalRawData) + internal SearchIndexKnowledgeSourceParams(string knowledgeSourceName, bool? includeReferences, bool? includeReferenceSourceData, bool? alwaysQuerySource, float? rerankerThreshold, KnowledgeSourceKind kind, IDictionary serializedAdditionalRawData, string filterAddOn) : base(knowledgeSourceName, includeReferences, includeReferenceSourceData, alwaysQuerySource, rerankerThreshold, kind, serializedAdditionalRawData) { FilterAddOn = filterAddOn; Kind = kind; diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataSourceType.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataSourceType.cs index 6bd435e0c790..cf374278f044 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataSourceType.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerDataSourceType.cs @@ -29,6 +29,7 @@ public SearchIndexerDataSourceType(string value) private const string MySqlValue = "mysql"; private const string AdlsGen2Value = "adlsgen2"; private const string OneLakeValue = "onelake"; + private const string SharePointValue = "sharepoint"; /// Indicates an Azure SQL datasource. public static SearchIndexerDataSourceType AzureSql { get; } = new SearchIndexerDataSourceType(AzureSqlValue); @@ -44,6 +45,8 @@ public SearchIndexerDataSourceType(string value) public static SearchIndexerDataSourceType AdlsGen2 { get; } = new SearchIndexerDataSourceType(AdlsGen2Value); /// Indicates a Microsoft Fabric OneLake datasource. public static SearchIndexerDataSourceType OneLake { get; } = new SearchIndexerDataSourceType(OneLakeValue); + /// Indicates a SharePoint datasource. + public static SearchIndexerDataSourceType SharePoint { get; } = new SearchIndexerDataSourceType(SharePointValue); /// Determines if two values are the same. public static bool operator ==(SearchIndexerDataSourceType left, SearchIndexerDataSourceType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerSkill.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerSkill.Serialization.cs index ba4101b91cb9..46269fc7821c 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerSkill.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerSkill.Serialization.cs @@ -123,6 +123,7 @@ internal static SearchIndexerSkill DeserializeSearchIndexerSkill(JsonElement ele case "#Microsoft.Skills.Text.V3.EntityRecognitionSkill": return EntityRecognitionSkillV3.DeserializeEntityRecognitionSkillV3(element, options); case "#Microsoft.Skills.Text.V3.SentimentSkill": return SentimentSkillV3.DeserializeSentimentSkillV3(element, options); case "#Microsoft.Skills.Util.ConditionalSkill": return ConditionalSkill.DeserializeConditionalSkill(element, options); + case "#Microsoft.Skills.Util.ContentUnderstandingSkill": return ContentUnderstandingSkill.DeserializeContentUnderstandingSkill(element, options); case "#Microsoft.Skills.Util.DocumentExtractionSkill": return DocumentExtractionSkill.DeserializeDocumentExtractionSkill(element, options); case "#Microsoft.Skills.Util.DocumentIntelligenceLayoutSkill": return DocumentIntelligenceLayoutSkill.DeserializeDocumentIntelligenceLayoutSkill(element, options); case "#Microsoft.Skills.Util.ShaperSkill": return ShaperSkill.DeserializeShaperSkill(element, options); diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerSkill.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerSkill.cs index 1377c89577ce..88e732ca6d67 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerSkill.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerSkill.cs @@ -14,7 +14,7 @@ namespace Azure.Search.Documents.Indexes.Models /// /// Base type for skills. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , and . /// public partial class SearchIndexerSkill { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerSkillset.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerSkillset.cs index 588db99739b2..3ae13243a6bb 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerSkillset.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerSkillset.cs @@ -51,7 +51,7 @@ public partial class SearchIndexerSkillset /// /// A list of skills in the skillset. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , and . /// /// or is null. public SearchIndexerSkillset(string name, IEnumerable skills) @@ -69,7 +69,7 @@ public SearchIndexerSkillset(string name, IEnumerable skills /// /// A list of skills in the skillset. /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , , , , , , , , , , , , , , , , and . + /// The available derived classes include , , , , , , , , , , , , , , , , , , , , and . /// /// /// Details about the Azure AI service to be used when running skills. diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerStatus.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerStatus.Serialization.cs index 547e383470e4..fb7c52f2fc69 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerStatus.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerStatus.Serialization.cs @@ -44,6 +44,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("status"u8); writer.WriteStringValue(Status.ToSerialString()); } + if (options.Format != "W") + { + writer.WritePropertyName("runtime"u8); + writer.WriteObjectValue(Runtime, options); + } if (options.Format != "W" && Optional.IsDefined(LastResult)) { if (LastResult != null) @@ -115,6 +120,7 @@ internal static SearchIndexerStatus DeserializeSearchIndexerStatus(JsonElement e } string name = default; IndexerStatus status = default; + IndexerRuntime runtime = default; IndexerExecutionResult lastResult = default; IReadOnlyList executionHistory = default; SearchIndexerLimits limits = default; @@ -133,6 +139,11 @@ internal static SearchIndexerStatus DeserializeSearchIndexerStatus(JsonElement e status = property.Value.GetString().ToIndexerStatus(); continue; } + if (property.NameEquals("runtime"u8)) + { + runtime = IndexerRuntime.DeserializeIndexerRuntime(property.Value, options); + continue; + } if (property.NameEquals("lastResult"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -176,6 +187,7 @@ internal static SearchIndexerStatus DeserializeSearchIndexerStatus(JsonElement e return new SearchIndexerStatus( name, status, + runtime, lastResult, executionHistory, limits, diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerStatus.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerStatus.cs index 0d72360da4b3..430f1dd5cf63 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerStatus.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchIndexerStatus.cs @@ -49,12 +49,14 @@ public partial class SearchIndexerStatus /// Initializes a new instance of . /// The name of the indexer. /// Overall indexer status. + /// Snapshot of the indexer’s cumulative runtime consumption for the service over the current UTC period. /// History of the recent indexer executions, sorted in reverse chronological order. /// The execution limits for the indexer. - internal SearchIndexerStatus(string name, IndexerStatus status, IEnumerable executionHistory, SearchIndexerLimits limits) + internal SearchIndexerStatus(string name, IndexerStatus status, IndexerRuntime runtime, IEnumerable executionHistory, SearchIndexerLimits limits) { Name = name; Status = status; + Runtime = runtime; ExecutionHistory = executionHistory.ToList(); Limits = limits; } @@ -62,15 +64,17 @@ internal SearchIndexerStatus(string name, IndexerStatus status, IEnumerable Initializes a new instance of . /// The name of the indexer. /// Overall indexer status. + /// Snapshot of the indexer’s cumulative runtime consumption for the service over the current UTC period. /// The result of the most recent or an in-progress indexer execution. /// History of the recent indexer executions, sorted in reverse chronological order. /// The execution limits for the indexer. /// All of the state that defines and dictates the indexer's current execution. /// Keeps track of any properties unknown to the library. - internal SearchIndexerStatus(string name, IndexerStatus status, IndexerExecutionResult lastResult, IReadOnlyList executionHistory, SearchIndexerLimits limits, IndexerState currentState, IDictionary serializedAdditionalRawData) + internal SearchIndexerStatus(string name, IndexerStatus status, IndexerRuntime runtime, IndexerExecutionResult lastResult, IReadOnlyList executionHistory, SearchIndexerLimits limits, IndexerState currentState, IDictionary serializedAdditionalRawData) { Name = name; Status = status; + Runtime = runtime; LastResult = lastResult; ExecutionHistory = executionHistory; Limits = limits; @@ -87,6 +91,8 @@ internal SearchIndexerStatus() public string Name { get; } /// Overall indexer status. public IndexerStatus Status { get; } + /// Snapshot of the indexer’s cumulative runtime consumption for the service over the current UTC period. + public IndexerRuntime Runtime { get; } /// The result of the most recent or an in-progress indexer execution. public IndexerExecutionResult LastResult { get; } /// History of the recent indexer executions, sorted in reverse chronological order. diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceLimits.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceLimits.Serialization.cs index de3f53e4efd0..635ad2f21d9a 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceLimits.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceLimits.Serialization.cs @@ -94,6 +94,18 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WriteNull("maxStoragePerIndex"); } } + if (Optional.IsDefined(MaxCumulativeIndexerRuntimeSeconds)) + { + if (MaxCumulativeIndexerRuntimeSeconds != null) + { + writer.WritePropertyName("maxCumulativeIndexerRuntimeSeconds"u8); + writer.WriteNumberValue(MaxCumulativeIndexerRuntimeSeconds.Value); + } + else + { + writer.WriteNull("maxCumulativeIndexerRuntimeSeconds"); + } + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -136,6 +148,7 @@ internal static SearchServiceLimits DeserializeSearchServiceLimits(JsonElement e int? maxComplexCollectionFieldsPerIndex = default; int? maxComplexObjectsInCollectionsPerDocument = default; long? maxStoragePerIndex = default; + long? maxCumulativeIndexerRuntimeSeconds = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -190,6 +203,16 @@ internal static SearchServiceLimits DeserializeSearchServiceLimits(JsonElement e maxStoragePerIndex = property.Value.GetInt64(); continue; } + if (property.NameEquals("maxCumulativeIndexerRuntimeSeconds"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + maxCumulativeIndexerRuntimeSeconds = null; + continue; + } + maxCumulativeIndexerRuntimeSeconds = property.Value.GetInt64(); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); @@ -202,6 +225,7 @@ internal static SearchServiceLimits DeserializeSearchServiceLimits(JsonElement e maxComplexCollectionFieldsPerIndex, maxComplexObjectsInCollectionsPerDocument, maxStoragePerIndex, + maxCumulativeIndexerRuntimeSeconds, serializedAdditionalRawData); } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceLimits.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceLimits.cs index 185b90e12725..784823743c10 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceLimits.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceLimits.cs @@ -56,14 +56,16 @@ internal SearchServiceLimits() /// The maximum number of fields of type Collection(Edm.ComplexType) allowed in an index. /// The maximum number of objects in complex collections allowed per document. /// The maximum amount of storage in bytes allowed per index. + /// The maximum cumulative runtime in seconds allowed for all indexers in the service over the current UTC period. /// Keeps track of any properties unknown to the library. - internal SearchServiceLimits(int? maxFieldsPerIndex, int? maxFieldNestingDepthPerIndex, int? maxComplexCollectionFieldsPerIndex, int? maxComplexObjectsInCollectionsPerDocument, long? maxStoragePerIndexInBytes, IDictionary serializedAdditionalRawData) + internal SearchServiceLimits(int? maxFieldsPerIndex, int? maxFieldNestingDepthPerIndex, int? maxComplexCollectionFieldsPerIndex, int? maxComplexObjectsInCollectionsPerDocument, long? maxStoragePerIndexInBytes, long? maxCumulativeIndexerRuntimeSeconds, IDictionary serializedAdditionalRawData) { MaxFieldsPerIndex = maxFieldsPerIndex; MaxFieldNestingDepthPerIndex = maxFieldNestingDepthPerIndex; MaxComplexCollectionFieldsPerIndex = maxComplexCollectionFieldsPerIndex; MaxComplexObjectsInCollectionsPerDocument = maxComplexObjectsInCollectionsPerDocument; MaxStoragePerIndexInBytes = maxStoragePerIndexInBytes; + MaxCumulativeIndexerRuntimeSeconds = maxCumulativeIndexerRuntimeSeconds; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -77,5 +79,7 @@ internal SearchServiceLimits(int? maxFieldsPerIndex, int? maxFieldNestingDepthPe public int? MaxComplexObjectsInCollectionsPerDocument { get; } /// The maximum amount of storage in bytes allowed per index. public long? MaxStoragePerIndexInBytes { get; } + /// The maximum cumulative runtime in seconds allowed for all indexers in the service over the current UTC period. + public long? MaxCumulativeIndexerRuntimeSeconds { get; } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceStatistics.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceStatistics.Serialization.cs index 6818c1b7eebe..644cc31d1d3a 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceStatistics.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceStatistics.Serialization.cs @@ -36,6 +36,8 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("counters"u8); writer.WriteObjectValue(Counters, options); + writer.WritePropertyName("indexersRuntime"u8); + writer.WriteObjectValue(IndexersRuntime, options); writer.WritePropertyName("limits"u8); writer.WriteObjectValue(Limits, options); if (options.Format != "W" && _serializedAdditionalRawData != null) @@ -76,6 +78,7 @@ internal static SearchServiceStatistics DeserializeSearchServiceStatistics(JsonE return null; } SearchServiceCounters counters = default; + ServiceIndexersRuntime indexersRuntime = default; SearchServiceLimits limits = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -86,6 +89,11 @@ internal static SearchServiceStatistics DeserializeSearchServiceStatistics(JsonE counters = SearchServiceCounters.DeserializeSearchServiceCounters(property.Value, options); continue; } + if (property.NameEquals("indexersRuntime"u8)) + { + indexersRuntime = ServiceIndexersRuntime.DeserializeServiceIndexersRuntime(property.Value, options); + continue; + } if (property.NameEquals("limits"u8)) { limits = SearchServiceLimits.DeserializeSearchServiceLimits(property.Value, options); @@ -97,7 +105,7 @@ internal static SearchServiceStatistics DeserializeSearchServiceStatistics(JsonE } } serializedAdditionalRawData = rawDataDictionary; - return new SearchServiceStatistics(counters, limits, serializedAdditionalRawData); + return new SearchServiceStatistics(counters, indexersRuntime, limits, serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceStatistics.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceStatistics.cs index f5762b951ad9..819490817989 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceStatistics.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SearchServiceStatistics.cs @@ -10,7 +10,7 @@ namespace Azure.Search.Documents.Indexes.Models { - /// Response from a get service statistics request. If successful, it includes service level counters and limits. + /// Response from a get service statistics request. If successful, it includes service level counters, indexer runtime information, and limits. public partial class SearchServiceStatistics { /// @@ -47,24 +47,29 @@ public partial class SearchServiceStatistics /// Initializes a new instance of . /// Service level resource counters. + /// Service level indexers runtime information. /// Service level general limits. - /// or is null. - internal SearchServiceStatistics(SearchServiceCounters counters, SearchServiceLimits limits) + /// , or is null. + internal SearchServiceStatistics(SearchServiceCounters counters, ServiceIndexersRuntime indexersRuntime, SearchServiceLimits limits) { Argument.AssertNotNull(counters, nameof(counters)); + Argument.AssertNotNull(indexersRuntime, nameof(indexersRuntime)); Argument.AssertNotNull(limits, nameof(limits)); Counters = counters; + IndexersRuntime = indexersRuntime; Limits = limits; } /// Initializes a new instance of . /// Service level resource counters. + /// Service level indexers runtime information. /// Service level general limits. /// Keeps track of any properties unknown to the library. - internal SearchServiceStatistics(SearchServiceCounters counters, SearchServiceLimits limits, IDictionary serializedAdditionalRawData) + internal SearchServiceStatistics(SearchServiceCounters counters, ServiceIndexersRuntime indexersRuntime, SearchServiceLimits limits, IDictionary serializedAdditionalRawData) { Counters = counters; + IndexersRuntime = indexersRuntime; Limits = limits; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -76,6 +81,8 @@ internal SearchServiceStatistics() /// Service level resource counters. public SearchServiceCounters Counters { get; } + /// Service level indexers runtime information. + public ServiceIndexersRuntime IndexersRuntime { get; } /// Service level general limits. public SearchServiceLimits Limits { get; } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ServiceIndexersRuntime.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ServiceIndexersRuntime.Serialization.cs new file mode 100644 index 000000000000..641ce3849005 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ServiceIndexersRuntime.Serialization.cs @@ -0,0 +1,181 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.Indexes.Models +{ + public partial class ServiceIndexersRuntime : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ServiceIndexersRuntime)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("usedSeconds"u8); + writer.WriteNumberValue(UsedSeconds); + if (Optional.IsDefined(RemainingSeconds)) + { + if (RemainingSeconds != null) + { + writer.WritePropertyName("remainingSeconds"u8); + writer.WriteNumberValue(RemainingSeconds.Value); + } + else + { + writer.WriteNull("remainingSeconds"); + } + } + writer.WritePropertyName("beginningTime"u8); + writer.WriteStringValue(BeginningTime, "O"); + writer.WritePropertyName("endingTime"u8); + writer.WriteStringValue(EndingTime, "O"); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + ServiceIndexersRuntime IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(ServiceIndexersRuntime)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeServiceIndexersRuntime(document.RootElement, options); + } + + internal static ServiceIndexersRuntime DeserializeServiceIndexersRuntime(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + long usedSeconds = default; + long? remainingSeconds = default; + DateTimeOffset beginningTime = default; + DateTimeOffset endingTime = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("usedSeconds"u8)) + { + usedSeconds = property.Value.GetInt64(); + continue; + } + if (property.NameEquals("remainingSeconds"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + remainingSeconds = null; + continue; + } + remainingSeconds = property.Value.GetInt64(); + continue; + } + if (property.NameEquals("beginningTime"u8)) + { + beginningTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("endingTime"u8)) + { + endingTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ServiceIndexersRuntime(usedSeconds, remainingSeconds, beginningTime, endingTime, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(ServiceIndexersRuntime)} does not support writing '{options.Format}' format."); + } + } + + ServiceIndexersRuntime IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeServiceIndexersRuntime(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ServiceIndexersRuntime)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static ServiceIndexersRuntime FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeServiceIndexersRuntime(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/ServiceIndexersRuntime.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/ServiceIndexersRuntime.cs new file mode 100644 index 000000000000..ea02b9c64caf --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/ServiceIndexersRuntime.cs @@ -0,0 +1,88 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// Represents service level indexers runtime information. + public partial class ServiceIndexersRuntime + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// Cumulative runtime of all indexers in the service from the beginningTime to endingTime, in seconds. + /// Beginning UTC time of the 24-hour period considered for indexer runtime usage (inclusive). + /// End UTC time of the 24-hour period considered for indexer runtime usage (inclusive). + internal ServiceIndexersRuntime(long usedSeconds, DateTimeOffset beginningTime, DateTimeOffset endingTime) + { + UsedSeconds = usedSeconds; + BeginningTime = beginningTime; + EndingTime = endingTime; + } + + /// Initializes a new instance of . + /// Cumulative runtime of all indexers in the service from the beginningTime to endingTime, in seconds. + /// Cumulative runtime remaining for all indexers in the service from the beginningTime to endingTime, in seconds. + /// Beginning UTC time of the 24-hour period considered for indexer runtime usage (inclusive). + /// End UTC time of the 24-hour period considered for indexer runtime usage (inclusive). + /// Keeps track of any properties unknown to the library. + internal ServiceIndexersRuntime(long usedSeconds, long? remainingSeconds, DateTimeOffset beginningTime, DateTimeOffset endingTime, IDictionary serializedAdditionalRawData) + { + UsedSeconds = usedSeconds; + RemainingSeconds = remainingSeconds; + BeginningTime = beginningTime; + EndingTime = endingTime; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal ServiceIndexersRuntime() + { + } + + /// Cumulative runtime of all indexers in the service from the beginningTime to endingTime, in seconds. + public long UsedSeconds { get; } + /// Cumulative runtime remaining for all indexers in the service from the beginningTime to endingTime, in seconds. + public long? RemainingSeconds { get; } + /// Beginning UTC time of the 24-hour period considered for indexer runtime usage (inclusive). + public DateTimeOffset BeginningTime { get; } + /// End UTC time of the 24-hour period considered for indexer runtime usage (inclusive). + public DateTimeOffset EndingTime { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SharePointSensitivityLabelInfo.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SharePointSensitivityLabelInfo.Serialization.cs new file mode 100644 index 000000000000..eb67e7862666 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SharePointSensitivityLabelInfo.Serialization.cs @@ -0,0 +1,215 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class SharePointSensitivityLabelInfo : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SharePointSensitivityLabelInfo)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(DisplayName)) + { + writer.WritePropertyName("displayName"u8); + writer.WriteStringValue(DisplayName); + } + if (Optional.IsDefined(SensitivityLabelId)) + { + writer.WritePropertyName("sensitivityLabelId"u8); + writer.WriteStringValue(SensitivityLabelId); + } + if (Optional.IsDefined(Tooltip)) + { + writer.WritePropertyName("tooltip"u8); + writer.WriteStringValue(Tooltip); + } + if (Optional.IsDefined(Priority)) + { + writer.WritePropertyName("priority"u8); + writer.WriteNumberValue(Priority.Value); + } + if (Optional.IsDefined(Color)) + { + writer.WritePropertyName("color"u8); + writer.WriteStringValue(Color); + } + if (Optional.IsDefined(IsEncrypted)) + { + writer.WritePropertyName("isEncrypted"u8); + writer.WriteBooleanValue(IsEncrypted.Value); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + SharePointSensitivityLabelInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SharePointSensitivityLabelInfo)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeSharePointSensitivityLabelInfo(document.RootElement, options); + } + + internal static SharePointSensitivityLabelInfo DeserializeSharePointSensitivityLabelInfo(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string displayName = default; + string sensitivityLabelId = default; + string tooltip = default; + int? priority = default; + string color = default; + bool? isEncrypted = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("displayName"u8)) + { + displayName = property.Value.GetString(); + continue; + } + if (property.NameEquals("sensitivityLabelId"u8)) + { + sensitivityLabelId = property.Value.GetString(); + continue; + } + if (property.NameEquals("tooltip"u8)) + { + tooltip = property.Value.GetString(); + continue; + } + if (property.NameEquals("priority"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + priority = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("color"u8)) + { + color = property.Value.GetString(); + continue; + } + if (property.NameEquals("isEncrypted"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isEncrypted = property.Value.GetBoolean(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new SharePointSensitivityLabelInfo( + displayName, + sensitivityLabelId, + tooltip, + priority, + color, + isEncrypted, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(SharePointSensitivityLabelInfo)} does not support writing '{options.Format}' format."); + } + } + + SharePointSensitivityLabelInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeSharePointSensitivityLabelInfo(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(SharePointSensitivityLabelInfo)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SharePointSensitivityLabelInfo FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeSharePointSensitivityLabelInfo(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SharePointSensitivityLabelInfo.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SharePointSensitivityLabelInfo.cs new file mode 100644 index 000000000000..fd0e7c76cd18 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SharePointSensitivityLabelInfo.cs @@ -0,0 +1,85 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// Information about the sensitivity label applied to a SharePoint document. + public partial class SharePointSensitivityLabelInfo + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal SharePointSensitivityLabelInfo() + { + } + + /// Initializes a new instance of . + /// The display name for the sensitivity label. + /// The ID of the sensitivity label. + /// The tooltip that should be displayed for the label in a UI. + /// The priority in which the sensitivity label is applied. + /// The color that the UI should display for the label, if configured. + /// Indicates whether the sensitivity label enforces encryption. + /// Keeps track of any properties unknown to the library. + internal SharePointSensitivityLabelInfo(string displayName, string sensitivityLabelId, string tooltip, int? priority, string color, bool? isEncrypted, IDictionary serializedAdditionalRawData) + { + DisplayName = displayName; + SensitivityLabelId = sensitivityLabelId; + Tooltip = tooltip; + Priority = priority; + Color = color; + IsEncrypted = isEncrypted; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The display name for the sensitivity label. + public string DisplayName { get; } + /// The ID of the sensitivity label. + public string SensitivityLabelId { get; } + /// The tooltip that should be displayed for the label in a UI. + public string Tooltip { get; } + /// The priority in which the sensitivity label is applied. + public int? Priority { get; } + /// The color that the UI should display for the label, if configured. + public string Color { get; } + /// Indicates whether the sensitivity label enforces encryption. + public bool? IsEncrypted { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SynchronizationState.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SynchronizationState.Serialization.cs new file mode 100644 index 000000000000..b1722ddb12f7 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SynchronizationState.Serialization.cs @@ -0,0 +1,166 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.Indexes.Models +{ + public partial class SynchronizationState : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SynchronizationState)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("startTime"u8); + writer.WriteStringValue(StartTime, "O"); + writer.WritePropertyName("itemsUpdatesProcessed"u8); + writer.WriteNumberValue(ItemsUpdatesProcessed); + writer.WritePropertyName("itemsUpdatesFailed"u8); + writer.WriteNumberValue(ItemsUpdatesFailed); + writer.WritePropertyName("itemsSkipped"u8); + writer.WriteNumberValue(ItemsSkipped); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + SynchronizationState IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(SynchronizationState)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeSynchronizationState(document.RootElement, options); + } + + internal static SynchronizationState DeserializeSynchronizationState(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + DateTimeOffset startTime = default; + int itemsUpdatesProcessed = default; + int itemsUpdatesFailed = default; + int itemsSkipped = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("startTime"u8)) + { + startTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("itemsUpdatesProcessed"u8)) + { + itemsUpdatesProcessed = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("itemsUpdatesFailed"u8)) + { + itemsUpdatesFailed = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("itemsSkipped"u8)) + { + itemsSkipped = property.Value.GetInt32(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new SynchronizationState(startTime, itemsUpdatesProcessed, itemsUpdatesFailed, itemsSkipped, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(SynchronizationState)} does not support writing '{options.Format}' format."); + } + } + + SynchronizationState IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeSynchronizationState(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(SynchronizationState)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static SynchronizationState FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeSynchronizationState(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/SynchronizationState.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/SynchronizationState.cs new file mode 100644 index 000000000000..1b3edd5a6ac9 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/SynchronizationState.cs @@ -0,0 +1,90 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// Represents the current state of an ongoing synchronization that spans multiple indexer runs. + public partial class SynchronizationState + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The start time of the current synchronization. + /// The number of item updates successfully processed in the current synchronization. + /// The number of item updates that failed in the current synchronization. + /// The number of items skipped in the current synchronization. + internal SynchronizationState(DateTimeOffset startTime, int itemsUpdatesProcessed, int itemsUpdatesFailed, int itemsSkipped) + { + StartTime = startTime; + ItemsUpdatesProcessed = itemsUpdatesProcessed; + ItemsUpdatesFailed = itemsUpdatesFailed; + ItemsSkipped = itemsSkipped; + } + + /// Initializes a new instance of . + /// The start time of the current synchronization. + /// The number of item updates successfully processed in the current synchronization. + /// The number of item updates that failed in the current synchronization. + /// The number of items skipped in the current synchronization. + /// Keeps track of any properties unknown to the library. + internal SynchronizationState(DateTimeOffset startTime, int itemsUpdatesProcessed, int itemsUpdatesFailed, int itemsSkipped, IDictionary serializedAdditionalRawData) + { + StartTime = startTime; + ItemsUpdatesProcessed = itemsUpdatesProcessed; + ItemsUpdatesFailed = itemsUpdatesFailed; + ItemsSkipped = itemsSkipped; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal SynchronizationState() + { + } + + /// The start time of the current synchronization. + public DateTimeOffset StartTime { get; } + /// The number of item updates successfully processed in the current synchronization. + public int ItemsUpdatesProcessed { get; } + /// The number of item updates that failed in the current synchronization. + public int ItemsUpdatesFailed { get; } + /// The number of items skipped in the current synchronization. + public int ItemsSkipped { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeAgentActivityRecord.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeBaseActivityRecord.Serialization.cs similarity index 59% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeAgentActivityRecord.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeBaseActivityRecord.Serialization.cs index 14e6be1c42a9..0a527fa1d540 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeAgentActivityRecord.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeBaseActivityRecord.Serialization.cs @@ -10,15 +10,15 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; -using Azure.Search.Documents.Agents.Models; +using Azure.Search.Documents.KnowledgeBases.Models; namespace Azure.Search.Documents.Models { - internal partial class UnknownKnowledgeAgentActivityRecord : IUtf8JsonSerializable, IJsonModel + internal partial class UnknownKnowledgeBaseActivityRecord : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -29,28 +29,28 @@ void IJsonModel.Write(Utf8JsonWriter writer, Model /// The client options for reading and writing models. protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentActivityRecord)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseActivityRecord)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); } - KnowledgeAgentActivityRecord IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeBaseActivityRecord IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentActivityRecord)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseActivityRecord)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentActivityRecord(document.RootElement, options); + return DeserializeKnowledgeBaseActivityRecord(document.RootElement, options); } - internal static UnknownKnowledgeAgentActivityRecord DeserializeUnknownKnowledgeAgentActivityRecord(JsonElement element, ModelReaderWriterOptions options = null) + internal static UnknownKnowledgeBaseActivityRecord DeserializeUnknownKnowledgeBaseActivityRecord(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -61,6 +61,7 @@ internal static UnknownKnowledgeAgentActivityRecord DeserializeUnknownKnowledgeA int id = default; string type = "Unknown"; int? elapsedMs = default; + KnowledgeBaseErrorDetail error = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -84,59 +85,68 @@ internal static UnknownKnowledgeAgentActivityRecord DeserializeUnknownKnowledgeA elapsedMs = property.Value.GetInt32(); continue; } + if (property.NameEquals("error"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + error = KnowledgeBaseErrorDetail.DeserializeKnowledgeBaseErrorDetail(property.Value, options); + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new UnknownKnowledgeAgentActivityRecord(id, type, elapsedMs, serializedAdditionalRawData); + return new UnknownKnowledgeBaseActivityRecord(id, type, elapsedMs, error, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentActivityRecord)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseActivityRecord)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentActivityRecord IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeBaseActivityRecord IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentActivityRecord(document.RootElement, options); + return DeserializeKnowledgeBaseActivityRecord(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentActivityRecord)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseActivityRecord)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static new UnknownKnowledgeAgentActivityRecord FromResponse(Response response) + internal static new UnknownKnowledgeBaseActivityRecord FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeUnknownKnowledgeAgentActivityRecord(document.RootElement); + return DeserializeUnknownKnowledgeBaseActivityRecord(document.RootElement); } /// Convert into a . internal override RequestContent ToRequestContent() { var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); return content; } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeAgentActivityRecord.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeBaseActivityRecord.cs similarity index 50% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeAgentActivityRecord.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeBaseActivityRecord.cs index 783f8d8b66a6..9f25d5a2bd9c 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeAgentActivityRecord.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeBaseActivityRecord.cs @@ -7,25 +7,26 @@ using System; using System.Collections.Generic; -using Azure.Search.Documents.Agents.Models; +using Azure.Search.Documents.KnowledgeBases.Models; namespace Azure.Search.Documents.Models { - /// Unknown version of KnowledgeAgentActivityRecord. - internal partial class UnknownKnowledgeAgentActivityRecord : KnowledgeAgentActivityRecord + /// Unknown version of KnowledgeBaseActivityRecord. + internal partial class UnknownKnowledgeBaseActivityRecord : KnowledgeBaseActivityRecord { - /// Initializes a new instance of . + /// Initializes a new instance of . /// The ID of the activity record. /// The type of the activity record. /// The elapsed time in milliseconds for the retrieval activity. + /// The error detail explaining why the operation failed. This property is only included when the activity does not succeed. /// Keeps track of any properties unknown to the library. - internal UnknownKnowledgeAgentActivityRecord(int id, string type, int? elapsedMs, IDictionary serializedAdditionalRawData) : base(id, type, elapsedMs, serializedAdditionalRawData) + internal UnknownKnowledgeBaseActivityRecord(int id, string type, int? elapsedMs, KnowledgeBaseErrorDetail error, IDictionary serializedAdditionalRawData) : base(id, type, elapsedMs, error, serializedAdditionalRawData) { Type = type ?? "Unknown"; } - /// Initializes a new instance of for deserialization. - internal UnknownKnowledgeAgentActivityRecord() + /// Initializes a new instance of for deserialization. + internal UnknownKnowledgeBaseActivityRecord() { } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeAgentMessageContent.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeBaseMessageContent.Serialization.cs similarity index 58% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeAgentMessageContent.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeBaseMessageContent.Serialization.cs index e84de17d47d7..59ce1c295e12 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeAgentMessageContent.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeBaseMessageContent.Serialization.cs @@ -10,15 +10,15 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; -using Azure.Search.Documents.Agents.Models; +using Azure.Search.Documents.KnowledgeBases.Models; namespace Azure.Search.Documents.Models { - internal partial class UnknownKnowledgeAgentMessageContent : IUtf8JsonSerializable, IJsonModel + internal partial class UnknownKnowledgeBaseMessageContent : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -29,28 +29,28 @@ void IJsonModel.Write(Utf8JsonWriter writer, Model /// The client options for reading and writing models. protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentMessageContent)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseMessageContent)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); } - KnowledgeAgentMessageContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeBaseMessageContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentMessageContent)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseMessageContent)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentMessageContent(document.RootElement, options); + return DeserializeKnowledgeBaseMessageContent(document.RootElement, options); } - internal static UnknownKnowledgeAgentMessageContent DeserializeUnknownKnowledgeAgentMessageContent(JsonElement element, ModelReaderWriterOptions options = null) + internal static UnknownKnowledgeBaseMessageContent DeserializeUnknownKnowledgeBaseMessageContent(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -58,14 +58,14 @@ internal static UnknownKnowledgeAgentMessageContent DeserializeUnknownKnowledgeA { return null; } - KnowledgeAgentMessageContentType type = "Unknown"; + KnowledgeBaseMessageContentType type = "Unknown"; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("type"u8)) { - type = new KnowledgeAgentMessageContentType(property.Value.GetString()); + type = new KnowledgeBaseMessageContentType(property.Value.GetString()); continue; } if (options.Format != "W") @@ -74,53 +74,53 @@ internal static UnknownKnowledgeAgentMessageContent DeserializeUnknownKnowledgeA } } serializedAdditionalRawData = rawDataDictionary; - return new UnknownKnowledgeAgentMessageContent(type, serializedAdditionalRawData); + return new UnknownKnowledgeBaseMessageContent(type, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentMessageContent)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseMessageContent)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentMessageContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeBaseMessageContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentMessageContent(document.RootElement, options); + return DeserializeKnowledgeBaseMessageContent(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentMessageContent)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseMessageContent)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static new UnknownKnowledgeAgentMessageContent FromResponse(Response response) + internal static new UnknownKnowledgeBaseMessageContent FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeUnknownKnowledgeAgentMessageContent(document.RootElement); + return DeserializeUnknownKnowledgeBaseMessageContent(document.RootElement); } /// Convert into a . internal override RequestContent ToRequestContent() { var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); return content; } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeAgentMessageContent.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeBaseMessageContent.cs similarity index 51% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeAgentMessageContent.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeBaseMessageContent.cs index 309a5ad9b566..20f39391af4f 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeAgentMessageContent.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeBaseMessageContent.cs @@ -7,23 +7,23 @@ using System; using System.Collections.Generic; -using Azure.Search.Documents.Agents.Models; +using Azure.Search.Documents.KnowledgeBases.Models; namespace Azure.Search.Documents.Models { - /// Unknown version of KnowledgeAgentMessageContent. - internal partial class UnknownKnowledgeAgentMessageContent : KnowledgeAgentMessageContent + /// Unknown version of KnowledgeBaseMessageContent. + internal partial class UnknownKnowledgeBaseMessageContent : KnowledgeBaseMessageContent { - /// Initializes a new instance of . + /// Initializes a new instance of . /// The type of the message. /// Keeps track of any properties unknown to the library. - internal UnknownKnowledgeAgentMessageContent(KnowledgeAgentMessageContentType type, IDictionary serializedAdditionalRawData) : base(type, serializedAdditionalRawData) + internal UnknownKnowledgeBaseMessageContent(KnowledgeBaseMessageContentType type, IDictionary serializedAdditionalRawData) : base(type, serializedAdditionalRawData) { Type = type; } - /// Initializes a new instance of for deserialization. - internal UnknownKnowledgeAgentMessageContent() + /// Initializes a new instance of for deserialization. + internal UnknownKnowledgeBaseMessageContent() { } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeAgentModel.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeBaseModel.Serialization.cs similarity index 61% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeAgentModel.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeBaseModel.Serialization.cs index bf12dc759036..d4e6ec1afc1e 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeAgentModel.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeBaseModel.Serialization.cs @@ -14,11 +14,11 @@ namespace Azure.Search.Documents.Models { - internal partial class UnknownKnowledgeAgentModel : IUtf8JsonSerializable, IJsonModel + internal partial class UnknownKnowledgeBaseModel : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -29,28 +29,28 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWri /// The client options for reading and writing models. protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentModel)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseModel)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); } - KnowledgeAgentModel IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeBaseModel IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentModel)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseModel)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentModel(document.RootElement, options); + return DeserializeKnowledgeBaseModel(document.RootElement, options); } - internal static UnknownKnowledgeAgentModel DeserializeUnknownKnowledgeAgentModel(JsonElement element, ModelReaderWriterOptions options = null) + internal static UnknownKnowledgeBaseModel DeserializeUnknownKnowledgeBaseModel(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -58,14 +58,14 @@ internal static UnknownKnowledgeAgentModel DeserializeUnknownKnowledgeAgentModel { return null; } - KnowledgeAgentModelKind kind = "Unknown"; + KnowledgeBaseModelKind kind = "Unknown"; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("kind"u8)) { - kind = new KnowledgeAgentModelKind(property.Value.GetString()); + kind = new KnowledgeBaseModelKind(property.Value.GetString()); continue; } if (options.Format != "W") @@ -74,53 +74,53 @@ internal static UnknownKnowledgeAgentModel DeserializeUnknownKnowledgeAgentModel } } serializedAdditionalRawData = rawDataDictionary; - return new UnknownKnowledgeAgentModel(kind, serializedAdditionalRawData); + return new UnknownKnowledgeBaseModel(kind, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentModel)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseModel)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentModel IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeBaseModel IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentModel(document.RootElement, options); + return DeserializeKnowledgeBaseModel(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentModel)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseModel)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static new UnknownKnowledgeAgentModel FromResponse(Response response) + internal static new UnknownKnowledgeBaseModel FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeUnknownKnowledgeAgentModel(document.RootElement); + return DeserializeUnknownKnowledgeBaseModel(document.RootElement); } /// Convert into a . internal override RequestContent ToRequestContent() { var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); return content; } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeAgentModel.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeBaseModel.cs similarity index 58% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeAgentModel.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeBaseModel.cs index 4ec6c4682dd7..d1264ef7359b 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeAgentModel.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeBaseModel.cs @@ -11,19 +11,19 @@ namespace Azure.Search.Documents.Models { - /// Unknown version of KnowledgeAgentModel. - internal partial class UnknownKnowledgeAgentModel : KnowledgeAgentModel + /// Unknown version of KnowledgeBaseModel. + internal partial class UnknownKnowledgeBaseModel : KnowledgeBaseModel { - /// Initializes a new instance of . + /// Initializes a new instance of . /// The type of AI model. /// Keeps track of any properties unknown to the library. - internal UnknownKnowledgeAgentModel(KnowledgeAgentModelKind kind, IDictionary serializedAdditionalRawData) : base(kind, serializedAdditionalRawData) + internal UnknownKnowledgeBaseModel(KnowledgeBaseModelKind kind, IDictionary serializedAdditionalRawData) : base(kind, serializedAdditionalRawData) { Kind = kind; } - /// Initializes a new instance of for deserialization. - internal UnknownKnowledgeAgentModel() + /// Initializes a new instance of for deserialization. + internal UnknownKnowledgeBaseModel() { } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeAgentReference.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeBaseReference.Serialization.cs similarity index 71% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeAgentReference.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeBaseReference.Serialization.cs index 9b7d78c4a4a2..4aab2d365a99 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeAgentReference.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeBaseReference.Serialization.cs @@ -10,15 +10,15 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; -using Azure.Search.Documents.Agents.Models; +using Azure.Search.Documents.KnowledgeBases.Models; namespace Azure.Search.Documents.Models { - internal partial class UnknownKnowledgeAgentReference : IUtf8JsonSerializable, IJsonModel + internal partial class UnknownKnowledgeBaseReference : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -29,28 +29,28 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReade /// The client options for reading and writing models. protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentReference)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseReference)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); } - KnowledgeAgentReference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeBaseReference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentReference)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseReference)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentReference(document.RootElement, options); + return DeserializeKnowledgeBaseReference(document.RootElement, options); } - internal static UnknownKnowledgeAgentReference DeserializeUnknownKnowledgeAgentReference(JsonElement element, ModelReaderWriterOptions options = null) + internal static UnknownKnowledgeBaseReference DeserializeUnknownKnowledgeBaseReference(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -118,7 +118,7 @@ internal static UnknownKnowledgeAgentReference DeserializeUnknownKnowledgeAgentR } } serializedAdditionalRawData = rawDataDictionary; - return new UnknownKnowledgeAgentReference( + return new UnknownKnowledgeBaseReference( type, id, activitySource, @@ -127,50 +127,50 @@ internal static UnknownKnowledgeAgentReference DeserializeUnknownKnowledgeAgentR serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentReference)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseReference)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentReference IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeBaseReference IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentReference(document.RootElement, options); + return DeserializeKnowledgeBaseReference(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentReference)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeBaseReference)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static new UnknownKnowledgeAgentReference FromResponse(Response response) + internal static new UnknownKnowledgeBaseReference FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeUnknownKnowledgeAgentReference(document.RootElement); + return DeserializeUnknownKnowledgeBaseReference(document.RootElement); } /// Convert into a . internal override RequestContent ToRequestContent() { var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); return content; } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeAgentReference.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeBaseReference.cs similarity index 58% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeAgentReference.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeBaseReference.cs index f579e750561c..b1c9b769ed2e 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeAgentReference.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeBaseReference.cs @@ -7,27 +7,27 @@ using System; using System.Collections.Generic; -using Azure.Search.Documents.Agents.Models; +using Azure.Search.Documents.KnowledgeBases.Models; namespace Azure.Search.Documents.Models { - /// Unknown version of KnowledgeAgentReference. - internal partial class UnknownKnowledgeAgentReference : KnowledgeAgentReference + /// Unknown version of KnowledgeBaseReference. + internal partial class UnknownKnowledgeBaseReference : KnowledgeBaseReference { - /// Initializes a new instance of . + /// Initializes a new instance of . /// The type of the reference. /// The ID of the reference. /// The source activity ID for the reference. /// Dictionary of <any>. /// The reranker score for the document reference. /// Keeps track of any properties unknown to the library. - internal UnknownKnowledgeAgentReference(string type, string id, int activitySource, IReadOnlyDictionary sourceData, float? rerankerScore, IDictionary serializedAdditionalRawData) : base(type, id, activitySource, sourceData, rerankerScore, serializedAdditionalRawData) + internal UnknownKnowledgeBaseReference(string type, string id, int activitySource, IReadOnlyDictionary sourceData, float? rerankerScore, IDictionary serializedAdditionalRawData) : base(type, id, activitySource, sourceData, rerankerScore, serializedAdditionalRawData) { Type = type ?? "Unknown"; } - /// Initializes a new instance of for deserialization. - internal UnknownKnowledgeAgentReference() + /// Initializes a new instance of for deserialization. + internal UnknownKnowledgeBaseReference() { } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeRetrievalIntent.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeRetrievalIntent.Serialization.cs new file mode 100644 index 000000000000..6a1850665c39 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeRetrievalIntent.Serialization.cs @@ -0,0 +1,127 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.Search.Documents.KnowledgeBases.Models; + +namespace Azure.Search.Documents.Models +{ + internal partial class UnknownKnowledgeRetrievalIntent : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeRetrievalIntent)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + } + + KnowledgeRetrievalIntent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeRetrievalIntent)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeRetrievalIntent(document.RootElement, options); + } + + internal static UnknownKnowledgeRetrievalIntent DeserializeUnknownKnowledgeRetrievalIntent(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + KnowledgeRetrievalIntentType type = "Unknown"; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("type"u8)) + { + type = new KnowledgeRetrievalIntentType(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new UnknownKnowledgeRetrievalIntent(type, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeRetrievalIntent)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeRetrievalIntent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeRetrievalIntent(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeRetrievalIntent)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownKnowledgeRetrievalIntent FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeUnknownKnowledgeRetrievalIntent(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeRetrievalIntent.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeRetrievalIntent.cs new file mode 100644 index 000000000000..98315d231932 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeRetrievalIntent.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Search.Documents.KnowledgeBases.Models; + +namespace Azure.Search.Documents.Models +{ + /// Unknown version of KnowledgeRetrievalIntent. + internal partial class UnknownKnowledgeRetrievalIntent : KnowledgeRetrievalIntent + { + /// Initializes a new instance of . + /// The type of the intent. + /// Keeps track of any properties unknown to the library. + internal UnknownKnowledgeRetrievalIntent(KnowledgeRetrievalIntentType type, IDictionary serializedAdditionalRawData) : base(type, serializedAdditionalRawData) + { + Type = type; + } + + /// Initializes a new instance of for deserialization. + internal UnknownKnowledgeRetrievalIntent() + { + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageImageContent.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeRetrievalReasoningEffort.Serialization.cs similarity index 58% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageImageContent.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeRetrievalReasoningEffort.Serialization.cs index fe8aeedc2b34..f8f8373c7bed 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentMessageImageContent.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeRetrievalReasoningEffort.Serialization.cs @@ -10,15 +10,15 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; -using Azure.Search.Documents.Models; +using Azure.Search.Documents.KnowledgeBases.Models; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.Models { - public partial class KnowledgeAgentMessageImageContent : IUtf8JsonSerializable, IJsonModel + internal partial class UnknownKnowledgeRetrievalReasoningEffort : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -29,30 +29,28 @@ void IJsonModel.Write(Utf8JsonWriter writer, /// The client options for reading and writing models. protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentMessageImageContent)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeRetrievalReasoningEffort)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); - writer.WritePropertyName("image"u8); - writer.WriteObjectValue(Image, options); } - KnowledgeAgentMessageImageContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + KnowledgeRetrievalReasoningEffort IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentMessageImageContent)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(KnowledgeRetrievalReasoningEffort)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentMessageImageContent(document.RootElement, options); + return DeserializeKnowledgeRetrievalReasoningEffort(document.RootElement, options); } - internal static KnowledgeAgentMessageImageContent DeserializeKnowledgeAgentMessageImageContent(JsonElement element, ModelReaderWriterOptions options = null) + internal static UnknownKnowledgeRetrievalReasoningEffort DeserializeUnknownKnowledgeRetrievalReasoningEffort(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -60,20 +58,14 @@ internal static KnowledgeAgentMessageImageContent DeserializeKnowledgeAgentMessa { return null; } - KnowledgeAgentMessageImageContentImage image = default; - KnowledgeAgentMessageContentType type = default; + KnowledgeRetrievalReasoningEffortKind kind = "Unknown"; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("image"u8)) + if (property.NameEquals("kind"u8)) { - image = KnowledgeAgentMessageImageContentImage.DeserializeKnowledgeAgentMessageImageContentImage(property.Value, options); - continue; - } - if (property.NameEquals("type"u8)) - { - type = new KnowledgeAgentMessageContentType(property.Value.GetString()); + kind = new KnowledgeRetrievalReasoningEffortKind(property.Value.GetString()); continue; } if (options.Format != "W") @@ -82,53 +74,53 @@ internal static KnowledgeAgentMessageImageContent DeserializeKnowledgeAgentMessa } } serializedAdditionalRawData = rawDataDictionary; - return new KnowledgeAgentMessageImageContent(type, serializedAdditionalRawData, image); + return new UnknownKnowledgeRetrievalReasoningEffort(kind, serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentMessageImageContent)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeRetrievalReasoningEffort)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentMessageImageContent IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + KnowledgeRetrievalReasoningEffort IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentMessageImageContent(document.RootElement, options); + return DeserializeKnowledgeRetrievalReasoningEffort(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentMessageImageContent)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(KnowledgeRetrievalReasoningEffort)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static new KnowledgeAgentMessageImageContent FromResponse(Response response) + internal static new UnknownKnowledgeRetrievalReasoningEffort FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentMessageImageContent(document.RootElement); + return DeserializeUnknownKnowledgeRetrievalReasoningEffort(document.RootElement); } /// Convert into a . internal override RequestContent ToRequestContent() { var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); return content; } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeRetrievalReasoningEffort.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeRetrievalReasoningEffort.cs new file mode 100644 index 000000000000..67b9909acf6c --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeRetrievalReasoningEffort.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Search.Documents.KnowledgeBases.Models; + +namespace Azure.Search.Documents.Models +{ + /// Unknown version of KnowledgeRetrievalReasoningEffort. + internal partial class UnknownKnowledgeRetrievalReasoningEffort : KnowledgeRetrievalReasoningEffort + { + /// Initializes a new instance of . + /// The kind of reasoning effort. + /// Keeps track of any properties unknown to the library. + internal UnknownKnowledgeRetrievalReasoningEffort(KnowledgeRetrievalReasoningEffortKind kind, IDictionary serializedAdditionalRawData) : base(kind, serializedAdditionalRawData) + { + Kind = kind; + } + + /// Initializes a new instance of for deserialization. + internal UnknownKnowledgeRetrievalReasoningEffort() + { + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeSource.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeSource.cs index 07e1f4307989..048dd681d321 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeSource.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeSource.cs @@ -18,8 +18,8 @@ internal partial class UnknownKnowledgeSource : KnowledgeSource /// The name of the knowledge source. /// Optional user-defined description. /// The type of the knowledge source. - /// The ETag of the agent. - /// A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your agent definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your agent definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your agent definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. + /// The ETag of the knowledge base. + /// A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your knowledge base definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your knowledge base definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your knowledge base definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. /// Keeps track of any properties unknown to the library. internal UnknownKnowledgeSource(string name, string description, KnowledgeSourceKind kind, string eTag, SearchResourceEncryptionKey encryptionKey, IDictionary serializedAdditionalRawData) : base(name, description, kind, eTag, encryptionKey, serializedAdditionalRawData) { diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeSourceParams.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeSourceParams.Serialization.cs index 971d162f0e1c..4a7be9ec6c29 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeSourceParams.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeSourceParams.Serialization.cs @@ -10,8 +10,8 @@ using System.Collections.Generic; using System.Text.Json; using Azure.Core; -using Azure.Search.Documents.Agents.Models; using Azure.Search.Documents.Indexes.Models; +using Azure.Search.Documents.KnowledgeBases.Models; namespace Azure.Search.Documents.Models { @@ -60,6 +60,10 @@ internal static UnknownKnowledgeSourceParams DeserializeUnknownKnowledgeSourcePa return null; } string knowledgeSourceName = default; + bool? includeReferences = default; + bool? includeReferenceSourceData = default; + bool? alwaysQuerySource = default; + float? rerankerThreshold = default; KnowledgeSourceKind kind = "Unknown"; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -70,6 +74,42 @@ internal static UnknownKnowledgeSourceParams DeserializeUnknownKnowledgeSourcePa knowledgeSourceName = property.Value.GetString(); continue; } + if (property.NameEquals("includeReferences"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + includeReferences = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("includeReferenceSourceData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + includeReferenceSourceData = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("alwaysQuerySource"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + alwaysQuerySource = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("rerankerThreshold"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rerankerThreshold = property.Value.GetSingle(); + continue; + } if (property.NameEquals("kind"u8)) { kind = new KnowledgeSourceKind(property.Value.GetString()); @@ -81,7 +121,14 @@ internal static UnknownKnowledgeSourceParams DeserializeUnknownKnowledgeSourcePa } } serializedAdditionalRawData = rawDataDictionary; - return new UnknownKnowledgeSourceParams(knowledgeSourceName, kind, serializedAdditionalRawData); + return new UnknownKnowledgeSourceParams( + knowledgeSourceName, + includeReferences, + includeReferenceSourceData, + alwaysQuerySource, + rerankerThreshold, + kind, + serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeSourceParams.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeSourceParams.cs index 1b46fc751a59..47a80256b110 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeSourceParams.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeSourceParams.cs @@ -7,8 +7,8 @@ using System; using System.Collections.Generic; -using Azure.Search.Documents.Agents.Models; using Azure.Search.Documents.Indexes.Models; +using Azure.Search.Documents.KnowledgeBases.Models; namespace Azure.Search.Documents.Models { @@ -17,9 +17,13 @@ internal partial class UnknownKnowledgeSourceParams : KnowledgeSourceParams { /// Initializes a new instance of . /// The name of the index the params apply to. + /// Indicates whether references should be included for data retrieved from this source. + /// Indicates whether references should include the structured data obtained during retrieval in their payload. + /// Indicates that this knowledge source should bypass source selection and always be queried at retrieval time. + /// The reranker threshold all retrieved documents must meet to be included in the response. /// The type of the knowledge source. /// Keeps track of any properties unknown to the library. - internal UnknownKnowledgeSourceParams(string knowledgeSourceName, KnowledgeSourceKind kind, IDictionary serializedAdditionalRawData) : base(knowledgeSourceName, kind, serializedAdditionalRawData) + internal UnknownKnowledgeSourceParams(string knowledgeSourceName, bool? includeReferences, bool? includeReferenceSourceData, bool? alwaysQuerySource, float? rerankerThreshold, KnowledgeSourceKind kind, IDictionary serializedAdditionalRawData) : base(knowledgeSourceName, includeReferences, includeReferenceSourceData, alwaysQuerySource, rerankerThreshold, kind, serializedAdditionalRawData) { Kind = kind; } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeSourceVectorizer.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeSourceVectorizer.Serialization.cs new file mode 100644 index 000000000000..18abe644e428 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeSourceVectorizer.Serialization.cs @@ -0,0 +1,127 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.Search.Documents.Indexes.Models; + +namespace Azure.Search.Documents.Models +{ + internal partial class UnknownKnowledgeSourceVectorizer : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeSourceVectorizer)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + } + + KnowledgeSourceVectorizer IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(KnowledgeSourceVectorizer)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeKnowledgeSourceVectorizer(document.RootElement, options); + } + + internal static UnknownKnowledgeSourceVectorizer DeserializeUnknownKnowledgeSourceVectorizer(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + VectorSearchVectorizerKind kind = "Unknown"; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("kind"u8)) + { + kind = new VectorSearchVectorizerKind(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new UnknownKnowledgeSourceVectorizer(kind, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(KnowledgeSourceVectorizer)} does not support writing '{options.Format}' format."); + } + } + + KnowledgeSourceVectorizer IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeKnowledgeSourceVectorizer(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(KnowledgeSourceVectorizer)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new UnknownKnowledgeSourceVectorizer FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeUnknownKnowledgeSourceVectorizer(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeSourceVectorizer.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeSourceVectorizer.cs new file mode 100644 index 000000000000..95a69d04598c --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/UnknownKnowledgeSourceVectorizer.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Search.Documents.Indexes.Models; + +namespace Azure.Search.Documents.Models +{ + /// Unknown version of KnowledgeSourceVectorizer. + internal partial class UnknownKnowledgeSourceVectorizer : KnowledgeSourceVectorizer + { + /// Initializes a new instance of . + /// The name of the kind of vectorization method being configured for use with vector search. + /// Keeps track of any properties unknown to the library. + internal UnknownKnowledgeSourceVectorizer(VectorSearchVectorizerKind kind, IDictionary serializedAdditionalRawData) : base(kind, serializedAdditionalRawData) + { + Kind = kind; + } + + /// Initializes a new instance of for deserialization. + internal UnknownKnowledgeSourceVectorizer() + { + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSource.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSource.Serialization.cs new file mode 100644 index 000000000000..6e43c8f7aa46 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSource.Serialization.cs @@ -0,0 +1,177 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.Indexes.Models +{ + public partial class WebKnowledgeSource : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(WebKnowledgeSource)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(WebParameters)) + { + writer.WritePropertyName("webParameters"u8); + writer.WriteObjectValue(WebParameters, options); + } + } + + WebKnowledgeSource IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(WebKnowledgeSource)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeWebKnowledgeSource(document.RootElement, options); + } + + internal static WebKnowledgeSource DeserializeWebKnowledgeSource(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + WebKnowledgeSourceParameters webParameters = default; + string name = default; + string description = default; + KnowledgeSourceKind kind = default; + string odataEtag = default; + SearchResourceEncryptionKey encryptionKey = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("webParameters"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + webParameters = WebKnowledgeSourceParameters.DeserializeWebKnowledgeSourceParameters(property.Value, options); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("kind"u8)) + { + kind = new KnowledgeSourceKind(property.Value.GetString()); + continue; + } + if (property.NameEquals("@odata.etag"u8)) + { + odataEtag = property.Value.GetString(); + continue; + } + if (property.NameEquals("encryptionKey"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + encryptionKey = null; + continue; + } + encryptionKey = SearchResourceEncryptionKey.DeserializeSearchResourceEncryptionKey(property.Value, options); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new WebKnowledgeSource( + name, + description, + kind, + odataEtag, + encryptionKey, + serializedAdditionalRawData, + webParameters); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(WebKnowledgeSource)} does not support writing '{options.Format}' format."); + } + } + + WebKnowledgeSource IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeWebKnowledgeSource(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(WebKnowledgeSource)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new WebKnowledgeSource FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeWebKnowledgeSource(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSource.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSource.cs new file mode 100644 index 000000000000..8eefa1ab7998 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSource.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// Knowledge Source targeting web results. + public partial class WebKnowledgeSource : KnowledgeSource + { + /// Initializes a new instance of . + /// The name of the knowledge source. + /// is null. + public WebKnowledgeSource(string name) : base(name) + { + Argument.AssertNotNull(name, nameof(name)); + + Kind = KnowledgeSourceKind.Web; + } + + /// Initializes a new instance of . + /// The name of the knowledge source. + /// Optional user-defined description. + /// The type of the knowledge source. + /// The ETag of the knowledge base. + /// A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your knowledge base definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your knowledge base definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your knowledge base definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. + /// Keeps track of any properties unknown to the library. + /// The parameters for the web knowledge source. + internal WebKnowledgeSource(string name, string description, KnowledgeSourceKind kind, string eTag, SearchResourceEncryptionKey encryptionKey, IDictionary serializedAdditionalRawData, WebKnowledgeSourceParameters webParameters) : base(name, description, kind, eTag, encryptionKey, serializedAdditionalRawData) + { + WebParameters = webParameters; + Kind = kind; + } + + /// Initializes a new instance of for deserialization. + internal WebKnowledgeSource() + { + } + + /// The parameters for the web knowledge source. + public WebKnowledgeSourceParameters WebParameters { get; set; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceDomain.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceDomain.Serialization.cs new file mode 100644 index 000000000000..70b588e2b52b --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceDomain.Serialization.cs @@ -0,0 +1,157 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.Indexes.Models +{ + public partial class WebKnowledgeSourceDomain : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(WebKnowledgeSourceDomain)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("address"u8); + writer.WriteStringValue(Address); + if (Optional.IsDefined(IncludeSubpages)) + { + writer.WritePropertyName("includeSubpages"u8); + writer.WriteBooleanValue(IncludeSubpages.Value); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + WebKnowledgeSourceDomain IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(WebKnowledgeSourceDomain)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeWebKnowledgeSourceDomain(document.RootElement, options); + } + + internal static WebKnowledgeSourceDomain DeserializeWebKnowledgeSourceDomain(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string address = default; + bool? includeSubpages = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("address"u8)) + { + address = property.Value.GetString(); + continue; + } + if (property.NameEquals("includeSubpages"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + includeSubpages = property.Value.GetBoolean(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new WebKnowledgeSourceDomain(address, includeSubpages, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(WebKnowledgeSourceDomain)} does not support writing '{options.Format}' format."); + } + } + + WebKnowledgeSourceDomain IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeWebKnowledgeSourceDomain(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(WebKnowledgeSourceDomain)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static WebKnowledgeSourceDomain FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeWebKnowledgeSourceDomain(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceDomain.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceDomain.cs new file mode 100644 index 000000000000..61c871ec6918 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceDomain.cs @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// Configuration for web knowledge source domain. + public partial class WebKnowledgeSourceDomain + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The address of the domain. + /// is null. + public WebKnowledgeSourceDomain(string address) + { + Argument.AssertNotNull(address, nameof(address)); + + Address = address; + } + + /// Initializes a new instance of . + /// The address of the domain. + /// Whether or not to include subpages from this domain. + /// Keeps track of any properties unknown to the library. + internal WebKnowledgeSourceDomain(string address, bool? includeSubpages, IDictionary serializedAdditionalRawData) + { + Address = address; + IncludeSubpages = includeSubpages; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal WebKnowledgeSourceDomain() + { + } + + /// The address of the domain. + public string Address { get; set; } + /// Whether or not to include subpages from this domain. + public bool? IncludeSubpages { get; set; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRetrievalRequest.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceDomains.Serialization.cs similarity index 54% rename from sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRetrievalRequest.Serialization.cs rename to sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceDomains.Serialization.cs index 21f6d63d4a86..0e646d8d1c6d 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/Models/KnowledgeAgentRetrievalRequest.Serialization.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceDomains.Serialization.cs @@ -11,13 +11,13 @@ using System.Text.Json; using Azure.Core; -namespace Azure.Search.Documents.Agents.Models +namespace Azure.Search.Documents.Indexes.Models { - public partial class KnowledgeAgentRetrievalRequest : IUtf8JsonSerializable, IJsonModel + public partial class WebKnowledgeSourceDomains : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -28,24 +28,27 @@ void IJsonModel.Write(Utf8JsonWriter writer, Mod /// The client options for reading and writing models. protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentRetrievalRequest)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(WebKnowledgeSourceDomains)} does not support writing '{format}' format."); } - writer.WritePropertyName("messages"u8); - writer.WriteStartArray(); - foreach (var item in Messages) + if (Optional.IsCollectionDefined(AllowedDomains)) { - writer.WriteObjectValue(item, options); + writer.WritePropertyName("allowedDomains"u8); + writer.WriteStartArray(); + foreach (var item in AllowedDomains) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); } - writer.WriteEndArray(); - if (Optional.IsCollectionDefined(KnowledgeSourceParams)) + if (Optional.IsCollectionDefined(BlockedDomains)) { - writer.WritePropertyName("knowledgeSourceParams"u8); + writer.WritePropertyName("blockedDomains"u8); writer.WriteStartArray(); - foreach (var item in KnowledgeSourceParams) + foreach (var item in BlockedDomains) { writer.WriteObjectValue(item, options); } @@ -68,19 +71,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - KnowledgeAgentRetrievalRequest IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + WebKnowledgeSourceDomains IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(KnowledgeAgentRetrievalRequest)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(WebKnowledgeSourceDomains)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeKnowledgeAgentRetrievalRequest(document.RootElement, options); + return DeserializeWebKnowledgeSourceDomains(document.RootElement, options); } - internal static KnowledgeAgentRetrievalRequest DeserializeKnowledgeAgentRetrievalRequest(JsonElement element, ModelReaderWriterOptions options = null) + internal static WebKnowledgeSourceDomains DeserializeWebKnowledgeSourceDomains(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -88,34 +91,38 @@ internal static KnowledgeAgentRetrievalRequest DeserializeKnowledgeAgentRetrieva { return null; } - IList messages = default; - IList knowledgeSourceParams = default; + IList allowedDomains = default; + IList blockedDomains = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("messages"u8)) + if (property.NameEquals("allowedDomains"u8)) { - List array = new List(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(KnowledgeAgentMessage.DeserializeKnowledgeAgentMessage(item, options)); + array.Add(WebKnowledgeSourceDomain.DeserializeWebKnowledgeSourceDomain(item, options)); } - messages = array; + allowedDomains = array; continue; } - if (property.NameEquals("knowledgeSourceParams"u8)) + if (property.NameEquals("blockedDomains"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(Models.KnowledgeSourceParams.DeserializeKnowledgeSourceParams(item, options)); + array.Add(WebKnowledgeSourceDomain.DeserializeWebKnowledgeSourceDomain(item, options)); } - knowledgeSourceParams = array; + blockedDomains = array; continue; } if (options.Format != "W") @@ -124,46 +131,46 @@ internal static KnowledgeAgentRetrievalRequest DeserializeKnowledgeAgentRetrieva } } serializedAdditionalRawData = rawDataDictionary; - return new KnowledgeAgentRetrievalRequest(messages, knowledgeSourceParams ?? new ChangeTrackingList(), serializedAdditionalRawData); + return new WebKnowledgeSourceDomains(allowedDomains ?? new ChangeTrackingList(), blockedDomains ?? new ChangeTrackingList(), serializedAdditionalRawData); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); default: - throw new FormatException($"The model {nameof(KnowledgeAgentRetrievalRequest)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(WebKnowledgeSourceDomains)} does not support writing '{options.Format}' format."); } } - KnowledgeAgentRetrievalRequest IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + WebKnowledgeSourceDomains IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentRetrievalRequest(document.RootElement, options); + return DeserializeWebKnowledgeSourceDomains(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(KnowledgeAgentRetrievalRequest)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(WebKnowledgeSourceDomains)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; /// Deserializes the model from a raw response. /// The response to deserialize the model from. - internal static KnowledgeAgentRetrievalRequest FromResponse(Response response) + internal static WebKnowledgeSourceDomains FromResponse(Response response) { using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); - return DeserializeKnowledgeAgentRetrievalRequest(document.RootElement); + return DeserializeWebKnowledgeSourceDomains(document.RootElement); } /// Convert into a . diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceDomains.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceDomains.cs new file mode 100644 index 000000000000..13f02c2789c0 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceDomains.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// Domain allow/block configuration for web knowledge source. + public partial class WebKnowledgeSourceDomains + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public WebKnowledgeSourceDomains() + { + AllowedDomains = new ChangeTrackingList(); + BlockedDomains = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Domains that are allowed for web results. + /// Domains that are blocked from web results. + /// Keeps track of any properties unknown to the library. + internal WebKnowledgeSourceDomains(IList allowedDomains, IList blockedDomains, IDictionary serializedAdditionalRawData) + { + AllowedDomains = allowedDomains; + BlockedDomains = blockedDomains; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Domains that are allowed for web results. + public IList AllowedDomains { get; } + /// Domains that are blocked from web results. + public IList BlockedDomains { get; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceParameters.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceParameters.Serialization.cs new file mode 100644 index 000000000000..130166e6402e --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceParameters.Serialization.cs @@ -0,0 +1,149 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Search.Documents.Indexes.Models +{ + public partial class WebKnowledgeSourceParameters : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(WebKnowledgeSourceParameters)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(Domains)) + { + writer.WritePropertyName("domains"u8); + writer.WriteObjectValue(Domains, options); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value, ModelSerializationExtensions.JsonDocumentOptions)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + WebKnowledgeSourceParameters IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(WebKnowledgeSourceParameters)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeWebKnowledgeSourceParameters(document.RootElement, options); + } + + internal static WebKnowledgeSourceParameters DeserializeWebKnowledgeSourceParameters(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + WebKnowledgeSourceDomains domains = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("domains"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + domains = WebKnowledgeSourceDomains.DeserializeWebKnowledgeSourceDomains(property.Value, options); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new WebKnowledgeSourceParameters(domains, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(WebKnowledgeSourceParameters)} does not support writing '{options.Format}' format."); + } + } + + WebKnowledgeSourceParameters IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeWebKnowledgeSourceParameters(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(WebKnowledgeSourceParameters)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static WebKnowledgeSourceParameters FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeWebKnowledgeSourceParameters(document.RootElement); + } + + /// Convert into a . + internal virtual RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceParameters.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceParameters.cs new file mode 100644 index 000000000000..de3528d93f5c --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceParameters.cs @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Search.Documents.Indexes.Models +{ + /// Parameters for web knowledge source. + public partial class WebKnowledgeSourceParameters + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + public WebKnowledgeSourceParameters() + { + } + + /// Initializes a new instance of . + /// Domain allow/block configuration for web results. + /// Keeps track of any properties unknown to the library. + internal WebKnowledgeSourceParameters(WebKnowledgeSourceDomains domains, IDictionary serializedAdditionalRawData) + { + Domains = domains; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Domain allow/block configuration for web results. + public WebKnowledgeSourceDomains Domains { get; set; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceParams.Serialization.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceParams.Serialization.cs new file mode 100644 index 000000000000..21b9d8b6e897 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceParams.Serialization.cs @@ -0,0 +1,232 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.Search.Documents.Indexes.Models; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + public partial class WebKnowledgeSourceParams : IUtf8JsonSerializable, IJsonModel + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + writer.WriteStartObject(); + JsonModelWriteCore(writer, options); + writer.WriteEndObject(); + } + + /// The JSON writer. + /// The client options for reading and writing models. + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(WebKnowledgeSourceParams)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(Language)) + { + writer.WritePropertyName("language"u8); + writer.WriteStringValue(Language); + } + if (Optional.IsDefined(Market)) + { + writer.WritePropertyName("market"u8); + writer.WriteStringValue(Market); + } + if (Optional.IsDefined(Count)) + { + writer.WritePropertyName("count"u8); + writer.WriteNumberValue(Count.Value); + } + if (Optional.IsDefined(Freshness)) + { + writer.WritePropertyName("freshness"u8); + writer.WriteStringValue(Freshness); + } + } + + WebKnowledgeSourceParams IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + if (format != "J") + { + throw new FormatException($"The model {nameof(WebKnowledgeSourceParams)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeWebKnowledgeSourceParams(document.RootElement, options); + } + + internal static WebKnowledgeSourceParams DeserializeWebKnowledgeSourceParams(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string language = default; + string market = default; + int? count = default; + string freshness = default; + string knowledgeSourceName = default; + bool? includeReferences = default; + bool? includeReferenceSourceData = default; + bool? alwaysQuerySource = default; + float? rerankerThreshold = default; + KnowledgeSourceKind kind = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("language"u8)) + { + language = property.Value.GetString(); + continue; + } + if (property.NameEquals("market"u8)) + { + market = property.Value.GetString(); + continue; + } + if (property.NameEquals("count"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + count = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("freshness"u8)) + { + freshness = property.Value.GetString(); + continue; + } + if (property.NameEquals("knowledgeSourceName"u8)) + { + knowledgeSourceName = property.Value.GetString(); + continue; + } + if (property.NameEquals("includeReferences"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + includeReferences = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("includeReferenceSourceData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + includeReferenceSourceData = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("alwaysQuerySource"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + alwaysQuerySource = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("rerankerThreshold"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + rerankerThreshold = property.Value.GetSingle(); + continue; + } + if (property.NameEquals("kind"u8)) + { + kind = new KnowledgeSourceKind(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new WebKnowledgeSourceParams( + knowledgeSourceName, + includeReferences, + includeReferenceSourceData, + alwaysQuerySource, + rerankerThreshold, + kind, + serializedAdditionalRawData, + language, + market, + count, + freshness); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options, AzureSearchDocumentsContext.Default); + default: + throw new FormatException($"The model {nameof(WebKnowledgeSourceParams)} does not support writing '{options.Format}' format."); + } + } + + WebKnowledgeSourceParams IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + { + using JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeWebKnowledgeSourceParams(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(WebKnowledgeSourceParams)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + + /// Deserializes the model from a raw response. + /// The response to deserialize the model from. + internal static new WebKnowledgeSourceParams FromResponse(Response response) + { + using var document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions); + return DeserializeWebKnowledgeSourceParams(document.RootElement); + } + + /// Convert into a . + internal override RequestContent ToRequestContent() + { + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions); + return content; + } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceParams.cs b/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceParams.cs new file mode 100644 index 000000000000..c92c34c69d1d --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/Models/WebKnowledgeSourceParams.cs @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Search.Documents.Indexes.Models; + +namespace Azure.Search.Documents.KnowledgeBases.Models +{ + /// Specifies runtime parameters for a web knowledge source. + public partial class WebKnowledgeSourceParams : KnowledgeSourceParams + { + /// Initializes a new instance of . + /// The name of the index the params apply to. + /// is null. + public WebKnowledgeSourceParams(string knowledgeSourceName) : base(knowledgeSourceName) + { + Argument.AssertNotNull(knowledgeSourceName, nameof(knowledgeSourceName)); + + Kind = KnowledgeSourceKind.Web; + } + + /// Initializes a new instance of . + /// The name of the index the params apply to. + /// Indicates whether references should be included for data retrieved from this source. + /// Indicates whether references should include the structured data obtained during retrieval in their payload. + /// Indicates that this knowledge source should bypass source selection and always be queried at retrieval time. + /// The reranker threshold all retrieved documents must meet to be included in the response. + /// The type of the knowledge source. + /// Keeps track of any properties unknown to the library. + /// The language of the web results. + /// The market of the web results. + /// The number of web results to return. + /// The freshness of web results. + internal WebKnowledgeSourceParams(string knowledgeSourceName, bool? includeReferences, bool? includeReferenceSourceData, bool? alwaysQuerySource, float? rerankerThreshold, KnowledgeSourceKind kind, IDictionary serializedAdditionalRawData, string language, string market, int? count, string freshness) : base(knowledgeSourceName, includeReferences, includeReferenceSourceData, alwaysQuerySource, rerankerThreshold, kind, serializedAdditionalRawData) + { + Language = language; + Market = market; + Count = count; + Freshness = freshness; + Kind = kind; + } + + /// Initializes a new instance of for deserialization. + internal WebKnowledgeSourceParams() + { + } + + /// The language of the web results. + public string Language { get; set; } + /// The market of the web results. + public string Market { get; set; } + /// The number of web results to return. + public int? Count { get; set; } + /// The freshness of web results. + public string Freshness { get; set; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/Generated/SearchModelFactory.cs b/sdk/search/Azure.Search.Documents/src/Generated/SearchModelFactory.cs index 47922651747d..c8a2a4a1405f 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/SearchModelFactory.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/SearchModelFactory.cs @@ -8,8 +8,8 @@ using System; using System.Collections.Generic; using System.Linq; -using Azure.Search.Documents.Agents.Models; using Azure.Search.Documents.Indexes.Models; +using Azure.Search.Documents.KnowledgeBases.Models; namespace Azure.Search.Documents.Models { @@ -18,16 +18,28 @@ public static partial class SearchModelFactory { /// Initializes a new instance of . /// The approximate count of documents falling within the bucket described by this facet. + /// The resulting total avg for the facet when a avg metric is requested. + /// The resulting total min for the facet when a min metric is requested. + /// The resulting total max for the facet when a max metric is requested. /// The resulting total sum for the facet when a sum metric is requested. + /// The resulting total cardinality for the facet when a cardinality metric is requested. /// The nested facet query results for the search operation, organized as a collection of buckets for each faceted field; null if the query did not contain any nested facets. /// Additional Properties. /// A new instance for mocking. - public static FacetResult FacetResult(long? count = null, double? sum = null, IReadOnlyDictionary> facets = null, IReadOnlyDictionary additionalProperties = null) + public static FacetResult FacetResult(long? count = null, double? avg = null, double? min = null, double? max = null, double? sum = null, long? cardinality = null, IReadOnlyDictionary> facets = null, IReadOnlyDictionary additionalProperties = null) { facets ??= new Dictionary>(); additionalProperties ??= new Dictionary(); - return new FacetResult(count, sum, facets, additionalProperties); + return new FacetResult( + count, + avg, + min, + max, + sum, + cardinality, + facets, + additionalProperties); } /// Initializes a new instance of . @@ -190,21 +202,80 @@ public static AutocompleteResults AutocompleteResults(double? coverage = null, I return new AutocompleteResults(coverage, results?.ToList(), serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// The current synchronization status of the knowledge source. + /// The synchronization interval (e.g., '1d' for daily). Null if no schedule is configured. + /// Current synchronization state that spans multiple indexer runs. + /// Details of the last completed synchronization. Null on first sync. + /// Statistical information about the knowledge source synchronization history. Null on first sync. + /// A new instance for mocking. + public static KnowledgeSourceStatus KnowledgeSourceStatus(KnowledgeSourceSynchronizationStatus synchronizationStatus = default, string synchronizationInterval = null, SynchronizationState currentSynchronizationState = null, CompletedSynchronizationState lastSynchronizationState = null, KnowledgeSourceStatistics statistics = null) + { + return new KnowledgeSourceStatus( + synchronizationStatus, + synchronizationInterval, + currentSynchronizationState, + lastSynchronizationState, + statistics, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The start time of the current synchronization. + /// The number of item updates successfully processed in the current synchronization. + /// The number of item updates that failed in the current synchronization. + /// The number of items skipped in the current synchronization. + /// A new instance for mocking. + public static SynchronizationState SynchronizationState(DateTimeOffset startTime = default, int itemsUpdatesProcessed = default, int itemsUpdatesFailed = default, int itemsSkipped = default) + { + return new SynchronizationState(startTime, itemsUpdatesProcessed, itemsUpdatesFailed, itemsSkipped, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The start time of the last completed synchronization. + /// The end time of the last completed synchronization. + /// The number of item updates successfully processed in the last synchronization. + /// The number of item updates that failed in the last synchronization. + /// The number of items skipped in the last synchronization. + /// A new instance for mocking. + public static CompletedSynchronizationState CompletedSynchronizationState(DateTimeOffset startTime = default, DateTimeOffset endTime = default, int itemsUpdatesProcessed = default, int itemsUpdatesFailed = default, int itemsSkipped = default) + { + return new CompletedSynchronizationState( + startTime, + endTime, + itemsUpdatesProcessed, + itemsUpdatesFailed, + itemsSkipped, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The total number of synchronizations completed. + /// The average duration of synchronizations in HH:MM:SS format. + /// The average number of items processed per synchronization. + /// A new instance for mocking. + public static KnowledgeSourceStatistics KnowledgeSourceStatistics(int totalSynchronization = default, string averageSynchronizationDuration = null, int averageItemsProcessedPerSynchronization = default) + { + return new KnowledgeSourceStatistics(totalSynchronization, averageSynchronizationDuration, averageItemsProcessedPerSynchronization, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The name of the indexer. /// Overall indexer status. + /// Snapshot of the indexer’s cumulative runtime consumption for the service over the current UTC period. /// The result of the most recent or an in-progress indexer execution. /// History of the recent indexer executions, sorted in reverse chronological order. /// The execution limits for the indexer. /// All of the state that defines and dictates the indexer's current execution. /// A new instance for mocking. - public static SearchIndexerStatus SearchIndexerStatus(string name = null, IndexerStatus status = default, IndexerExecutionResult lastResult = null, IEnumerable executionHistory = null, SearchIndexerLimits limits = null, IndexerState currentState = null) + public static SearchIndexerStatus SearchIndexerStatus(string name = null, IndexerStatus status = default, IndexerRuntime runtime = null, IndexerExecutionResult lastResult = null, IEnumerable executionHistory = null, SearchIndexerLimits limits = null, IndexerState currentState = null) { executionHistory ??= new List(); return new SearchIndexerStatus( name, status, + runtime, lastResult, executionHistory?.ToList(), limits, @@ -212,6 +283,17 @@ public static SearchIndexerStatus SearchIndexerStatus(string name = null, Indexe serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// Cumulative runtime of the indexer from the beginningTime to endingTime, in seconds. + /// Cumulative runtime remaining for all indexers in the service from the beginningTime to endingTime, in seconds. + /// Beginning UTC time of the 24-hour period considered for indexer runtime usage (inclusive). + /// End UTC time of the 24-hour period considered for indexer runtime usage (inclusive). + /// A new instance for mocking. + public static IndexerRuntime IndexerRuntime(long usedSeconds = default, long? remainingSeconds = null, DateTimeOffset beginningTime = default, DateTimeOffset endingTime = default) + { + return new IndexerRuntime(usedSeconds, remainingSeconds, beginningTime, endingTime, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The outcome of this indexer execution. /// The outcome of this indexer execution. @@ -309,6 +391,16 @@ public static AnalyzeTextOptions AnalyzeTextOptions(string text = null, LexicalA serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// Service level resource counters. + /// Service level indexers runtime information. + /// Service level general limits. + /// A new instance for mocking. + public static SearchServiceStatistics SearchServiceStatistics(SearchServiceCounters counters = null, ServiceIndexersRuntime indexersRuntime = null, SearchServiceLimits limits = null) + { + return new SearchServiceStatistics(counters, indexersRuntime, limits, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// Total number of aliases. /// Total number of documents across all indexes in the service. @@ -335,14 +427,26 @@ public static SearchServiceCounters SearchServiceCounters(SearchResourceCounter serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// Cumulative runtime of all indexers in the service from the beginningTime to endingTime, in seconds. + /// Cumulative runtime remaining for all indexers in the service from the beginningTime to endingTime, in seconds. + /// Beginning UTC time of the 24-hour period considered for indexer runtime usage (inclusive). + /// End UTC time of the 24-hour period considered for indexer runtime usage (inclusive). + /// A new instance for mocking. + public static ServiceIndexersRuntime ServiceIndexersRuntime(long usedSeconds = default, long? remainingSeconds = null, DateTimeOffset beginningTime = default, DateTimeOffset endingTime = default) + { + return new ServiceIndexersRuntime(usedSeconds, remainingSeconds, beginningTime, endingTime, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The maximum allowed fields per index. /// The maximum depth which you can nest sub-fields in an index, including the top-level complex field. For example, a/b/c has a nesting depth of 3. /// The maximum number of fields of type Collection(Edm.ComplexType) allowed in an index. /// The maximum number of objects in complex collections allowed per document. /// The maximum amount of storage in bytes allowed per index. + /// The maximum cumulative runtime in seconds allowed for all indexers in the service over the current UTC period. /// A new instance for mocking. - public static SearchServiceLimits SearchServiceLimits(int? maxFieldsPerIndex = null, int? maxFieldNestingDepthPerIndex = null, int? maxComplexCollectionFieldsPerIndex = null, int? maxComplexObjectsInCollectionsPerDocument = null, long? maxStoragePerIndexInBytes = null) + public static SearchServiceLimits SearchServiceLimits(int? maxFieldsPerIndex = null, int? maxFieldNestingDepthPerIndex = null, int? maxComplexCollectionFieldsPerIndex = null, int? maxComplexObjectsInCollectionsPerDocument = null, long? maxStoragePerIndexInBytes = null, long? maxCumulativeIndexerRuntimeSeconds = null) { return new SearchServiceLimits( maxFieldsPerIndex, @@ -350,6 +454,7 @@ public static SearchServiceLimits SearchServiceLimits(int? maxFieldsPerIndex = n maxComplexCollectionFieldsPerIndex, maxComplexObjectsInCollectionsPerDocument, maxStoragePerIndexInBytes, + maxCumulativeIndexerRuntimeSeconds, serializedAdditionalRawData: null); } @@ -374,50 +479,81 @@ public static IndexStatisticsSummary IndexStatisticsSummary(string name = null, return new IndexStatisticsSummary(name, documentCount, storageSize, vectorIndexSize, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// /// /// The activity records for tracking progress and billing implications. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , , , and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , , , , , and . /// /// /// The references for the retrieval data used in the response. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , , , , and . /// - /// A new instance for mocking. - public static KnowledgeAgentRetrievalResponse KnowledgeAgentRetrievalResponse(IEnumerable response = null, IEnumerable activity = null, IEnumerable references = null) + /// A new instance for mocking. + public static KnowledgeBaseRetrievalResponse KnowledgeBaseRetrievalResponse(IEnumerable response = null, IEnumerable activity = null, IEnumerable references = null) { - response ??= new List(); - activity ??= new List(); - references ??= new List(); + response ??= new List(); + activity ??= new List(); + references ??= new List(); - return new KnowledgeAgentRetrievalResponse(response?.ToList(), activity?.ToList(), references?.ToList(), serializedAdditionalRawData: null); + return new KnowledgeBaseRetrievalResponse(response?.ToList(), activity?.ToList(), references?.ToList(), serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The ID of the activity record. /// The type of the activity record. /// The elapsed time in milliseconds for the retrieval activity. - /// A new instance for mocking. - public static KnowledgeAgentActivityRecord KnowledgeAgentActivityRecord(int id = default, string type = null, int? elapsedMs = null) + /// The error detail explaining why the operation failed. This property is only included when the activity does not succeed. + /// A new instance for mocking. + public static KnowledgeBaseActivityRecord KnowledgeBaseActivityRecord(int id = default, string type = null, int? elapsedMs = null, KnowledgeBaseErrorDetail error = null) + { + return new UnknownKnowledgeBaseActivityRecord(id, type, elapsedMs, error, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The error code. + /// The error message. + /// The error target. + /// The error details. + /// The error additional info. + /// A new instance for mocking. + public static KnowledgeBaseErrorDetail KnowledgeBaseErrorDetail(string code = null, string message = null, string target = null, IEnumerable details = null, IEnumerable additionalInfo = null) + { + details ??= new List(); + additionalInfo ??= new List(); + + return new KnowledgeBaseErrorDetail( + code, + message, + target, + details?.ToList(), + additionalInfo?.ToList(), + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The additional info type. + /// The additional info. + /// A new instance for mocking. + public static KnowledgeBaseErrorAdditionalInfo KnowledgeBaseErrorAdditionalInfo(string type = null, object info = null) { - return new UnknownKnowledgeAgentActivityRecord(id, type, elapsedMs, serializedAdditionalRawData: null); + return new KnowledgeBaseErrorAdditionalInfo(type, info, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The type of the reference. /// The ID of the reference. /// The source activity ID for the reference. /// Dictionary of <any>. /// The reranker score for the document reference. - /// A new instance for mocking. - public static KnowledgeAgentReference KnowledgeAgentReference(string type = null, string id = null, int activitySource = default, IReadOnlyDictionary sourceData = null, float? rerankerScore = null) + /// A new instance for mocking. + public static KnowledgeBaseReference KnowledgeBaseReference(string type = null, string id = null, int activitySource = default, IReadOnlyDictionary sourceData = null, float? rerankerScore = null) { sourceData ??= new Dictionary(); - return new UnknownKnowledgeAgentReference( + return new UnknownKnowledgeBaseReference( type, id, activitySource, @@ -427,78 +563,112 @@ public static KnowledgeAgentReference KnowledgeAgentReference(string type = null } /// Initializes a new instance of . - /// - /// An explicit identity to use for this knowledge source. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include and . - /// /// Key-based connection string or the ResourceId format if using a managed identity. /// The name of the blob storage container. /// Optional folder path within the container. - /// - /// Optional vectorizer configuration for vectorizing content. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include , , and . - /// - /// - /// Optional chat completion model for image verbalization or context extraction. - /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. - /// The available derived classes include . - /// - /// Optional schedule for data ingestion. + /// Set to true if connecting to an ADLS Gen2 storage account. Default is false. + /// Consolidates all general ingestion settings. /// Resources created by the knowledge source. - /// Indicates whether image verbalization should be disabled. /// A new instance for mocking. - public static AzureBlobKnowledgeSourceParameters AzureBlobKnowledgeSourceParameters(SearchIndexerDataIdentity identity = null, string connectionString = null, string containerName = null, string folderPath = null, VectorSearchVectorizer embeddingModel = null, KnowledgeAgentModel chatCompletionModel = null, IndexingSchedule ingestionSchedule = null, IReadOnlyDictionary createdResources = null, bool? disableImageVerbalization = null) + public static AzureBlobKnowledgeSourceParameters AzureBlobKnowledgeSourceParameters(string connectionString = null, string containerName = null, string folderPath = null, bool? isAdlsGen2 = null, KnowledgeSourceIngestionParameters ingestionParameters = null, IReadOnlyDictionary createdResources = null) { createdResources ??= new Dictionary(); return new AzureBlobKnowledgeSourceParameters( - identity, connectionString, containerName, folderPath, - embeddingModel, - chatCompletionModel, - ingestionSchedule, + isAdlsGen2, + ingestionParameters, createdResources, - disableImageVerbalization, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// SharePoint connection string with format: SharePointOnlineEndpoint=[SharePoint site url];ApplicationId=[Azure AD App ID];ApplicationSecret=[Azure AD App client secret];TenantId=[SharePoint site tenant id]. + /// Specifies which SharePoint libraries to access. + /// Optional query to filter SharePoint content. + /// Consolidates all general ingestion settings. + /// Resources created by the knowledge source. + /// A new instance for mocking. + public static IndexedSharePointKnowledgeSourceParameters IndexedSharePointKnowledgeSourceParameters(string connectionString = null, IndexedSharePointContainerName containerName = default, string query = null, KnowledgeSourceIngestionParameters ingestionParameters = null, IReadOnlyDictionary createdResources = null) + { + createdResources ??= new Dictionary(); + + return new IndexedSharePointKnowledgeSourceParameters( + connectionString, + containerName, + query, + ingestionParameters, + createdResources, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// OneLake workspace ID. + /// Specifies which OneLake lakehouse to access. + /// Optional OneLakehouse folder or shortcut to filter OneLake content. + /// Consolidates all general ingestion settings. + /// Resources created by the knowledge source. + /// A new instance for mocking. + public static IndexedOneLakeKnowledgeSourceParameters IndexedOneLakeKnowledgeSourceParameters(string fabricWorkspaceId = null, string lakehouseId = null, string targetPath = null, KnowledgeSourceIngestionParameters ingestionParameters = null, IReadOnlyDictionary createdResources = null) + { + createdResources ??= new Dictionary(); + + return new IndexedOneLakeKnowledgeSourceParameters( + fabricWorkspaceId, + lakehouseId, + targetPath, + ingestionParameters, + createdResources, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The semantic query to execute. + /// A new instance for mocking. + public static KnowledgeRetrievalSemanticIntent KnowledgeRetrievalSemanticIntent(string search = null) + { + return new KnowledgeRetrievalSemanticIntent(KnowledgeRetrievalIntentType.Semantic, serializedAdditionalRawData: null, search); + } + + /// Initializes a new instance of . /// The ID of the activity record. /// The elapsed time in milliseconds for the retrieval activity. + /// The error detail explaining why the operation failed. This property is only included when the activity does not succeed. /// The knowledge source for the retrieval activity. /// The query time for this retrieval activity. /// The count of documents retrieved that were sufficiently relevant to pass the reranker threshold. - /// A new instance for mocking. - public static KnowledgeAgentRetrievalActivityRecord KnowledgeAgentRetrievalActivityRecord(int id = default, int? elapsedMs = null, string knowledgeSourceName = null, DateTimeOffset? queryTime = null, int? count = null) + /// A new instance for mocking. + public static KnowledgeBaseRetrievalActivityRecord KnowledgeBaseRetrievalActivityRecord(int id = default, int? elapsedMs = null, KnowledgeBaseErrorDetail error = null, string knowledgeSourceName = null, DateTimeOffset? queryTime = null, int? count = null) { - return new KnowledgeAgentRetrievalActivityRecord( + return new KnowledgeBaseRetrievalActivityRecord( id, - "KnowledgeAgentRetrievalActivityRecord", + "KnowledgeBaseRetrievalActivityRecord", elapsedMs, + error, serializedAdditionalRawData: null, knowledgeSourceName, queryTime, count); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The ID of the activity record. /// The elapsed time in milliseconds for the retrieval activity. + /// The error detail explaining why the operation failed. This property is only included when the activity does not succeed. /// The knowledge source for the retrieval activity. /// The query time for this retrieval activity. /// The count of documents retrieved that were sufficiently relevant to pass the reranker threshold. /// The search index arguments for the retrieval activity. - /// A new instance for mocking. - public static KnowledgeAgentSearchIndexActivityRecord KnowledgeAgentSearchIndexActivityRecord(int id = default, int? elapsedMs = null, string knowledgeSourceName = null, DateTimeOffset? queryTime = null, int? count = null, KnowledgeAgentSearchIndexActivityArguments searchIndexArguments = null) + /// A new instance for mocking. + public static KnowledgeBaseSearchIndexActivityRecord KnowledgeBaseSearchIndexActivityRecord(int id = default, int? elapsedMs = null, KnowledgeBaseErrorDetail error = null, string knowledgeSourceName = null, DateTimeOffset? queryTime = null, int? count = null, KnowledgeBaseSearchIndexActivityArguments searchIndexArguments = null) { - return new KnowledgeAgentSearchIndexActivityRecord( + return new KnowledgeBaseSearchIndexActivityRecord( id, "searchIndex", elapsedMs, + error, serializedAdditionalRawData: null, knowledgeSourceName, queryTime, @@ -506,29 +676,43 @@ public static KnowledgeAgentSearchIndexActivityRecord KnowledgeAgentSearchIndexA searchIndexArguments); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The search string used to query the search index. /// The filter string. - /// A new instance for mocking. - public static KnowledgeAgentSearchIndexActivityArguments KnowledgeAgentSearchIndexActivityArguments(string search = null, string filter = null) + /// What fields were selected for search. + /// What fields were searched against. + /// What semantic configuration was used from the search index. + /// A new instance for mocking. + public static KnowledgeBaseSearchIndexActivityArguments KnowledgeBaseSearchIndexActivityArguments(string search = null, string filter = null, IEnumerable sourceDataFields = null, IEnumerable searchFields = null, string semanticConfigurationName = null) { - return new KnowledgeAgentSearchIndexActivityArguments(search, filter, serializedAdditionalRawData: null); + sourceDataFields ??= new List(); + searchFields ??= new List(); + + return new KnowledgeBaseSearchIndexActivityArguments( + search, + filter, + sourceDataFields?.ToList(), + searchFields?.ToList(), + semanticConfigurationName, + serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The ID of the activity record. /// The elapsed time in milliseconds for the retrieval activity. + /// The error detail explaining why the operation failed. This property is only included when the activity does not succeed. /// The knowledge source for the retrieval activity. /// The query time for this retrieval activity. /// The count of documents retrieved that were sufficiently relevant to pass the reranker threshold. /// The azure blob arguments for the retrieval activity. - /// A new instance for mocking. - public static KnowledgeAgentAzureBlobActivityRecord KnowledgeAgentAzureBlobActivityRecord(int id = default, int? elapsedMs = null, string knowledgeSourceName = null, DateTimeOffset? queryTime = null, int? count = null, KnowledgeAgentAzureBlobActivityArguments azureBlobArguments = null) + /// A new instance for mocking. + public static KnowledgeBaseAzureBlobActivityRecord KnowledgeBaseAzureBlobActivityRecord(int id = default, int? elapsedMs = null, KnowledgeBaseErrorDetail error = null, string knowledgeSourceName = null, DateTimeOffset? queryTime = null, int? count = null, KnowledgeBaseAzureBlobActivityArguments azureBlobArguments = null) { - return new KnowledgeAgentAzureBlobActivityRecord( + return new KnowledgeBaseAzureBlobActivityRecord( id, "azureBlob", elapsedMs, + error, serializedAdditionalRawData: null, knowledgeSourceName, queryTime, @@ -536,70 +720,221 @@ public static KnowledgeAgentAzureBlobActivityRecord KnowledgeAgentAzureBlobActiv azureBlobArguments); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The search string used to query blob contents. - /// A new instance for mocking. - public static KnowledgeAgentAzureBlobActivityArguments KnowledgeAgentAzureBlobActivityArguments(string search = null) + /// A new instance for mocking. + public static KnowledgeBaseAzureBlobActivityArguments KnowledgeBaseAzureBlobActivityArguments(string search = null) + { + return new KnowledgeBaseAzureBlobActivityArguments(search, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The ID of the activity record. + /// The elapsed time in milliseconds for the retrieval activity. + /// The error detail explaining why the operation failed. This property is only included when the activity does not succeed. + /// The knowledge source for the retrieval activity. + /// The query time for this retrieval activity. + /// The count of documents retrieved that were sufficiently relevant to pass the reranker threshold. + /// The indexed SharePoint arguments for the retrieval activity. + /// A new instance for mocking. + public static KnowledgeBaseIndexedSharePointActivityRecord KnowledgeBaseIndexedSharePointActivityRecord(int id = default, int? elapsedMs = null, KnowledgeBaseErrorDetail error = null, string knowledgeSourceName = null, DateTimeOffset? queryTime = null, int? count = null, KnowledgeBaseIndexedSharePointActivityArguments indexedSharePointArguments = null) + { + return new KnowledgeBaseIndexedSharePointActivityRecord( + id, + "indexedSharePoint", + elapsedMs, + error, + serializedAdditionalRawData: null, + knowledgeSourceName, + queryTime, + count, + indexedSharePointArguments); + } + + /// Initializes a new instance of . + /// The search string used to query indexed SharePoint contents. + /// A new instance for mocking. + public static KnowledgeBaseIndexedSharePointActivityArguments KnowledgeBaseIndexedSharePointActivityArguments(string search = null) + { + return new KnowledgeBaseIndexedSharePointActivityArguments(search, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The ID of the activity record. + /// The elapsed time in milliseconds for the retrieval activity. + /// The error detail explaining why the operation failed. This property is only included when the activity does not succeed. + /// The knowledge source for the retrieval activity. + /// The query time for this retrieval activity. + /// The count of documents retrieved that were sufficiently relevant to pass the reranker threshold. + /// The indexed OneLake arguments for the retrieval activity. + /// A new instance for mocking. + public static KnowledgeBaseIndexedOneLakeActivityRecord KnowledgeBaseIndexedOneLakeActivityRecord(int id = default, int? elapsedMs = null, KnowledgeBaseErrorDetail error = null, string knowledgeSourceName = null, DateTimeOffset? queryTime = null, int? count = null, KnowledgeBaseIndexedOneLakeActivityArguments indexedOneLakeArguments = null) + { + return new KnowledgeBaseIndexedOneLakeActivityRecord( + id, + "indexedOneLake", + elapsedMs, + error, + serializedAdditionalRawData: null, + knowledgeSourceName, + queryTime, + count, + indexedOneLakeArguments); + } + + /// Initializes a new instance of . + /// The search string used to query indexed OneLake contents. + /// A new instance for mocking. + public static KnowledgeBaseIndexedOneLakeActivityArguments KnowledgeBaseIndexedOneLakeActivityArguments(string search = null) + { + return new KnowledgeBaseIndexedOneLakeActivityArguments(search, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The ID of the activity record. + /// The elapsed time in milliseconds for the retrieval activity. + /// The error detail explaining why the operation failed. This property is only included when the activity does not succeed. + /// The knowledge source for the retrieval activity. + /// The query time for this retrieval activity. + /// The count of documents retrieved that were sufficiently relevant to pass the reranker threshold. + /// The web arguments for the retrieval activity. + /// A new instance for mocking. + public static KnowledgeBaseWebActivityRecord KnowledgeBaseWebActivityRecord(int id = default, int? elapsedMs = null, KnowledgeBaseErrorDetail error = null, string knowledgeSourceName = null, DateTimeOffset? queryTime = null, int? count = null, KnowledgeBaseWebActivityArguments webArguments = null) { - return new KnowledgeAgentAzureBlobActivityArguments(search, serializedAdditionalRawData: null); + return new KnowledgeBaseWebActivityRecord( + id, + "web", + elapsedMs, + error, + serializedAdditionalRawData: null, + knowledgeSourceName, + queryTime, + count, + webArguments); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// The search string used to query the web. + /// The language for the retrieval activity. + /// The market for the retrieval activity. + /// The number of web results returned. + /// The freshness for the retrieval activity. + /// A new instance for mocking. + public static KnowledgeBaseWebActivityArguments KnowledgeBaseWebActivityArguments(string search = null, string language = null, string market = null, int? count = null, string freshness = null) + { + return new KnowledgeBaseWebActivityArguments( + search, + language, + market, + count, + freshness, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . /// The ID of the activity record. /// The elapsed time in milliseconds for the retrieval activity. + /// The error detail explaining why the operation failed. This property is only included when the activity does not succeed. + /// The knowledge source for the retrieval activity. + /// The query time for this retrieval activity. + /// The count of documents retrieved that were sufficiently relevant to pass the reranker threshold. + /// The remote SharePoint arguments for the retrieval activity. + /// A new instance for mocking. + public static KnowledgeBaseRemoteSharePointActivityRecord KnowledgeBaseRemoteSharePointActivityRecord(int id = default, int? elapsedMs = null, KnowledgeBaseErrorDetail error = null, string knowledgeSourceName = null, DateTimeOffset? queryTime = null, int? count = null, KnowledgeBaseRemoteSharePointActivityArguments remoteSharePointArguments = null) + { + return new KnowledgeBaseRemoteSharePointActivityRecord( + id, + "remoteSharePoint", + elapsedMs, + error, + serializedAdditionalRawData: null, + knowledgeSourceName, + queryTime, + count, + remoteSharePointArguments); + } + + /// Initializes a new instance of . + /// The search string used to query the remote SharePoint knowledge source. + /// The filter expression add-on for the retrieval activity. + /// A new instance for mocking. + public static KnowledgeBaseRemoteSharePointActivityArguments KnowledgeBaseRemoteSharePointActivityArguments(string search = null, string filterExpressionAddOn = null) + { + return new KnowledgeBaseRemoteSharePointActivityArguments(search, filterExpressionAddOn, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The ID of the activity record. + /// The elapsed time in milliseconds for the retrieval activity. + /// The error detail explaining why the operation failed. This property is only included when the activity does not succeed. /// The number of input tokens for the LLM query planning activity. /// The number of output tokens for the LLM query planning activity. - /// A new instance for mocking. - public static KnowledgeAgentModelQueryPlanningActivityRecord KnowledgeAgentModelQueryPlanningActivityRecord(int id = default, int? elapsedMs = null, int? inputTokens = null, int? outputTokens = null) + /// A new instance for mocking. + public static KnowledgeBaseModelQueryPlanningActivityRecord KnowledgeBaseModelQueryPlanningActivityRecord(int id = default, int? elapsedMs = null, KnowledgeBaseErrorDetail error = null, int? inputTokens = null, int? outputTokens = null) { - return new KnowledgeAgentModelQueryPlanningActivityRecord( + return new KnowledgeBaseModelQueryPlanningActivityRecord( id, "modelQueryPlanning", elapsedMs, + error, serializedAdditionalRawData: null, inputTokens, outputTokens); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The ID of the activity record. /// The elapsed time in milliseconds for the retrieval activity. + /// The error detail explaining why the operation failed. This property is only included when the activity does not succeed. /// The number of input tokens for the LLM answer synthesis activity. /// The number of output tokens for the LLM answer synthesis activity. - /// A new instance for mocking. - public static KnowledgeAgentModelAnswerSynthesisActivityRecord KnowledgeAgentModelAnswerSynthesisActivityRecord(int id = default, int? elapsedMs = null, int? inputTokens = null, int? outputTokens = null) + /// A new instance for mocking. + public static KnowledgeBaseModelAnswerSynthesisActivityRecord KnowledgeBaseModelAnswerSynthesisActivityRecord(int id = default, int? elapsedMs = null, KnowledgeBaseErrorDetail error = null, int? inputTokens = null, int? outputTokens = null) { - return new KnowledgeAgentModelAnswerSynthesisActivityRecord( + return new KnowledgeBaseModelAnswerSynthesisActivityRecord( id, "modelAnswerSynthesis", elapsedMs, + error, serializedAdditionalRawData: null, inputTokens, outputTokens); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The ID of the activity record. /// The elapsed time in milliseconds for the retrieval activity. - /// The number of input tokens for the semantic ranker activity. - /// A new instance for mocking. - public static KnowledgeAgentSemanticRerankerActivityRecord KnowledgeAgentSemanticRerankerActivityRecord(int id = default, int? elapsedMs = null, int? inputTokens = null) + /// The error detail explaining why the operation failed. This property is only included when the activity does not succeed. + /// The number of input tokens for agentic reasoning. + /// + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// A new instance for mocking. + public static KnowledgeBaseAgenticReasoningActivityRecord KnowledgeBaseAgenticReasoningActivityRecord(int id = default, int? elapsedMs = null, KnowledgeBaseErrorDetail error = null, int? reasoningTokens = null, KnowledgeRetrievalReasoningEffort retrievalReasoningEffort = null) { - return new KnowledgeAgentSemanticRerankerActivityRecord(id, "semanticReranker", elapsedMs, serializedAdditionalRawData: null, inputTokens); + return new KnowledgeBaseAgenticReasoningActivityRecord( + id, + "agenticReasoning", + elapsedMs, + error, + serializedAdditionalRawData: null, + reasoningTokens, + retrievalReasoningEffort); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The ID of the reference. /// The source activity ID for the reference. /// Dictionary of <any>. /// The reranker score for the document reference. /// The document key for the reference. - /// A new instance for mocking. - public static KnowledgeAgentSearchIndexReference KnowledgeAgentSearchIndexReference(string id = null, int activitySource = default, IReadOnlyDictionary sourceData = null, float? rerankerScore = null, string docKey = null) + /// A new instance for mocking. + public static KnowledgeBaseSearchIndexReference KnowledgeBaseSearchIndexReference(string id = null, int activitySource = default, IReadOnlyDictionary sourceData = null, float? rerankerScore = null, string docKey = null) { sourceData ??= new Dictionary(); - return new KnowledgeAgentSearchIndexReference( + return new KnowledgeBaseSearchIndexReference( "searchIndex", id, activitySource, @@ -609,18 +944,18 @@ public static KnowledgeAgentSearchIndexReference KnowledgeAgentSearchIndexRefere docKey); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The ID of the reference. /// The source activity ID for the reference. /// Dictionary of <any>. /// The reranker score for the document reference. /// The blob URL for the reference. - /// A new instance for mocking. - public static KnowledgeAgentAzureBlobReference KnowledgeAgentAzureBlobReference(string id = null, int activitySource = default, IReadOnlyDictionary sourceData = null, float? rerankerScore = null, string blobUrl = null) + /// A new instance for mocking. + public static KnowledgeBaseAzureBlobReference KnowledgeBaseAzureBlobReference(string id = null, int activitySource = default, IReadOnlyDictionary sourceData = null, float? rerankerScore = null, string blobUrl = null) { sourceData ??= new Dictionary(); - return new KnowledgeAgentAzureBlobReference( + return new KnowledgeBaseAzureBlobReference( "azureBlob", id, activitySource, @@ -629,5 +964,113 @@ public static KnowledgeAgentAzureBlobReference KnowledgeAgentAzureBlobReference( serializedAdditionalRawData: null, blobUrl); } + + /// Initializes a new instance of . + /// The ID of the reference. + /// The source activity ID for the reference. + /// Dictionary of <any>. + /// The reranker score for the document reference. + /// The document URL for the reference. + /// A new instance for mocking. + public static KnowledgeBaseIndexedSharePointReference KnowledgeBaseIndexedSharePointReference(string id = null, int activitySource = default, IReadOnlyDictionary sourceData = null, float? rerankerScore = null, string docUrl = null) + { + sourceData ??= new Dictionary(); + + return new KnowledgeBaseIndexedSharePointReference( + "indexedSharePoint", + id, + activitySource, + sourceData, + rerankerScore, + serializedAdditionalRawData: null, + docUrl); + } + + /// Initializes a new instance of . + /// The ID of the reference. + /// The source activity ID for the reference. + /// Dictionary of <any>. + /// The reranker score for the document reference. + /// The document URL for the reference. + /// A new instance for mocking. + public static KnowledgeBaseIndexedOneLakeReference KnowledgeBaseIndexedOneLakeReference(string id = null, int activitySource = default, IReadOnlyDictionary sourceData = null, float? rerankerScore = null, string docUrl = null) + { + sourceData ??= new Dictionary(); + + return new KnowledgeBaseIndexedOneLakeReference( + "indexedOneLake", + id, + activitySource, + sourceData, + rerankerScore, + serializedAdditionalRawData: null, + docUrl); + } + + /// Initializes a new instance of . + /// The ID of the reference. + /// The source activity ID for the reference. + /// Dictionary of <any>. + /// The reranker score for the document reference. + /// The url the reference data originated from. + /// The title of the web document. + /// A new instance for mocking. + public static KnowledgeBaseWebReference KnowledgeBaseWebReference(string id = null, int activitySource = default, IReadOnlyDictionary sourceData = null, float? rerankerScore = null, Uri url = null, string title = null) + { + sourceData ??= new Dictionary(); + + return new KnowledgeBaseWebReference( + "web", + id, + activitySource, + sourceData, + rerankerScore, + serializedAdditionalRawData: null, + url, + title); + } + + /// Initializes a new instance of . + /// The ID of the reference. + /// The source activity ID for the reference. + /// Dictionary of <any>. + /// The reranker score for the document reference. + /// The url the reference data originated from. + /// Information about the sensitivity label applied to a SharePoint document. + /// A new instance for mocking. + public static KnowledgeBaseRemoteSharePointReference KnowledgeBaseRemoteSharePointReference(string id = null, int activitySource = default, IReadOnlyDictionary sourceData = null, float? rerankerScore = null, Uri webUrl = null, SharePointSensitivityLabelInfo searchSensitivityLabelInfo = null) + { + sourceData ??= new Dictionary(); + + return new KnowledgeBaseRemoteSharePointReference( + "remoteSharePoint", + id, + activitySource, + sourceData, + rerankerScore, + serializedAdditionalRawData: null, + webUrl, + searchSensitivityLabelInfo); + } + + /// Initializes a new instance of . + /// The display name for the sensitivity label. + /// The ID of the sensitivity label. + /// The tooltip that should be displayed for the label in a UI. + /// The priority in which the sensitivity label is applied. + /// The color that the UI should display for the label, if configured. + /// Indicates whether the sensitivity label enforces encryption. + /// A new instance for mocking. + public static SharePointSensitivityLabelInfo SharePointSensitivityLabelInfo(string displayName = null, string sensitivityLabelId = null, string tooltip = null, int? priority = null, string color = null, bool? isEncrypted = null) + { + return new SharePointSensitivityLabelInfo( + displayName, + sensitivityLabelId, + tooltip, + priority, + color, + isEncrypted, + serializedAdditionalRawData: null); + } } } diff --git a/sdk/search/Azure.Search.Documents/src/Generated/SearchServiceRestClient.cs b/sdk/search/Azure.Search.Documents/src/Generated/SearchServiceRestClient.cs index aa449c3bc537..d9edb31740a5 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/SearchServiceRestClient.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/SearchServiceRestClient.cs @@ -32,7 +32,7 @@ internal partial class SearchServiceRestClient /// The tracking ID sent with the request to help with debugging. /// Api Version. /// , , or is null. - public SearchServiceRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, Guid? xMsClientRequestId = null, string apiVersion = "2025-08-01-preview") + public SearchServiceRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, Guid? xMsClientRequestId = null, string apiVersion = "2025-11-01-preview") { ClientDiagnostics = clientDiagnostics ?? throw new ArgumentNullException(nameof(clientDiagnostics)); _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); diff --git a/sdk/search/Azure.Search.Documents/src/Generated/SkillsetsRestClient.cs b/sdk/search/Azure.Search.Documents/src/Generated/SkillsetsRestClient.cs index b69ddccdcdbc..c9c252c1a838 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/SkillsetsRestClient.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/SkillsetsRestClient.cs @@ -33,7 +33,7 @@ internal partial class SkillsetsRestClient /// The tracking ID sent with the request to help with debugging. /// Api Version. /// , , or is null. - public SkillsetsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, Guid? xMsClientRequestId = null, string apiVersion = "2025-08-01-preview") + public SkillsetsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, Guid? xMsClientRequestId = null, string apiVersion = "2025-11-01-preview") { ClientDiagnostics = clientDiagnostics ?? throw new ArgumentNullException(nameof(clientDiagnostics)); _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); diff --git a/sdk/search/Azure.Search.Documents/src/Generated/SynonymMapsRestClient.cs b/sdk/search/Azure.Search.Documents/src/Generated/SynonymMapsRestClient.cs index 7d7095983e80..f8c6b6efd2fc 100644 --- a/sdk/search/Azure.Search.Documents/src/Generated/SynonymMapsRestClient.cs +++ b/sdk/search/Azure.Search.Documents/src/Generated/SynonymMapsRestClient.cs @@ -32,7 +32,7 @@ internal partial class SynonymMapsRestClient /// The tracking ID sent with the request to help with debugging. /// Api Version. /// , , or is null. - public SynonymMapsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, Guid? xMsClientRequestId = null, string apiVersion = "2025-08-01-preview") + public SynonymMapsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string endpoint, Guid? xMsClientRequestId = null, string apiVersion = "2025-11-01-preview") { ClientDiagnostics = clientDiagnostics ?? throw new ArgumentNullException(nameof(clientDiagnostics)); _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); diff --git a/sdk/search/Azure.Search.Documents/src/Indexes/SearchIndexClient.KnowledgeAgents.cs b/sdk/search/Azure.Search.Documents/src/Indexes/SearchIndexClient.KnowledgeBases.cs similarity index 59% rename from sdk/search/Azure.Search.Documents/src/Indexes/SearchIndexClient.KnowledgeAgents.cs rename to sdk/search/Azure.Search.Documents/src/Indexes/SearchIndexClient.KnowledgeBases.cs index 1dad077e8053..57de52bc04bf 100644 --- a/sdk/search/Azure.Search.Documents/src/Indexes/SearchIndexClient.KnowledgeAgents.cs +++ b/sdk/search/Azure.Search.Documents/src/Indexes/SearchIndexClient.KnowledgeBases.cs @@ -15,12 +15,12 @@ namespace Azure.Search.Documents.Indexes /// public partial class SearchIndexClient { - private KnowledgeAgentsRestClient _knowledgeAgentsRestClient; + private KnowledgeBasesRestClient _KnowledgeBasesRestClient; /// - /// Gets the generated to make requests. + /// Gets the generated to make requests. /// - private KnowledgeAgentsRestClient KnowledgeAgentsClient => LazyInitializer.EnsureInitialized(ref _knowledgeAgentsRestClient, () => new KnowledgeAgentsRestClient( + private KnowledgeBasesRestClient KnowledgeBasesClient => LazyInitializer.EnsureInitialized(ref _KnowledgeBasesRestClient, () => new KnowledgeBasesRestClient( _clientDiagnostics, _pipeline, Endpoint.AbsoluteUri, @@ -28,18 +28,18 @@ public partial class SearchIndexClient _version.ToVersionString()) ); - #region KnowledgeAgents Operations + #region KnowledgeBases Operations /// Creates a new agent. - /// The definition of the agent to create. + /// The definition of the agent to create. /// The cancellation token to use. - /// is null. - public virtual Response CreateKnowledgeAgent(KnowledgeAgent knowledgeAgent, CancellationToken cancellationToken = default) + /// is null. + public virtual Response CreateKnowledgeBase(KnowledgeBase KnowledgeBase, CancellationToken cancellationToken = default) { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(SearchIndexClient)}.{nameof(CreateKnowledgeAgent)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(SearchIndexClient)}.{nameof(CreateKnowledgeBase)}"); scope.Start(); try { - return KnowledgeAgentsClient.Create(knowledgeAgent, cancellationToken); + return KnowledgeBasesClient.Create(KnowledgeBase, cancellationToken); } catch (Exception ex) { @@ -49,16 +49,16 @@ public virtual Response CreateKnowledgeAgent(KnowledgeAgent know } /// Creates a new agent. - /// The definition of the agent to create. + /// The definition of the agent to create. /// The cancellation token to use. - /// is null. - public virtual async Task> CreateKnowledgeAgentAsync(KnowledgeAgent knowledgeAgent, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task> CreateKnowledgeBaseAsync(KnowledgeBase KnowledgeBase, CancellationToken cancellationToken = default) { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(SearchIndexClient)}.{nameof(CreateKnowledgeAgent)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(SearchIndexClient)}.{nameof(CreateKnowledgeBase)}"); scope.Start(); try { - return await KnowledgeAgentsClient.CreateAsync(knowledgeAgent, cancellationToken).ConfigureAwait(false); + return await KnowledgeBasesClient.CreateAsync(KnowledgeBase, cancellationToken).ConfigureAwait(false); } catch (Exception ex) { @@ -68,25 +68,25 @@ public virtual async Task> CreateKnowledgeAgentAsync(Kn } /// Creates a new agent or updates an agent if it already exists. - /// The definition of the agent to create or update. + /// The definition of the agent to create or update. /// - /// True to throw a if the does not match the current service version; + /// True to throw a if the does not match the current service version; /// otherwise, the current service version will be overwritten. /// /// Optional to propagate notifications that the operation should be canceled. - /// is null. - public virtual Response CreateOrUpdateKnowledgeAgent(KnowledgeAgent knowledgeAgent, bool onlyIfUnchanged = false, CancellationToken cancellationToken = default) + /// is null. + public virtual Response CreateOrUpdateKnowledgeBase(KnowledgeBase KnowledgeBase, bool onlyIfUnchanged = false, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(knowledgeAgent, nameof(knowledgeAgent)); + Argument.AssertNotNull(KnowledgeBase, nameof(KnowledgeBase)); - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(SearchIndexClient)}.{nameof(CreateOrUpdateKnowledgeAgent)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(SearchIndexClient)}.{nameof(CreateOrUpdateKnowledgeBase)}"); scope.Start(); try { - return KnowledgeAgentsClient.CreateOrUpdate( - knowledgeAgent?.Name, - knowledgeAgent, - onlyIfUnchanged ? knowledgeAgent?.ETag?.ToString() : null, + return KnowledgeBasesClient.CreateOrUpdate( + KnowledgeBase?.Name, + KnowledgeBase, + onlyIfUnchanged ? KnowledgeBase?.ETag?.ToString() : null, null, cancellationToken); } @@ -98,25 +98,25 @@ public virtual Response CreateOrUpdateKnowledgeAgent(KnowledgeAg } /// Creates a new agent or updates an agent if it already exists. - /// The definition of the agent to create or update. + /// The definition of the agent to create or update. /// - /// True to throw a if the does not match the current service version; + /// True to throw a if the does not match the current service version; /// otherwise, the current service version will be overwritten. /// /// Optional to propagate notifications that the operation should be canceled. - /// is null. - public virtual async Task> CreateOrUpdateKnowledgeAgentAsync(KnowledgeAgent knowledgeAgent, bool onlyIfUnchanged = false, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task> CreateOrUpdateKnowledgeBaseAsync(KnowledgeBase KnowledgeBase, bool onlyIfUnchanged = false, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(knowledgeAgent, nameof(knowledgeAgent)); + Argument.AssertNotNull(KnowledgeBase, nameof(KnowledgeBase)); - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(SearchIndexClient)}.{nameof(CreateOrUpdateKnowledgeAgent)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(SearchIndexClient)}.{nameof(CreateOrUpdateKnowledgeBase)}"); scope.Start(); try { - return await KnowledgeAgentsClient.CreateOrUpdateAsync( - knowledgeAgent?.Name, - knowledgeAgent, - onlyIfUnchanged ? knowledgeAgent?.ETag?.ToString() : null, + return await KnowledgeBasesClient.CreateOrUpdateAsync( + KnowledgeBase?.Name, + KnowledgeBase, + onlyIfUnchanged ? KnowledgeBase?.ETag?.ToString() : null, null, cancellationToken).ConfigureAwait(false); } @@ -132,67 +132,67 @@ public virtual async Task> CreateOrUpdateKnowledgeAgent /// The cancellation token to use. /// The from the server. /// is null. - public virtual Response DeleteKnowledgeAgent(string agentName, CancellationToken cancellationToken = default) => - DeleteKnowledgeAgent(agentName, null, false, cancellationToken); + public virtual Response DeleteKnowledgeBase(string agentName, CancellationToken cancellationToken = default) => + DeleteKnowledgeBase(agentName, null, false, cancellationToken); //// Deletes an existing agent. /// The name of the agent to delete. /// The cancellation token to use. /// The from the server. /// is null. - public virtual async Task DeleteKnowledgeAgentAsync(string agentName, CancellationToken cancellationToken = default) => - await DeleteKnowledgeAgentAsync(agentName, null, false, cancellationToken).ConfigureAwait(false); + public virtual async Task DeleteKnowledgeBaseAsync(string agentName, CancellationToken cancellationToken = default) => + await DeleteKnowledgeBaseAsync(agentName, null, false, cancellationToken).ConfigureAwait(false); /// Deletes an existing agent. - /// The definition of the agent to delete. + /// The definition of the agent to delete. /// - /// True to throw a if the does not match the current service version; + /// True to throw a if the does not match the current service version; /// otherwise, the current service version will be overwritten. /// /// Optional to propagate notifications that the operation should be canceled. /// The from the server. - /// is null. - public virtual Response DeleteKnowledgeAgent(KnowledgeAgent knowledgeAgent, bool onlyIfUnchanged = false, CancellationToken cancellationToken = default) + /// is null. + public virtual Response DeleteKnowledgeBase(KnowledgeBase KnowledgeBase, bool onlyIfUnchanged = false, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(knowledgeAgent, nameof(knowledgeAgent)); + Argument.AssertNotNull(KnowledgeBase, nameof(KnowledgeBase)); - return DeleteKnowledgeAgent( - knowledgeAgent?.Name, - knowledgeAgent?.ETag, + return DeleteKnowledgeBase( + KnowledgeBase?.Name, + KnowledgeBase?.ETag, onlyIfUnchanged, cancellationToken); } /// Deletes an existing agent. - /// The definition of the agent to delete. + /// The definition of the agent to delete. /// - /// True to throw a if the does not match the current service version; + /// True to throw a if the does not match the current service version; /// otherwise, the current service version will be overwritten. /// /// Optional to propagate notifications that the operation should be canceled. /// The from the server. - /// is null. - public virtual async Task DeleteKnowledgeAgentAsync(KnowledgeAgent knowledgeAgent, bool onlyIfUnchanged = false, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task DeleteKnowledgeBaseAsync(KnowledgeBase KnowledgeBase, bool onlyIfUnchanged = false, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(knowledgeAgent, nameof(knowledgeAgent)); + Argument.AssertNotNull(KnowledgeBase, nameof(KnowledgeBase)); - return await DeleteKnowledgeAgentAsync( - knowledgeAgent?.Name, - knowledgeAgent?.ETag, + return await DeleteKnowledgeBaseAsync( + KnowledgeBase?.Name, + KnowledgeBase?.ETag, onlyIfUnchanged, cancellationToken) .ConfigureAwait(false); } - private Response DeleteKnowledgeAgent(string agentName, ETag? etag, bool onlyIfUnchanged, CancellationToken cancellationToken) + private Response DeleteKnowledgeBase(string agentName, string etag, bool onlyIfUnchanged, CancellationToken cancellationToken) { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(SearchIndexClient)}.{nameof(DeleteKnowledgeAgent)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(SearchIndexClient)}.{nameof(DeleteKnowledgeBase)}"); scope.Start(); try { - return KnowledgeAgentsClient.Delete( + return KnowledgeBasesClient.Delete( agentName, - onlyIfUnchanged ? etag?.ToString() : null, + onlyIfUnchanged ? etag : null, null, cancellationToken); } @@ -203,13 +203,13 @@ private Response DeleteKnowledgeAgent(string agentName, ETag? etag, bool onlyIfU } } - private async Task DeleteKnowledgeAgentAsync(string agentName, ETag? etag, bool onlyIfUnchanged, CancellationToken cancellationToken) + private async Task DeleteKnowledgeBaseAsync(string agentName, string etag, bool onlyIfUnchanged, CancellationToken cancellationToken) { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(SearchIndexClient)}.{nameof(DeleteKnowledgeAgent)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(SearchIndexClient)}.{nameof(DeleteKnowledgeBase)}"); scope.Start(); try { - return await KnowledgeAgentsClient.DeleteAsync( + return await KnowledgeBasesClient.DeleteAsync( agentName, onlyIfUnchanged ? etag?.ToString() : null, null, @@ -227,13 +227,13 @@ private async Task DeleteKnowledgeAgentAsync(string agentName, ETag? e /// The name of the agent to retrieve. /// The cancellation token to use. /// is null. - public virtual Response GetKnowledgeAgent(string agentName, CancellationToken cancellationToken = default) + public virtual Response GetKnowledgeBase(string agentName, CancellationToken cancellationToken = default) { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(SearchIndexClient)}.{nameof(GetKnowledgeAgent)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(SearchIndexClient)}.{nameof(GetKnowledgeBase)}"); scope.Start(); try { - return KnowledgeAgentsClient.Get(agentName, cancellationToken); + return KnowledgeBasesClient.Get(agentName, cancellationToken); } catch (Exception ex) { @@ -246,13 +246,13 @@ public virtual Response GetKnowledgeAgent(string agentName, Canc /// The name of the agent to retrieve. /// The cancellation token to use. /// is null. - public virtual async Task> GetKnowledgeAgentAsync(string agentName, CancellationToken cancellationToken = default) + public virtual async Task> GetKnowledgeBaseAsync(string agentName, CancellationToken cancellationToken = default) { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(SearchIndexClient)}.{nameof(GetKnowledgeAgent)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(SearchIndexClient)}.{nameof(GetKnowledgeBase)}"); scope.Start(); try { - return await KnowledgeAgentsClient.GetAsync(agentName, cancellationToken).ConfigureAwait(false); + return await KnowledgeBasesClient.GetAsync(agentName, cancellationToken).ConfigureAwait(false); } catch (Exception ex) { @@ -263,13 +263,13 @@ public virtual async Task> GetKnowledgeAgentAsync(strin /// Lists all agents available for a search service. /// Optional to propagate notifications that the operation should be canceled. - /// The from the server containing a list of . + /// The from the server containing a list of . /// Thrown when a failure is returned by the Search service. - public virtual Pageable GetKnowledgeAgents(CancellationToken cancellationToken = default) + public virtual Pageable GetKnowledgeBases(CancellationToken cancellationToken = default) { return PageResponseEnumerator.CreateEnumerable((continuationToken) => { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(SearchIndexClient)}.{nameof(GetKnowledgeAgents)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(SearchIndexClient)}.{nameof(GetKnowledgeBases)}"); scope.Start(); try { @@ -278,9 +278,9 @@ public virtual Pageable GetKnowledgeAgents(CancellationToken can throw new NotSupportedException("A continuation token is unsupported."); } - Response result = KnowledgeAgentsClient.List(cancellationToken); + Response result = KnowledgeBasesClient.List(cancellationToken); - return Page.FromValues(result.Value.KnowledgeAgents, null, result.GetRawResponse()); + return Page.FromValues(result.Value.KnowledgeBases, null, result.GetRawResponse()); } catch (Exception ex) { @@ -292,13 +292,13 @@ public virtual Pageable GetKnowledgeAgents(CancellationToken can /// Lists all agents available for a search service. /// Optional to propagate notifications that the operation should be canceled. - /// The from the server containing a list of . + /// The from the server containing a list of . /// Thrown when a failure is returned by the Search service. - public virtual AsyncPageable GetKnowledgeAgentsAsync(CancellationToken cancellationToken = default) + public virtual AsyncPageable GetKnowledgeBasesAsync(CancellationToken cancellationToken = default) { return PageResponseEnumerator.CreateAsyncEnumerable(async (continuationToken) => { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(SearchIndexClient)}.{nameof(GetKnowledgeAgents)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(SearchIndexClient)}.{nameof(GetKnowledgeBases)}"); scope.Start(); try { @@ -307,9 +307,9 @@ public virtual AsyncPageable GetKnowledgeAgentsAsync(Cancellatio throw new NotSupportedException("A continuation token is unsupported."); } - Response result = await KnowledgeAgentsClient.ListAsync(cancellationToken).ConfigureAwait(false); + Response result = await KnowledgeBasesClient.ListAsync(cancellationToken).ConfigureAwait(false); - return Page.FromValues(result.Value.KnowledgeAgents, null, result.GetRawResponse()); + return Page.FromValues(result.Value.KnowledgeBases, null, result.GetRawResponse()); } catch (Exception ex) { diff --git a/sdk/search/Azure.Search.Documents/src/KnowledgeAgents/KnowledgeAgent.cs b/sdk/search/Azure.Search.Documents/src/KnowledgeAgents/KnowledgeAgent.cs deleted file mode 100644 index ffdf0aa9fa53..000000000000 --- a/sdk/search/Azure.Search.Documents/src/KnowledgeAgents/KnowledgeAgent.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -using Azure.Core; - -namespace Azure.Search.Documents.Indexes.Models -{ - /// The KnowledgeAgent. - public partial class KnowledgeAgent - { - [CodeGenMember("ETag")] - private string _eTag; - - /// - /// The of the . - /// - public ETag? ETag - { - get => _eTag is null ? (ETag?)null : new ETag(_eTag); - set => _eTag = value?.ToString(); - } - } -} diff --git a/sdk/search/Azure.Search.Documents/src/KnowledgeBases/KnowledgeBase.cs b/sdk/search/Azure.Search.Documents/src/KnowledgeBases/KnowledgeBase.cs new file mode 100644 index 000000000000..e74f3d0d4adb --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/KnowledgeBases/KnowledgeBase.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +//using Azure.Core; + +//namespace Azure.Search.Documents.Indexes.Models +//{ +// /// The KnowledgeAgent. +// public partial class KnowledgeBase +// { +// [CodeGenMember("ETag")] +// private string _eTag; + +// /// +// /// The of the . +// /// +// public ETag? ETag +// { +// get => _eTag is null ? null : new ETag(_eTag); +// set => _eTag = value?.ToString(); +// } +// } +//} diff --git a/sdk/search/Azure.Search.Documents/src/KnowledgeAgents/KnowledgeAgentRetrievalClient.cs b/sdk/search/Azure.Search.Documents/src/KnowledgeBases/KnowledgeBaseRetrievalClient.cs similarity index 85% rename from sdk/search/Azure.Search.Documents/src/KnowledgeAgents/KnowledgeAgentRetrievalClient.cs rename to sdk/search/Azure.Search.Documents/src/KnowledgeBases/KnowledgeBaseRetrievalClient.cs index 9123c32bc1c2..c1679352fae8 100644 --- a/sdk/search/Azure.Search.Documents/src/KnowledgeAgents/KnowledgeAgentRetrievalClient.cs +++ b/sdk/search/Azure.Search.Documents/src/KnowledgeBases/KnowledgeBaseRetrievalClient.cs @@ -6,14 +6,14 @@ using System.Threading.Tasks; using Azure.Core.Pipeline; using Azure.Core; -using Azure.Search.Documents.Agents.Models; +using Azure.Search.Documents.KnowledgeBases.Models; -namespace Azure.Search.Documents.Agents +namespace Azure.Search.Documents.KnowledgeBases { /// /// Azure Cognitive Search client that can be used to query an agent. /// - public partial class KnowledgeAgentRetrievalClient + public partial class KnowledgeBaseRetrievalClient { private readonly HttpPipeline _pipeline; private readonly ClientDiagnostics _clientDiagnostics; @@ -45,10 +45,10 @@ public partial class KnowledgeAgentRetrievalClient /// Initializes a new instance of the SearchClient class for /// mocking. /// - protected KnowledgeAgentRetrievalClient() { } + protected KnowledgeBaseRetrievalClient() { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Required. The URI endpoint of the Search service. This is likely to be similar to "https://{search_service}.search.windows.net". The URI must use HTTPS. /// The name of the agent. @@ -59,13 +59,13 @@ protected KnowledgeAgentRetrievalClient() { } /// /// Thrown when the or is null. /// Thrown when the is not using HTTPS. - public KnowledgeAgentRetrievalClient(Uri endpoint, string agentName, AzureKeyCredential credential) : + public KnowledgeBaseRetrievalClient(Uri endpoint, string agentName, AzureKeyCredential credential) : this(endpoint, agentName, credential, null) { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Required. The URI endpoint of the Search service. This is likely to be similar to "https://{search_service}.search.windows.net". The URI must use HTTPS. /// The name of the agent. @@ -75,13 +75,13 @@ public KnowledgeAgentRetrievalClient(Uri endpoint, string agentName, AzureKeyCre /// /// Thrown when the or is null. /// Thrown when the is not using HTTPS. - public KnowledgeAgentRetrievalClient(Uri endpoint, string agentName, TokenCredential tokenCredential) : + public KnowledgeBaseRetrievalClient(Uri endpoint, string agentName, TokenCredential tokenCredential) : this(endpoint, agentName, tokenCredential, null) { } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Required. The URI endpoint of the Search service. This is likely to be similar to "https://{search_service}.search.windows.net". The URI must use HTTPS. /// The name of the agent. @@ -93,7 +93,7 @@ public KnowledgeAgentRetrievalClient(Uri endpoint, string agentName, TokenCreden /// Client configuration options for connecting to Azure Cognitive Search. /// Thrown when the or is null. /// Thrown when the is not using HTTPS. - public KnowledgeAgentRetrievalClient(Uri endpoint, string agentName, AzureKeyCredential credential, SearchClientOptions options) + public KnowledgeBaseRetrievalClient(Uri endpoint, string agentName, AzureKeyCredential credential, SearchClientOptions options) { Argument.AssertNotNull(endpoint, nameof(endpoint)); endpoint.AssertHttpsScheme(nameof(endpoint)); @@ -117,7 +117,7 @@ public KnowledgeAgentRetrievalClient(Uri endpoint, string agentName, AzureKeyCre } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Required. The URI endpoint of the Search service. This is likely to be similar to "https://{search_service}.search.windows.net". The URI must use HTTPS. /// The name of the agent. @@ -128,7 +128,7 @@ public KnowledgeAgentRetrievalClient(Uri endpoint, string agentName, AzureKeyCre /// Client configuration options for connecting to Azure Cognitive Search. /// Thrown when the or is null. /// Thrown when the is not using HTTPS. - public KnowledgeAgentRetrievalClient(Uri endpoint, string agentName, TokenCredential tokenCredential, SearchClientOptions options) + public KnowledgeBaseRetrievalClient(Uri endpoint, string agentName, TokenCredential tokenCredential, SearchClientOptions options) { Argument.AssertNotNull(endpoint, nameof(endpoint)); endpoint.AssertHttpsScheme(nameof(endpoint)); @@ -153,14 +153,14 @@ public KnowledgeAgentRetrievalClient(Uri endpoint, string agentName, TokenCreden #endregion ctors #region Service operations - /// KnowledgeAgent retrieves relevant data from backing stores. + /// KnowledgeBase retrieves relevant data from backing stores. /// The retrieval request to process. /// Token identifying the user for which the query is being executed. This token is used to enforce security restrictions on documents. /// The cancellation token to use. /// is null. - public virtual Response Retrieve(KnowledgeAgentRetrievalRequest retrievalRequest, string xMsQuerySourceAuthorization = null, CancellationToken cancellationToken = default) + public virtual Response Retrieve(KnowledgeBaseRetrievalRequest retrievalRequest, string xMsQuerySourceAuthorization = null, CancellationToken cancellationToken = default) { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(KnowledgeAgentRetrievalClient)}.{nameof(Retrieve)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(KnowledgeBaseRetrievalClient)}.{nameof(Retrieve)}"); scope.Start(); try { @@ -173,14 +173,14 @@ public virtual Response Retrieve(KnowledgeAgent } } - /// KnowledgeAgent retrieves relevant data from backing stores. + /// KnowledgeBase retrieves relevant data from backing stores. /// The retrieval request to process. /// Token identifying the user for which the query is being executed. This token is used to enforce security restrictions on documents. /// The cancellation token to use. /// is null. - public virtual async Task> RetrieveAsync(KnowledgeAgentRetrievalRequest retrievalRequest, string xMsQuerySourceAuthorization = null, CancellationToken cancellationToken = default) + public virtual async Task> RetrieveAsync(KnowledgeBaseRetrievalRequest retrievalRequest, string xMsQuerySourceAuthorization = null, CancellationToken cancellationToken = default) { - using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(KnowledgeAgentRetrievalClient)}.{nameof(Retrieve)}"); + using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(KnowledgeBaseRetrievalClient)}.{nameof(Retrieve)}"); scope.Start(); try { diff --git a/sdk/search/Azure.Search.Documents/src/Models/SearchModelFactory.cs b/sdk/search/Azure.Search.Documents/src/Models/SearchModelFactory.cs index 51f2473cad93..d26228b556e3 100644 --- a/sdk/search/Azure.Search.Documents/src/Models/SearchModelFactory.cs +++ b/sdk/search/Azure.Search.Documents/src/Models/SearchModelFactory.cs @@ -7,6 +7,7 @@ using System.Linq; using Azure.Core; using Azure.Search.Documents.Indexes.Models; +using Azure.Search.Documents.KnowledgeBases.Models; namespace Azure.Search.Documents.Models { @@ -187,6 +188,24 @@ public static SearchIndexerSkill SearchIndexerSkill( IList outputs) => new SearchIndexerSkill(oDataType, name, description, context, inputs, outputs, serializedAdditionalRawData: null); + /// Initializes a new instance of SearchIndexerStatus. + /// The name of the indexer. + /// Overall indexer status. + /// The result of the most recent or an in-progress indexer execution. + /// History of the recent indexer executions, sorted in reverse chronological order. + /// The execution limits for the indexer. + [EditorBrowsable(EditorBrowsableState.Never)] + public static SearchIndexerStatus SearchIndexerStatus( + string name = null, + IndexerStatus status = default, + IndexerExecutionResult lastResult = null, + IEnumerable executionHistory = null, + SearchIndexerLimits limits = null) + { + executionHistory ??= new List(); + return new SearchIndexerStatus(name, status, runtime: default, lastResult, executionHistory?.ToList(), limits, currentState: default, serializedAdditionalRawData: null); + } + /// Initializes a new instance of SearchIndexerStatus. /// Overall indexer status. /// The result of the most recent or an in-progress indexer execution. @@ -199,7 +218,7 @@ public static SearchIndexerStatus SearchIndexerStatus( IndexerExecutionResult lastResult, IReadOnlyList executionHistory, SearchIndexerLimits limits) => - new SearchIndexerStatus(default, status, lastResult, executionHistory, limits, default, serializedAdditionalRawData: null); + new SearchIndexerStatus(default, status, default, lastResult, executionHistory, limits, default, serializedAdditionalRawData: null); /// Initializes a new instance of . /// Overall indexer status. @@ -212,24 +231,26 @@ public static SearchIndexerStatus SearchIndexerStatus(IndexerStatus status = def { executionHistory ??= new List(); - return new SearchIndexerStatus(default, status, lastResult, executionHistory?.ToList(), limits, default, serializedAdditionalRawData: null); + return new SearchIndexerStatus(default, status, default, lastResult, executionHistory?.ToList(), limits, default, serializedAdditionalRawData: null); } /// Initializes a new instance of . /// The name of the indexer. /// Overall indexer status. + /// Snapshot of the indexer’s cumulative runtime consumption for the service over the current UTC period. /// The result of the most recent or an in-progress indexer execution. /// History of the recent indexer executions, sorted in reverse chronological order. /// The execution limits for the indexer. /// A new instance for mocking. [EditorBrowsable(EditorBrowsableState.Never)] - public static SearchIndexerStatus SearchIndexerStatus(string name = null, IndexerStatus status = default, IndexerExecutionResult lastResult = null, IEnumerable executionHistory = null, SearchIndexerLimits limits = null) + public static SearchIndexerStatus SearchIndexerStatus(string name = null, IndexerStatus status = default, IndexerRuntime runtime = default, IndexerExecutionResult lastResult = null, IEnumerable executionHistory = null, SearchIndexerLimits limits = null) { executionHistory ??= new List(); return new SearchIndexerStatus( name, status, + runtime, lastResult, executionHistory?.ToList(), limits, @@ -331,6 +352,22 @@ public static SearchServiceCounters SearchServiceCounters( SearchResourceCounter vectorIndexSizeCounter = null) => new SearchServiceCounters(null, documentCounter, indexCounter, indexerCounter, dataSourceCounter, storageSizeCounter, synonymMapCounter, skillsetCounter, vectorIndexSizeCounter); + /// Initializes a new instance of SearchServiceLimits. + /// The maximum allowed fields per index. + /// The maximum depth which you can nest sub-fields in an index, including the top-level complex field. For example, a/b/c has a nesting depth of 3. + /// The maximum number of fields of type Collection(Edm.ComplexType) allowed in an index. + /// The maximum number of objects in complex collections allowed per document. + /// The maximum storage per index in bytes. + /// A new SearchServiceLimits instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static SearchServiceLimits SearchServiceLimits( + int? maxFieldsPerIndex, + int? maxFieldNestingDepthPerIndex, + int? maxComplexCollectionFieldsPerIndex, + int? maxComplexObjectsInCollectionsPerDocument, + long? maxStoragePerIndexInBytes) => + new SearchServiceLimits(maxFieldsPerIndex, maxFieldNestingDepthPerIndex, maxComplexCollectionFieldsPerIndex, maxComplexObjectsInCollectionsPerDocument, maxStoragePerIndexInBytes, null, serializedAdditionalRawData: null); + /// Initializes a new instance of SearchServiceLimits. /// The maximum allowed fields per index. /// The maximum depth which you can nest sub-fields in an index, including the top-level complex field. For example, a/b/c has a nesting depth of 3. @@ -343,7 +380,7 @@ public static SearchServiceLimits SearchServiceLimits( int? maxFieldNestingDepthPerIndex, int? maxComplexCollectionFieldsPerIndex, int? maxComplexObjectsInCollectionsPerDocument) => - new SearchServiceLimits(maxFieldsPerIndex, maxFieldNestingDepthPerIndex, maxComplexCollectionFieldsPerIndex, maxComplexObjectsInCollectionsPerDocument, null, serializedAdditionalRawData: null); + new SearchServiceLimits(maxFieldsPerIndex, maxFieldNestingDepthPerIndex, maxComplexCollectionFieldsPerIndex, maxComplexObjectsInCollectionsPerDocument, maxStoragePerIndexInBytes: null, maxCumulativeIndexerRuntimeSeconds: null, serializedAdditionalRawData: null); /// Initializes a new instance of SearchServiceStatistics. /// Service level resource counters. @@ -352,7 +389,7 @@ public static SearchServiceLimits SearchServiceLimits( public static SearchServiceStatistics SearchServiceStatistics( SearchServiceCounters counters, SearchServiceLimits limits) => - new SearchServiceStatistics(counters, limits); + new SearchServiceStatistics(counters, null, limits); /// Initializes a new instance of SimilarityAlgorithm. /// . @@ -412,7 +449,7 @@ public static FacetResult FacetResult(long? count = null, IReadOnlyDictionary(); - return new FacetResult(count, null, null, additionalProperties); + return new FacetResult(count, avg: null, min: null, max: null, sum: null, cardinality: null, facets: null, additionalProperties); } /// Initializes a new instance of IndexDocumentsResult. @@ -540,7 +577,7 @@ public static SearchIndex SearchIndex(string name = null, string description = n normalizers ??= new List(); serializedAdditionalRawData ??= new Dictionary(); - return new SearchIndex(name, description, fields, scoringProfiles, defaultScoringProfile, corsOptions, suggesters, analyzers, tokenizers, tokenFilters, charFilters, normalizers, encryptionKey, similarity, semanticSearch, vectorSearch, null, etag, serializedAdditionalRawData); + return new SearchIndex(name, description, fields, scoringProfiles, defaultScoringProfile, corsOptions, suggesters, analyzers, tokenizers, tokenFilters, charFilters, normalizers, encryptionKey, similarity, semanticSearch, vectorSearch, null, null, etag, serializedAdditionalRawData); } /// Initializes a new instance of SearchIndex. @@ -599,7 +636,7 @@ public static SearchIndex SearchIndex(string name = null, string description = n normalizers ??= new List(); serializedAdditionalRawData ??= new Dictionary(); - return new SearchIndex(name, description, fields, scoringProfiles, defaultScoringProfile, corsOptions, suggesters, analyzers, tokenizers, tokenFilters, charFilters, normalizers, encryptionKey, similarity, semanticSearch, vectorSearch, permissionFilterOption, etag, serializedAdditionalRawData); + return new SearchIndex(name, description, fields, scoringProfiles, defaultScoringProfile, corsOptions, suggesters, analyzers, tokenizers, tokenFilters, charFilters, normalizers, encryptionKey, similarity, semanticSearch, vectorSearch, permissionFilterOption, purviewEnabled: null, etag, serializedAdditionalRawData); } /// Initializes a new instance of . @@ -731,13 +768,51 @@ public static KnowledgeSource SearchIndexKnowledgeSource(string name = null, str return new SearchIndexKnowledgeSource(name, description, kind, eTag, encryptionKey, serializedAdditionalRawData, searchIndexParameters); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// The name of the knowledge knowledge base. + /// + /// + /// Contains configuration options on how to connect to AI models. + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include . + /// + /// + /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. + /// The available derived classes include , and . + /// + /// The output configuration for this retrieval. + /// The ETag of the knowledge base. + /// A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your knowledge base definition when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your knowledge base definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your knowledge base definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. + /// The description of the knowledge base. + /// Instructions considered by the knowledge knowledge base when developing query plan. + /// Instructions considered by the knowledge knowledge base when generating answers. + /// Keeps track of any properties unknown to the library. + public static KnowledgeBase KnowledgeBase(string name = null, IEnumerable knowledgeSources = null, IEnumerable models = null, KnowledgeRetrievalReasoningEffort retrievalReasoningEffort = null, KnowledgeRetrievalOutputMode? outputMode = null, string eTag = null, SearchResourceEncryptionKey encryptionKey = null, string description = null, string retrievalInstructions = null, string answerInstructions = null, IDictionary serializedAdditionalRawData = null) + { + knowledgeSources ??= new List(); + models ??= new List(); + serializedAdditionalRawData ??= new Dictionary(); + + return new KnowledgeBase( + name, + knowledgeSources?.ToList(), + models?.ToList(), + retrievalReasoningEffort, + outputMode, + eTag, + encryptionKey, + description, + retrievalInstructions, + answerInstructions, + serializedAdditionalRawData); + } + + /// Initializes a new instance of DocumentDebugInfo. /// Contains debugging information specific to vector and hybrid search. - /// A new instance for mocking. [EditorBrowsable(EditorBrowsableState.Never)] - public static DocumentDebugInfo DocumentDebugInfo(VectorsDebugInfo vectors = null) + public static DocumentDebugInfo DocumentDebugInfo(VectorsDebugInfo vectors) { - return new DocumentDebugInfo(null, vectors, null, serializedAdditionalRawData: null); + return new DocumentDebugInfo(semantic: null, vectors, innerHits: null, serializedAdditionalRawData: null); } } } diff --git a/sdk/search/Azure.Search.Documents/src/Models/SearchResults.cs b/sdk/search/Azure.Search.Documents/src/Models/SearchResults.cs index 932017c7e11a..b99a5c4db55a 100644 --- a/sdk/search/Azure.Search.Documents/src/Models/SearchResults.cs +++ b/sdk/search/Azure.Search.Documents/src/Models/SearchResults.cs @@ -300,7 +300,7 @@ private static async Task DeserializeEnvelope(JsonDocument doc, bool async, Sear facetValues[facetProperty.Name] = value; } } - facets.Add(new FacetResult(facetCount, facetSum, searchFacets, facetValues)); + facets.Add(new FacetResult(facetCount, null, null, null, facetSum, null, searchFacets, facetValues)); } // Add the facet to the results results.Facets[facetObject.Name] = facets; diff --git a/sdk/search/Azure.Search.Documents/src/SearchClient.cs b/sdk/search/Azure.Search.Documents/src/SearchClient.cs index a557afd38dde..8b61d3602a90 100644 --- a/sdk/search/Azure.Search.Documents/src/SearchClient.cs +++ b/sdk/search/Azure.Search.Documents/src/SearchClient.cs @@ -19,7 +19,7 @@ namespace Azure.Search.Documents { /// - /// Azure Cognitive Search client that can be used to query an index and + /// Azure AI Search client that can be used to query an index and /// upload, merge, or delete documents. /// public class SearchClient @@ -99,8 +99,8 @@ protected SearchClient() { } /// Required. The API key credential used to authenticate requests /// against the search service. You need to use an admin key to /// modify the documents in a Search Index. See - /// Create and manage api-keys for an Azure Cognitive Search service - /// for more information about API keys in Azure Cognitive Search. + /// Create and manage api-keys for an Azure AI Search service + /// for more information about API keys in Azure AI Search. /// /// /// Thrown when the , @@ -133,8 +133,8 @@ public SearchClient( /// /// /// Required. The token credential used to authenticate requests against the Search service. - /// See Use role-based authorization in Azure Cognitive Search for - /// more information about role-based authorization in Azure Cognitive Search. + /// See Use role-based authorization in Azure AI Search for + /// more information about role-based authorization in Azure AI Search. /// /// /// Thrown when the , @@ -169,8 +169,8 @@ public SearchClient( /// Required. The API key credential used to authenticate requests /// against the search service. You need to use an admin key to /// modify the documents in a Search Index. See - /// Create and manage api-keys for an Azure Cognitive Search service - /// for more information about API keys in Azure Cognitive Search. + /// Create and manage api-keys for an Azure AI Search service + /// for more information about API keys in Azure AI Search. /// /// /// Client configuration options for connecting to Azure Cognitive @@ -227,8 +227,8 @@ public SearchClient( /// /// /// Required. The token credential used to authenticate requests against the Search service. - /// See Use role-based authorization in Azure Cognitive Search for - /// more information about role-based authorization in Azure Cognitive Search. + /// See Use role-based authorization in Azure AI Search for + /// more information about role-based authorization in Azure AI Search. /// /// /// Client configuration options for connecting to Azure Cognitive @@ -405,7 +405,7 @@ public virtual async Task> GetDocumentCountAsync( #region GetDocument /// - /// Retrieves a document from Azure Cognitive Search. This is useful + /// Retrieves a document from Azure AI Search. This is useful /// when a user clicks on a specific search result, and you want to /// look up specific details about that document. You can only get one /// document at a time. Use Search to get multiple documents in a @@ -452,14 +452,15 @@ public virtual Response GetDocument( CancellationToken cancellationToken = default) => GetDocumentInternal( key, - null, + querySourceAuthorization: null, + enabledElevatedRead: null, options, async: false, cancellationToken) .EnsureCompleted(); /// - /// Retrieves a document from Azure Cognitive Search. This is useful + /// Retrieves a document from Azure AI Search. This is useful /// when a user clicks on a specific search result, and you want to /// look up specific details about that document. You can only get one /// document at a time. Use Search to get multiple documents in a @@ -565,7 +566,7 @@ public virtual Response GetDocument( /// Any type that can be deserialized from the JSON objects in the /// complex field. This can be a value type or a reference type, but /// we recommend using a reference type since complex fields are - /// nullable in Azure Cognitive Search. + /// nullable in Azure AI Search. /// /// /// @@ -667,14 +668,15 @@ public virtual async Task> GetDocumentAsync( CancellationToken cancellationToken = default) => await GetDocumentInternal( key, - null, + querySourceAuthorization: null, + enabledElevatedRead: null, options, async: true, cancellationToken) .ConfigureAwait(false); /// - /// Retrieves a document from Azure Cognitive Search. This is useful + /// Retrieves a document from Azure AI Search. This is useful /// when a user clicks on a specific search result, and you want to /// look up specific details about that document. You can only get one /// document at a time. Use Search to get multiple documents in a @@ -695,6 +697,7 @@ await GetDocumentInternal( /// Token identifying the user for which the query is being executed. /// This token is used to enforce security restrictions on documents. /// + /// /// /// Options to customize the operation's behavior. /// @@ -709,30 +712,32 @@ await GetDocumentInternal( /// Thrown when a failure is returned by the Search Service. /// /// - /// The generic overloads of the and - /// methods support mapping of Azure + /// The generic overloads of the and + /// methods support mapping of Azure /// Search field types to .NET types via the type parameter /// . Note that all search field types except /// collections are nullable, so we recommend using nullable types for /// the properties of . See - /// + /// /// for more information. /// public virtual Response GetDocument( string key, string querySourceAuthorization, + bool? enabledElevatedRead = null, GetDocumentOptions options = null, CancellationToken cancellationToken = default) => GetDocumentInternal( key, querySourceAuthorization, + enabledElevatedRead, options, async: false, cancellationToken) .EnsureCompleted(); /// - /// Retrieves a document from Azure Cognitive Search. This is useful + /// Retrieves a document from Azure AI Search. This is useful /// when a user clicks on a specific search result, and you want to /// look up specific details about that document. You can only get one /// document at a time. Use Search to get multiple documents in a @@ -753,6 +758,7 @@ public virtual Response GetDocument( /// Token identifying the user for which the query is being executed. /// This token is used to enforce security restrictions on documents. /// + /// /// /// Options to customize the operation's behavior. /// @@ -767,7 +773,7 @@ public virtual Response GetDocument( /// Thrown when a failure is returned by the Search Service. /// /// - /// The and + /// The and /// methods support mapping of Azure Search field types to .NET types /// via the type parameter . Note that all /// search field types except collections are nullable, so we recommend @@ -841,7 +847,7 @@ public virtual Response GetDocument( /// Any type that can be deserialized from the JSON objects in the /// complex field. This can be a value type or a reference type, but /// we recommend using a reference type since complex fields are - /// nullable in Azure Cognitive Search. + /// nullable in Azure AI Search. /// /// /// @@ -940,11 +946,13 @@ public virtual Response GetDocument( public virtual async Task> GetDocumentAsync( string key, string querySourceAuthorization, + bool? enabledElevatedRead = null, GetDocumentOptions options = null, CancellationToken cancellationToken = default) => await GetDocumentInternal( key, querySourceAuthorization, + enabledElevatedRead, options, async: true, cancellationToken) @@ -953,6 +961,7 @@ await GetDocumentInternal( private async Task> GetDocumentInternal( string key, string querySourceAuthorization, + bool? enabledElevatedRead, GetDocumentOptions options, bool async, CancellationToken cancellationToken) @@ -963,7 +972,7 @@ private async Task> GetDocumentInternal( scope.Start(); try { - using HttpMessage message = Protocol.CreateGetRequest(key, options?.SelectedFieldsOrNull, querySourceAuthorization); + using HttpMessage message = Protocol.CreateGetRequest(key, options?.SelectedFieldsOrNull, querySourceAuthorization, enabledElevatedRead); if (async) { await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); @@ -1007,7 +1016,7 @@ private async Task> GetDocumentInternal( /// /// A full-text search query expression; Use "*" or omit this /// parameter to match all documents. See - /// Simple query syntax in Azure Cognitive Search + /// Simple query syntax in Azure AI Search /// for more information about search query syntax. /// /// @@ -1034,7 +1043,7 @@ private async Task> GetDocumentInternal( /// for more details on the type mapping. /// /// - /// Azure Cognitive Search might not be able to include all results in + /// Azure AI Search might not be able to include all results in /// a single response in which case /// will automatically continue making additional requests as you /// enumerate through the results. You can also process the results a @@ -1049,7 +1058,8 @@ public virtual Response> Search( CancellationToken cancellationToken = default) => SearchInternal( searchText, - null, + querySourceAuthorization: null, + enableElevatedRead: null, options, async: false, cancellationToken) @@ -1066,7 +1076,7 @@ public virtual Response> Search( /// /// A full-text search query expression; Use "*" or omit this /// parameter to match all documents. See - /// Simple query syntax in Azure Cognitive Search + /// Simple query syntax in Azure AI Search /// for more information about search query syntax. /// /// Metadata about the type to deserialize. @@ -1094,7 +1104,7 @@ public virtual Response> Search( /// for more details on the type mapping. /// /// - /// Azure Cognitive Search might not be able to include all results in + /// Azure AI Search might not be able to include all results in /// a single response in which case /// will automatically continue making additional requests as you /// enumerate through the results. You can also process the results a @@ -1112,7 +1122,8 @@ public virtual Response> Search( SearchInternal( searchText, typeInfo, - null, + querySourceAuthorization: null, + enableElevatedRead: null, options, async: false, cancellationToken) @@ -1129,7 +1140,7 @@ public virtual Response> Search( /// /// A full-text search query expression; Use "*" or omit this /// parameter to match all documents. See - /// Simple query syntax in Azure Cognitive Search + /// Simple query syntax in Azure AI Search /// for more information about search query syntax. /// /// @@ -1156,7 +1167,7 @@ public virtual Response> Search( /// for more details on the type mapping. /// /// - /// Azure Cognitive Search might not be able to include all results in + /// Azure AI Search might not be able to include all results in /// a single response in which case /// will automatically /// continue making additional requests as you enumerate through the @@ -1171,7 +1182,8 @@ public async virtual Task>> SearchAsync( CancellationToken cancellationToken = default) => await SearchInternal( searchText, - null, + querySourceAuthorization: null, + enableElevatedRead: null, options, async: true, cancellationToken) @@ -1188,7 +1200,7 @@ await SearchInternal( /// /// A full-text search query expression; Use "*" or omit this /// parameter to match all documents. See - /// Simple query syntax in Azure Cognitive Search + /// Simple query syntax in Azure AI Search /// for more information about search query syntax. /// /// Metadata about the type to deserialize. @@ -1216,7 +1228,7 @@ await SearchInternal( /// for more details on the type mapping. /// /// - /// Azure Cognitive Search might not be able to include all results in + /// Azure AI Search might not be able to include all results in /// a single response in which case /// will automatically /// continue making additional requests as you enumerate through the @@ -1234,7 +1246,8 @@ public async virtual Task>> SearchAsync( await SearchInternal( searchText, typeInfo, - null, + querySourceAuthorization: null, + enableElevatedRead: null, options, async: true, cancellationToken) @@ -1251,7 +1264,7 @@ await SearchInternal( /// /// A full-text search query expression; Use "*" or omit this /// parameter to match all documents. See - /// Simple query syntax in Azure Cognitive Search + /// Simple query syntax in Azure AI Search /// for more information about search query syntax. /// /// @@ -1282,7 +1295,7 @@ await SearchInternal( /// for more details on the type mapping. /// /// - /// Azure Cognitive Search might not be able to include all results in + /// Azure AI Search might not be able to include all results in /// a single response in which case /// will automatically continue making additional requests as you /// enumerate through the results. You can also process the results a @@ -1298,6 +1311,7 @@ public virtual Response> Search( SearchInternal( searchText, querySourceAuthorization, + enableElevatedRead: null, options, async: false, cancellationToken) @@ -1314,7 +1328,7 @@ public virtual Response> Search( /// /// A full-text search query expression; Use "*" or omit this /// parameter to match all documents. See - /// Simple query syntax in Azure Cognitive Search + /// Simple query syntax in Azure AI Search /// for more information about search query syntax. /// /// @@ -1345,7 +1359,7 @@ public virtual Response> Search( /// for more details on the type mapping. /// /// - /// Azure Cognitive Search might not be able to include all results in + /// Azure AI Search might not be able to include all results in /// a single response in which case /// will automatically /// continue making additional requests as you enumerate through the @@ -1361,6 +1375,7 @@ public async virtual Task>> SearchAsync( await SearchInternal( searchText, querySourceAuthorization, + enableElevatedRead: null, options, async: true, cancellationToken) @@ -1398,7 +1413,7 @@ await SearchInternal( /// for more details on the type mapping. /// /// - /// Azure Cognitive Search might not be able to include all results in + /// Azure AI Search might not be able to include all results in /// a single response in which case /// will automatically continue making additional requests as you /// enumerate through the results. You can also process the results a @@ -1413,8 +1428,9 @@ public virtual Response> Search( Argument.AssertNotNull(options, nameof(options)); return SearchInternal( - null, - null, + searchText: null, + querySourceAuthorization: null, + enableElevatedRead: null, options, async: false, cancellationToken) @@ -1453,7 +1469,7 @@ public virtual Response> Search( /// for more details on the type mapping. /// /// - /// Azure Cognitive Search might not be able to include all results in + /// Azure AI Search might not be able to include all results in /// a single response in which case /// will automatically /// continue making additional requests as you enumerate through the @@ -1468,8 +1484,9 @@ public async virtual Task>> SearchAsync( Argument.AssertNotNull(options, nameof(options)); return await SearchInternal( - null, - null, + searchText: null, + querySourceAuthorization: null, + enableElevatedRead: null, options, async: true, cancellationToken) @@ -1480,6 +1497,7 @@ public async virtual Task>> SearchAsync( private async Task>> SearchInternal( string searchText, string querySourceAuthorization, + bool? enableElevatedRead, SearchOptions options, bool async, CancellationToken cancellationToken = default) @@ -1495,6 +1513,7 @@ private async Task>> SearchInternal( } return await SearchInternal( querySourceAuthorization, + enableElevatedRead, options, $"{nameof(SearchClient)}.{nameof(Search)}", async, @@ -1506,6 +1525,7 @@ private async Task>> SearchInternal( string searchText, JsonTypeInfo typeInfo, string querySourceAuthorization, + bool? enableElevatedRead, SearchOptions options, bool async, CancellationToken cancellationToken = default) @@ -1522,6 +1542,7 @@ private async Task>> SearchInternal( return await SearchInternal( typeInfo, querySourceAuthorization, + enableElevatedRead, options, $"{nameof(SearchClient)}.{nameof(Search)}", async, @@ -1532,6 +1553,7 @@ private async Task>> SearchInternal( [RequiresUnreferencedCode(JsonSerialization.TrimWarning)] private async Task>> SearchInternal( string querySourceAuthorization, + bool? enableElevatedRead, SearchOptions options, string operationName, bool async, @@ -1539,6 +1561,7 @@ private async Task>> SearchInternal( { return await SearchInternal( querySourceAuthorization, + enableElevatedRead, options, operationName, async, @@ -1557,6 +1580,7 @@ private async Task>> SearchInternal( private async Task>> SearchInternal( JsonTypeInfo typeInfo, string querySourceAuthorization, + bool? enableElevatedRead, SearchOptions options, string operationName, bool async, @@ -1564,6 +1588,7 @@ private async Task>> SearchInternal( { return await SearchInternal( querySourceAuthorization, + enableElevatedRead, options, operationName, async, @@ -1582,6 +1607,7 @@ private async Task>> SearchInternal( private async Task>> SearchInternal( string querySourceAuthorization, + bool? enableElevatedRead, SearchOptions options, string operationName, bool async, @@ -1593,7 +1619,7 @@ private async Task>> SearchInternal( scope.Start(); try { - using HttpMessage message = Protocol.CreateSearchPostRequest(options, querySourceAuthorization); + using HttpMessage message = Protocol.CreateSearchPostRequest(options, querySourceAuthorization, enableElevatedRead); if (async) { await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); @@ -1637,7 +1663,7 @@ private async Task>> SearchInternal( /// /// Executes a "search-as-you-type" query consisting of a partial text /// input (three character minimum). It returns matching text found in - /// suggester-aware fields. Azure Cognitive Search looks for matching + /// suggester-aware fields. Azure AI Search looks for matching /// values in fields that are predefined in a Suggester. For example, /// if you enable suggestions on a city field, typing "sea" produces /// documents containing "Seattle", "Sea Tac", and "Seaside" (all @@ -1694,7 +1720,7 @@ public virtual Response> Suggest( /// /// Executes a "search-as-you-type" query consisting of a partial text /// input (three character minimum). It returns matching text found in - /// suggester-aware fields. Azure Cognitive Search looks for matching + /// suggester-aware fields. Azure AI Search looks for matching /// values in fields that are predefined in a Suggester. For example, /// if you enable suggestions on a city field, typing "sea" produces /// documents containing "Seattle", "Sea Tac", and "Seaside" (all diff --git a/sdk/search/Azure.Search.Documents/src/SearchClientOptions.cs b/sdk/search/Azure.Search.Documents/src/SearchClientOptions.cs index e1adce6132f0..828ca5657ad4 100644 --- a/sdk/search/Azure.Search.Documents/src/SearchClientOptions.cs +++ b/sdk/search/Azure.Search.Documents/src/SearchClientOptions.cs @@ -47,16 +47,16 @@ public enum ServiceVersion V2025_09_01 = 4, /// - /// The 2025-08-01-preview version of the Azure Cognitive Search service. + /// The 2025-11-01-preview version of the Azure Cognitive Search service. /// - V2025_08_01_Preview = 5, + V2025_11_01_Preview = 5, #pragma warning restore CA1707 } /// /// The Latest service version supported by this client library. /// - internal const ServiceVersion LatestVersion = ServiceVersion.V2025_08_01_Preview; + internal const ServiceVersion LatestVersion = ServiceVersion.V2025_11_01_Preview; /// /// The service version to use when creating continuation tokens that @@ -212,7 +212,7 @@ public static SearchClientOptions.ServiceVersion Validate(this SearchClientOptio SearchClientOptions.ServiceVersion.V2023_11_01 => version, SearchClientOptions.ServiceVersion.V2024_07_01 => version, SearchClientOptions.ServiceVersion.V2025_09_01 => version, - SearchClientOptions.ServiceVersion.V2025_08_01_Preview => version, + SearchClientOptions.ServiceVersion.V2025_11_01_Preview => version, _ => throw CreateInvalidVersionException(version) }; @@ -238,7 +238,7 @@ public static string ToVersionString(this SearchClientOptions.ServiceVersion ver SearchClientOptions.ServiceVersion.V2023_11_01 => "2023-11-01", SearchClientOptions.ServiceVersion.V2024_07_01 => "2024-07-01", SearchClientOptions.ServiceVersion.V2025_09_01 => "2025-09-01", - SearchClientOptions.ServiceVersion.V2025_08_01_Preview => "2025-08-01-preview", + SearchClientOptions.ServiceVersion.V2025_11_01_Preview => "2025-11-01-preview", _ => throw CreateInvalidVersionException(version) }; diff --git a/sdk/search/Azure.Search.Documents/src/autorest.md b/sdk/search/Azure.Search.Documents/src/autorest.md index 5ca2f0ca33fc..5636301b2763 100644 --- a/sdk/search/Azure.Search.Documents/src/autorest.md +++ b/sdk/search/Azure.Search.Documents/src/autorest.md @@ -15,9 +15,9 @@ use-model-reader-writer: true ```yaml title: SearchServiceClient input-file: - - https://github.com/Azure/azure-rest-api-specs/blob/429fd8c039c5b08541df2389f8c58d1090e01127/specification/search/data-plane/Azure.Search/preview/2025-08-01-preview/searchindex.json - - https://github.com/Azure/azure-rest-api-specs/blob/429fd8c039c5b08541df2389f8c58d1090e01127/specification/search/data-plane/Azure.Search/preview/2025-08-01-preview/searchservice.json - - https://github.com/Azure/azure-rest-api-specs/blob/429fd8c039c5b08541df2389f8c58d1090e01127/specification/search/data-plane/Azure.Search/preview/2025-08-01-preview/knowledgeagent.json + - https://github.com/Azure/azure-rest-api-specs/blob/d1da9e72acfda60af3d5ca9aa5498a9af8d061d3/specification/search/data-plane/Azure.Search/preview/2025-11-01-preview/searchindex.json + - https://github.com/Azure/azure-rest-api-specs/blob/d1da9e72acfda60af3d5ca9aa5498a9af8d061d3/specification/search/data-plane/Azure.Search/preview/2025-11-01-preview/searchservice.json + - https://github.com/Azure/azure-rest-api-specs/blob/d1da9e72acfda60af3d5ca9aa5498a9af8d061d3/specification/search/data-plane/Azure.Search/preview/2025-11-01-preview/knowledgebase.json generation1-convenience-client: true deserialize-null-collection-as-null-value: true ``` @@ -82,16 +82,16 @@ directive: transform: $["x-accessibility"] = "internal" ``` -### Move KnowledgeAgent models to Azure.Search.Documents.Agents.Models +### Move KnowledgeBase models to Azure.Search.Documents.KnowledgeBases.Models -Models in knowledgeagent.json should be moved to Azure.Search.Documents.Agents.Models. +Models in knowledgebase.json should be moved to Azure.Search.Documents.KnowledgeBases.Models. ```yaml directive: - from: knowledgeagent.json + from: knowledgebase.json where: $.definitions.* transform: > - $["x-namespace"] = "Azure.Search.Documents.Agents.Models" + $["x-namespace"] = "Azure.Search.Documents.KnowledgeBases.Models" ``` ### Remove models that have newer versions diff --git a/sdk/search/Azure.Search.Documents/tests/DocumentOperations/SearchTests.cs b/sdk/search/Azure.Search.Documents/tests/DocumentOperations/SearchTests.cs index 2947012643b4..1b4fc9916330 100644 --- a/sdk/search/Azure.Search.Documents/tests/DocumentOperations/SearchTests.cs +++ b/sdk/search/Azure.Search.Documents/tests/DocumentOperations/SearchTests.cs @@ -3,6 +3,7 @@ using System; using System.Collections.Generic; +using System.Collections.ObjectModel; using System.Globalization; using System.Linq; using System.Text.Json; @@ -53,14 +54,14 @@ private ICollection GetFacetsForField( } public FacetResult MakeRangeFacet(int count, object from, object to) => - new FacetResult(count, null, null, new Dictionary() + new FacetResult(count, null, null, null, null, null, new Dictionary>(), new Dictionary() { ["from"] = from, ["to"] = to }); public FacetResult MakeValueFacet(int count, object value) => - new FacetResult(count, null, null, new Dictionary() + new FacetResult(count, avg: null, min: null, max: null, sum: null, cardinality: null, facets: new Dictionary>(), new Dictionary() { ["value"] = value }); diff --git a/sdk/search/Azure.Search.Documents/tests/DocumentOperations/VectorSearchTests.cs b/sdk/search/Azure.Search.Documents/tests/DocumentOperations/VectorSearchTests.cs index 7922e875883e..dd874ca925df 100644 --- a/sdk/search/Azure.Search.Documents/tests/DocumentOperations/VectorSearchTests.cs +++ b/sdk/search/Azure.Search.Documents/tests/DocumentOperations/VectorSearchTests.cs @@ -13,7 +13,7 @@ namespace Azure.Search.Documents.Tests { - [ClientTestFixture(SearchClientOptions.ServiceVersion.V2024_07_01, SearchClientOptions.ServiceVersion.V2025_08_01_Preview)] + [ClientTestFixture(SearchClientOptions.ServiceVersion.V2024_07_01, SearchClientOptions.ServiceVersion.V2025_11_01_Preview)] public partial class VectorSearchTests : SearchTestBase { public VectorSearchTests(bool async, SearchClientOptions.ServiceVersion serviceVersion) diff --git a/sdk/search/Azure.Search.Documents/tests/Models/SearchIndexTests.cs b/sdk/search/Azure.Search.Documents/tests/Models/SearchIndexTests.cs index 05bb064ca44f..3ce47c6bf65f 100644 --- a/sdk/search/Azure.Search.Documents/tests/Models/SearchIndexTests.cs +++ b/sdk/search/Azure.Search.Documents/tests/Models/SearchIndexTests.cs @@ -14,7 +14,27 @@ public class SearchIndexTests [TestCase("\"0123abcd\"", "\"0123abcd\"")] public void ParsesETag(string value, string expected) { - SearchIndex sut = new SearchIndex(null, null, new SearchField[0], null, null, null, null, null, null, null, null, null, null, null, null, null, null, value, serializedAdditionalRawData: null); + SearchIndex sut = new SearchIndex( + name: null, + description: null, + new SearchField[0], + scoringProfiles: null, + defaultScoringProfile: null, + corsOptions: null, + suggesters: null, + analyzers: null, + tokenizers: null, + tokenFilters: null, + charFilters: null, + normalizers: null, + encryptionKey: null, + similarity: null, + semanticSearch: null, + vectorSearch: null, + permissionFilterOption: null, + purviewEnabled: null, + etag: value, + serializedAdditionalRawData: null); Assert.AreEqual(expected, sut.ETag?.ToString()); } diff --git a/sdk/search/Azure.Search.Documents/tests/Samples/Sample01_HelloWorld.cs b/sdk/search/Azure.Search.Documents/tests/Samples/Sample01_HelloWorld.cs index 3258df454ffd..ed89f8c4cad6 100644 --- a/sdk/search/Azure.Search.Documents/tests/Samples/Sample01_HelloWorld.cs +++ b/sdk/search/Azure.Search.Documents/tests/Samples/Sample01_HelloWorld.cs @@ -18,7 +18,7 @@ namespace Azure.Search.Documents.Tests.Samples { - [ClientTestFixture(SearchClientOptions.ServiceVersion.V2025_08_01_Preview), ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_08_01_Preview)] + [ClientTestFixture(SearchClientOptions.ServiceVersion.V2025_11_01_Preview), ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_11_01_Preview)] public partial class HelloWorld : SearchTestBase { public HelloWorld(bool async, SearchClientOptions.ServiceVersion serviceVersion) diff --git a/sdk/search/Azure.Search.Documents/tests/Samples/Sample07_VectorSearch_SemanticHybridSearch.cs b/sdk/search/Azure.Search.Documents/tests/Samples/Sample07_VectorSearch_SemanticHybridSearch.cs index 8a6df49f3412..546bb452d750 100644 --- a/sdk/search/Azure.Search.Documents/tests/Samples/Sample07_VectorSearch_SemanticHybridSearch.cs +++ b/sdk/search/Azure.Search.Documents/tests/Samples/Sample07_VectorSearch_SemanticHybridSearch.cs @@ -13,7 +13,7 @@ namespace Azure.Search.Documents.Tests.Samples.VectorSearch { - [ClientTestFixture(SearchClientOptions.ServiceVersion.V2025_08_01_Preview), ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_08_01_Preview)] + [ClientTestFixture(SearchClientOptions.ServiceVersion.V2025_11_01_Preview), ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_11_01_Preview)] public partial class VectorSemanticHybridSearch : SearchTestBase { public VectorSemanticHybridSearch(bool async, SearchClientOptions.ServiceVersion serviceVersion) diff --git a/sdk/search/Azure.Search.Documents/tests/Samples/Sample08_SemanticSearch.cs b/sdk/search/Azure.Search.Documents/tests/Samples/Sample08_SemanticSearch.cs index e856110df005..21178e84a70b 100644 --- a/sdk/search/Azure.Search.Documents/tests/Samples/Sample08_SemanticSearch.cs +++ b/sdk/search/Azure.Search.Documents/tests/Samples/Sample08_SemanticSearch.cs @@ -12,7 +12,7 @@ namespace Azure.Search.Documents.Tests.Samples { - [ClientTestFixture(SearchClientOptions.ServiceVersion.V2025_08_01_Preview), ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_08_01_Preview)] + [ClientTestFixture(SearchClientOptions.ServiceVersion.V2025_11_01_Preview), ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_11_01_Preview)] public partial class SemanticSearch : SearchTestBase { public SemanticSearch(bool async, SearchClientOptions.ServiceVersion serviceVersion) diff --git a/sdk/search/Azure.Search.Documents/tests/SearchIndexClientTests.cs b/sdk/search/Azure.Search.Documents/tests/SearchIndexClientTests.cs index 1db2d7b10138..613ad8fb5be5 100644 --- a/sdk/search/Azure.Search.Documents/tests/SearchIndexClientTests.cs +++ b/sdk/search/Azure.Search.Documents/tests/SearchIndexClientTests.cs @@ -11,11 +11,13 @@ using Azure.Core.TestFramework; using Azure.Search.Documents.Indexes; using Azure.Search.Documents.Indexes.Models; +using Azure.Search.Documents.KnowledgeBases; +using Azure.Search.Documents.KnowledgeBases.Models; using NUnit.Framework; namespace Azure.Search.Documents.Tests { - [ClientTestFixture(SearchClientOptions.ServiceVersion.V2024_07_01, SearchClientOptions.ServiceVersion.V2025_08_01_Preview)] + [ClientTestFixture(SearchClientOptions.ServiceVersion.V2024_07_01, SearchClientOptions.ServiceVersion.V2025_11_01_Preview)] public class SearchIndexClientTests : SearchTestBase { public SearchIndexClientTests(bool async, SearchClientOptions.ServiceVersion serviceVersion) @@ -109,7 +111,7 @@ static string GetDuplicates(IEnumerable values) } [Test] - [ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_08_01_Preview)] + [ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_11_01_Preview)] public async Task GetServiceStatistics() { await using SearchResources resources = await SearchResources.GetSharedHotelsIndexAsync(this); @@ -132,7 +134,7 @@ public async Task GetServiceStatistics() } [Test] - [ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_08_01_Preview)] + [ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_11_01_Preview)] public async Task GetIndexStatsSummary() { await using SearchResources resources = await SearchResources.GetSharedHotelsIndexAsync(this); @@ -161,7 +163,7 @@ public void CreateIndexParameterValidation() } [Test] - [ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_08_01_Preview)] + [ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_11_01_Preview)] public async Task CreateIndex() { await using SearchResources resources = SearchResources.CreateWithNoIndexes(this); @@ -196,7 +198,7 @@ public void UpdateIndexParameterValidation() } [Test] - [ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_08_01_Preview)] + [ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_11_01_Preview)] public async Task UpdateIndex() { await using SearchResources resources = SearchResources.CreateWithNoIndexes(this); @@ -468,7 +470,7 @@ public async Task AnalyzeText() } [Test] - [ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_08_01_Preview)] + [ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_11_01_Preview)] public async Task AnalyzeTextWithNormalizer() { await using SearchResources resources = await SearchResources.GetSharedHotelsIndexAsync(this); @@ -539,24 +541,29 @@ public async Task SetScoringProfile() } [Test] - [ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_08_01_Preview)] + [ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_11_01_Preview)] [PlaybackOnly("Running it in the playback mode, eliminating the need for pipelines to create OpenAI resources.")] - public async Task CreateKnowledgeAgent() + public async Task CreateKnowledgeBase() { await using SearchResources resources = await SearchResources.CreateWithHotelsIndexAsync(this); string deploymentName = "gpt-4.1"; SearchIndexClient client = resources.GetIndexClient(); - var knowledgeAgentName = Recording.Random.GetName(8); + var knowledgeBaseName = Recording.Random.GetName(8); var knowledgeSourceName = Recording.Random.GetName(8); SearchIndexKnowledgeSource indexKnowledgeSource = new(knowledgeSourceName, new(resources.IndexName)); KnowledgeSource knowledgeSource = await client.CreateKnowledgeSourceAsync(indexKnowledgeSource); + var knowledgeSources = new List + { + new KnowledgeSourceReference(knowledgeSource.Name), + }; - var knowledgeAgent = new KnowledgeAgent( - knowledgeAgentName, - new List{ - new KnowledgeAgentAzureOpenAIModel( + var knowledgeBase = new KnowledgeBase( + knowledgeBaseName, + knowledgeSources, + new List{ + new KnowledgeBaseAzureOpenAIModel( new AzureOpenAIVectorizerParameters { ResourceUri = new Uri(Environment.GetEnvironmentVariable("OPENAI_ENDPOINT")), @@ -565,59 +572,67 @@ public async Task CreateKnowledgeAgent() ModelName = AzureOpenAIModelName.Gpt41 }) }, - new List - { - new KnowledgeSourceReference(knowledgeSource.Name), - }); - - KnowledgeAgent actualAgent = await client.CreateKnowledgeAgentAsync(knowledgeAgent); - KnowledgeAgent expectedAgent = knowledgeAgent; + new KnowledgeRetrievalLowReasoningEffort(), + KnowledgeRetrievalOutputMode.AnswerSynthesis, + null, + null, + "Description of the Knowledge Base", + null, + "Summarize the answer into three sentences.", + null); + + KnowledgeBase actualAgent = await client.CreateKnowledgeBaseAsync(knowledgeBase); + KnowledgeBase expectedAgent = knowledgeBase; Assert.AreEqual(expectedAgent.Name, actualAgent.Name); - Assert.That(actualAgent.Models, Is.EqualTo(expectedAgent.Models).Using(KnowledgeAgentModelComparer.Instance)); + Assert.That(actualAgent.Models, Is.EqualTo(expectedAgent.Models).Using(KnowledgeBaseModelComparer.Instance)); Assert.That(actualAgent.KnowledgeSources, Is.EqualTo(expectedAgent.KnowledgeSources).Using(KnowledgeSourceReferenceComparer.Instance)); - await client.DeleteKnowledgeAgentAsync(knowledgeAgentName); + await client.DeleteKnowledgeBaseAsync(knowledgeBaseName); await client.DeleteKnowledgeSourceAsync(knowledgeSource.Name); } [Test] - [ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_08_01_Preview)] + [ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_11_01_Preview)] [PlaybackOnly("Running it in the playback mode, eliminating the need for pipelines to create OpenAI resources.")] - public async Task DeleteKnowledgeAgent() + public async Task DeleteKnowledgeBase() { - await using SearchResources resources = await SearchResources.CreateWithknowledgeAgentAsync(this); + await using SearchResources resources = await SearchResources.CreateWithKnowledgeBaseAsync(this); SearchIndexClient client = resources.GetIndexClient(); - await client.DeleteKnowledgeAgentAsync(resources.KnowledgeAgentName); + await client.DeleteKnowledgeBaseAsync(resources.KnowledgeBaseName); var ex = Assert.ThrowsAsync(async () => { - await client.GetKnowledgeAgentAsync(resources.KnowledgeAgentName); + await client.GetKnowledgeBaseAsync(resources.KnowledgeBaseName); }); Assert.AreEqual(404, ex.Status); } [Test] - [ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_08_01_Preview)] + [ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_11_01_Preview)] [PlaybackOnly("Running it in the playback mode, eliminating the need for pipelines to create OpenAI resources.")] - public async Task UpdateKnowledgeAgent() + public async Task UpdateKnowledgeBase() { await using SearchResources resources = await SearchResources.CreateWithHotelsIndexAsync(this); string deploymentName = "gpt-4.1"; SearchIndexClient client = resources.GetIndexClient(); - var knowledgeAgentName = Recording.Random.GetName(8); + var knowledgeBaseName = Recording.Random.GetName(8); var knowledgeSourceName = Recording.Random.GetName(8); SearchIndexKnowledgeSource indexKnowledgeSource = new(knowledgeSourceName, new(resources.IndexName)); KnowledgeSource knowledgeSource = await client.CreateKnowledgeSourceAsync(indexKnowledgeSource); - var knowledgeAgent = new KnowledgeAgent( - knowledgeAgentName, - new List{ - new KnowledgeAgentAzureOpenAIModel( + var knowledgeBase = new KnowledgeBase( + knowledgeBaseName, + knowledgeSources: new List + { + new KnowledgeSourceReference(knowledgeSource.Name), + }, + models: new List{ + new KnowledgeBaseAzureOpenAIModel( new AzureOpenAIVectorizerParameters { ResourceUri = new Uri(Environment.GetEnvironmentVariable("OPENAI_ENDPOINT")), @@ -626,51 +641,55 @@ public async Task UpdateKnowledgeAgent() ModelName = AzureOpenAIModelName.Gpt41 }) }, - new List - { - new KnowledgeSourceReference(knowledgeSource.Name), - } + retrievalReasoningEffort: new KnowledgeRetrievalLowReasoningEffort(), + KnowledgeRetrievalOutputMode.AnswerSynthesis, + eTag: null, + encryptionKey: null, + description: "Description of the Knowledge Base", + retrievalInstructions: "Retrieval Instructions", + answerInstructions: "Summarize the answer into three sentences.", + serializedAdditionalRawData: null ); - KnowledgeAgent createdAgent = await client.CreateKnowledgeAgentAsync(knowledgeAgent); + KnowledgeBase createdAgent = await client.CreateKnowledgeBaseAsync(knowledgeBase); createdAgent.Description = "Updated description"; - KnowledgeAgent updatedAgent = await client.CreateOrUpdateKnowledgeAgentAsync(createdAgent); + KnowledgeBase updatedAgent = await client.CreateOrUpdateKnowledgeBaseAsync(createdAgent); Assert.AreEqual(createdAgent.Name, updatedAgent.Name); Assert.AreEqual(createdAgent.Description, updatedAgent.Description); - Assert.That(createdAgent.Models, Is.EqualTo(updatedAgent.Models).Using(KnowledgeAgentModelComparer.Instance)); + Assert.That(createdAgent.Models, Is.EqualTo(updatedAgent.Models).Using(KnowledgeBaseModelComparer.Instance)); Assert.That(createdAgent.KnowledgeSources, Is.EqualTo(updatedAgent.KnowledgeSources).Using(KnowledgeSourceReferenceComparer.Instance)); - await client.DeleteKnowledgeAgentAsync(knowledgeAgentName); + await client.DeleteKnowledgeBaseAsync(knowledgeBaseName); await client.DeleteKnowledgeSourceAsync(knowledgeSource.Name); } [Test] - [ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_08_01_Preview)] + [ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_11_01_Preview)] [PlaybackOnly("Running it in the playback mode, eliminating the need for pipelines to create OpenAI resources.")] - public async Task GetKnowledgeAgent() + public async Task GetKnowledgeBase() { - await using SearchResources resources = await SearchResources.CreateWithknowledgeAgentAsync(this); + await using SearchResources resources = await SearchResources.CreateWithKnowledgeBaseAsync(this); SearchIndexClient client = resources.GetIndexClient(); - KnowledgeAgent agent = await client.GetKnowledgeAgentAsync(resources.KnowledgeAgentName); + KnowledgeBase agent = await client.GetKnowledgeBaseAsync(resources.KnowledgeBaseName); - Assert.AreEqual(resources.KnowledgeAgentName, agent.Name); + Assert.AreEqual(resources.KnowledgeBaseName, agent.Name); } [Test] - [ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_08_01_Preview)] + [ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_11_01_Preview)] [PlaybackOnly("Running it in the playback mode, eliminating the need for pipelines to create OpenAI resources.")] - public async Task GetKnowledgeAgents() + public async Task GetKnowledgeBases() { - await using SearchResources resources = await SearchResources.CreateWithknowledgeAgentAsync(this); + await using SearchResources resources = await SearchResources.CreateWithKnowledgeBaseAsync(this); SearchIndexClient client = resources.GetIndexClient(); bool found = false; - await foreach (KnowledgeAgent agent in client.GetKnowledgeAgentsAsync()) + await foreach (KnowledgeBase agent in client.GetKnowledgeBasesAsync()) { - found |= string.Equals(resources.KnowledgeAgentName, agent.Name, StringComparison.InvariantCultureIgnoreCase); + found |= string.Equals(resources.KnowledgeBaseName, agent.Name, StringComparison.InvariantCultureIgnoreCase); } Assert.IsTrue(found, "Knowledge agent not found"); diff --git a/sdk/search/Azure.Search.Documents/tests/SearchIndexerClientTests.cs b/sdk/search/Azure.Search.Documents/tests/SearchIndexerClientTests.cs index 231b01961a8c..6669f6a8f236 100644 --- a/sdk/search/Azure.Search.Documents/tests/SearchIndexerClientTests.cs +++ b/sdk/search/Azure.Search.Documents/tests/SearchIndexerClientTests.cs @@ -13,7 +13,7 @@ namespace Azure.Search.Documents.Tests { - [ClientTestFixture(SearchClientOptions.ServiceVersion.V2024_07_01, SearchClientOptions.ServiceVersion.V2025_08_01_Preview)] + [ClientTestFixture(SearchClientOptions.ServiceVersion.V2024_07_01, SearchClientOptions.ServiceVersion.V2025_11_01_Preview)] public class SearchIndexerClientTests : SearchTestBase { public SearchIndexerClientTests(bool async, SearchClientOptions.ServiceVersion serviceVersion) @@ -629,7 +629,7 @@ private async Task TestSkillsetAsync(SearchIndexerClient client, SearchIndexerSk } [Test] - [ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_08_01_Preview)] + [ServiceVersion(Min = SearchClientOptions.ServiceVersion.V2025_11_01_Preview)] public async Task RoundtripAllSkills() { await using SearchResources resources = SearchResources.CreateWithNoIndexes(this); diff --git a/sdk/search/Azure.Search.Documents/tests/Utilities/KnowledgeAgentModelComparer.cs b/sdk/search/Azure.Search.Documents/tests/Utilities/KnowledgeBaseModelComparer.cs similarity index 69% rename from sdk/search/Azure.Search.Documents/tests/Utilities/KnowledgeAgentModelComparer.cs rename to sdk/search/Azure.Search.Documents/tests/Utilities/KnowledgeBaseModelComparer.cs index f8a7f3db1761..d7d4364a1044 100644 --- a/sdk/search/Azure.Search.Documents/tests/Utilities/KnowledgeAgentModelComparer.cs +++ b/sdk/search/Azure.Search.Documents/tests/Utilities/KnowledgeBaseModelComparer.cs @@ -7,15 +7,15 @@ namespace Azure.Search.Documents.Tests { - public class KnowledgeAgentModelComparer : IEqualityComparer + public class KnowledgeBaseModelComparer : IEqualityComparer { - public static KnowledgeAgentModelComparer Instance { get; } = new KnowledgeAgentModelComparer(); + public static KnowledgeBaseModelComparer Instance { get; } = new KnowledgeBaseModelComparer(); - private KnowledgeAgentModelComparer() + private KnowledgeBaseModelComparer() { } - public bool Equals(KnowledgeAgentModel x, KnowledgeAgentModel y) + public bool Equals(KnowledgeBaseModel x, KnowledgeBaseModel y) { if (ReferenceEquals(x, y)) { @@ -26,8 +26,8 @@ public bool Equals(KnowledgeAgentModel x, KnowledgeAgentModel y) return false; } - if (x is KnowledgeAgentAzureOpenAIModel xModel && - y is KnowledgeAgentAzureOpenAIModel yModel) + if (x is KnowledgeBaseAzureOpenAIModel xModel && + y is KnowledgeBaseAzureOpenAIModel yModel) { var xParams = xModel.AzureOpenAIParameters; var yParams = yModel.AzureOpenAIParameters; @@ -39,14 +39,14 @@ public bool Equals(KnowledgeAgentModel x, KnowledgeAgentModel y) return false; } - public int GetHashCode(KnowledgeAgentModel obj) + public int GetHashCode(KnowledgeBaseModel obj) { if (obj is null) { return 0; } - if (obj is KnowledgeAgentAzureOpenAIModel model) + if (obj is KnowledgeBaseAzureOpenAIModel model) { var parameters = model.AzureOpenAIParameters; var builder = new HashCodeBuilder(); diff --git a/sdk/search/Azure.Search.Documents/tests/Utilities/SearchResources.cs b/sdk/search/Azure.Search.Documents/tests/Utilities/SearchResources.cs index 14016049c422..4863d9e1d56b 100644 --- a/sdk/search/Azure.Search.Documents/tests/Utilities/SearchResources.cs +++ b/sdk/search/Azure.Search.Documents/tests/Utilities/SearchResources.cs @@ -12,6 +12,7 @@ using Azure.Core.TestFramework; using Azure.Search.Documents.Indexes; using Azure.Search.Documents.Indexes.Models; +using Azure.Search.Documents.KnowledgeBases.Models; using Azure.Search.Documents.Models; using Azure.Search.Documents.Tests.Samples; using Azure.Storage.Blobs; @@ -101,12 +102,12 @@ public string IndexName /// /// The name of the knowledge agent created for test data. /// - public string KnowledgeAgentName + public string KnowledgeBaseName { - get => TestFixture.Recording.GetVariable("KnowledgeAgentName", _agentName); + get => TestFixture.Recording.GetVariable("KnowledgeBaseName", _agentName); set { - TestFixture.Recording.SetVariable("KnowledgeAgentName", value); + TestFixture.Recording.SetVariable("KnowledgeBaseName", value); _agentName = value; } } @@ -157,7 +158,7 @@ public string KnowledgeSourceName /// Flag indicating whether these knowledge agent resources need to be cleaned up. /// This is true for any knowledge agent resources that we created. /// - public bool RequiresKnowledgeAgentCleanup { get; private set; } + public bool RequiresKnowledgeBaseCleanup { get; private set; } /// /// Flag indicating whether these knowledge source resources need to be cleaned up. @@ -269,10 +270,10 @@ public static async Task CreateWithHotelsIndexAsync(SearchTestB /// recordings, instrumentation, etc. /// /// A new TestResources context. - public static async Task CreateWithknowledgeAgentAsync(SearchTestBase fixture, bool isSample = false) + public static async Task CreateWithKnowledgeBaseAsync(SearchTestBase fixture, bool isSample = false) { var resources = new SearchResources(fixture); - await resources.CreateKnowledgeAgentAsync(); + await resources.CreateKnowledgeBaseAsync(); return resources; } @@ -451,7 +452,7 @@ public SearchClient GetQueryClient(SearchClientOptions options = null) /// longer needed. /// public async ValueTask DisposeAsync() => await Task.WhenAll( - DeleteKnowledgeAgentAsync(), + DeleteKnowledgeBaseAsync(), DeleteKnowledgeSourceAsync(), DeleteIndexAsync(), DeleteBlobContainerAsync()); @@ -492,15 +493,15 @@ private async Task DeleteKnowledgeSourceAsync() /// Deletes the knowledge agent created as a test resource. /// /// - private async Task DeleteKnowledgeAgentAsync() + private async Task DeleteKnowledgeBaseAsync() { - if (RequiresKnowledgeAgentCleanup && !string.IsNullOrEmpty(KnowledgeAgentName)) + if (RequiresKnowledgeBaseCleanup && !string.IsNullOrEmpty(KnowledgeBaseName)) { SearchIndexClient client = GetIndexClient(); - await client.DeleteKnowledgeAgentAsync(KnowledgeAgentName); - RequiresKnowledgeAgentCleanup = false; + await client.DeleteKnowledgeBaseAsync(KnowledgeBaseName); + RequiresKnowledgeBaseCleanup = false; - await WaitForKnowledgeAgentDeletionAsync(); + await WaitForKnowledgeBaseDeletionAsync(); } } @@ -581,10 +582,10 @@ private async Task CreateSearchServiceIndexAndDocumentsAsync(bo } /// - /// Create a new index and knowledge agent. + /// Create a new index and knowledge base. /// /// This TestResources context. - private async Task CreateKnowledgeAgentAsync(bool isSample = false) + private async Task CreateKnowledgeBaseAsync(bool isSample = false) { // Create index and upload documents await CreateSearchServiceIndexAndDocumentsAsync(isSample); @@ -595,7 +596,7 @@ private async Task CreateKnowledgeAgentAsync(bool isSample = fa SearchIndexClient client = GetIndexClient(); // Generate a random knowledge agent Name - KnowledgeAgentName = Random.GetName(8); + KnowledgeBaseName = Random.GetName(8); KnowledgeSourceName = Random.GetName(8); string deploymentName = "gpt-4.1"; @@ -604,28 +605,38 @@ private async Task CreateKnowledgeAgentAsync(bool isSample = fa RequiresKnowledgeSourceCleanup = true; await WaitForKnowledgeSourceCreationAsync(); - var knowledgeAgent = new KnowledgeAgent( - KnowledgeAgentName, - new List{ - new KnowledgeAgentAzureOpenAIModel( - new AzureOpenAIVectorizerParameters - { - ResourceUri = new Uri(Environment.GetEnvironmentVariable("OPENAI_ENDPOINT")), - ApiKey = Environment.GetEnvironmentVariable("OPENAI_KEY"), - DeploymentName = deploymentName, - ModelName = AzureOpenAIModelName.Gpt41 - }) + var knowledgeAgent = new KnowledgeBase( + KnowledgeBaseName, + knowledgeSources: new List + { + new KnowledgeSourceReference(knowledgeSource.Name) }, - new List + models: new List { - new KnowledgeSourceReference(knowledgeSource.Name) - }); - - await client.CreateKnowledgeAgentAsync(knowledgeAgent); - RequiresKnowledgeAgentCleanup = true; - - // Give the knowledge agent time to stabilize before running tests. - await WaitForKnowledgeAgentCreationAsync(); + new KnowledgeBaseAzureOpenAIModel( + new AzureOpenAIVectorizerParameters + { + ResourceUri = new Uri(Environment.GetEnvironmentVariable("OPENAI_ENDPOINT")), + ApiKey = Environment.GetEnvironmentVariable("OPENAI_KEY"), + DeploymentName = deploymentName, + ModelName = AzureOpenAIModelName.Gpt41 + }) + }, + retrievalReasoningEffort: new KnowledgeRetrievalLowReasoningEffort(), + KnowledgeRetrievalOutputMode.AnswerSynthesis, + eTag: null, + encryptionKey: null, + description: "Description of the Knowledge Base", + retrievalInstructions: "Instructions for the retrieval and answering behavior of the Knowledge Base", + answerInstructions: "Instructions for the answer", + serializedAdditionalRawData: null + ); + + await client.CreateKnowledgeBaseAsync(knowledgeAgent); + RequiresKnowledgeBaseCleanup = true; + + // Give the knowledge base time to stabilize before running tests. + await WaitForKnowledgeBaseCreationAsync(); } return this; @@ -753,7 +764,7 @@ public async Task WaitForIndexingAsync() => /// Wait for knowledge agent creation. /// /// A Task to await. - public async Task WaitForKnowledgeAgentCreationAsync() => + public async Task WaitForKnowledgeBaseCreationAsync() => await TestFixture.DelayAsync(TimeSpan.FromSeconds(2)); /// @@ -767,7 +778,7 @@ public async Task WaitForKnowledgeSourceCreationAsync() => /// Wait for the knowledge agent to be deleted. /// /// A Task to await. - public async Task WaitForKnowledgeAgentDeletionAsync() => + public async Task WaitForKnowledgeBaseDeletionAsync() => await TestFixture.DelayAsync(TimeSpan.FromSeconds(5)); /// From 0a2ea0fa80734574dd90bec470fc8ff605c071e8 Mon Sep 17 00:00:00 2001 From: efrainretana Date: Mon, 20 Oct 2025 13:34:14 -0500 Subject: [PATCH 2/7] Undo updated APIs --- .../Azure.ResourceManager.Advisor.net8.0.cs | 437 ++++++++++++++ ...ourceManager.AgriculturePlatform.net8.0.cs | 374 ++++++++++++ .../Azure.ResourceManager.Analysis.net8.0.cs | 380 ++++++++++++ .../api/Azure.AI.AnomalyDetector.net8.0.cs | 552 ++++++++++++++++++ .../api/Azure.Data.AppConfiguration.net8.0.cs | 382 ++++++++++++ 5 files changed, 2125 insertions(+) create mode 100644 sdk/advisor/Azure.ResourceManager.Advisor/api/Azure.ResourceManager.Advisor.net8.0.cs create mode 100644 sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/api/Azure.ResourceManager.AgriculturePlatform.net8.0.cs create mode 100644 sdk/analysisservices/Azure.ResourceManager.Analysis/api/Azure.ResourceManager.Analysis.net8.0.cs create mode 100644 sdk/appconfiguration/Azure.Data.AppConfiguration/api/Azure.Data.AppConfiguration.net8.0.cs diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/api/Azure.ResourceManager.Advisor.net8.0.cs b/sdk/advisor/Azure.ResourceManager.Advisor/api/Azure.ResourceManager.Advisor.net8.0.cs new file mode 100644 index 000000000000..8e7a6a944a9b --- /dev/null +++ b/sdk/advisor/Azure.ResourceManager.Advisor/api/Azure.ResourceManager.Advisor.net8.0.cs @@ -0,0 +1,437 @@ +namespace Azure.ResourceManager.Advisor +{ + public static partial class AdvisorExtensions + { + public static Azure.Response CreateConfiguration(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.ResourceManager.Advisor.Models.ConfigurationName configurationName, Azure.ResourceManager.Advisor.Models.ConfigData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response CreateConfiguration(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Advisor.Models.ConfigurationName configurationName, Azure.ResourceManager.Advisor.Models.ConfigData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> CreateConfigurationAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.ResourceManager.Advisor.Models.ConfigurationName configurationName, Azure.ResourceManager.Advisor.Models.ConfigData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> CreateConfigurationAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Advisor.Models.ConfigurationName configurationName, Azure.ResourceManager.Advisor.Models.ConfigData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GenerateRecommendation(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task GenerateRecommendationAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Pageable GetConfigurations(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Pageable GetConfigurations(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetConfigurationsAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetConfigurationsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GetGenerateStatusRecommendation(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Guid operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task GetGenerateStatusRecommendationAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Guid operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.Advisor.MetadataEntityCollection GetMetadataEntities(this Azure.ResourceManager.Resources.TenantResource tenantResource) { throw null; } + public static Azure.Response GetMetadataEntity(this Azure.ResourceManager.Resources.TenantResource tenantResource, string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetMetadataEntityAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.Advisor.MetadataEntityResource GetMetadataEntityResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.Response GetResourceRecommendationBase(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string recommendationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetResourceRecommendationBaseAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string recommendationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.Advisor.ResourceRecommendationBaseResource GetResourceRecommendationBaseResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Advisor.ResourceRecommendationBaseCollection GetResourceRecommendationBases(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope) { throw null; } + public static Azure.ResourceManager.Advisor.SuppressionContractResource GetSuppressionContractResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.Pageable GetSuppressionContracts(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetSuppressionContractsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class AzureResourceManagerAdvisorContext : System.ClientModel.Primitives.ModelReaderWriterContext + { + internal AzureResourceManagerAdvisorContext() { } + public static Azure.ResourceManager.Advisor.AzureResourceManagerAdvisorContext Default { get { throw null; } } + protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; } + } + public partial class MetadataEntityCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected MetadataEntityCollection() { } + public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class MetadataEntityData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal MetadataEntityData() { } + public System.Collections.Generic.IReadOnlyList ApplicableScenarios { get { throw null; } } + public System.Collections.Generic.IReadOnlyList DependsOn { get { throw null; } } + public string DisplayName { get { throw null; } } + public System.Collections.Generic.IReadOnlyList SupportedValues { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Advisor.MetadataEntityData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Advisor.MetadataEntityData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class MetadataEntityResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected MetadataEntityResource() { } + public virtual Azure.ResourceManager.Advisor.MetadataEntityData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string name) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.Advisor.MetadataEntityData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Advisor.MetadataEntityData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class ResourceRecommendationBaseCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected ResourceRecommendationBaseCollection() { } + public virtual Azure.Response Exists(string recommendationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string recommendationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string recommendationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string filter = null, int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string filter = null, int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string recommendationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string recommendationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string recommendationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class ResourceRecommendationBaseData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ResourceRecommendationBaseData() { } + public System.Collections.Generic.IList> Actions { get { throw null; } } + public Azure.ResourceManager.Advisor.Models.Category? Category { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public System.Collections.Generic.IDictionary ExposedMetadataProperties { get { throw null; } } + public System.Collections.Generic.IDictionary ExtendedProperties { get { throw null; } } + public Azure.ResourceManager.Advisor.Models.Impact? Impact { get { throw null; } set { } } + public string ImpactedField { get { throw null; } set { } } + public string ImpactedValue { get { throw null; } set { } } + public string Label { get { throw null; } set { } } + public System.DateTimeOffset? LastUpdated { get { throw null; } set { } } + public string LearnMoreLink { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Metadata { get { throw null; } } + public string PotentialBenefits { get { throw null; } set { } } + public string RecommendationTypeId { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Remediation { get { throw null; } } + public Azure.ResourceManager.Advisor.Models.ResourceMetadata ResourceMetadata { get { throw null; } set { } } + public Azure.ResourceManager.Advisor.Models.Risk? Risk { get { throw null; } set { } } + public Azure.ResourceManager.Advisor.Models.ShortDescription ShortDescription { get { throw null; } set { } } + public System.Collections.Generic.IList SuppressionIds { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Advisor.ResourceRecommendationBaseData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Advisor.ResourceRecommendationBaseData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class ResourceRecommendationBaseResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected ResourceRecommendationBaseResource() { } + public virtual Azure.ResourceManager.Advisor.ResourceRecommendationBaseData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string resourceUri, string recommendationId) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetSuppressionContract(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetSuppressionContractAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Advisor.SuppressionContractCollection GetSuppressionContracts() { throw null; } + Azure.ResourceManager.Advisor.ResourceRecommendationBaseData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Advisor.ResourceRecommendationBaseData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class SuppressionContractCollection : Azure.ResourceManager.ArmCollection + { + protected SuppressionContractCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.Advisor.SuppressionContractData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string name, Azure.ResourceManager.Advisor.SuppressionContractData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class SuppressionContractData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public SuppressionContractData() { } + public System.DateTimeOffset? ExpirationTimeStamp { get { throw null; } } + public string SuppressionId { get { throw null; } set { } } + public string Ttl { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Advisor.SuppressionContractData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Advisor.SuppressionContractData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class SuppressionContractResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected SuppressionContractResource() { } + public virtual Azure.ResourceManager.Advisor.SuppressionContractData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string resourceUri, string recommendationId, string name) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.Advisor.SuppressionContractData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Advisor.SuppressionContractData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Advisor.SuppressionContractData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Advisor.SuppressionContractData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } +} +namespace Azure.ResourceManager.Advisor.Mocking +{ + public partial class MockableAdvisorArmClient : Azure.ResourceManager.ArmResource + { + protected MockableAdvisorArmClient() { } + public virtual Azure.ResourceManager.Advisor.MetadataEntityResource GetMetadataEntityResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.Response GetResourceRecommendationBase(Azure.Core.ResourceIdentifier scope, string recommendationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetResourceRecommendationBaseAsync(Azure.Core.ResourceIdentifier scope, string recommendationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Advisor.ResourceRecommendationBaseResource GetResourceRecommendationBaseResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.Advisor.ResourceRecommendationBaseCollection GetResourceRecommendationBases(Azure.Core.ResourceIdentifier scope) { throw null; } + public virtual Azure.ResourceManager.Advisor.SuppressionContractResource GetSuppressionContractResource(Azure.Core.ResourceIdentifier id) { throw null; } + } + public partial class MockableAdvisorResourceGroupResource : Azure.ResourceManager.ArmResource + { + protected MockableAdvisorResourceGroupResource() { } + public virtual Azure.Response CreateConfiguration(Azure.ResourceManager.Advisor.Models.ConfigurationName configurationName, Azure.ResourceManager.Advisor.Models.ConfigData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateConfigurationAsync(Azure.ResourceManager.Advisor.Models.ConfigurationName configurationName, Azure.ResourceManager.Advisor.Models.ConfigData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetConfigurations(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetConfigurationsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MockableAdvisorSubscriptionResource : Azure.ResourceManager.ArmResource + { + protected MockableAdvisorSubscriptionResource() { } + public virtual Azure.Response CreateConfiguration(Azure.ResourceManager.Advisor.Models.ConfigurationName configurationName, Azure.ResourceManager.Advisor.Models.ConfigData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateConfigurationAsync(Azure.ResourceManager.Advisor.Models.ConfigurationName configurationName, Azure.ResourceManager.Advisor.Models.ConfigData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GenerateRecommendation(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task GenerateRecommendationAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetConfigurations(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetConfigurationsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetGenerateStatusRecommendation(System.Guid operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task GetGenerateStatusRecommendationAsync(System.Guid operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetSuppressionContracts(int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetSuppressionContractsAsync(int? top = default(int?), string skipToken = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class MockableAdvisorTenantResource : Azure.ResourceManager.ArmResource + { + protected MockableAdvisorTenantResource() { } + public virtual Azure.ResourceManager.Advisor.MetadataEntityCollection GetMetadataEntities() { throw null; } + public virtual Azure.Response GetMetadataEntity(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetMetadataEntityAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } +} +namespace Azure.ResourceManager.Advisor.Models +{ + public static partial class ArmAdvisorModelFactory + { + public static Azure.ResourceManager.Advisor.Models.ConfigData ConfigData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, bool? exclude = default(bool?), Azure.ResourceManager.Advisor.Models.CpuThreshold? lowCpuThreshold = default(Azure.ResourceManager.Advisor.Models.CpuThreshold?), System.Collections.Generic.IEnumerable digests = null) { throw null; } + public static Azure.ResourceManager.Advisor.MetadataEntityData MetadataEntityData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string displayName = null, System.Collections.Generic.IEnumerable dependsOn = null, System.Collections.Generic.IEnumerable applicableScenarios = null, System.Collections.Generic.IEnumerable supportedValues = null) { throw null; } + public static Azure.ResourceManager.Advisor.Models.MetadataSupportedValueDetail MetadataSupportedValueDetail(string id = null, string displayName = null) { throw null; } + public static Azure.ResourceManager.Advisor.ResourceRecommendationBaseData ResourceRecommendationBaseData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Advisor.Models.Category? category = default(Azure.ResourceManager.Advisor.Models.Category?), Azure.ResourceManager.Advisor.Models.Impact? impact = default(Azure.ResourceManager.Advisor.Models.Impact?), string impactedField = null, string impactedValue = null, System.DateTimeOffset? lastUpdated = default(System.DateTimeOffset?), System.Collections.Generic.IDictionary metadata = null, string recommendationTypeId = null, Azure.ResourceManager.Advisor.Models.Risk? risk = default(Azure.ResourceManager.Advisor.Models.Risk?), Azure.ResourceManager.Advisor.Models.ShortDescription shortDescription = null, System.Collections.Generic.IEnumerable suppressionIds = null, System.Collections.Generic.IDictionary extendedProperties = null, Azure.ResourceManager.Advisor.Models.ResourceMetadata resourceMetadata = null, string description = null, string label = null, string learnMoreLink = null, string potentialBenefits = null, System.Collections.Generic.IEnumerable> actions = null, System.Collections.Generic.IDictionary remediation = null, System.Collections.Generic.IDictionary exposedMetadataProperties = null) { throw null; } + public static Azure.ResourceManager.Advisor.SuppressionContractData SuppressionContractData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string suppressionId = null, string ttl = null, System.DateTimeOffset? expirationTimeStamp = default(System.DateTimeOffset?)) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct Category : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public Category(string value) { throw null; } + public static Azure.ResourceManager.Advisor.Models.Category Cost { get { throw null; } } + public static Azure.ResourceManager.Advisor.Models.Category HighAvailability { get { throw null; } } + public static Azure.ResourceManager.Advisor.Models.Category OperationalExcellence { get { throw null; } } + public static Azure.ResourceManager.Advisor.Models.Category Performance { get { throw null; } } + public static Azure.ResourceManager.Advisor.Models.Category Security { get { throw null; } } + public bool Equals(Azure.ResourceManager.Advisor.Models.Category other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Advisor.Models.Category left, Azure.ResourceManager.Advisor.Models.Category right) { throw null; } + public static implicit operator Azure.ResourceManager.Advisor.Models.Category (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Advisor.Models.Category left, Azure.ResourceManager.Advisor.Models.Category right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ConfigData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ConfigData() { } + public System.Collections.Generic.IList Digests { get { throw null; } } + public bool? Exclude { get { throw null; } set { } } + public Azure.ResourceManager.Advisor.Models.CpuThreshold? LowCpuThreshold { get { throw null; } set { } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Advisor.Models.ConfigData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Advisor.Models.ConfigData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ConfigurationName : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ConfigurationName(string value) { throw null; } + public static Azure.ResourceManager.Advisor.Models.ConfigurationName Default { get { throw null; } } + public bool Equals(Azure.ResourceManager.Advisor.Models.ConfigurationName other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Advisor.Models.ConfigurationName left, Azure.ResourceManager.Advisor.Models.ConfigurationName right) { throw null; } + public static implicit operator Azure.ResourceManager.Advisor.Models.ConfigurationName (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Advisor.Models.ConfigurationName left, Azure.ResourceManager.Advisor.Models.ConfigurationName right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct CpuThreshold : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public CpuThreshold(string value) { throw null; } + public static Azure.ResourceManager.Advisor.Models.CpuThreshold Fifteen { get { throw null; } } + public static Azure.ResourceManager.Advisor.Models.CpuThreshold Five { get { throw null; } } + public static Azure.ResourceManager.Advisor.Models.CpuThreshold Ten { get { throw null; } } + public static Azure.ResourceManager.Advisor.Models.CpuThreshold Twenty { get { throw null; } } + public bool Equals(Azure.ResourceManager.Advisor.Models.CpuThreshold other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Advisor.Models.CpuThreshold left, Azure.ResourceManager.Advisor.Models.CpuThreshold right) { throw null; } + public static implicit operator Azure.ResourceManager.Advisor.Models.CpuThreshold (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Advisor.Models.CpuThreshold left, Azure.ResourceManager.Advisor.Models.CpuThreshold right) { throw null; } + public override string ToString() { throw null; } + } + public partial class DigestConfig : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public DigestConfig() { } + public string ActionGroupResourceId { get { throw null; } set { } } + public System.Collections.Generic.IList Categories { get { throw null; } } + public int? Frequency { get { throw null; } set { } } + public string Language { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public Azure.ResourceManager.Advisor.Models.DigestConfigState? State { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Advisor.Models.DigestConfig System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Advisor.Models.DigestConfig System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct DigestConfigState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public DigestConfigState(string value) { throw null; } + public static Azure.ResourceManager.Advisor.Models.DigestConfigState Active { get { throw null; } } + public static Azure.ResourceManager.Advisor.Models.DigestConfigState Disabled { get { throw null; } } + public bool Equals(Azure.ResourceManager.Advisor.Models.DigestConfigState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Advisor.Models.DigestConfigState left, Azure.ResourceManager.Advisor.Models.DigestConfigState right) { throw null; } + public static implicit operator Azure.ResourceManager.Advisor.Models.DigestConfigState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Advisor.Models.DigestConfigState left, Azure.ResourceManager.Advisor.Models.DigestConfigState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct Impact : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public Impact(string value) { throw null; } + public static Azure.ResourceManager.Advisor.Models.Impact High { get { throw null; } } + public static Azure.ResourceManager.Advisor.Models.Impact Low { get { throw null; } } + public static Azure.ResourceManager.Advisor.Models.Impact Medium { get { throw null; } } + public bool Equals(Azure.ResourceManager.Advisor.Models.Impact other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Advisor.Models.Impact left, Azure.ResourceManager.Advisor.Models.Impact right) { throw null; } + public static implicit operator Azure.ResourceManager.Advisor.Models.Impact (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Advisor.Models.Impact left, Azure.ResourceManager.Advisor.Models.Impact right) { throw null; } + public override string ToString() { throw null; } + } + public partial class MetadataSupportedValueDetail : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal MetadataSupportedValueDetail() { } + public string DisplayName { get { throw null; } } + public string Id { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Advisor.Models.MetadataSupportedValueDetail System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Advisor.Models.MetadataSupportedValueDetail System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class ResourceMetadata : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ResourceMetadata() { } + public System.Collections.Generic.IDictionary Action { get { throw null; } } + public string Plural { get { throw null; } set { } } + public string ResourceId { get { throw null; } set { } } + public string Singular { get { throw null; } set { } } + public string Source { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Advisor.Models.ResourceMetadata System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Advisor.Models.ResourceMetadata System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct Risk : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public Risk(string value) { throw null; } + public static Azure.ResourceManager.Advisor.Models.Risk Error { get { throw null; } } + public static Azure.ResourceManager.Advisor.Models.Risk None { get { throw null; } } + public static Azure.ResourceManager.Advisor.Models.Risk Warning { get { throw null; } } + public bool Equals(Azure.ResourceManager.Advisor.Models.Risk other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Advisor.Models.Risk left, Azure.ResourceManager.Advisor.Models.Risk right) { throw null; } + public static implicit operator Azure.ResourceManager.Advisor.Models.Risk (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Advisor.Models.Risk left, Azure.ResourceManager.Advisor.Models.Risk right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct Scenario : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public Scenario(string value) { throw null; } + public static Azure.ResourceManager.Advisor.Models.Scenario Alerts { get { throw null; } } + public bool Equals(Azure.ResourceManager.Advisor.Models.Scenario other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Advisor.Models.Scenario left, Azure.ResourceManager.Advisor.Models.Scenario right) { throw null; } + public static implicit operator Azure.ResourceManager.Advisor.Models.Scenario (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Advisor.Models.Scenario left, Azure.ResourceManager.Advisor.Models.Scenario right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ShortDescription : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ShortDescription() { } + public string Problem { get { throw null; } set { } } + public string Solution { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Advisor.Models.ShortDescription System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Advisor.Models.ShortDescription System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } +} diff --git a/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/api/Azure.ResourceManager.AgriculturePlatform.net8.0.cs b/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/api/Azure.ResourceManager.AgriculturePlatform.net8.0.cs new file mode 100644 index 000000000000..82689ee7f96c --- /dev/null +++ b/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/api/Azure.ResourceManager.AgriculturePlatform.net8.0.cs @@ -0,0 +1,374 @@ +namespace Azure.ResourceManager.AgriculturePlatform +{ + public static partial class AgriculturePlatformExtensions + { + public static Azure.Response GetAgricultureService(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string agriServiceResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetAgricultureServiceAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string agriServiceResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.AgriculturePlatform.AgricultureServiceResource GetAgricultureServiceResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.AgriculturePlatform.AgricultureServiceCollection GetAgricultureServices(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetAgricultureServices(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetAgricultureServicesAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class AgricultureServiceCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected AgricultureServiceCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string agriServiceResourceName, Azure.ResourceManager.AgriculturePlatform.AgricultureServiceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string agriServiceResourceName, Azure.ResourceManager.AgriculturePlatform.AgricultureServiceData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string agriServiceResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string agriServiceResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string agriServiceResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string agriServiceResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string agriServiceResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string agriServiceResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class AgricultureServiceData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AgricultureServiceData(Azure.Core.AzureLocation location) { } + public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } + public Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceProperties Properties { get { throw null; } set { } } + public Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformSku Sku { get { throw null; } set { } } + protected virtual Azure.ResourceManager.Models.ResourceData JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.Models.ResourceData PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.AgriculturePlatform.AgricultureServiceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AgriculturePlatform.AgricultureServiceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AgricultureServiceResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected AgricultureServiceResource() { } + public virtual Azure.ResourceManager.AgriculturePlatform.AgricultureServiceData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string agriServiceResourceName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetAvailableSolutions(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAvailableSolutionsAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.AgriculturePlatform.AgricultureServiceData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AgriculturePlatform.AgricultureServiceData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServicePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServicePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class AzureResourceManagerAgriculturePlatformContext : System.ClientModel.Primitives.ModelReaderWriterContext + { + internal AzureResourceManagerAgriculturePlatformContext() { } + public static Azure.ResourceManager.AgriculturePlatform.AzureResourceManagerAgriculturePlatformContext Default { get { throw null; } } + protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; } + } +} +namespace Azure.ResourceManager.AgriculturePlatform.Mocking +{ + public partial class MockableAgriculturePlatformArmClient : Azure.ResourceManager.ArmResource + { + protected MockableAgriculturePlatformArmClient() { } + public virtual Azure.ResourceManager.AgriculturePlatform.AgricultureServiceResource GetAgricultureServiceResource(Azure.Core.ResourceIdentifier id) { throw null; } + } + public partial class MockableAgriculturePlatformResourceGroupResource : Azure.ResourceManager.ArmResource + { + protected MockableAgriculturePlatformResourceGroupResource() { } + public virtual Azure.Response GetAgricultureService(string agriServiceResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAgricultureServiceAsync(string agriServiceResourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.AgriculturePlatform.AgricultureServiceCollection GetAgricultureServices() { throw null; } + } + public partial class MockableAgriculturePlatformSubscriptionResource : Azure.ResourceManager.ArmResource + { + protected MockableAgriculturePlatformSubscriptionResource() { } + public virtual Azure.Pageable GetAgricultureServices(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAgricultureServicesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } +} +namespace Azure.ResourceManager.AgriculturePlatform.Models +{ + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AgriculturePlatformProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AgriculturePlatformProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState Accepted { get { throw null; } } + public static Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState Canceled { get { throw null; } } + public static Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState Deleting { get { throw null; } } + public static Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState Provisioning { get { throw null; } } + public static Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState Succeeded { get { throw null; } } + public static Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState left, Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState (string value) { throw null; } + public static implicit operator Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState left, Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + public partial class AgriculturePlatformSku : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AgriculturePlatformSku(string name) { } + public int? Capacity { get { throw null; } set { } } + public string Family { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public string Size { get { throw null; } set { } } + public Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformSkuTier? Tier { get { throw null; } set { } } + protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformSku JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformSku PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformSku System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformSku System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public enum AgriculturePlatformSkuTier + { + Free = 0, + Basic = 1, + Standard = 2, + Premium = 3, + } + public partial class AgricultureServiceConfig : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AgricultureServiceConfig() { } + public Azure.Core.ResourceIdentifier AppServiceResourceId { get { throw null; } } + public Azure.Core.ResourceIdentifier CosmosDBResourceId { get { throw null; } } + public string InstanceUri { get { throw null; } } + public Azure.Core.ResourceIdentifier KeyVaultResourceId { get { throw null; } } + public Azure.Core.ResourceIdentifier RedisCacheResourceId { get { throw null; } } + public Azure.Core.ResourceIdentifier StorageAccountResourceId { get { throw null; } } + public string Version { get { throw null; } } + protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceConfig JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceConfig PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceConfig System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceConfig System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AgricultureServicePatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AgricultureServicePatch() { } + public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } + public Azure.ResourceManager.AgriculturePlatform.Models.AgriServiceResourceUpdateProperties Properties { get { throw null; } set { } } + public Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformSku Sku { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServicePatch JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServicePatch PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServicePatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServicePatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AgricultureServicePatchProperties + { + public AgricultureServicePatchProperties() { } + } + public partial class AgricultureServiceProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AgricultureServiceProperties() { } + public Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceConfig Config { get { throw null; } set { } } + public System.Collections.Generic.IList DataConnectorCredentials { get { throw null; } } + public System.Collections.Generic.IList InstalledSolutions { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ManagedOnBehalfOfMoboBrokerResources { get { throw null; } } + public Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState? ProvisioningState { get { throw null; } } + protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AgricultureSolution : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AgricultureSolution() { } + public string ApplicationName { get { throw null; } set { } } + public string MarketPlacePublisherId { get { throw null; } set { } } + public string PartnerId { get { throw null; } set { } } + public string PlanId { get { throw null; } set { } } + public string SaasSubscriptionId { get { throw null; } set { } } + public string SaasSubscriptionName { get { throw null; } set { } } + protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AgricultureSolution JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AgricultureSolution PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.AgriculturePlatform.Models.AgricultureSolution System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AgriculturePlatform.Models.AgricultureSolution System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AgriServiceResourceUpdateProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AgriServiceResourceUpdateProperties() { } + public Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceConfig Config { get { throw null; } set { } } + public System.Collections.Generic.IList DataConnectorCredentials { get { throw null; } } + public System.Collections.Generic.IList InstalledSolutions { get { throw null; } } + protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AgriServiceResourceUpdateProperties JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AgriServiceResourceUpdateProperties PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.AgriculturePlatform.Models.AgriServiceResourceUpdateProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AgriculturePlatform.Models.AgriServiceResourceUpdateProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public static partial class ArmAgriculturePlatformModelFactory + { + public static Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceConfig AgricultureServiceConfig(string instanceUri = null, string version = null, Azure.Core.ResourceIdentifier appServiceResourceId = null, Azure.Core.ResourceIdentifier cosmosDBResourceId = null, Azure.Core.ResourceIdentifier storageAccountResourceId = null, Azure.Core.ResourceIdentifier keyVaultResourceId = null, Azure.Core.ResourceIdentifier redisCacheResourceId = null) { throw null; } + public static Azure.ResourceManager.AgriculturePlatform.AgricultureServiceData AgricultureServiceData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceProperties properties = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformSku sku = null) { throw null; } + public static Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServicePatch AgricultureServicePatch(Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformSku sku = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.AgriculturePlatform.Models.AgriServiceResourceUpdateProperties properties = null) { throw null; } + public static Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceProperties AgricultureServiceProperties(Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState? provisioningState = default(Azure.ResourceManager.AgriculturePlatform.Models.AgriculturePlatformProvisioningState?), Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceConfig config = null, System.Collections.Generic.IReadOnlyList managedOnBehalfOfMoboBrokerResources = null, System.Collections.Generic.IEnumerable dataConnectorCredentials = null, System.Collections.Generic.IEnumerable installedSolutions = null) { throw null; } + public static Azure.ResourceManager.AgriculturePlatform.Models.AgriServiceResourceUpdateProperties AgriServiceResourceUpdateProperties(Azure.ResourceManager.AgriculturePlatform.Models.AgricultureServiceConfig config = null, System.Collections.Generic.IEnumerable dataConnectorCredentials = null, System.Collections.Generic.IEnumerable installedSolutions = null) { throw null; } + public static Azure.ResourceManager.AgriculturePlatform.Models.AvailableAgriSolutionListResult AvailableAgriSolutionListResult(System.Collections.Generic.IEnumerable solutions = null) { throw null; } + public static Azure.ResourceManager.AgriculturePlatform.Models.DataManagerForAgricultureSolution DataManagerForAgricultureSolution(string partnerId = null, string solutionId = null, string partnerTenantId = null, System.Collections.Generic.IEnumerable dataAccessScopes = null, Azure.ResourceManager.AgriculturePlatform.Models.MarketPlaceOfferDetails marketPlaceOfferDetails = null, string saasApplicationId = null, string accessAzureDataManagerForAgricultureApplicationId = null, string accessAzureDataManagerForAgricultureApplicationName = null, bool isValidateInput = false) { throw null; } + public static Azure.ResourceManager.AgriculturePlatform.Models.MarketPlaceOfferDetails MarketPlaceOfferDetails(string saasOfferId = null, string publisherId = null) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AuthCredentialsKind : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AuthCredentialsKind(string value) { throw null; } + public static Azure.ResourceManager.AgriculturePlatform.Models.AuthCredentialsKind ApiKeyAuthCredentials { get { throw null; } } + public static Azure.ResourceManager.AgriculturePlatform.Models.AuthCredentialsKind OAuthClientCredentials { get { throw null; } } + public bool Equals(Azure.ResourceManager.AgriculturePlatform.Models.AuthCredentialsKind other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.AgriculturePlatform.Models.AuthCredentialsKind left, Azure.ResourceManager.AgriculturePlatform.Models.AuthCredentialsKind right) { throw null; } + public static implicit operator Azure.ResourceManager.AgriculturePlatform.Models.AuthCredentialsKind (string value) { throw null; } + public static implicit operator Azure.ResourceManager.AgriculturePlatform.Models.AuthCredentialsKind? (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.AgriculturePlatform.Models.AuthCredentialsKind left, Azure.ResourceManager.AgriculturePlatform.Models.AuthCredentialsKind right) { throw null; } + public override string ToString() { throw null; } + } + public partial class AvailableAgriSolutionListResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AvailableAgriSolutionListResult() { } + public System.Collections.Generic.IList Solutions { get { throw null; } } + protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AvailableAgriSolutionListResult JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.AgriculturePlatform.Models.AvailableAgriSolutionListResult PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.AgriculturePlatform.Models.AvailableAgriSolutionListResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AgriculturePlatform.Models.AvailableAgriSolutionListResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class DataConnectorCredentialMap : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public DataConnectorCredentialMap(string key, Azure.ResourceManager.AgriculturePlatform.Models.DataConnectorCredentials value) { } + public string Key { get { throw null; } set { } } + public Azure.ResourceManager.AgriculturePlatform.Models.DataConnectorCredentials Value { get { throw null; } set { } } + protected virtual Azure.ResourceManager.AgriculturePlatform.Models.DataConnectorCredentialMap JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.AgriculturePlatform.Models.DataConnectorCredentialMap PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.AgriculturePlatform.Models.DataConnectorCredentialMap System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AgriculturePlatform.Models.DataConnectorCredentialMap System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class DataConnectorCredentials : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public DataConnectorCredentials() { } + public string ClientId { get { throw null; } set { } } + public string KeyName { get { throw null; } set { } } + public string KeyVaultUri { get { throw null; } set { } } + public string KeyVersion { get { throw null; } set { } } + public Azure.ResourceManager.AgriculturePlatform.Models.AuthCredentialsKind? Kind { get { throw null; } set { } } + protected virtual Azure.ResourceManager.AgriculturePlatform.Models.DataConnectorCredentials JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.AgriculturePlatform.Models.DataConnectorCredentials PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.AgriculturePlatform.Models.DataConnectorCredentials System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AgriculturePlatform.Models.DataConnectorCredentials System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class DataManagerForAgricultureSolution : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal DataManagerForAgricultureSolution() { } + public string AccessAzureDataManagerForAgricultureApplicationId { get { throw null; } } + public string AccessAzureDataManagerForAgricultureApplicationName { get { throw null; } } + public System.Collections.Generic.IList DataAccessScopes { get { throw null; } } + public bool IsValidateInput { get { throw null; } } + public Azure.ResourceManager.AgriculturePlatform.Models.MarketPlaceOfferDetails MarketPlaceOfferDetails { get { throw null; } } + public string PartnerId { get { throw null; } } + public string PartnerTenantId { get { throw null; } } + public string SaasApplicationId { get { throw null; } } + public string SolutionId { get { throw null; } } + protected virtual Azure.ResourceManager.AgriculturePlatform.Models.DataManagerForAgricultureSolution JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.AgriculturePlatform.Models.DataManagerForAgricultureSolution PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.AgriculturePlatform.Models.DataManagerForAgricultureSolution System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AgriculturePlatform.Models.DataManagerForAgricultureSolution System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class InstalledSolutionMap : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public InstalledSolutionMap(string key, Azure.ResourceManager.AgriculturePlatform.Models.AgricultureSolution value) { } + public string Key { get { throw null; } set { } } + public Azure.ResourceManager.AgriculturePlatform.Models.AgricultureSolution Value { get { throw null; } set { } } + protected virtual Azure.ResourceManager.AgriculturePlatform.Models.InstalledSolutionMap JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.AgriculturePlatform.Models.InstalledSolutionMap PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.AgriculturePlatform.Models.InstalledSolutionMap System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AgriculturePlatform.Models.InstalledSolutionMap System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class MarketPlaceOfferDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal MarketPlaceOfferDetails() { } + public string PublisherId { get { throw null; } } + public string SaasOfferId { get { throw null; } } + protected virtual Azure.ResourceManager.AgriculturePlatform.Models.MarketPlaceOfferDetails JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.ResourceManager.AgriculturePlatform.Models.MarketPlaceOfferDetails PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.AgriculturePlatform.Models.MarketPlaceOfferDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.AgriculturePlatform.Models.MarketPlaceOfferDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } +} diff --git a/sdk/analysisservices/Azure.ResourceManager.Analysis/api/Azure.ResourceManager.Analysis.net8.0.cs b/sdk/analysisservices/Azure.ResourceManager.Analysis/api/Azure.ResourceManager.Analysis.net8.0.cs new file mode 100644 index 000000000000..09d9103391e9 --- /dev/null +++ b/sdk/analysisservices/Azure.ResourceManager.Analysis/api/Azure.ResourceManager.Analysis.net8.0.cs @@ -0,0 +1,380 @@ +namespace Azure.ResourceManager.Analysis +{ + public static partial class AnalysisExtensions + { + public static Azure.Response CheckAnalysisServerNameAvailability(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.Analysis.Models.AnalysisServerNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> CheckAnalysisServerNameAvailabilityAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, Azure.ResourceManager.Analysis.Models.AnalysisServerNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GetAnalysisServer(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string serverName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetAnalysisServerAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string serverName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.Analysis.AnalysisServerResource GetAnalysisServerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Analysis.AnalysisServerCollection GetAnalysisServers(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetAnalysisServers(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetAnalysisServersAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Pageable GetEligibleSkus(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetEligibleSkusAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class AnalysisServerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected AnalysisServerCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string serverName, Azure.ResourceManager.Analysis.AnalysisServerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string serverName, Azure.ResourceManager.Analysis.AnalysisServerData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string serverName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string serverName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string serverName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string serverName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string serverName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string serverName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class AnalysisServerData : Azure.ResourceManager.Models.TrackedResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AnalysisServerData(Azure.Core.AzureLocation location, Azure.ResourceManager.Analysis.Models.AnalysisResourceSku analysisSku) { } + public Azure.ResourceManager.Analysis.Models.AnalysisResourceSku AnalysisServerSku { get { throw null; } set { } } + public Azure.ResourceManager.Analysis.Models.AnalysisResourceSku AnalysisSku { get { throw null; } set { } } + public System.Collections.Generic.IList AsAdministratorIdentities { get { throw null; } } + public System.Uri BackupBlobContainerUri { get { throw null; } set { } } + public Azure.ResourceManager.Analysis.Models.AnalysisGatewayDetails GatewayDetails { get { throw null; } set { } } + public Azure.ResourceManager.Analysis.Models.AnalysisIPv4FirewallSettings IPv4FirewallSettings { get { throw null; } set { } } + public Azure.ResourceManager.Analysis.Models.AnalysisManagedMode? ManagedMode { get { throw null; } set { } } + public Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState? ProvisioningState { get { throw null; } } + public Azure.ResourceManager.Analysis.Models.AnalysisConnectionMode? QueryPoolConnectionMode { get { throw null; } set { } } + public string ServerFullName { get { throw null; } } + public Azure.ResourceManager.Analysis.Models.ServerMonitorMode? ServerMonitorMode { get { throw null; } set { } } + public Azure.ResourceManager.Analysis.Models.AnalysisState? State { get { throw null; } } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Analysis.AnalysisServerData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Analysis.AnalysisServerData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AnalysisServerResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public static readonly Azure.Core.ResourceType ResourceType; + protected AnalysisServerResource() { } + public virtual Azure.ResourceManager.Analysis.AnalysisServerData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DissociateGateway(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DissociateGatewayAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetExistingSkus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetExistingSkusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetGatewayStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetGatewayStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Resume(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task ResumeAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Suspend(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task SuspendAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.Analysis.AnalysisServerData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Analysis.AnalysisServerData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Analysis.Models.AnalysisServerPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Analysis.Models.AnalysisServerPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class AzureResourceManagerAnalysisContext : System.ClientModel.Primitives.ModelReaderWriterContext + { + internal AzureResourceManagerAnalysisContext() { } + public static Azure.ResourceManager.Analysis.AzureResourceManagerAnalysisContext Default { get { throw null; } } + protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; } + } +} +namespace Azure.ResourceManager.Analysis.Mocking +{ + public partial class MockableAnalysisArmClient : Azure.ResourceManager.ArmResource + { + protected MockableAnalysisArmClient() { } + public virtual Azure.ResourceManager.Analysis.AnalysisServerResource GetAnalysisServerResource(Azure.Core.ResourceIdentifier id) { throw null; } + } + public partial class MockableAnalysisResourceGroupResource : Azure.ResourceManager.ArmResource + { + protected MockableAnalysisResourceGroupResource() { } + public virtual Azure.Response GetAnalysisServer(string serverName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAnalysisServerAsync(string serverName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Analysis.AnalysisServerCollection GetAnalysisServers() { throw null; } + } + public partial class MockableAnalysisSubscriptionResource : Azure.ResourceManager.ArmResource + { + protected MockableAnalysisSubscriptionResource() { } + public virtual Azure.Response CheckAnalysisServerNameAvailability(Azure.Core.AzureLocation location, Azure.ResourceManager.Analysis.Models.AnalysisServerNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CheckAnalysisServerNameAvailabilityAsync(Azure.Core.AzureLocation location, Azure.ResourceManager.Analysis.Models.AnalysisServerNameAvailabilityContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAnalysisServers(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAnalysisServersAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetEligibleSkus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetEligibleSkusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } +} +namespace Azure.ResourceManager.Analysis.Models +{ + public enum AnalysisConnectionMode + { + All = 0, + ReadOnly = 1, + } + public partial class AnalysisExistingSku : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AnalysisExistingSku() { } + public Azure.Core.ResourceType? ResourceType { get { throw null; } } + public Azure.ResourceManager.Analysis.Models.AnalysisResourceSku Sku { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Analysis.Models.AnalysisExistingSku System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Analysis.Models.AnalysisExistingSku System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AnalysisGatewayDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AnalysisGatewayDetails() { } + public System.Uri DmtsClusterUri { get { throw null; } } + public string GatewayObjectId { get { throw null; } } + public string GatewayResourceId { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Analysis.Models.AnalysisGatewayDetails System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Analysis.Models.AnalysisGatewayDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AnalysisGatewayStatus : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AnalysisGatewayStatus() { } + public Azure.ResourceManager.Analysis.Models.AnalysisStatus? Status { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Analysis.Models.AnalysisGatewayStatus System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Analysis.Models.AnalysisGatewayStatus System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AnalysisIPv4FirewallRule : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AnalysisIPv4FirewallRule() { } + public string FirewallRuleName { get { throw null; } set { } } + public string RangeEnd { get { throw null; } set { } } + public string RangeStart { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Analysis.Models.AnalysisIPv4FirewallRule System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Analysis.Models.AnalysisIPv4FirewallRule System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AnalysisIPv4FirewallSettings : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AnalysisIPv4FirewallSettings() { } + public System.Collections.Generic.IList FirewallRules { get { throw null; } } + public bool? IsPowerBIServiceEnabled { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Analysis.Models.AnalysisIPv4FirewallSettings System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Analysis.Models.AnalysisIPv4FirewallSettings System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AnalysisManagedMode : System.IEquatable + { + private readonly int _dummyPrimitive; + public AnalysisManagedMode(int value) { throw null; } + public static Azure.ResourceManager.Analysis.Models.AnalysisManagedMode One { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.AnalysisManagedMode Zero { get { throw null; } } + public bool Equals(Azure.ResourceManager.Analysis.Models.AnalysisManagedMode other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Analysis.Models.AnalysisManagedMode left, Azure.ResourceManager.Analysis.Models.AnalysisManagedMode right) { throw null; } + public static implicit operator Azure.ResourceManager.Analysis.Models.AnalysisManagedMode (int value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Analysis.Models.AnalysisManagedMode left, Azure.ResourceManager.Analysis.Models.AnalysisManagedMode right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AnalysisProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AnalysisProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState Deleting { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState Paused { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState Pausing { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState Preparing { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState Provisioning { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState Resuming { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState Scaling { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState Succeeded { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState Suspended { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState Suspending { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState left, Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState left, Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + public partial class AnalysisResourceSku : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AnalysisResourceSku(string name) { } + public int? Capacity { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public Azure.ResourceManager.Analysis.Models.AnalysisSkuTier? Tier { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Analysis.Models.AnalysisResourceSku System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Analysis.Models.AnalysisResourceSku System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AnalysisServerNameAvailabilityContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AnalysisServerNameAvailabilityContent() { } + public string Name { get { throw null; } set { } } + public string ResourceType { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Analysis.Models.AnalysisServerNameAvailabilityContent System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Analysis.Models.AnalysisServerNameAvailabilityContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AnalysisServerNameAvailabilityResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AnalysisServerNameAvailabilityResult() { } + public bool? IsNameAvailable { get { throw null; } } + public string Message { get { throw null; } } + public string Reason { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Analysis.Models.AnalysisServerNameAvailabilityResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Analysis.Models.AnalysisServerNameAvailabilityResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AnalysisServerPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AnalysisServerPatch() { } + public System.Collections.Generic.IList AsAdministratorIdentities { get { throw null; } } + public System.Uri BackupBlobContainerUri { get { throw null; } set { } } + public Azure.ResourceManager.Analysis.Models.AnalysisGatewayDetails GatewayDetails { get { throw null; } set { } } + public Azure.ResourceManager.Analysis.Models.AnalysisIPv4FirewallSettings IPV4FirewallSettings { get { throw null; } set { } } + public Azure.ResourceManager.Analysis.Models.AnalysisManagedMode? ManagedMode { get { throw null; } set { } } + public Azure.ResourceManager.Analysis.Models.AnalysisConnectionMode? QuerypoolConnectionMode { get { throw null; } set { } } + public Azure.ResourceManager.Analysis.Models.ServerMonitorMode? ServerMonitorMode { get { throw null; } set { } } + public Azure.ResourceManager.Analysis.Models.AnalysisResourceSku Sku { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Analysis.Models.AnalysisServerPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Analysis.Models.AnalysisServerPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AnalysisSkuTier : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AnalysisSkuTier(string value) { throw null; } + public static Azure.ResourceManager.Analysis.Models.AnalysisSkuTier Basic { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.AnalysisSkuTier Development { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.AnalysisSkuTier Standard { get { throw null; } } + public bool Equals(Azure.ResourceManager.Analysis.Models.AnalysisSkuTier other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Analysis.Models.AnalysisSkuTier left, Azure.ResourceManager.Analysis.Models.AnalysisSkuTier right) { throw null; } + public static implicit operator Azure.ResourceManager.Analysis.Models.AnalysisSkuTier (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Analysis.Models.AnalysisSkuTier left, Azure.ResourceManager.Analysis.Models.AnalysisSkuTier right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AnalysisState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AnalysisState(string value) { throw null; } + public static Azure.ResourceManager.Analysis.Models.AnalysisState Deleting { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.AnalysisState Failed { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.AnalysisState Paused { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.AnalysisState Pausing { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.AnalysisState Preparing { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.AnalysisState Provisioning { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.AnalysisState Resuming { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.AnalysisState Scaling { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.AnalysisState Succeeded { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.AnalysisState Suspended { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.AnalysisState Suspending { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.AnalysisState Updating { get { throw null; } } + public bool Equals(Azure.ResourceManager.Analysis.Models.AnalysisState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Analysis.Models.AnalysisState left, Azure.ResourceManager.Analysis.Models.AnalysisState right) { throw null; } + public static implicit operator Azure.ResourceManager.Analysis.Models.AnalysisState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Analysis.Models.AnalysisState left, Azure.ResourceManager.Analysis.Models.AnalysisState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AnalysisStatus : System.IEquatable + { + private readonly int _dummyPrimitive; + public AnalysisStatus(int value) { throw null; } + public static Azure.ResourceManager.Analysis.Models.AnalysisStatus Zero { get { throw null; } } + public bool Equals(Azure.ResourceManager.Analysis.Models.AnalysisStatus other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Analysis.Models.AnalysisStatus left, Azure.ResourceManager.Analysis.Models.AnalysisStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.Analysis.Models.AnalysisStatus (int value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Analysis.Models.AnalysisStatus left, Azure.ResourceManager.Analysis.Models.AnalysisStatus right) { throw null; } + public override string ToString() { throw null; } + } + public static partial class ArmAnalysisModelFactory + { + public static Azure.ResourceManager.Analysis.Models.AnalysisExistingSku AnalysisExistingSku(Azure.ResourceManager.Analysis.Models.AnalysisResourceSku sku = null, Azure.Core.ResourceType? resourceType = default(Azure.Core.ResourceType?)) { throw null; } + public static Azure.ResourceManager.Analysis.Models.AnalysisGatewayDetails AnalysisGatewayDetails(string gatewayResourceId = null, string gatewayObjectId = null, System.Uri dmtsClusterUri = null) { throw null; } + public static Azure.ResourceManager.Analysis.Models.AnalysisGatewayStatus AnalysisGatewayStatus(Azure.ResourceManager.Analysis.Models.AnalysisStatus? status = default(Azure.ResourceManager.Analysis.Models.AnalysisStatus?)) { throw null; } + public static Azure.ResourceManager.Analysis.AnalysisServerData AnalysisServerData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), System.Collections.Generic.IEnumerable asAdministratorIdentities = null, System.Uri backupBlobContainerUri = null, Azure.ResourceManager.Analysis.Models.AnalysisGatewayDetails gatewayDetails = null, Azure.ResourceManager.Analysis.Models.AnalysisIPv4FirewallSettings iPv4FirewallSettings = null, Azure.ResourceManager.Analysis.Models.AnalysisConnectionMode? queryPoolConnectionMode = default(Azure.ResourceManager.Analysis.Models.AnalysisConnectionMode?), Azure.ResourceManager.Analysis.Models.AnalysisManagedMode? managedMode = default(Azure.ResourceManager.Analysis.Models.AnalysisManagedMode?), Azure.ResourceManager.Analysis.Models.ServerMonitorMode? serverMonitorMode = default(Azure.ResourceManager.Analysis.Models.ServerMonitorMode?), Azure.ResourceManager.Analysis.Models.AnalysisState? state = default(Azure.ResourceManager.Analysis.Models.AnalysisState?), Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState? provisioningState = default(Azure.ResourceManager.Analysis.Models.AnalysisProvisioningState?), string serverFullName = null, Azure.ResourceManager.Analysis.Models.AnalysisResourceSku analysisServerSku = null, Azure.ResourceManager.Analysis.Models.AnalysisResourceSku analysisSku = null) { throw null; } + public static Azure.ResourceManager.Analysis.Models.AnalysisServerNameAvailabilityResult AnalysisServerNameAvailabilityResult(bool? isNameAvailable = default(bool?), string reason = null, string message = null) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ServerMonitorMode : System.IEquatable + { + private readonly int _dummyPrimitive; + public ServerMonitorMode(int value) { throw null; } + public static Azure.ResourceManager.Analysis.Models.ServerMonitorMode One { get { throw null; } } + public static Azure.ResourceManager.Analysis.Models.ServerMonitorMode Zero { get { throw null; } } + public bool Equals(Azure.ResourceManager.Analysis.Models.ServerMonitorMode other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Analysis.Models.ServerMonitorMode left, Azure.ResourceManager.Analysis.Models.ServerMonitorMode right) { throw null; } + public static implicit operator Azure.ResourceManager.Analysis.Models.ServerMonitorMode (int value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Analysis.Models.ServerMonitorMode left, Azure.ResourceManager.Analysis.Models.ServerMonitorMode right) { throw null; } + public override string ToString() { throw null; } + } +} diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/api/Azure.AI.AnomalyDetector.net8.0.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/api/Azure.AI.AnomalyDetector.net8.0.cs index e69de29bb2d1..498c38d6583e 100644 --- a/sdk/anomalydetector/Azure.AI.AnomalyDetector/api/Azure.AI.AnomalyDetector.net8.0.cs +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/api/Azure.AI.AnomalyDetector.net8.0.cs @@ -0,0 +1,552 @@ +namespace Azure.AI.AnomalyDetector +{ + public static partial class AIAnomalyDetectorModelFactory + { + public static Azure.AI.AnomalyDetector.AnomalyDetectionModel AnomalyDetectionModel(System.Guid modelId = default(System.Guid), System.DateTimeOffset createdTime = default(System.DateTimeOffset), System.DateTimeOffset lastUpdatedTime = default(System.DateTimeOffset), Azure.AI.AnomalyDetector.ModelInfo modelInfo = null) { throw null; } + public static Azure.AI.AnomalyDetector.AnomalyInterpretation AnomalyInterpretation(string variable = null, float? contributionScore = default(float?), Azure.AI.AnomalyDetector.CorrelationChanges correlationChanges = null) { throw null; } + public static Azure.AI.AnomalyDetector.AnomalyState AnomalyState(System.DateTimeOffset timestamp = default(System.DateTimeOffset), Azure.AI.AnomalyDetector.AnomalyValue value = null, System.Collections.Generic.IEnumerable errors = null) { throw null; } + public static Azure.AI.AnomalyDetector.AnomalyValue AnomalyValue(bool isAnomaly = false, float severity = 0f, float score = 0f, System.Collections.Generic.IEnumerable interpretation = null) { throw null; } + public static Azure.AI.AnomalyDetector.CorrelationChanges CorrelationChanges(System.Collections.Generic.IEnumerable changedVariables = null) { throw null; } + public static Azure.AI.AnomalyDetector.DiagnosticsInfo DiagnosticsInfo(Azure.AI.AnomalyDetector.ModelState modelState = null, System.Collections.Generic.IEnumerable variableStates = null) { throw null; } + public static Azure.AI.AnomalyDetector.ErrorResponse ErrorResponse(string code = null, string message = null) { throw null; } + public static Azure.AI.AnomalyDetector.ModelInfo ModelInfo(System.Uri dataSource = null, Azure.AI.AnomalyDetector.DataSchema? dataSchema = default(Azure.AI.AnomalyDetector.DataSchema?), System.DateTimeOffset startTime = default(System.DateTimeOffset), System.DateTimeOffset endTime = default(System.DateTimeOffset), string displayName = null, int? slidingWindow = default(int?), Azure.AI.AnomalyDetector.AlignPolicy alignPolicy = null, Azure.AI.AnomalyDetector.ModelStatus? status = default(Azure.AI.AnomalyDetector.ModelStatus?), System.Collections.Generic.IEnumerable errors = null, Azure.AI.AnomalyDetector.DiagnosticsInfo diagnosticsInfo = null) { throw null; } + public static Azure.AI.AnomalyDetector.ModelState ModelState(System.Collections.Generic.IEnumerable epochIds = null, System.Collections.Generic.IEnumerable trainLosses = null, System.Collections.Generic.IEnumerable validationLosses = null, System.Collections.Generic.IEnumerable latenciesInSeconds = null) { throw null; } + public static Azure.AI.AnomalyDetector.MultivariateBatchDetectionResultSummary MultivariateBatchDetectionResultSummary(Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus status = default(Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus), System.Collections.Generic.IEnumerable errors = null, System.Collections.Generic.IEnumerable variableStates = null, Azure.AI.AnomalyDetector.MultivariateBatchDetectionOptions setupInfo = null) { throw null; } + public static Azure.AI.AnomalyDetector.MultivariateDetectionResult MultivariateDetectionResult(System.Guid resultId = default(System.Guid), Azure.AI.AnomalyDetector.MultivariateBatchDetectionResultSummary summary = null, System.Collections.Generic.IEnumerable results = null) { throw null; } + public static Azure.AI.AnomalyDetector.MultivariateLastDetectionResult MultivariateLastDetectionResult(System.Collections.Generic.IEnumerable variableStates = null, System.Collections.Generic.IEnumerable results = null) { throw null; } + public static Azure.AI.AnomalyDetector.TimeSeriesPoint TimeSeriesPoint(System.DateTimeOffset? timestamp = default(System.DateTimeOffset?), float value = 0f) { throw null; } + public static Azure.AI.AnomalyDetector.UnivariateChangePointDetectionOptions UnivariateChangePointDetectionOptions(System.Collections.Generic.IEnumerable series = null, Azure.AI.AnomalyDetector.TimeGranularity granularity = default(Azure.AI.AnomalyDetector.TimeGranularity), int? customInterval = default(int?), int? period = default(int?), int? stableTrendWindow = default(int?), float? threshold = default(float?)) { throw null; } + public static Azure.AI.AnomalyDetector.UnivariateChangePointDetectionResult UnivariateChangePointDetectionResult(int? period = default(int?), System.Collections.Generic.IEnumerable isChangePoint = null, System.Collections.Generic.IEnumerable confidenceScores = null) { throw null; } + public static Azure.AI.AnomalyDetector.UnivariateLastDetectionResult UnivariateLastDetectionResult(int period = 0, int suggestedWindow = 0, float expectedValue = 0f, float upperMargin = 0f, float lowerMargin = 0f, bool isAnomaly = false, bool isNegativeAnomaly = false, bool isPositiveAnomaly = false, float? severity = default(float?)) { throw null; } + public static Azure.AI.AnomalyDetector.VariableState VariableState(string variable = null, float? filledNARatio = default(float?), int? effectiveCount = default(int?), System.DateTimeOffset? firstTimestamp = default(System.DateTimeOffset?), System.DateTimeOffset? lastTimestamp = default(System.DateTimeOffset?)) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AlignMode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AlignMode(string value) { throw null; } + public static Azure.AI.AnomalyDetector.AlignMode Inner { get { throw null; } } + public static Azure.AI.AnomalyDetector.AlignMode Outer { get { throw null; } } + public bool Equals(Azure.AI.AnomalyDetector.AlignMode other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.AI.AnomalyDetector.AlignMode left, Azure.AI.AnomalyDetector.AlignMode right) { throw null; } + public static implicit operator Azure.AI.AnomalyDetector.AlignMode (string value) { throw null; } + public static bool operator !=(Azure.AI.AnomalyDetector.AlignMode left, Azure.AI.AnomalyDetector.AlignMode right) { throw null; } + public override string ToString() { throw null; } + } + public partial class AlignPolicy : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public AlignPolicy() { } + public Azure.AI.AnomalyDetector.AlignMode? AlignMode { get { throw null; } set { } } + public Azure.AI.AnomalyDetector.FillNAMethod? FillNAMethod { get { throw null; } set { } } + public float? PaddingValue { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.AlignPolicy System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.AlignPolicy System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AnomalyDetectionModel : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AnomalyDetectionModel() { } + public System.DateTimeOffset CreatedTime { get { throw null; } } + public System.DateTimeOffset LastUpdatedTime { get { throw null; } } + public System.Guid ModelId { get { throw null; } } + public Azure.AI.AnomalyDetector.ModelInfo ModelInfo { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.AnomalyDetectionModel System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.AnomalyDetectionModel System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AnomalyDetectorClient + { + protected AnomalyDetectorClient() { } + public AnomalyDetectorClient(System.Uri endpoint, Azure.AzureKeyCredential credential) { } + public AnomalyDetectorClient(System.Uri endpoint, Azure.AzureKeyCredential credential, Azure.AI.AnomalyDetector.AnomalyDetectorClientOptions options) { } + public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } + public virtual Azure.AI.AnomalyDetector.Multivariate GetMultivariateClient() { throw null; } + public virtual Azure.AI.AnomalyDetector.Univariate GetUnivariateClient() { throw null; } + } + public partial class AnomalyDetectorClientOptions : Azure.Core.ClientOptions + { + public AnomalyDetectorClientOptions(Azure.AI.AnomalyDetector.AnomalyDetectorClientOptions.ServiceVersion version = Azure.AI.AnomalyDetector.AnomalyDetectorClientOptions.ServiceVersion.V1_1) { } + public enum ServiceVersion + { + V1_1 = 1, + } + } + public partial class AnomalyInterpretation : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AnomalyInterpretation() { } + public float? ContributionScore { get { throw null; } } + public Azure.AI.AnomalyDetector.CorrelationChanges CorrelationChanges { get { throw null; } } + public string Variable { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.AnomalyInterpretation System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.AnomalyInterpretation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AnomalyState : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AnomalyState() { } + public System.Collections.Generic.IReadOnlyList Errors { get { throw null; } } + public System.DateTimeOffset Timestamp { get { throw null; } } + public Azure.AI.AnomalyDetector.AnomalyValue Value { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.AnomalyState System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.AnomalyState System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AnomalyValue : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal AnomalyValue() { } + public System.Collections.Generic.IReadOnlyList Interpretation { get { throw null; } } + public bool IsAnomaly { get { throw null; } } + public float Score { get { throw null; } } + public float Severity { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.AnomalyValue System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.AnomalyValue System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class AzureAIAnomalyDetectorContext : System.ClientModel.Primitives.ModelReaderWriterContext + { + internal AzureAIAnomalyDetectorContext() { } + public static Azure.AI.AnomalyDetector.AzureAIAnomalyDetectorContext Default { get { throw null; } } + protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; } + } + public partial class CorrelationChanges : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal CorrelationChanges() { } + public System.Collections.Generic.IReadOnlyList ChangedVariables { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.CorrelationChanges System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.CorrelationChanges System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct DataSchema : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public DataSchema(string value) { throw null; } + public static Azure.AI.AnomalyDetector.DataSchema MultiTable { get { throw null; } } + public static Azure.AI.AnomalyDetector.DataSchema OneTable { get { throw null; } } + public bool Equals(Azure.AI.AnomalyDetector.DataSchema other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.AI.AnomalyDetector.DataSchema left, Azure.AI.AnomalyDetector.DataSchema right) { throw null; } + public static implicit operator Azure.AI.AnomalyDetector.DataSchema (string value) { throw null; } + public static bool operator !=(Azure.AI.AnomalyDetector.DataSchema left, Azure.AI.AnomalyDetector.DataSchema right) { throw null; } + public override string ToString() { throw null; } + } + public partial class DiagnosticsInfo : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal DiagnosticsInfo() { } + public Azure.AI.AnomalyDetector.ModelState ModelState { get { throw null; } } + public System.Collections.Generic.IReadOnlyList VariableStates { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.DiagnosticsInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.DiagnosticsInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class ErrorResponse : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ErrorResponse() { } + public string Code { get { throw null; } } + public string Message { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.ErrorResponse System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.ErrorResponse System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct FillNAMethod : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FillNAMethod(string value) { throw null; } + public static Azure.AI.AnomalyDetector.FillNAMethod Fixed { get { throw null; } } + public static Azure.AI.AnomalyDetector.FillNAMethod Linear { get { throw null; } } + public static Azure.AI.AnomalyDetector.FillNAMethod Previous { get { throw null; } } + public static Azure.AI.AnomalyDetector.FillNAMethod Subsequent { get { throw null; } } + public static Azure.AI.AnomalyDetector.FillNAMethod Zero { get { throw null; } } + public bool Equals(Azure.AI.AnomalyDetector.FillNAMethod other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.AI.AnomalyDetector.FillNAMethod left, Azure.AI.AnomalyDetector.FillNAMethod right) { throw null; } + public static implicit operator Azure.AI.AnomalyDetector.FillNAMethod (string value) { throw null; } + public static bool operator !=(Azure.AI.AnomalyDetector.FillNAMethod left, Azure.AI.AnomalyDetector.FillNAMethod right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ImputeMode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ImputeMode(string value) { throw null; } + public static Azure.AI.AnomalyDetector.ImputeMode Auto { get { throw null; } } + public static Azure.AI.AnomalyDetector.ImputeMode Fixed { get { throw null; } } + public static Azure.AI.AnomalyDetector.ImputeMode Linear { get { throw null; } } + public static Azure.AI.AnomalyDetector.ImputeMode NotFill { get { throw null; } } + public static Azure.AI.AnomalyDetector.ImputeMode Previous { get { throw null; } } + public static Azure.AI.AnomalyDetector.ImputeMode Zero { get { throw null; } } + public bool Equals(Azure.AI.AnomalyDetector.ImputeMode other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.AI.AnomalyDetector.ImputeMode left, Azure.AI.AnomalyDetector.ImputeMode right) { throw null; } + public static implicit operator Azure.AI.AnomalyDetector.ImputeMode (string value) { throw null; } + public static bool operator !=(Azure.AI.AnomalyDetector.ImputeMode left, Azure.AI.AnomalyDetector.ImputeMode right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ModelInfo : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ModelInfo(System.Uri dataSource, System.DateTimeOffset startTime, System.DateTimeOffset endTime) { } + public Azure.AI.AnomalyDetector.AlignPolicy AlignPolicy { get { throw null; } set { } } + public Azure.AI.AnomalyDetector.DataSchema? DataSchema { get { throw null; } set { } } + public System.Uri DataSource { get { throw null; } set { } } + public Azure.AI.AnomalyDetector.DiagnosticsInfo DiagnosticsInfo { get { throw null; } } + public string DisplayName { get { throw null; } set { } } + public System.DateTimeOffset EndTime { get { throw null; } set { } } + public System.Collections.Generic.IReadOnlyList Errors { get { throw null; } } + public int? SlidingWindow { get { throw null; } set { } } + public System.DateTimeOffset StartTime { get { throw null; } set { } } + public Azure.AI.AnomalyDetector.ModelStatus? Status { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.ModelInfo System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.ModelInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class ModelState : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal ModelState() { } + public System.Collections.Generic.IReadOnlyList EpochIds { get { throw null; } } + public System.Collections.Generic.IReadOnlyList LatenciesInSeconds { get { throw null; } } + public System.Collections.Generic.IReadOnlyList TrainLosses { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ValidationLosses { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.ModelState System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.ModelState System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ModelStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ModelStatus(string value) { throw null; } + public static Azure.AI.AnomalyDetector.ModelStatus Created { get { throw null; } } + public static Azure.AI.AnomalyDetector.ModelStatus Failed { get { throw null; } } + public static Azure.AI.AnomalyDetector.ModelStatus Ready { get { throw null; } } + public static Azure.AI.AnomalyDetector.ModelStatus Running { get { throw null; } } + public bool Equals(Azure.AI.AnomalyDetector.ModelStatus other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.AI.AnomalyDetector.ModelStatus left, Azure.AI.AnomalyDetector.ModelStatus right) { throw null; } + public static implicit operator Azure.AI.AnomalyDetector.ModelStatus (string value) { throw null; } + public static bool operator !=(Azure.AI.AnomalyDetector.ModelStatus left, Azure.AI.AnomalyDetector.ModelStatus right) { throw null; } + public override string ToString() { throw null; } + } + public partial class Multivariate + { + protected Multivariate() { } + public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } + public virtual Azure.Response DeleteMultivariateModel(string modelId, Azure.RequestContext context = null) { throw null; } + public virtual System.Threading.Tasks.Task DeleteMultivariateModelAsync(string modelId, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response DetectMultivariateBatchAnomaly(string modelId, Azure.AI.AnomalyDetector.MultivariateBatchDetectionOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DetectMultivariateBatchAnomaly(string modelId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + public virtual System.Threading.Tasks.Task> DetectMultivariateBatchAnomalyAsync(string modelId, Azure.AI.AnomalyDetector.MultivariateBatchDetectionOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DetectMultivariateBatchAnomalyAsync(string modelId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response DetectMultivariateLastAnomaly(string modelId, Azure.AI.AnomalyDetector.MultivariateLastDetectionOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DetectMultivariateLastAnomaly(string modelId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + public virtual System.Threading.Tasks.Task> DetectMultivariateLastAnomalyAsync(string modelId, Azure.AI.AnomalyDetector.MultivariateLastDetectionOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DetectMultivariateLastAnomalyAsync(string modelId, Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response GetMultivariateBatchDetectionResult(System.Guid resultId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetMultivariateBatchDetectionResult(System.Guid resultId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task GetMultivariateBatchDetectionResultAsync(System.Guid resultId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> GetMultivariateBatchDetectionResultAsync(System.Guid resultId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetMultivariateModel(string modelId, Azure.RequestContext context) { throw null; } + public virtual Azure.Response GetMultivariateModel(string modelId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task GetMultivariateModelAsync(string modelId, Azure.RequestContext context) { throw null; } + public virtual System.Threading.Tasks.Task> GetMultivariateModelAsync(string modelId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetMultivariateModels(int? skip, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.Pageable GetMultivariateModels(int? skip = default(int?), int? maxCount = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetMultivariateModelsAsync(int? skip, int? maxCount, Azure.RequestContext context) { throw null; } + public virtual Azure.AsyncPageable GetMultivariateModelsAsync(int? skip = default(int?), int? maxCount = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response TrainMultivariateModel(Azure.AI.AnomalyDetector.ModelInfo modelInfo, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response TrainMultivariateModel(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + public virtual System.Threading.Tasks.Task> TrainMultivariateModelAsync(Azure.AI.AnomalyDetector.ModelInfo modelInfo, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task TrainMultivariateModelAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + } + public partial class MultivariateBatchDetectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public MultivariateBatchDetectionOptions(System.Uri dataSource, System.DateTimeOffset startTime, System.DateTimeOffset endTime) { } + public System.Uri DataSource { get { throw null; } set { } } + public System.DateTimeOffset EndTime { get { throw null; } set { } } + public System.DateTimeOffset StartTime { get { throw null; } set { } } + public int? TopContributorCount { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.MultivariateBatchDetectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.MultivariateBatchDetectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class MultivariateBatchDetectionResultSummary : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal MultivariateBatchDetectionResultSummary() { } + public System.Collections.Generic.IReadOnlyList Errors { get { throw null; } } + public Azure.AI.AnomalyDetector.MultivariateBatchDetectionOptions SetupInfo { get { throw null; } } + public Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus Status { get { throw null; } } + public System.Collections.Generic.IReadOnlyList VariableStates { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.MultivariateBatchDetectionResultSummary System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.MultivariateBatchDetectionResultSummary System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct MultivariateBatchDetectionStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public MultivariateBatchDetectionStatus(string value) { throw null; } + public static Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus Created { get { throw null; } } + public static Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus Failed { get { throw null; } } + public static Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus Ready { get { throw null; } } + public static Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus Running { get { throw null; } } + public bool Equals(Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus left, Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus right) { throw null; } + public static implicit operator Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus (string value) { throw null; } + public static bool operator !=(Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus left, Azure.AI.AnomalyDetector.MultivariateBatchDetectionStatus right) { throw null; } + public override string ToString() { throw null; } + } + public partial class MultivariateDetectionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal MultivariateDetectionResult() { } + public System.Guid ResultId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Results { get { throw null; } } + public Azure.AI.AnomalyDetector.MultivariateBatchDetectionResultSummary Summary { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.MultivariateDetectionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.MultivariateDetectionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class MultivariateLastDetectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public MultivariateLastDetectionOptions(System.Collections.Generic.IEnumerable variables) { } + public int? TopContributorCount { get { throw null; } set { } } + public System.Collections.Generic.IList Variables { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.MultivariateLastDetectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.MultivariateLastDetectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class MultivariateLastDetectionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal MultivariateLastDetectionResult() { } + public System.Collections.Generic.IReadOnlyList Results { get { throw null; } } + public System.Collections.Generic.IReadOnlyList VariableStates { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.MultivariateLastDetectionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.MultivariateLastDetectionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct TimeGranularity : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public TimeGranularity(string value) { throw null; } + public static Azure.AI.AnomalyDetector.TimeGranularity Daily { get { throw null; } } + public static Azure.AI.AnomalyDetector.TimeGranularity Hourly { get { throw null; } } + public static Azure.AI.AnomalyDetector.TimeGranularity Microsecond { get { throw null; } } + public static Azure.AI.AnomalyDetector.TimeGranularity Monthly { get { throw null; } } + public static Azure.AI.AnomalyDetector.TimeGranularity None { get { throw null; } } + public static Azure.AI.AnomalyDetector.TimeGranularity PerMinute { get { throw null; } } + public static Azure.AI.AnomalyDetector.TimeGranularity PerSecond { get { throw null; } } + public static Azure.AI.AnomalyDetector.TimeGranularity Weekly { get { throw null; } } + public static Azure.AI.AnomalyDetector.TimeGranularity Yearly { get { throw null; } } + public bool Equals(Azure.AI.AnomalyDetector.TimeGranularity other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.AI.AnomalyDetector.TimeGranularity left, Azure.AI.AnomalyDetector.TimeGranularity right) { throw null; } + public static implicit operator Azure.AI.AnomalyDetector.TimeGranularity (string value) { throw null; } + public static bool operator !=(Azure.AI.AnomalyDetector.TimeGranularity left, Azure.AI.AnomalyDetector.TimeGranularity right) { throw null; } + public override string ToString() { throw null; } + } + public partial class TimeSeriesPoint : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public TimeSeriesPoint(float value) { } + public System.DateTimeOffset? Timestamp { get { throw null; } set { } } + public float Value { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.TimeSeriesPoint System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.TimeSeriesPoint System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class Univariate + { + protected Univariate() { } + public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } + public virtual Azure.Response DetectUnivariateChangePoint(Azure.AI.AnomalyDetector.UnivariateChangePointDetectionOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DetectUnivariateChangePoint(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + public virtual System.Threading.Tasks.Task> DetectUnivariateChangePointAsync(Azure.AI.AnomalyDetector.UnivariateChangePointDetectionOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DetectUnivariateChangePointAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response DetectUnivariateEntireSeries(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + public virtual System.Threading.Tasks.Task DetectUnivariateEntireSeriesAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + public virtual Azure.Response DetectUnivariateLastPoint(Azure.AI.AnomalyDetector.UnivariateDetectionOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DetectUnivariateLastPoint(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + public virtual System.Threading.Tasks.Task> DetectUnivariateLastPointAsync(Azure.AI.AnomalyDetector.UnivariateDetectionOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DetectUnivariateLastPointAsync(Azure.Core.RequestContent content, Azure.RequestContext context = null) { throw null; } + } + public partial class UnivariateChangePointDetectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public UnivariateChangePointDetectionOptions(System.Collections.Generic.IEnumerable series, Azure.AI.AnomalyDetector.TimeGranularity granularity) { } + public int? CustomInterval { get { throw null; } set { } } + public Azure.AI.AnomalyDetector.TimeGranularity Granularity { get { throw null; } } + public int? Period { get { throw null; } set { } } + public System.Collections.Generic.IList Series { get { throw null; } } + public int? StableTrendWindow { get { throw null; } set { } } + public float? Threshold { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.UnivariateChangePointDetectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.UnivariateChangePointDetectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class UnivariateChangePointDetectionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal UnivariateChangePointDetectionResult() { } + public System.Collections.Generic.IReadOnlyList ConfidenceScores { get { throw null; } } + public System.Collections.Generic.IReadOnlyList IsChangePoint { get { throw null; } } + public int? Period { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.UnivariateChangePointDetectionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.UnivariateChangePointDetectionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class UnivariateDetectionOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public UnivariateDetectionOptions(System.Collections.Generic.IEnumerable series) { } + public int? CustomInterval { get { throw null; } set { } } + public Azure.AI.AnomalyDetector.TimeGranularity? Granularity { get { throw null; } set { } } + public float? ImputeFixedValue { get { throw null; } set { } } + public Azure.AI.AnomalyDetector.ImputeMode? ImputeMode { get { throw null; } set { } } + public float? MaxAnomalyRatio { get { throw null; } set { } } + public int? Period { get { throw null; } set { } } + public int? Sensitivity { get { throw null; } set { } } + public System.Collections.Generic.IList Series { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.UnivariateDetectionOptions System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.UnivariateDetectionOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class UnivariateLastDetectionResult : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal UnivariateLastDetectionResult() { } + public float ExpectedValue { get { throw null; } } + public bool IsAnomaly { get { throw null; } } + public bool IsNegativeAnomaly { get { throw null; } } + public bool IsPositiveAnomaly { get { throw null; } } + public float LowerMargin { get { throw null; } } + public int Period { get { throw null; } } + public float? Severity { get { throw null; } } + public int SuggestedWindow { get { throw null; } } + public float UpperMargin { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.UnivariateLastDetectionResult System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.UnivariateLastDetectionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class VariableState : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal VariableState() { } + public int? EffectiveCount { get { throw null; } } + public float? FilledNARatio { get { throw null; } } + public System.DateTimeOffset? FirstTimestamp { get { throw null; } } + public System.DateTimeOffset? LastTimestamp { get { throw null; } } + public string Variable { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.VariableState System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.VariableState System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class VariableValues : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public VariableValues(string variable, System.Collections.Generic.IEnumerable timestamps, System.Collections.Generic.IEnumerable values) { } + public System.Collections.Generic.IList Timestamps { get { throw null; } } + public System.Collections.Generic.IList Values { get { throw null; } } + public string Variable { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.VariableValues System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.AI.AnomalyDetector.VariableValues System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } +} +namespace Microsoft.Extensions.Azure +{ + public static partial class AIAnomalyDetectorClientBuilderExtensions + { + public static Azure.Core.Extensions.IAzureClientBuilder AddAnomalyDetectorClient(this TBuilder builder, System.Uri endpoint, Azure.AzureKeyCredential credential) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Requires unreferenced code until we opt into EnableConfigurationBindingGenerator.")] + public static Azure.Core.Extensions.IAzureClientBuilder AddAnomalyDetectorClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } + } +} diff --git a/sdk/appconfiguration/Azure.Data.AppConfiguration/api/Azure.Data.AppConfiguration.net8.0.cs b/sdk/appconfiguration/Azure.Data.AppConfiguration/api/Azure.Data.AppConfiguration.net8.0.cs new file mode 100644 index 000000000000..900ca526bcab --- /dev/null +++ b/sdk/appconfiguration/Azure.Data.AppConfiguration/api/Azure.Data.AppConfiguration.net8.0.cs @@ -0,0 +1,382 @@ +namespace Azure.Data.AppConfiguration +{ + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AppConfigurationAudience : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AppConfigurationAudience(string value) { throw null; } + public static Azure.Data.AppConfiguration.AppConfigurationAudience AzureChina { get { throw null; } } + public static Azure.Data.AppConfiguration.AppConfigurationAudience AzureGovernment { get { throw null; } } + public static Azure.Data.AppConfiguration.AppConfigurationAudience AzurePublicCloud { get { throw null; } } + public bool Equals(Azure.Data.AppConfiguration.AppConfigurationAudience other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Data.AppConfiguration.AppConfigurationAudience left, Azure.Data.AppConfiguration.AppConfigurationAudience right) { throw null; } + public static implicit operator Azure.Data.AppConfiguration.AppConfigurationAudience (string value) { throw null; } + public static bool operator !=(Azure.Data.AppConfiguration.AppConfigurationAudience left, Azure.Data.AppConfiguration.AppConfigurationAudience right) { throw null; } + public override string ToString() { throw null; } + } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public partial class AzureDataAppConfigurationContext : System.ClientModel.Primitives.ModelReaderWriterContext + { + internal AzureDataAppConfigurationContext() { } + public static Azure.Data.AppConfiguration.AzureDataAppConfigurationContext Default { get { throw null; } } + protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) { throw null; } + } + public partial class ConfigurationClient + { + protected ConfigurationClient() { } + public ConfigurationClient(string connectionString) { } + public ConfigurationClient(string connectionString, Azure.Data.AppConfiguration.ConfigurationClientOptions options) { } + public ConfigurationClient(System.Uri endpoint, Azure.Core.TokenCredential credential) { } + public ConfigurationClient(System.Uri endpoint, Azure.Core.TokenCredential credential, Azure.Data.AppConfiguration.ConfigurationClientOptions options) { } + public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } + public virtual Azure.Response AddConfigurationSetting(Azure.Data.AppConfiguration.ConfigurationSetting setting, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response AddConfigurationSetting(string key, string value, string label = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddConfigurationSettingAsync(Azure.Data.AppConfiguration.ConfigurationSetting setting, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddConfigurationSettingAsync(string key, string value, string label = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response ArchiveSnapshot(string snapshotName, Azure.MatchConditions matchConditions, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response ArchiveSnapshot(string snapshotName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ArchiveSnapshotAsync(string snapshotName, Azure.MatchConditions matchConditions, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ArchiveSnapshotAsync(string snapshotName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Data.AppConfiguration.CreateSnapshotOperation CreateSnapshot(Azure.WaitUntil wait, string snapshotName, Azure.Data.AppConfiguration.ConfigurationSnapshot snapshot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task CreateSnapshotAsync(Azure.WaitUntil wait, string snapshotName, Azure.Data.AppConfiguration.ConfigurationSnapshot snapshot, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteConfigurationSetting(Azure.Data.AppConfiguration.ConfigurationSetting setting, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteConfigurationSetting(string key, string label = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteConfigurationSettingAsync(Azure.Data.AppConfiguration.ConfigurationSetting setting, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteConfigurationSettingAsync(string key, string label = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + public virtual Azure.Response GetConfigurationSetting(Azure.Data.AppConfiguration.ConfigurationSetting setting, bool onlyIfChanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetConfigurationSetting(Azure.Data.AppConfiguration.ConfigurationSetting setting, System.DateTimeOffset acceptDateTime, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetConfigurationSetting(string key, string label = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetConfigurationSettingAsync(Azure.Data.AppConfiguration.ConfigurationSetting setting, bool onlyIfChanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetConfigurationSettingAsync(Azure.Data.AppConfiguration.ConfigurationSetting setting, System.DateTimeOffset acceptDateTime, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetConfigurationSettingAsync(string key, string label = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetConfigurationSettings(Azure.Data.AppConfiguration.SettingSelector selector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetConfigurationSettingsAsync(Azure.Data.AppConfiguration.SettingSelector selector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetConfigurationSettingsForSnapshot(string snapshotName, Azure.Data.AppConfiguration.SettingFields fields, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetConfigurationSettingsForSnapshot(string snapshotName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetConfigurationSettingsForSnapshotAsync(string snapshotName, Azure.Data.AppConfiguration.SettingFields fields, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetConfigurationSettingsForSnapshotAsync(string snapshotName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public virtual Azure.Pageable GetLabels(Azure.Data.AppConfiguration.SettingLabelSelector selector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetLabelsAsync(Azure.Data.AppConfiguration.SettingLabelSelector selector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetRevisions(Azure.Data.AppConfiguration.SettingSelector selector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetRevisions(string keyFilter, string labelFilter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetRevisionsAsync(Azure.Data.AppConfiguration.SettingSelector selector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetRevisionsAsync(string keyFilter, string labelFilter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetSnapshot(string snapshotName, System.Collections.Generic.IEnumerable fields = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetSnapshotAsync(string snapshotName, System.Collections.Generic.IEnumerable fields = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetSnapshots(Azure.Data.AppConfiguration.SnapshotSelector selector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetSnapshotsAsync(Azure.Data.AppConfiguration.SnapshotSelector selector, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RecoverSnapshot(string snapshotName, Azure.MatchConditions matchConditions, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RecoverSnapshot(string snapshotName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RecoverSnapshotAsync(string snapshotName, Azure.MatchConditions matchConditions, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RecoverSnapshotAsync(string snapshotName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetConfigurationSetting(Azure.Data.AppConfiguration.ConfigurationSetting setting, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetConfigurationSetting(string key, string value, string label = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetConfigurationSettingAsync(Azure.Data.AppConfiguration.ConfigurationSetting setting, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetConfigurationSettingAsync(string key, string value, string label = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetReadOnly(Azure.Data.AppConfiguration.ConfigurationSetting setting, bool isReadOnly, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetReadOnly(string key, bool isReadOnly, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetReadOnly(string key, string label, bool isReadOnly, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetReadOnlyAsync(Azure.Data.AppConfiguration.ConfigurationSetting setting, bool isReadOnly, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetReadOnlyAsync(string key, bool isReadOnly, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetReadOnlyAsync(string key, string label, bool isReadOnly, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override string ToString() { throw null; } + public virtual void UpdateSyncToken(string token) { } + } + public static partial class ConfigurationClientExtensions + { + public static System.Collections.Generic.IAsyncEnumerable> AsPages(this Azure.AsyncPageable pageable, System.Collections.Generic.IEnumerable conditions, string continuationToken = null, int? pageSizeHint = default(int?)) { throw null; } + public static System.Collections.Generic.IEnumerable> AsPages(this Azure.Pageable pageable, System.Collections.Generic.IEnumerable conditions, string continuationToken = null, int? pageSizeHint = default(int?)) { throw null; } + } + public partial class ConfigurationClientOptions : Azure.Core.ClientOptions + { + public ConfigurationClientOptions(Azure.Data.AppConfiguration.ConfigurationClientOptions.ServiceVersion version = Azure.Data.AppConfiguration.ConfigurationClientOptions.ServiceVersion.V2023_11_01) { } + public Azure.Data.AppConfiguration.AppConfigurationAudience? Audience { get { throw null; } set { } } + public enum ServiceVersion + { + V1_0 = 0, + V2023_10_01 = 1, + V2023_11_01 = 2, + } + } + public static partial class ConfigurationModelFactory + { + public static Azure.Data.AppConfiguration.ConfigurationSetting ConfigurationSetting(string key, string value, string label = null, string contentType = null, Azure.ETag eTag = default(Azure.ETag), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), bool? isReadOnly = default(bool?)) { throw null; } + public static Azure.Data.AppConfiguration.ConfigurationSettingsFilter ConfigurationSettingsFilter(string key = null, string label = null, System.Collections.Generic.IEnumerable tags = null) { throw null; } + public static Azure.Data.AppConfiguration.ConfigurationSnapshot ConfigurationSnapshot(string name = null, Azure.Data.AppConfiguration.ConfigurationSnapshotStatus? status = default(Azure.Data.AppConfiguration.ConfigurationSnapshotStatus?), System.Collections.Generic.IEnumerable filters = null, Azure.Data.AppConfiguration.SnapshotComposition? snapshotComposition = default(Azure.Data.AppConfiguration.SnapshotComposition?), System.DateTimeOffset? createdOn = default(System.DateTimeOffset?), System.DateTimeOffset? expiresOn = default(System.DateTimeOffset?), System.TimeSpan? retentionPeriod = default(System.TimeSpan?), long? sizeInBytes = default(long?), long? itemCount = default(long?), System.Collections.Generic.IDictionary tags = null, Azure.ETag eTag = default(Azure.ETag)) { throw null; } + public static Azure.Data.AppConfiguration.FeatureFlagConfigurationSetting FeatureFlagConfigurationSetting(string featureId, bool isEnabled, string label = null, Azure.ETag eTag = default(Azure.ETag), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), bool? isReadOnly = default(bool?)) { throw null; } + public static Azure.Data.AppConfiguration.SecretReferenceConfigurationSetting SecretReferenceConfigurationSetting(string key, System.Uri secretId, string label = null, Azure.ETag eTag = default(Azure.ETag), System.DateTimeOffset? lastModified = default(System.DateTimeOffset?), bool? isReadOnly = default(bool?)) { throw null; } + public static Azure.Data.AppConfiguration.SettingLabel SettingLabel(string name = null) { throw null; } + } + public partial class ConfigurationSetting : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ConfigurationSetting(string key, string value, string label = null) { } + public ConfigurationSetting(string key, string value, string label, Azure.ETag etag) { } + public string ContentType { get { throw null; } set { } } + public Azure.ETag ETag { get { throw null; } } + public bool? IsReadOnly { get { throw null; } } + public string Key { get { throw null; } set { } } + public string Label { get { throw null; } set { } } + public System.DateTimeOffset? LastModified { get { throw null; } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + public string Value { get { throw null; } set { } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + protected virtual Azure.Data.AppConfiguration.ConfigurationSetting JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Data.AppConfiguration.ConfigurationSetting (Azure.Response result) { throw null; } + public static implicit operator Azure.Core.RequestContent (Azure.Data.AppConfiguration.ConfigurationSetting configurationSetting) { throw null; } + protected virtual Azure.Data.AppConfiguration.ConfigurationSetting PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Data.AppConfiguration.ConfigurationSetting System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Data.AppConfiguration.ConfigurationSetting System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override string ToString() { throw null; } + } + public partial class ConfigurationSettingsFilter : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ConfigurationSettingsFilter(string key) { } + public string Key { get { throw null; } set { } } + public string Label { get { throw null; } set { } } + public System.Collections.Generic.IList Tags { get { throw null; } } + protected virtual Azure.Data.AppConfiguration.ConfigurationSettingsFilter JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Data.AppConfiguration.ConfigurationSettingsFilter PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Data.AppConfiguration.ConfigurationSettingsFilter System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Data.AppConfiguration.ConfigurationSettingsFilter System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class ConfigurationSnapshot : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public ConfigurationSnapshot(System.Collections.Generic.IEnumerable filters) { } + public System.DateTimeOffset? CreatedOn { get { throw null; } } + public Azure.ETag ETag { get { throw null; } } + public System.DateTimeOffset? ExpiresOn { get { throw null; } } + public System.Collections.Generic.IList Filters { get { throw null; } } + public long? ItemCount { get { throw null; } } + public string Name { get { throw null; } } + public System.TimeSpan? RetentionPeriod { get { throw null; } set { } } + public long? SizeInBytes { get { throw null; } } + public Azure.Data.AppConfiguration.SnapshotComposition? SnapshotComposition { get { throw null; } set { } } + public Azure.Data.AppConfiguration.ConfigurationSnapshotStatus? Status { get { throw null; } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + protected virtual Azure.Data.AppConfiguration.ConfigurationSnapshot JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + public static explicit operator Azure.Data.AppConfiguration.ConfigurationSnapshot (Azure.Response result) { throw null; } + public static implicit operator Azure.Core.RequestContent (Azure.Data.AppConfiguration.ConfigurationSnapshot configurationSnapshot) { throw null; } + protected virtual Azure.Data.AppConfiguration.ConfigurationSnapshot PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Data.AppConfiguration.ConfigurationSnapshot System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Data.AppConfiguration.ConfigurationSnapshot System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ConfigurationSnapshotStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ConfigurationSnapshotStatus(string value) { throw null; } + public static Azure.Data.AppConfiguration.ConfigurationSnapshotStatus Archived { get { throw null; } } + public static Azure.Data.AppConfiguration.ConfigurationSnapshotStatus Failed { get { throw null; } } + public static Azure.Data.AppConfiguration.ConfigurationSnapshotStatus Provisioning { get { throw null; } } + public static Azure.Data.AppConfiguration.ConfigurationSnapshotStatus Ready { get { throw null; } } + public bool Equals(Azure.Data.AppConfiguration.ConfigurationSnapshotStatus other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Data.AppConfiguration.ConfigurationSnapshotStatus left, Azure.Data.AppConfiguration.ConfigurationSnapshotStatus right) { throw null; } + public static implicit operator Azure.Data.AppConfiguration.ConfigurationSnapshotStatus (string value) { throw null; } + public static implicit operator Azure.Data.AppConfiguration.ConfigurationSnapshotStatus? (string value) { throw null; } + public static bool operator !=(Azure.Data.AppConfiguration.ConfigurationSnapshotStatus left, Azure.Data.AppConfiguration.ConfigurationSnapshotStatus right) { throw null; } + public override string ToString() { throw null; } + } + public partial class CreateSnapshotOperation : Azure.Operation + { + protected CreateSnapshotOperation() { } + public override bool HasCompleted { get { throw null; } } + public override bool HasValue { get { throw null; } } + public override string Id { get { throw null; } } + public override Azure.Data.AppConfiguration.ConfigurationSnapshot Value { get { throw null; } } + public override Azure.Response GetRawResponse() { throw null; } + public override Azure.Response UpdateStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.ValueTask UpdateStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.ValueTask> WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.ValueTask> WaitForCompletionAsync(System.TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken) { throw null; } + } + public partial class FeatureFlagConfigurationSetting : Azure.Data.AppConfiguration.ConfigurationSetting + { + public FeatureFlagConfigurationSetting(string featureId, bool isEnabled, string label = null) : base (default(string), default(string), default(string)) { } + public FeatureFlagConfigurationSetting(string featureId, bool isEnabled, string label, Azure.ETag etag) : base (default(string), default(string), default(string)) { } + public System.Collections.Generic.IList ClientFilters { get { throw null; } } + public string Description { get { throw null; } set { } } + public string DisplayName { get { throw null; } set { } } + public string FeatureId { get { throw null; } set { } } + public bool IsEnabled { get { throw null; } set { } } + public static string KeyPrefix { get { throw null; } } + } + public partial class FeatureFlagFilter + { + public FeatureFlagFilter(string name) { } + public FeatureFlagFilter(string name, System.Collections.Generic.IDictionary parameters) { } + public string Name { get { throw null; } } + public System.Collections.Generic.IDictionary Parameters { get { throw null; } } + } + public partial class SecretReferenceConfigurationSetting : Azure.Data.AppConfiguration.ConfigurationSetting + { + public SecretReferenceConfigurationSetting(string key, System.Uri secretId, string label = null) : base (default(string), default(string), default(string)) { } + public SecretReferenceConfigurationSetting(string key, System.Uri secretId, string label, Azure.ETag etag) : base (default(string), default(string), default(string)) { } + public System.Uri SecretId { get { throw null; } set { } } + } + [System.FlagsAttribute] + public enum SettingFields : uint + { + Key = (uint)1, + Label = (uint)2, + Value = (uint)4, + ContentType = (uint)8, + ETag = (uint)16, + LastModified = (uint)32, + IsReadOnly = (uint)64, + Tags = (uint)128, + All = (uint)4294967295, + } + public partial class SettingLabel : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + internal SettingLabel() { } + public string Name { get { throw null; } } + protected virtual Azure.Data.AppConfiguration.SettingLabel JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + protected virtual Azure.Data.AppConfiguration.SettingLabel PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.Data.AppConfiguration.SettingLabel System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.Data.AppConfiguration.SettingLabel System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct SettingLabelFields : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public SettingLabelFields(string value) { throw null; } + public static Azure.Data.AppConfiguration.SettingLabelFields Name { get { throw null; } } + public bool Equals(Azure.Data.AppConfiguration.SettingLabelFields other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Data.AppConfiguration.SettingLabelFields left, Azure.Data.AppConfiguration.SettingLabelFields right) { throw null; } + public static implicit operator Azure.Data.AppConfiguration.SettingLabelFields (string value) { throw null; } + public static implicit operator Azure.Data.AppConfiguration.SettingLabelFields? (string value) { throw null; } + public static bool operator !=(Azure.Data.AppConfiguration.SettingLabelFields left, Azure.Data.AppConfiguration.SettingLabelFields right) { throw null; } + public override string ToString() { throw null; } + } + public partial class SettingLabelSelector + { + public SettingLabelSelector() { } + public System.DateTimeOffset? AcceptDateTime { get { throw null; } set { } } + public System.Collections.Generic.IList Fields { get { throw null; } } + public string NameFilter { get { throw null; } set { } } + } + public partial class SettingSelector + { + public static readonly string Any; + public SettingSelector() { } + public System.DateTimeOffset? AcceptDateTime { get { throw null; } set { } } + public Azure.Data.AppConfiguration.SettingFields Fields { get { throw null; } set { } } + public string KeyFilter { get { throw null; } set { } } + public string LabelFilter { get { throw null; } set { } } + public System.Collections.Generic.IList TagsFilter { get { throw null; } } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct SnapshotComposition : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public SnapshotComposition(string value) { throw null; } + public static Azure.Data.AppConfiguration.SnapshotComposition Key { get { throw null; } } + public static Azure.Data.AppConfiguration.SnapshotComposition KeyLabel { get { throw null; } } + public bool Equals(Azure.Data.AppConfiguration.SnapshotComposition other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Data.AppConfiguration.SnapshotComposition left, Azure.Data.AppConfiguration.SnapshotComposition right) { throw null; } + public static implicit operator Azure.Data.AppConfiguration.SnapshotComposition (string value) { throw null; } + public static implicit operator Azure.Data.AppConfiguration.SnapshotComposition? (string value) { throw null; } + public static bool operator !=(Azure.Data.AppConfiguration.SnapshotComposition left, Azure.Data.AppConfiguration.SnapshotComposition right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct SnapshotFields : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public SnapshotFields(string value) { throw null; } + public static Azure.Data.AppConfiguration.SnapshotFields CreatedOn { get { throw null; } } + public static Azure.Data.AppConfiguration.SnapshotFields ETag { get { throw null; } } + public static Azure.Data.AppConfiguration.SnapshotFields ExpiresOn { get { throw null; } } + public static Azure.Data.AppConfiguration.SnapshotFields Filters { get { throw null; } } + public static Azure.Data.AppConfiguration.SnapshotFields ItemCount { get { throw null; } } + public static Azure.Data.AppConfiguration.SnapshotFields Name { get { throw null; } } + public static Azure.Data.AppConfiguration.SnapshotFields RetentionPeriod { get { throw null; } } + public static Azure.Data.AppConfiguration.SnapshotFields SizeInBytes { get { throw null; } } + public static Azure.Data.AppConfiguration.SnapshotFields SnapshotComposition { get { throw null; } } + public static Azure.Data.AppConfiguration.SnapshotFields Status { get { throw null; } } + public static Azure.Data.AppConfiguration.SnapshotFields Tags { get { throw null; } } + public bool Equals(Azure.Data.AppConfiguration.SnapshotFields other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Data.AppConfiguration.SnapshotFields left, Azure.Data.AppConfiguration.SnapshotFields right) { throw null; } + public static implicit operator Azure.Data.AppConfiguration.SnapshotFields (string value) { throw null; } + public static implicit operator Azure.Data.AppConfiguration.SnapshotFields? (string value) { throw null; } + public static bool operator !=(Azure.Data.AppConfiguration.SnapshotFields left, Azure.Data.AppConfiguration.SnapshotFields right) { throw null; } + public override string ToString() { throw null; } + } + public partial class SnapshotSelector + { + public SnapshotSelector() { } + public System.Collections.Generic.IList Fields { get { throw null; } } + public string NameFilter { get { throw null; } set { } } + public System.Collections.Generic.IList Status { get { throw null; } } + } +} +namespace Microsoft.Extensions.Azure +{ + public static partial class ConfigurationClientBuilderExtensions + { + public static Azure.Core.Extensions.IAzureClientBuilder AddConfigurationClient(this TBuilder builder, string connectionString) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilder { throw null; } + public static Azure.Core.Extensions.IAzureClientBuilder AddConfigurationClient(this TBuilder builder, System.Uri configurationUri) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithCredential { throw null; } + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute("Requires unreferenced code until we opt into EnableConfigurationBindingGenerator.")] + public static Azure.Core.Extensions.IAzureClientBuilder AddConfigurationClient(this TBuilder builder, TConfiguration configuration) where TBuilder : Azure.Core.Extensions.IAzureClientFactoryBuilderWithConfiguration { throw null; } + } +} From a6444e19106f13102480f2b75b312a09d1f685ec Mon Sep 17 00:00:00 2001 From: efrainretana Date: Mon, 20 Oct 2025 13:53:36 -0500 Subject: [PATCH 3/7] Update version --- .../Azure.Search.Documents/src/Azure.Search.Documents.csproj | 2 +- sdk/search/Azure.Search.Documents/src/Models/SearchResults.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/search/Azure.Search.Documents/src/Azure.Search.Documents.csproj b/sdk/search/Azure.Search.Documents/src/Azure.Search.Documents.csproj index 39aa67f30d53..8be43cb316a6 100644 --- a/sdk/search/Azure.Search.Documents/src/Azure.Search.Documents.csproj +++ b/sdk/search/Azure.Search.Documents/src/Azure.Search.Documents.csproj @@ -1,7 +1,7 @@ Microsoft Azure.Search.Documents client library - 11.8.0-beta.1 + 11.9.0-beta.1 11.7.0 diff --git a/sdk/search/Azure.Search.Documents/src/Models/SearchResults.cs b/sdk/search/Azure.Search.Documents/src/Models/SearchResults.cs index b99a5c4db55a..4e557c74b9dd 100644 --- a/sdk/search/Azure.Search.Documents/src/Models/SearchResults.cs +++ b/sdk/search/Azure.Search.Documents/src/Models/SearchResults.cs @@ -300,7 +300,7 @@ private static async Task DeserializeEnvelope(JsonDocument doc, bool async, Sear facetValues[facetProperty.Name] = value; } } - facets.Add(new FacetResult(facetCount, null, null, null, facetSum, null, searchFacets, facetValues)); + facets.Add(new FacetResult(facetCount, avg: null, min: null, max: null, facetSum, cardinality: null, searchFacets, facetValues)); } // Add the facet to the results results.Facets[facetObject.Name] = facets; From 0310660dde6c4141a7a9901943ba694a8125e806 Mon Sep 17 00:00:00 2001 From: efrainretana Date: Mon, 20 Oct 2025 14:25:08 -0500 Subject: [PATCH 4/7] Update change log --- .../Azure.Search.Documents/CHANGELOG.md | 42 ++++++++++++++++++- .../src/Azure.Search.Documents.csproj | 2 +- 2 files changed, 42 insertions(+), 2 deletions(-) diff --git a/sdk/search/Azure.Search.Documents/CHANGELOG.md b/sdk/search/Azure.Search.Documents/CHANGELOG.md index 4c18cd543a9b..9526ff6e02bd 100644 --- a/sdk/search/Azure.Search.Documents/CHANGELOG.md +++ b/sdk/search/Azure.Search.Documents/CHANGELOG.md @@ -1,10 +1,50 @@ # Release History -## 11.8.0-beta.1 (Unreleased) +## 11.8.0-beta.1 (2025-10-20) ### Features Added +- Added support for `2025-11-01-preview` service version. +- Added support for multiple facet aggregation types: `avg`, `min`, `max`, `cardinality` in `FacetResult` for enhanced analytics capabilities. +- Added support for new `KnowledgeSourceKind` types: `web`, `remoteSharePoint`, `indexedSharePoint`, `indexedOneLake`. +- Added support for `sharepoint` data source type in `SearchIndexerDataSourceType`. +- Added `product` scoring function aggregation type in `ScoringFunctionAggregation`. +- Added support for new Azure OpenAI models: `gpt-5`, `gpt-5-mini`, `gpt-5-nano` in `AzureOpenAIModelName`. +- Added enhanced runtime tracking with `runtime` property in `SearchIndexerStatus` and `indexersRuntime` property in `ServiceStatistics`. +- Added optional `purviewEnabled` property in `SearchIndex` for data governance integration. +- Added `maxCumulativeIndexerRuntimeSeconds` property in `ServiceLimits` for runtime constraints. +- Added enhanced knowledge source configuration options: + - `sourceDataFields`, `searchFields`, `semanticConfigurationName` in `SearchIndexKnowledgeSourceParameters` + - `isADLSGen2`, `ingestionParameters` in `AzureBlobKnowledgeSourceParameters` +- Added optional parameter `x-ms-enable-elevated-read` for document retrieval operations with elevated permissions. +- Added support for partial content responses (HTTP 206) in knowledge base operations. +- Added `error` property in `KnowledgeBaseActivityRecord` for improved error tracking. +- Added enhanced knowledge source parameters: `includeReferences`, `includeReferenceSourceData`, `alwaysQuerySource`, `rerankerThreshold` in `SearchIndexKnowledgeSourceParams`. ### Breaking Changes +- Renamed Knowledge Agent to Knowledge Base across all APIs and models: + - All `KnowledgeAgent*` classes renamed to `KnowledgeBase*` equivalents + - API paths changed from `/agents` to `/knowledgebases` + - Client parameter `AgentNameParameter` replaced with `KnowledgeBaseNameParameter` + - All agent-related activity record types updated with new naming convention +- Removed deprecated Knowledge Agent configuration models: + - `KnowledgeAgentOutputConfiguration` + - `KnowledgeAgentRequestLimits` + - `KnowledgeAgentModel` + - `KnowledgeAgentModelKind` + - `KnowledgeAgentAzureOpenAIModel` +- Removed properties from `KnowledgeSourceReference`: + - `includeReferences` + - `includeReferenceSourceData` + - `alwaysQuerySource` + - `maxSubQueries` + - `rerankerThreshold` +- Removed `sourceDataSelect` property from `SearchIndexKnowledgeSourceParameters`. +- Removed properties from `AzureBlobKnowledgeSourceParameters`: + - `identity` + - `embeddingModel` + - `chatCompletionModel` + - `ingestionSchedule` + - `disableImageVerbalization` ### Bugs Fixed diff --git a/sdk/search/Azure.Search.Documents/src/Azure.Search.Documents.csproj b/sdk/search/Azure.Search.Documents/src/Azure.Search.Documents.csproj index 8be43cb316a6..39aa67f30d53 100644 --- a/sdk/search/Azure.Search.Documents/src/Azure.Search.Documents.csproj +++ b/sdk/search/Azure.Search.Documents/src/Azure.Search.Documents.csproj @@ -1,7 +1,7 @@ Microsoft Azure.Search.Documents client library - 11.9.0-beta.1 + 11.8.0-beta.1 11.7.0 From 4f98711e678b0b92242fbeadb1ce6d6bfb8f390e Mon Sep 17 00:00:00 2001 From: efrainretana Date: Tue, 21 Oct 2025 14:33:06 -0500 Subject: [PATCH 5/7] Update change log --- sdk/search/Azure.Search.Documents/CHANGELOG.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sdk/search/Azure.Search.Documents/CHANGELOG.md b/sdk/search/Azure.Search.Documents/CHANGELOG.md index 9526ff6e02bd..3cd04142af7f 100644 --- a/sdk/search/Azure.Search.Documents/CHANGELOG.md +++ b/sdk/search/Azure.Search.Documents/CHANGELOG.md @@ -46,10 +46,6 @@ - `ingestionSchedule` - `disableImageVerbalization` -### Bugs Fixed - -### Other Changes - ## 11.7.0 (2025-10-09) ### Features Added From c9cf557a742e7e689b1e16ed9b5778a68fa92ec5 Mon Sep 17 00:00:00 2001 From: efrainretana Date: Wed, 22 Oct 2025 15:16:34 -0500 Subject: [PATCH 6/7] Re-export api, update cspell --- .vscode/cspell.json | 6 ++++++ .../api/Azure.Search.Documents.net8.0.cs | 9 ++++++--- .../api/Azure.Search.Documents.netstandard2.0.cs | 9 ++++++--- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/.vscode/cspell.json b/.vscode/cspell.json index c595fd8ae36b..86fc35bba401 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -1364,6 +1364,12 @@ "protobuf" ] }, + { + "filename": "**/sdk/search/**/*.cs", + "words": [ + "agentic" + ] + }, { "filename": "**/sdk/servicefabricmanagedclusters/**/*.cs", "words": [ diff --git a/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.net8.0.cs b/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.net8.0.cs index 071b91bce8f9..3a59e838c8eb 100644 --- a/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.net8.0.cs +++ b/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.net8.0.cs @@ -97,7 +97,7 @@ public SearchClient(System.Uri endpoint, string indexName, Azure.Core.TokenCrede } public partial class SearchClientOptions : Azure.Core.ClientOptions { - public SearchClientOptions(Azure.Search.Documents.SearchClientOptions.ServiceVersion version = Azure.Search.Documents.SearchClientOptions.ServiceVersion.V2025_08_01_Preview) { } + public SearchClientOptions(Azure.Search.Documents.SearchClientOptions.ServiceVersion version = Azure.Search.Documents.SearchClientOptions.ServiceVersion.V2025_11_01_Preview) { } public Azure.Search.Documents.SearchAudience? Audience { get { throw null; } set { } } public Azure.Core.Serialization.ObjectSerializer Serializer { get { throw null; } set { } } public Azure.Search.Documents.SearchClientOptions.ServiceVersion Version { get { throw null; } } @@ -107,7 +107,7 @@ public enum ServiceVersion V2023_11_01 = 2, V2024_07_01 = 3, V2025_09_01 = 4, - V2025_08_01_Preview = 5, + V2025_11_01_Preview = 5, } } public static partial class SearchExtensions @@ -6543,7 +6543,8 @@ public static partial class SearchModelFactory public static Azure.Search.Documents.Indexes.Models.DataDeletionDetectionPolicy DataDeletionDetectionPolicy(string oDataType) { throw null; } public static Azure.Search.Documents.Models.DebugInfo DebugInfo(Azure.Search.Documents.Models.QueryRewritesDebugInfo queryRewrites = null) { throw null; } public static Azure.Search.Documents.Models.DocumentDebugInfo DocumentDebugInfo(Azure.Search.Documents.Models.SemanticDebugInfo semantic = null, Azure.Search.Documents.Models.VectorsDebugInfo vectors = null, System.Collections.Generic.IReadOnlyDictionary> innerHits = null) { throw null; } - public static Azure.Search.Documents.Models.DocumentDebugInfo DocumentDebugInfo(Azure.Search.Documents.Models.VectorsDebugInfo vectors = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Search.Documents.Models.DocumentDebugInfo DocumentDebugInfo(Azure.Search.Documents.Models.VectorsDebugInfo vectors) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Search.Documents.Models.FacetResult FacetResult(long? count = default(long?), System.Collections.Generic.IReadOnlyDictionary additionalProperties = null) { throw null; } public static Azure.Search.Documents.Models.FacetResult FacetResult(long? count = default(long?), double? avg = default(double?), double? min = default(double?), double? max = default(double?), double? sum = default(double?), long? cardinality = default(long?), System.Collections.Generic.IReadOnlyDictionary> facets = null, System.Collections.Generic.IReadOnlyDictionary additionalProperties = null) { throw null; } @@ -6620,6 +6621,8 @@ public static partial class SearchModelFactory [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Search.Documents.Indexes.Models.SearchIndexerStatus SearchIndexerStatus(Azure.Search.Documents.Indexes.Models.IndexerStatus status, Azure.Search.Documents.Indexes.Models.IndexerExecutionResult lastResult, System.Collections.Generic.IReadOnlyList executionHistory, Azure.Search.Documents.Indexes.Models.SearchIndexerLimits limits) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Search.Documents.Indexes.Models.SearchIndexerStatus SearchIndexerStatus(string name = null, Azure.Search.Documents.Indexes.Models.IndexerStatus status = Azure.Search.Documents.Indexes.Models.IndexerStatus.Unknown, Azure.Search.Documents.Indexes.Models.IndexerExecutionResult lastResult = null, System.Collections.Generic.IEnumerable executionHistory = null, Azure.Search.Documents.Indexes.Models.SearchIndexerLimits limits = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Search.Documents.Indexes.Models.SearchIndexerStatus SearchIndexerStatus(string name = null, Azure.Search.Documents.Indexes.Models.IndexerStatus status = Azure.Search.Documents.Indexes.Models.IndexerStatus.Unknown, Azure.Search.Documents.Indexes.Models.IndexerRuntime runtime = null, Azure.Search.Documents.Indexes.Models.IndexerExecutionResult lastResult = null, System.Collections.Generic.IEnumerable executionHistory = null, Azure.Search.Documents.Indexes.Models.SearchIndexerLimits limits = null) { throw null; } public static Azure.Search.Documents.Indexes.Models.SearchIndexerStatus SearchIndexerStatus(string name = null, Azure.Search.Documents.Indexes.Models.IndexerStatus status = Azure.Search.Documents.Indexes.Models.IndexerStatus.Unknown, Azure.Search.Documents.Indexes.Models.IndexerRuntime runtime = null, Azure.Search.Documents.Indexes.Models.IndexerExecutionResult lastResult = null, System.Collections.Generic.IEnumerable executionHistory = null, Azure.Search.Documents.Indexes.Models.SearchIndexerLimits limits = null, Azure.Search.Documents.Indexes.Models.IndexerState currentState = null) { throw null; } public static Azure.Search.Documents.Indexes.Models.SearchIndexerWarning SearchIndexerWarning(string key, string message, string name, string details, string documentationLink) { throw null; } diff --git a/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.netstandard2.0.cs b/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.netstandard2.0.cs index d1b192c844de..b9d91bb3802a 100644 --- a/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.netstandard2.0.cs +++ b/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.netstandard2.0.cs @@ -97,7 +97,7 @@ public SearchClient(System.Uri endpoint, string indexName, Azure.Core.TokenCrede } public partial class SearchClientOptions : Azure.Core.ClientOptions { - public SearchClientOptions(Azure.Search.Documents.SearchClientOptions.ServiceVersion version = Azure.Search.Documents.SearchClientOptions.ServiceVersion.V2025_08_01_Preview) { } + public SearchClientOptions(Azure.Search.Documents.SearchClientOptions.ServiceVersion version = Azure.Search.Documents.SearchClientOptions.ServiceVersion.V2025_11_01_Preview) { } public Azure.Search.Documents.SearchAudience? Audience { get { throw null; } set { } } public Azure.Core.Serialization.ObjectSerializer Serializer { get { throw null; } set { } } public Azure.Search.Documents.SearchClientOptions.ServiceVersion Version { get { throw null; } } @@ -107,7 +107,7 @@ public enum ServiceVersion V2023_11_01 = 2, V2024_07_01 = 3, V2025_09_01 = 4, - V2025_08_01_Preview = 5, + V2025_11_01_Preview = 5, } } public static partial class SearchExtensions @@ -6543,7 +6543,8 @@ public static partial class SearchModelFactory public static Azure.Search.Documents.Indexes.Models.DataDeletionDetectionPolicy DataDeletionDetectionPolicy(string oDataType) { throw null; } public static Azure.Search.Documents.Models.DebugInfo DebugInfo(Azure.Search.Documents.Models.QueryRewritesDebugInfo queryRewrites = null) { throw null; } public static Azure.Search.Documents.Models.DocumentDebugInfo DocumentDebugInfo(Azure.Search.Documents.Models.SemanticDebugInfo semantic = null, Azure.Search.Documents.Models.VectorsDebugInfo vectors = null, System.Collections.Generic.IReadOnlyDictionary> innerHits = null) { throw null; } - public static Azure.Search.Documents.Models.DocumentDebugInfo DocumentDebugInfo(Azure.Search.Documents.Models.VectorsDebugInfo vectors = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Search.Documents.Models.DocumentDebugInfo DocumentDebugInfo(Azure.Search.Documents.Models.VectorsDebugInfo vectors) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Search.Documents.Models.FacetResult FacetResult(long? count = default(long?), System.Collections.Generic.IReadOnlyDictionary additionalProperties = null) { throw null; } public static Azure.Search.Documents.Models.FacetResult FacetResult(long? count = default(long?), double? avg = default(double?), double? min = default(double?), double? max = default(double?), double? sum = default(double?), long? cardinality = default(long?), System.Collections.Generic.IReadOnlyDictionary> facets = null, System.Collections.Generic.IReadOnlyDictionary additionalProperties = null) { throw null; } @@ -6620,6 +6621,8 @@ public static partial class SearchModelFactory [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Search.Documents.Indexes.Models.SearchIndexerStatus SearchIndexerStatus(Azure.Search.Documents.Indexes.Models.IndexerStatus status, Azure.Search.Documents.Indexes.Models.IndexerExecutionResult lastResult, System.Collections.Generic.IReadOnlyList executionHistory, Azure.Search.Documents.Indexes.Models.SearchIndexerLimits limits) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public static Azure.Search.Documents.Indexes.Models.SearchIndexerStatus SearchIndexerStatus(string name = null, Azure.Search.Documents.Indexes.Models.IndexerStatus status = Azure.Search.Documents.Indexes.Models.IndexerStatus.Unknown, Azure.Search.Documents.Indexes.Models.IndexerExecutionResult lastResult = null, System.Collections.Generic.IEnumerable executionHistory = null, Azure.Search.Documents.Indexes.Models.SearchIndexerLimits limits = null) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public static Azure.Search.Documents.Indexes.Models.SearchIndexerStatus SearchIndexerStatus(string name = null, Azure.Search.Documents.Indexes.Models.IndexerStatus status = Azure.Search.Documents.Indexes.Models.IndexerStatus.Unknown, Azure.Search.Documents.Indexes.Models.IndexerRuntime runtime = null, Azure.Search.Documents.Indexes.Models.IndexerExecutionResult lastResult = null, System.Collections.Generic.IEnumerable executionHistory = null, Azure.Search.Documents.Indexes.Models.SearchIndexerLimits limits = null) { throw null; } public static Azure.Search.Documents.Indexes.Models.SearchIndexerStatus SearchIndexerStatus(string name = null, Azure.Search.Documents.Indexes.Models.IndexerStatus status = Azure.Search.Documents.Indexes.Models.IndexerStatus.Unknown, Azure.Search.Documents.Indexes.Models.IndexerRuntime runtime = null, Azure.Search.Documents.Indexes.Models.IndexerExecutionResult lastResult = null, System.Collections.Generic.IEnumerable executionHistory = null, Azure.Search.Documents.Indexes.Models.SearchIndexerLimits limits = null, Azure.Search.Documents.Indexes.Models.IndexerState currentState = null) { throw null; } public static Azure.Search.Documents.Indexes.Models.SearchIndexerWarning SearchIndexerWarning(string key, string message, string name, string details, string documentationLink) { throw null; } From de99c669d49e35bbb79ce3100271c980180c15a3 Mon Sep 17 00:00:00 2001 From: efrainretana Date: Mon, 27 Oct 2025 18:45:48 -0500 Subject: [PATCH 7/7] Add facets, update tests --- .../api/Azure.Search.Documents.net8.0.cs | 27 ++++--- .../Azure.Search.Documents.netstandard2.0.cs | 27 ++++--- .../SearchIndexClient.KnowledgeBases.cs | 76 +++++++++---------- .../src/KnowledgeBases/KnowledgeBase.cs | 23 ------ .../KnowledgeBaseRetrievalClient.cs | 38 +++++----- .../src/Models/FacetResult.cs | 17 ++++- .../src/Models/FacetType.cs | 27 ++++++- .../src/Models/SearchResults.cs | 34 ++++++++- .../src/SearchClient.cs | 12 ++- .../src/Utilities/Constants.cs | 40 ++++++++++ .../tests/DocumentOperations/SearchTests.cs | 42 ++++++++++ 11 files changed, 256 insertions(+), 107 deletions(-) delete mode 100644 sdk/search/Azure.Search.Documents/src/KnowledgeBases/KnowledgeBase.cs diff --git a/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.net8.0.cs b/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.net8.0.cs index 3a59e838c8eb..1b22a0087b13 100644 --- a/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.net8.0.cs +++ b/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.net8.0.cs @@ -84,11 +84,11 @@ public SearchClient(System.Uri endpoint, string indexName, Azure.Core.TokenCrede public virtual Azure.Response MergeOrUploadDocuments(System.Collections.Generic.IEnumerable documents, Azure.Search.Documents.IndexDocumentsOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task>> SearchAsync(Azure.Search.Documents.SearchOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task>> SearchAsync(string searchText, Azure.Search.Documents.SearchOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task>> SearchAsync(string searchText, string querySourceAuthorization, Azure.Search.Documents.SearchOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task>> SearchAsync(string searchText, string querySourceAuthorization, bool? enableElevatedRead, Azure.Search.Documents.SearchOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task>> SearchAsync(string searchText, System.Text.Json.Serialization.Metadata.JsonTypeInfo typeInfo, Azure.Search.Documents.SearchOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response> Search(Azure.Search.Documents.SearchOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response> Search(string searchText, Azure.Search.Documents.SearchOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response> Search(string searchText, string querySourceAuthorization, Azure.Search.Documents.SearchOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response> Search(string searchText, string querySourceAuthorization, bool? enableElevatedRead, Azure.Search.Documents.SearchOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response> Search(string searchText, System.Text.Json.Serialization.Metadata.JsonTypeInfo typeInfo, Azure.Search.Documents.SearchOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task>> SuggestAsync(string searchText, string suggesterName, Azure.Search.Documents.SuggestOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response> Suggest(string searchText, string suggesterName, Azure.Search.Documents.SuggestOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -284,9 +284,9 @@ public SearchIndexClient(System.Uri endpoint, Azure.Core.TokenCredential tokenCr public virtual System.Threading.Tasks.Task DeleteIndexAsync(Azure.Search.Documents.Indexes.Models.SearchIndex index, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteIndexAsync(string indexName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response DeleteKnowledgeBase(Azure.Search.Documents.Indexes.Models.KnowledgeBase KnowledgeBase, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response DeleteKnowledgeBase(string agentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteKnowledgeBase(string knowledgeBaseName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteKnowledgeBaseAsync(Azure.Search.Documents.Indexes.Models.KnowledgeBase KnowledgeBase, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteKnowledgeBaseAsync(string agentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteKnowledgeBaseAsync(string knowledgeBaseName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response DeleteKnowledgeSource(Azure.Search.Documents.Indexes.Models.KnowledgeSource knowledgeSource, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response DeleteKnowledgeSource(string sourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteKnowledgeSourceAsync(Azure.Search.Documents.Indexes.Models.KnowledgeSource knowledgeSource, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -309,8 +309,8 @@ public SearchIndexClient(System.Uri endpoint, Azure.Core.TokenCredential tokenCr public virtual System.Threading.Tasks.Task> GetIndexStatisticsAsync(string indexName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetIndexStatsSummary(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetIndexStatsSummaryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetKnowledgeBase(string agentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetKnowledgeBaseAsync(string agentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetKnowledgeBase(string knowledgeBaseName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetKnowledgeBaseAsync(string knowledgeBaseName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetKnowledgeBases(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetKnowledgeBasesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetKnowledgeSource(string sourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -5165,12 +5165,12 @@ namespace Azure.Search.Documents.KnowledgeBases public partial class KnowledgeBaseRetrievalClient { protected KnowledgeBaseRetrievalClient() { } - public KnowledgeBaseRetrievalClient(System.Uri endpoint, string agentName, Azure.AzureKeyCredential credential) { } - public KnowledgeBaseRetrievalClient(System.Uri endpoint, string agentName, Azure.AzureKeyCredential credential, Azure.Search.Documents.SearchClientOptions options) { } - public KnowledgeBaseRetrievalClient(System.Uri endpoint, string agentName, Azure.Core.TokenCredential tokenCredential) { } - public KnowledgeBaseRetrievalClient(System.Uri endpoint, string agentName, Azure.Core.TokenCredential tokenCredential, Azure.Search.Documents.SearchClientOptions options) { } - public virtual string AgentName { get { throw null; } } + public KnowledgeBaseRetrievalClient(System.Uri endpoint, string knowledgeBaseName, Azure.AzureKeyCredential credential) { } + public KnowledgeBaseRetrievalClient(System.Uri endpoint, string knowledgeBaseName, Azure.AzureKeyCredential credential, Azure.Search.Documents.SearchClientOptions options) { } + public KnowledgeBaseRetrievalClient(System.Uri endpoint, string knowledgeBaseName, Azure.Core.TokenCredential tokenCredential) { } + public KnowledgeBaseRetrievalClient(System.Uri endpoint, string knowledgeBaseName, Azure.Core.TokenCredential tokenCredential, Azure.Search.Documents.SearchClientOptions options) { } public virtual System.Uri Endpoint { get { throw null; } } + public virtual string KnowledgeBaseName { get { throw null; } } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } public virtual Azure.Response Retrieve(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalRequest retrievalRequest, string xMsQuerySourceAuthorization = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RetrieveAsync(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalRequest retrievalRequest, string xMsQuerySourceAuthorization = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -5920,6 +5920,11 @@ public enum FacetType { Value = 0, Range = 1, + Sum = 2, + Average = 3, + Minimum = 4, + Maximum = 5, + Cardinality = 6, } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct HybridCountAndFacetMode : System.IEquatable diff --git a/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.netstandard2.0.cs b/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.netstandard2.0.cs index b9d91bb3802a..306455c2ce6c 100644 --- a/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.netstandard2.0.cs +++ b/sdk/search/Azure.Search.Documents/api/Azure.Search.Documents.netstandard2.0.cs @@ -84,11 +84,11 @@ public SearchClient(System.Uri endpoint, string indexName, Azure.Core.TokenCrede public virtual Azure.Response MergeOrUploadDocuments(System.Collections.Generic.IEnumerable documents, Azure.Search.Documents.IndexDocumentsOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task>> SearchAsync(Azure.Search.Documents.SearchOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task>> SearchAsync(string searchText, Azure.Search.Documents.SearchOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task>> SearchAsync(string searchText, string querySourceAuthorization, Azure.Search.Documents.SearchOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task>> SearchAsync(string searchText, string querySourceAuthorization, bool? enableElevatedRead, Azure.Search.Documents.SearchOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task>> SearchAsync(string searchText, System.Text.Json.Serialization.Metadata.JsonTypeInfo typeInfo, Azure.Search.Documents.SearchOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response> Search(Azure.Search.Documents.SearchOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response> Search(string searchText, Azure.Search.Documents.SearchOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response> Search(string searchText, string querySourceAuthorization, Azure.Search.Documents.SearchOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response> Search(string searchText, string querySourceAuthorization, bool? enableElevatedRead, Azure.Search.Documents.SearchOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response> Search(string searchText, System.Text.Json.Serialization.Metadata.JsonTypeInfo typeInfo, Azure.Search.Documents.SearchOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task>> SuggestAsync(string searchText, string suggesterName, Azure.Search.Documents.SuggestOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response> Suggest(string searchText, string suggesterName, Azure.Search.Documents.SuggestOptions options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -284,9 +284,9 @@ public SearchIndexClient(System.Uri endpoint, Azure.Core.TokenCredential tokenCr public virtual System.Threading.Tasks.Task DeleteIndexAsync(Azure.Search.Documents.Indexes.Models.SearchIndex index, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteIndexAsync(string indexName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response DeleteKnowledgeBase(Azure.Search.Documents.Indexes.Models.KnowledgeBase KnowledgeBase, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response DeleteKnowledgeBase(string agentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response DeleteKnowledgeBase(string knowledgeBaseName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteKnowledgeBaseAsync(Azure.Search.Documents.Indexes.Models.KnowledgeBase KnowledgeBase, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteKnowledgeBaseAsync(string agentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteKnowledgeBaseAsync(string knowledgeBaseName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response DeleteKnowledgeSource(Azure.Search.Documents.Indexes.Models.KnowledgeSource knowledgeSource, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response DeleteKnowledgeSource(string sourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteKnowledgeSourceAsync(Azure.Search.Documents.Indexes.Models.KnowledgeSource knowledgeSource, bool onlyIfUnchanged = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -309,8 +309,8 @@ public SearchIndexClient(System.Uri endpoint, Azure.Core.TokenCredential tokenCr public virtual System.Threading.Tasks.Task> GetIndexStatisticsAsync(string indexName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetIndexStatsSummary(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetIndexStatsSummaryAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetKnowledgeBase(string agentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetKnowledgeBaseAsync(string agentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetKnowledgeBase(string knowledgeBaseName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetKnowledgeBaseAsync(string knowledgeBaseName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetKnowledgeBases(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetKnowledgeBasesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetKnowledgeSource(string sourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -5165,12 +5165,12 @@ namespace Azure.Search.Documents.KnowledgeBases public partial class KnowledgeBaseRetrievalClient { protected KnowledgeBaseRetrievalClient() { } - public KnowledgeBaseRetrievalClient(System.Uri endpoint, string agentName, Azure.AzureKeyCredential credential) { } - public KnowledgeBaseRetrievalClient(System.Uri endpoint, string agentName, Azure.AzureKeyCredential credential, Azure.Search.Documents.SearchClientOptions options) { } - public KnowledgeBaseRetrievalClient(System.Uri endpoint, string agentName, Azure.Core.TokenCredential tokenCredential) { } - public KnowledgeBaseRetrievalClient(System.Uri endpoint, string agentName, Azure.Core.TokenCredential tokenCredential, Azure.Search.Documents.SearchClientOptions options) { } - public virtual string AgentName { get { throw null; } } + public KnowledgeBaseRetrievalClient(System.Uri endpoint, string knowledgeBaseName, Azure.AzureKeyCredential credential) { } + public KnowledgeBaseRetrievalClient(System.Uri endpoint, string knowledgeBaseName, Azure.AzureKeyCredential credential, Azure.Search.Documents.SearchClientOptions options) { } + public KnowledgeBaseRetrievalClient(System.Uri endpoint, string knowledgeBaseName, Azure.Core.TokenCredential tokenCredential) { } + public KnowledgeBaseRetrievalClient(System.Uri endpoint, string knowledgeBaseName, Azure.Core.TokenCredential tokenCredential, Azure.Search.Documents.SearchClientOptions options) { } public virtual System.Uri Endpoint { get { throw null; } } + public virtual string KnowledgeBaseName { get { throw null; } } public virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } } public virtual Azure.Response Retrieve(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalRequest retrievalRequest, string xMsQuerySourceAuthorization = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RetrieveAsync(Azure.Search.Documents.KnowledgeBases.Models.KnowledgeBaseRetrievalRequest retrievalRequest, string xMsQuerySourceAuthorization = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -5920,6 +5920,11 @@ public enum FacetType { Value = 0, Range = 1, + Sum = 2, + Average = 3, + Minimum = 4, + Maximum = 5, + Cardinality = 6, } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct HybridCountAndFacetMode : System.IEquatable diff --git a/sdk/search/Azure.Search.Documents/src/Indexes/SearchIndexClient.KnowledgeBases.cs b/sdk/search/Azure.Search.Documents/src/Indexes/SearchIndexClient.KnowledgeBases.cs index 57de52bc04bf..c1f94a9eb5c1 100644 --- a/sdk/search/Azure.Search.Documents/src/Indexes/SearchIndexClient.KnowledgeBases.cs +++ b/sdk/search/Azure.Search.Documents/src/Indexes/SearchIndexClient.KnowledgeBases.cs @@ -29,8 +29,8 @@ public partial class SearchIndexClient ); #region KnowledgeBases Operations - /// Creates a new agent. - /// The definition of the agent to create. + /// Creates a new knowledge base. + /// The definition of the knowledge base to create. /// The cancellation token to use. /// is null. public virtual Response CreateKnowledgeBase(KnowledgeBase KnowledgeBase, CancellationToken cancellationToken = default) @@ -48,8 +48,8 @@ public virtual Response CreateKnowledgeBase(KnowledgeBase Knowled } } - /// Creates a new agent. - /// The definition of the agent to create. + /// Creates a new knowledge base. + /// The definition of the knowledge base to create. /// The cancellation token to use. /// is null. public virtual async Task> CreateKnowledgeBaseAsync(KnowledgeBase KnowledgeBase, CancellationToken cancellationToken = default) @@ -67,8 +67,8 @@ public virtual async Task> CreateKnowledgeBaseAsync(Know } } - /// Creates a new agent or updates an agent if it already exists. - /// The definition of the agent to create or update. + /// Creates a new knowledge base or updates an knowledge base if it already exists. + /// The definition of the knowledge base to create or update. /// /// True to throw a if the does not match the current service version; /// otherwise, the current service version will be overwritten. @@ -97,8 +97,8 @@ public virtual Response CreateOrUpdateKnowledgeBase(KnowledgeBase } } - /// Creates a new agent or updates an agent if it already exists. - /// The definition of the agent to create or update. + /// Creates a new knowledge base or updates an knowledge base if it already exists. + /// The definition of the knowledge base to create or update. /// /// True to throw a if the does not match the current service version; /// otherwise, the current service version will be overwritten. @@ -127,24 +127,24 @@ public virtual async Task> CreateOrUpdateKnowledgeBaseAs } } - /// Deletes an existing agent. - /// The name of the agent to delete. + /// Deletes an existing knowledge base. + /// The name of the knowledge base to delete. /// The cancellation token to use. /// The from the server. - /// is null. - public virtual Response DeleteKnowledgeBase(string agentName, CancellationToken cancellationToken = default) => - DeleteKnowledgeBase(agentName, null, false, cancellationToken); + /// is null. + public virtual Response DeleteKnowledgeBase(string knowledgeBaseName, CancellationToken cancellationToken = default) => + DeleteKnowledgeBase(knowledgeBaseName, null, false, cancellationToken); - //// Deletes an existing agent. - /// The name of the agent to delete. + //// Deletes an existing knowledge base. + /// The name of the knowledge base to delete. /// The cancellation token to use. /// The from the server. - /// is null. - public virtual async Task DeleteKnowledgeBaseAsync(string agentName, CancellationToken cancellationToken = default) => - await DeleteKnowledgeBaseAsync(agentName, null, false, cancellationToken).ConfigureAwait(false); + /// is null. + public virtual async Task DeleteKnowledgeBaseAsync(string knowledgeBaseName, CancellationToken cancellationToken = default) => + await DeleteKnowledgeBaseAsync(knowledgeBaseName, null, false, cancellationToken).ConfigureAwait(false); - /// Deletes an existing agent. - /// The definition of the agent to delete. + /// Deletes an existing knowledge base. + /// The definition of the knowledge base to delete. /// /// True to throw a if the does not match the current service version; /// otherwise, the current service version will be overwritten. @@ -163,8 +163,8 @@ public virtual Response DeleteKnowledgeBase(KnowledgeBase KnowledgeBase, bool on cancellationToken); } - /// Deletes an existing agent. - /// The definition of the agent to delete. + /// Deletes an existing knowledge base. + /// The definition of the knowledge base to delete. /// /// True to throw a if the does not match the current service version; /// otherwise, the current service version will be overwritten. @@ -184,14 +184,14 @@ public virtual async Task DeleteKnowledgeBaseAsync(KnowledgeBase Knowl .ConfigureAwait(false); } - private Response DeleteKnowledgeBase(string agentName, string etag, bool onlyIfUnchanged, CancellationToken cancellationToken) + private Response DeleteKnowledgeBase(string knowledgeBaseName, string etag, bool onlyIfUnchanged, CancellationToken cancellationToken) { using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(SearchIndexClient)}.{nameof(DeleteKnowledgeBase)}"); scope.Start(); try { return KnowledgeBasesClient.Delete( - agentName, + knowledgeBaseName, onlyIfUnchanged ? etag : null, null, cancellationToken); @@ -203,14 +203,14 @@ private Response DeleteKnowledgeBase(string agentName, string etag, bool onlyIfU } } - private async Task DeleteKnowledgeBaseAsync(string agentName, string etag, bool onlyIfUnchanged, CancellationToken cancellationToken) + private async Task DeleteKnowledgeBaseAsync(string knowledgeBaseName, string etag, bool onlyIfUnchanged, CancellationToken cancellationToken) { using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(SearchIndexClient)}.{nameof(DeleteKnowledgeBase)}"); scope.Start(); try { return await KnowledgeBasesClient.DeleteAsync( - agentName, + knowledgeBaseName, onlyIfUnchanged ? etag?.ToString() : null, null, cancellationToken) @@ -223,17 +223,17 @@ private async Task DeleteKnowledgeBaseAsync(string agentName, string e } } - /// Retrieves an agent definition. - /// The name of the agent to retrieve. + /// Retrieves an knowledge base definition. + /// The name of the knowledge base to retrieve. /// The cancellation token to use. - /// is null. - public virtual Response GetKnowledgeBase(string agentName, CancellationToken cancellationToken = default) + /// is null. + public virtual Response GetKnowledgeBase(string knowledgeBaseName, CancellationToken cancellationToken = default) { using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(SearchIndexClient)}.{nameof(GetKnowledgeBase)}"); scope.Start(); try { - return KnowledgeBasesClient.Get(agentName, cancellationToken); + return KnowledgeBasesClient.Get(knowledgeBaseName, cancellationToken); } catch (Exception ex) { @@ -242,17 +242,17 @@ public virtual Response GetKnowledgeBase(string agentName, Cancel } } - /// Retrieves an agent definition. - /// The name of the agent to retrieve. + /// Retrieves an knowledge base definition. + /// The name of the knowledge base to retrieve. /// The cancellation token to use. - /// is null. - public virtual async Task> GetKnowledgeBaseAsync(string agentName, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task> GetKnowledgeBaseAsync(string knowledgeBaseName, CancellationToken cancellationToken = default) { using DiagnosticScope scope = _clientDiagnostics.CreateScope($"{nameof(SearchIndexClient)}.{nameof(GetKnowledgeBase)}"); scope.Start(); try { - return await KnowledgeBasesClient.GetAsync(agentName, cancellationToken).ConfigureAwait(false); + return await KnowledgeBasesClient.GetAsync(knowledgeBaseName, cancellationToken).ConfigureAwait(false); } catch (Exception ex) { @@ -261,7 +261,7 @@ public virtual async Task> GetKnowledgeBaseAsync(string } } - /// Lists all agents available for a search service. + /// Lists all knowledge bases available for a search service. /// Optional to propagate notifications that the operation should be canceled. /// The from the server containing a list of . /// Thrown when a failure is returned by the Search service. @@ -290,7 +290,7 @@ public virtual Pageable GetKnowledgeBases(CancellationToken cance }); } - /// Lists all agents available for a search service. + /// Lists all knowledge bases available for a search service. /// Optional to propagate notifications that the operation should be canceled. /// The from the server containing a list of . /// Thrown when a failure is returned by the Search service. diff --git a/sdk/search/Azure.Search.Documents/src/KnowledgeBases/KnowledgeBase.cs b/sdk/search/Azure.Search.Documents/src/KnowledgeBases/KnowledgeBase.cs deleted file mode 100644 index e74f3d0d4adb..000000000000 --- a/sdk/search/Azure.Search.Documents/src/KnowledgeBases/KnowledgeBase.cs +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -//using Azure.Core; - -//namespace Azure.Search.Documents.Indexes.Models -//{ -// /// The KnowledgeAgent. -// public partial class KnowledgeBase -// { -// [CodeGenMember("ETag")] -// private string _eTag; - -// /// -// /// The of the . -// /// -// public ETag? ETag -// { -// get => _eTag is null ? null : new ETag(_eTag); -// set => _eTag = value?.ToString(); -// } -// } -//} diff --git a/sdk/search/Azure.Search.Documents/src/KnowledgeBases/KnowledgeBaseRetrievalClient.cs b/sdk/search/Azure.Search.Documents/src/KnowledgeBases/KnowledgeBaseRetrievalClient.cs index c1679352fae8..4f4452749040 100644 --- a/sdk/search/Azure.Search.Documents/src/KnowledgeBases/KnowledgeBaseRetrievalClient.cs +++ b/sdk/search/Azure.Search.Documents/src/KnowledgeBases/KnowledgeBaseRetrievalClient.cs @@ -11,7 +11,7 @@ namespace Azure.Search.Documents.KnowledgeBases { /// - /// Azure Cognitive Search client that can be used to query an agent. + /// Azure Cognitive Search client that can be used to query an knowledge base. /// public partial class KnowledgeBaseRetrievalClient { @@ -31,9 +31,9 @@ public partial class KnowledgeBaseRetrievalClient public virtual Uri Endpoint { get; } /// - /// Gets the name of the agent. + /// Gets the name of the knowledge base. /// - public virtual string AgentName { get; } + public virtual string KnowledgeBaseName { get; } /// /// Gets the generated document operations to make requests. @@ -51,7 +51,7 @@ protected KnowledgeBaseRetrievalClient() { } /// Initializes a new instance of the class. /// /// Required. The URI endpoint of the Search service. This is likely to be similar to "https://{search_service}.search.windows.net". The URI must use HTTPS. - /// The name of the agent. + /// The name of the knowledge base. /// /// Required. The API key credential used to authenticate requests against the Search service. /// You need to use an admin key to perform any operations on the SearchIndexClient. @@ -59,8 +59,8 @@ protected KnowledgeBaseRetrievalClient() { } /// /// Thrown when the or is null. /// Thrown when the is not using HTTPS. - public KnowledgeBaseRetrievalClient(Uri endpoint, string agentName, AzureKeyCredential credential) : - this(endpoint, agentName, credential, null) + public KnowledgeBaseRetrievalClient(Uri endpoint, string knowledgeBaseName, AzureKeyCredential credential) : + this(endpoint, knowledgeBaseName, credential, null) { } @@ -68,15 +68,15 @@ public KnowledgeBaseRetrievalClient(Uri endpoint, string agentName, AzureKeyCred /// Initializes a new instance of the class. /// /// Required. The URI endpoint of the Search service. This is likely to be similar to "https://{search_service}.search.windows.net". The URI must use HTTPS. - /// The name of the agent. + /// The name of the knowledge base. /// /// Required. The token credential used to authenticate requests against the Search service. /// See Use role-based authorization in Azure Cognitive Search for more information about role-based authorization in Azure Cognitive Search. /// /// Thrown when the or is null. /// Thrown when the is not using HTTPS. - public KnowledgeBaseRetrievalClient(Uri endpoint, string agentName, TokenCredential tokenCredential) : - this(endpoint, agentName, tokenCredential, null) + public KnowledgeBaseRetrievalClient(Uri endpoint, string knowledgeBaseName, TokenCredential tokenCredential) : + this(endpoint, knowledgeBaseName, tokenCredential, null) { } @@ -84,7 +84,7 @@ public KnowledgeBaseRetrievalClient(Uri endpoint, string agentName, TokenCredent /// Initializes a new instance of the class. /// /// Required. The URI endpoint of the Search service. This is likely to be similar to "https://{search_service}.search.windows.net". The URI must use HTTPS. - /// The name of the agent. + /// The name of the knowledge base. /// /// Required. The API key credential used to authenticate requests against the Search service. /// You need to use an admin key to perform any operations on the SearchIndexClient. @@ -93,16 +93,16 @@ public KnowledgeBaseRetrievalClient(Uri endpoint, string agentName, TokenCredent /// Client configuration options for connecting to Azure Cognitive Search. /// Thrown when the or is null. /// Thrown when the is not using HTTPS. - public KnowledgeBaseRetrievalClient(Uri endpoint, string agentName, AzureKeyCredential credential, SearchClientOptions options) + public KnowledgeBaseRetrievalClient(Uri endpoint, string knowledgeBaseName, AzureKeyCredential credential, SearchClientOptions options) { Argument.AssertNotNull(endpoint, nameof(endpoint)); endpoint.AssertHttpsScheme(nameof(endpoint)); - Argument.AssertNotNullOrEmpty(agentName, nameof(agentName)); + Argument.AssertNotNullOrEmpty(knowledgeBaseName, nameof(knowledgeBaseName)); Argument.AssertNotNull(credential, nameof(credential)); options ??= new SearchClientOptions(); Endpoint = endpoint; - AgentName = agentName; + KnowledgeBaseName = knowledgeBaseName; _clientDiagnostics = new ClientDiagnostics(options); _pipeline = options.Build(credential); _version = options.Version; @@ -111,7 +111,7 @@ public KnowledgeBaseRetrievalClient(Uri endpoint, string agentName, AzureKeyCred _clientDiagnostics, _pipeline, endpoint.AbsoluteUri, - AgentName, + KnowledgeBaseName, null, _version.ToVersionString()); } @@ -120,7 +120,7 @@ public KnowledgeBaseRetrievalClient(Uri endpoint, string agentName, AzureKeyCred /// Initializes a new instance of the class. /// /// Required. The URI endpoint of the Search service. This is likely to be similar to "https://{search_service}.search.windows.net". The URI must use HTTPS. - /// The name of the agent. + /// The name of the knowledge base. /// /// Required. The token credential used to authenticate requests against the Search service. /// See Use role-based authorization in Azure Cognitive Search for more information about role-based authorization in Azure Cognitive Search. @@ -128,16 +128,16 @@ public KnowledgeBaseRetrievalClient(Uri endpoint, string agentName, AzureKeyCred /// Client configuration options for connecting to Azure Cognitive Search. /// Thrown when the or is null. /// Thrown when the is not using HTTPS. - public KnowledgeBaseRetrievalClient(Uri endpoint, string agentName, TokenCredential tokenCredential, SearchClientOptions options) + public KnowledgeBaseRetrievalClient(Uri endpoint, string knowledgeBaseName, TokenCredential tokenCredential, SearchClientOptions options) { Argument.AssertNotNull(endpoint, nameof(endpoint)); endpoint.AssertHttpsScheme(nameof(endpoint)); - Argument.AssertNotNullOrEmpty(agentName, nameof(agentName)); + Argument.AssertNotNullOrEmpty(knowledgeBaseName, nameof(knowledgeBaseName)); Argument.AssertNotNull(tokenCredential, nameof(tokenCredential)); options ??= new SearchClientOptions(); Endpoint = endpoint; - AgentName = agentName; + KnowledgeBaseName = knowledgeBaseName; _clientDiagnostics = new ClientDiagnostics(options); _pipeline = options.Build(tokenCredential); _version = options.Version; @@ -146,7 +146,7 @@ public KnowledgeBaseRetrievalClient(Uri endpoint, string agentName, TokenCredent _clientDiagnostics, _pipeline, endpoint.AbsoluteUri, - agentName, + knowledgeBaseName, null, _version.ToVersionString()); } diff --git a/sdk/search/Azure.Search.Documents/src/Models/FacetResult.cs b/sdk/search/Azure.Search.Documents/src/Models/FacetResult.cs index 2cf78ad8d3ad..ad72df543022 100644 --- a/sdk/search/Azure.Search.Documents/src/Models/FacetResult.cs +++ b/sdk/search/Azure.Search.Documents/src/Models/FacetResult.cs @@ -14,7 +14,22 @@ public partial class FacetResult : IReadOnlyDictionary /// particular field value and Range facets count documents with a /// field value in a particular range. /// - public FacetType FacetType => (Value != null) ? FacetType.Value : FacetType.Range; + public FacetType FacetType + { + get + { + if (Value != null) return FacetType.Value; + if (From != null || To != null) return FacetType.Range; + if (Sum.HasValue) return FacetType.Sum; + if (Avg.HasValue) return FacetType.Average; + if (Min.HasValue) return FacetType.Minimum; + if (Max.HasValue) return FacetType.Maximum; + if (Cardinality.HasValue) return FacetType.Cardinality; + + // Default to Value if no specific facet type can be determined + return FacetType.Value; + } + } /// /// Gets the value of the facet, or the inclusive lower bound if it's diff --git a/sdk/search/Azure.Search.Documents/src/Models/FacetType.cs b/sdk/search/Azure.Search.Documents/src/Models/FacetType.cs index ed6a6d144bc8..0546cd14ac10 100644 --- a/sdk/search/Azure.Search.Documents/src/Models/FacetType.cs +++ b/sdk/search/Azure.Search.Documents/src/Models/FacetType.cs @@ -16,6 +16,31 @@ public enum FacetType /// /// The facet counts documents with a field value in a particular range. /// - Range + Range, + + /// + /// The facet sums all documents with a field value. + /// + Sum, + + /// + /// The facet averages all documents with a field value. + /// + Average, + + /// + /// The facet finds the minimum field value from the documents. + /// + Minimum, + + /// + /// The facet finds the maximum field value from the documents. + /// + Maximum, + + /// + /// The facet calculates the cardinality of a field value from the documents. + /// + Cardinality } } diff --git a/sdk/search/Azure.Search.Documents/src/Models/SearchResults.cs b/sdk/search/Azure.Search.Documents/src/Models/SearchResults.cs index 4e557c74b9dd..27209fe67d7d 100644 --- a/sdk/search/Azure.Search.Documents/src/Models/SearchResults.cs +++ b/sdk/search/Azure.Search.Documents/src/Models/SearchResults.cs @@ -252,6 +252,10 @@ private static async Task DeserializeEnvelope(JsonDocument doc, bool async, Sear IReadOnlyDictionary> searchFacets = default; long? facetCount = null; double? facetSum = null; + double? facetAvg = null; + double? facetMin = null; + double? facetMax = null; + long? facetCardinality = null; foreach (JsonProperty facetProperty in facetValue.EnumerateObject()) { if (facetProperty.NameEquals(Constants.CountKeyJson.EncodedUtf8Bytes)) @@ -268,6 +272,34 @@ private static async Task DeserializeEnvelope(JsonDocument doc, bool async, Sear facetSum = facetProperty.Value.GetDouble(); } } + else if (facetProperty.NameEquals(Constants.AvgKeyJson.EncodedUtf8Bytes)) + { + if (facetProperty.Value.ValueKind != JsonValueKind.Null) + { + facetAvg = facetProperty.Value.GetDouble(); + } + } + else if (facetProperty.NameEquals(Constants.MinKeyJson.EncodedUtf8Bytes)) + { + if (facetProperty.Value.ValueKind != JsonValueKind.Null) + { + facetMin = facetProperty.Value.GetDouble(); + } + } + else if (facetProperty.NameEquals(Constants.MaxKeyJson.EncodedUtf8Bytes)) + { + if (facetProperty.Value.ValueKind != JsonValueKind.Null) + { + facetMax = facetProperty.Value.GetDouble(); + } + } + else if (facetProperty.NameEquals(Constants.CardinalityKeyJson.EncodedUtf8Bytes)) + { + if (facetProperty.Value.ValueKind != JsonValueKind.Null) + { + facetCardinality = facetProperty.Value.GetInt64(); + } + } else if (facetProperty.NameEquals(Constants.FacetsKeyJson.EncodedUtf8Bytes)) { if (facetProperty.Value.ValueKind == JsonValueKind.Null) @@ -300,7 +332,7 @@ private static async Task DeserializeEnvelope(JsonDocument doc, bool async, Sear facetValues[facetProperty.Name] = value; } } - facets.Add(new FacetResult(facetCount, avg: null, min: null, max: null, facetSum, cardinality: null, searchFacets, facetValues)); + facets.Add(new FacetResult(facetCount, facetAvg, facetMin, facetMax, facetSum, facetCardinality, searchFacets, facetValues)); } // Add the facet to the results results.Facets[facetObject.Name] = facets; diff --git a/sdk/search/Azure.Search.Documents/src/SearchClient.cs b/sdk/search/Azure.Search.Documents/src/SearchClient.cs index 8b61d3602a90..782fe961ecef 100644 --- a/sdk/search/Azure.Search.Documents/src/SearchClient.cs +++ b/sdk/search/Azure.Search.Documents/src/SearchClient.cs @@ -1271,6 +1271,9 @@ await SearchInternal( /// Token identifying the user for which the query is being executed. /// This token is used to enforce security restrictions on documents. /// + /// + /// A value that enables elevated read that bypass document level permission checks for the query operation. + /// /// /// Options that allow specifying filtering, sorting, faceting, paging, /// and other search query behaviors. @@ -1306,12 +1309,13 @@ await SearchInternal( public virtual Response> Search( string searchText, string querySourceAuthorization, + bool? enableElevatedRead, SearchOptions options = null, CancellationToken cancellationToken = default) => SearchInternal( searchText, querySourceAuthorization, - enableElevatedRead: null, + enableElevatedRead, options, async: false, cancellationToken) @@ -1335,6 +1339,9 @@ public virtual Response> Search( /// Token identifying the user for which the query is being executed. /// This token is used to enforce security restrictions on documents. /// + /// + /// A value that enables elevated read that bypass document level permission checks for the query operation. + /// /// /// Options that allow specifying filtering, sorting, faceting, paging, /// and other search query behaviors. @@ -1370,12 +1377,13 @@ public virtual Response> Search( public async virtual Task>> SearchAsync( string searchText, string querySourceAuthorization, + bool? enableElevatedRead, SearchOptions options = null, CancellationToken cancellationToken = default) => await SearchInternal( searchText, querySourceAuthorization, - enableElevatedRead: null, + enableElevatedRead, options, async: true, cancellationToken) diff --git a/sdk/search/Azure.Search.Documents/src/Utilities/Constants.cs b/sdk/search/Azure.Search.Documents/src/Utilities/Constants.cs index b65f98ab4e20..b0c3e929de52 100644 --- a/sdk/search/Azure.Search.Documents/src/Utilities/Constants.cs +++ b/sdk/search/Azure.Search.Documents/src/Utilities/Constants.cs @@ -166,6 +166,46 @@ internal static class Constants /// public static readonly JsonEncodedText SumKeyJson = JsonEncodedText.Encode(SumKey); + /// + /// The avg key. + /// + public const string AvgKey = "avg"; + + /// + /// The avg key. + /// + public static readonly JsonEncodedText AvgKeyJson = JsonEncodedText.Encode(AvgKey); + + /// + /// The min key. + /// + public const string MinKey = "min"; + + /// + /// The min key. + /// + public static readonly JsonEncodedText MinKeyJson = JsonEncodedText.Encode(MinKey); + + /// + /// The max key. + /// + public const string MaxKey = "max"; + + /// + /// The max key. + /// + public static readonly JsonEncodedText MaxKeyJson = JsonEncodedText.Encode(MaxKey); + + /// + /// The cardinality key. + /// + public const string CardinalityKey = "cardinality"; + + /// + /// The cardinality key. + /// + public static readonly JsonEncodedText CardinalityKeyJson = JsonEncodedText.Encode(CardinalityKey); + /// /// The facets key. /// diff --git a/sdk/search/Azure.Search.Documents/tests/DocumentOperations/SearchTests.cs b/sdk/search/Azure.Search.Documents/tests/DocumentOperations/SearchTests.cs index 1b4fc9916330..b190f7bd17cb 100644 --- a/sdk/search/Azure.Search.Documents/tests/DocumentOperations/SearchTests.cs +++ b/sdk/search/Azure.Search.Documents/tests/DocumentOperations/SearchTests.cs @@ -646,6 +646,48 @@ await AssertKeysContains( Assert.AreEqual(4, second.Count); } + [Test] + [Ignore("Metrics facets are only supported in preview. Enable this test when they are GA'd.")] + public async Task MetricFacets() + { + await using SearchResources resources = await SearchResources.GetSharedHotelsIndexAsync(this); + Response> response = + await resources.GetQueryClient().SearchAsync( + "*", + new SearchOptions + { + Facets = new[] + { + "rooms/baseRate,metric:sum", + "rooms/baseRate,metric:avg", + "rooms/baseRate,metric:min", + "rooms/baseRate,metric:max, default:0", + "rooms/sleepsCount, metric:cardinality, precisionThreshold: 10" + } + }); + await AssertKeysContains( + response, + h => h.Document.HotelId, + SearchResources.TestDocuments.Select(h => h.HotelId).ToArray()); + var test = GetFacetsForField(response.Value.Facets, "rooms/baseRate", 4).ToList(); + + Assert.AreEqual(4, test.Count); + Assert.IsTrue(AreApproximatelyEqual(27.91, test[0].Sum.Value)); + Assert.IsTrue(AreApproximatelyEqual(6.9775, test[1].Avg.Value)); + Assert.IsTrue(AreApproximatelyEqual(2.44, test[2].Min.Value)); + Assert.IsTrue(AreApproximatelyEqual(9.69, test[3].Max.Value)); + + var sleepsCountFacets = GetFacetsForField(response.Value.Facets, "rooms/sleepsCount", 1).ToList(); + Assert.AreEqual(1, sleepsCountFacets.Count); + Assert.AreEqual(sleepsCountFacets[0].Cardinality, 1); + + static bool AreApproximatelyEqual(double expected, double actual, double tolerance = 0.001) + { + var delta = Math.Abs(expected - actual); + return Math.Abs(expected - actual) < tolerance; + } + } + public class FacetKeyValuePair { public FacetKeyValuePair() { }