From e48580b8309f19486771d55212ccd392a5563909 Mon Sep 17 00:00:00 2001 From: shafang Date: Wed, 4 Nov 2020 12:55:28 -0800 Subject: [PATCH 1/2] CI passed --- .../AnalyzeSentimentAsyncClient.java | 5 +- .../DetectLanguageAsyncClient.java | 20 +- .../ExtractKeyPhraseAsyncClient.java | 4 +- .../RecognizeEntityAsyncClient.java | 4 +- .../RecognizeLinkedEntityAsyncClient.java | 4 +- .../RecognizePiiEntityAsyncClient.java | 13 +- .../TextAnalyticsClientBuilder.java | 65 +++ .../TextAnalyticsClientImpl.java | 530 +++++++++++++----- .../TextAnalyticsClientImplBuilder.java | 2 +- .../models/AnalyzeBatchInput.java | 71 +++ .../implementation/models/AnalyzeHeaders.java | 40 ++ .../models/AnalyzeJobState.java | 122 ++++ .../models/AnalyzeResponse.java | 27 + .../models/AspectConfidenceScoreLabel.java | 12 +- .../implementation/models/AspectRelation.java | 12 +- .../models/AspectRelationType.java | 18 +- .../models/CancelHealthJobHeaders.java | 40 ++ .../models/CancelHealthJobResponse.java | 27 + ...tiesEntityrecognitiontasksItemsAllof1.java | 44 ++ ...sEntityrecognitionpiitasksItemsAllof1.java | 44 ++ ...esKeyphraseextractiontasksItemsAllof1.java | 44 ++ .../models/DetectedLanguage.java | 40 +- .../models/DocumentEntities.java | 34 +- .../implementation/models/DocumentError.java | 12 +- .../models/DocumentHealthcareEntities.java | 150 +++++ .../models/DocumentKeyPhrases.java | 44 +- .../models/DocumentLanguage.java | 34 +- .../models/DocumentLinkedEntities.java | 40 +- .../models/DocumentSentiment.java | 56 +- .../models/DocumentSentimentValue.java | 26 +- .../models/DocumentStatistics.java | 24 +- .../implementation/models/EntitiesResult.java | 34 +- .../implementation/models/EntitiesTask.java | 40 ++ .../models/EntitiesTaskParameters.java | 66 +++ .../implementation/models/Entity.java | 66 ++- .../models/EntityLinkingResult.java | 34 +- .../implementation/models/ErrorCodeValue.java | 72 ++- .../implementation/models/ErrorResponse.java | 8 +- .../models/ErrorResponseException.java | 8 +- .../implementation/models/HealthHeaders.java | 40 ++ .../implementation/models/HealthResponse.java | 27 + .../models/HealthcareEntity.java | 67 +++ .../models/HealthcareEntityLink.java | 68 +++ .../models/HealthcareJobState.java | 66 +++ .../models/HealthcareRelation.java | 124 ++++ .../models/HealthcareResult.java | 124 ++++ .../implementation/models/InnerError.java | 30 +- .../models/InnerErrorCodeValue.java | 46 +- .../implementation/models/JobDescriptor.java | 42 ++ .../implementation/models/JobManifest.java | 43 ++ .../models/JobManifestTasks.java | 101 ++++ .../implementation/models/JobMetadata.java | 172 ++++++ .../models/KeyPhraseResult.java | 34 +- .../implementation/models/KeyPhrasesTask.java | 40 ++ .../models/KeyPhrasesTaskParameters.java | 40 ++ .../models/LanguageBatchInput.java | 8 +- .../implementation/models/LanguageInput.java | 16 +- .../implementation/models/LanguageResult.java | 34 +- .../implementation/models/LinkedEntity.java | 61 +- .../implementation/models/Match.java | 30 +- .../models/MultiLanguageBatchInput.java | 14 +- .../models/MultiLanguageInput.java | 26 +- .../implementation/models/Pagination.java | 40 ++ .../models/PiiDocumentEntities.java | 86 +-- ...{PiiEntitiesResult.java => PiiResult.java} | 52 +- .../implementation/models/PiiTask.java | 40 ++ .../models/PiiTaskParameters.java | 92 +++ .../models/PiiTaskParametersDomain.java | 42 ++ .../models/RequestStatistics.java | 50 +- .../implementation/models/SentenceAspect.java | 52 +- .../models/SentenceOpinion.java | 52 +- .../models/SentenceSentiment.java | 46 +- .../models/SentenceSentimentValue.java | 22 +- .../SentimentConfidenceScorePerLabel.java | 16 +- .../models/SentimentResponse.java | 34 +- .../implementation/models/State.java | 85 +++ .../models/StringIndexType.java | 22 +- .../models/StringIndexTypeResponse.java | 60 ++ .../implementation/models/TaskState.java | 93 +++ .../implementation/models/TasksState.java | 40 ++ .../models/TasksStateTasks.java | 231 ++++++++ ...ateTasksEntityRecognitionPiiTasksItem.java | 40 ++ ...sStateTasksEntityRecognitionTasksItem.java | 40 ++ ...tateTasksKeyPhraseExtractionTasksItem.java | 40 ++ .../models/TextAnalyticsError.java | 36 +- .../models/TextAnalyticsWarning.java | 22 +- .../models/TokenSentimentValue.java | 22 +- .../models/WarningCodeValue.java | 18 +- .../implementation/models/package-info.java | 13 +- .../implementation/package-info.java | 14 +- ...analyzeSentimentBatchTooManyDocuments.json | 4 +- .../analyzeSentimentDiacriticsNfc.json | 4 +- .../analyzeSentimentDiacriticsNfd.json | 4 +- .../analyzeSentimentDuplicateIdInput.json | 4 +- .../analyzeSentimentEmoji.json | 4 +- .../analyzeSentimentEmojiFamily.json | 4 +- ...timentEmojiFamilyWithSkinToneModifier.json | 4 +- ...yzeSentimentEmojiWithSkinToneModifier.json | 4 +- .../analyzeSentimentEmptyIdInput.json | 4 +- ...ShowStatisticsButIncludeOpinionMining.json | 4 +- ...eSentimentForBatchInputShowStatistics.json | 4 +- ...ShowStatisticsAndIncludeOpinionMining.json | 4 +- ...putShowStatisticsExcludeOpinionMining.json | 4 +- ...hInputWithNullAnalyzeSentimentOptions.json | 4 +- ...ntForBatchInputWithNullRequestOptions.json | 4 +- .../analyzeSentimentForBatchStringInput.json | 4 +- .../analyzeSentimentForEmptyText.json | 4 +- .../analyzeSentimentForFaultyText.json | 4 +- ...ShowStatisticsButIncludeOpinionMining.json | 4 +- ...ShowStatisticsAndIncludeOpinionMining.json | 4 +- ...ingShowStatisticsExcludeOpinionMining.json | 4 +- ...entimentForListStringWithLanguageHint.json | 4 +- .../analyzeSentimentForTextInput.json | 4 +- ...ntForTextInputWithDefaultLanguageHint.json | 4 +- ...entimentForTextInputWithOpinionMining.json | 4 +- .../analyzeSentimentKoreanNfc.json | 4 +- .../analyzeSentimentKoreanNfd.json | 4 +- .../analyzeSentimentZalgoText.json | 4 +- .../clientBuilderWithDefaultCountryHint.json | 4 +- ...thDefaultCountryHintForBatchOperation.json | 4 +- .../clientBuilderWithDefaultLanguage.json | 4 +- ...rWithDefaultLanguageForBatchOperation.json | 4 +- .../clientBuilderWithDefaultPipeline.json | 4 +- ...entBuilderWithInvalidApiKeyCredential.json | 4 +- .../clientBuilderWithNewCountryHint.json | 4 +- ...erWithNewCountryHintForBatchOperation.json | 4 +- .../clientBuilderWithNewLanguage.json | 4 +- ...ilderWithNewLanguageForBatchOperation.json | 4 +- .../clientBuilderWithNullServiceVersion.json | 4 +- .../clientBuilderWithRotateToInvalidKey.json | 4 +- .../clientBuilderWithRotateToValidKey.json | 4 +- ...lientBuilderWithValidApiKeyCredential.json | 4 +- .../detectLanguageDuplicateIdInput.json | 4 +- .../detectLanguageEmptyCountryHint.json | 4 +- .../detectLanguageEmptyIdInput.json | 4 +- .../detectLanguageEmptyText.json | 4 +- .../detectLanguageFaultyText.json | 4 +- .../detectLanguageInvalidCountryHint.json | 4 +- .../detectLanguageNoneCountryHint.json | 4 +- .../detectLanguagesBatchInput.json | 4 +- ...tectLanguagesBatchInputShowStatistics.json | 4 +- .../detectLanguagesBatchListCountryHint.json | 4 +- ...guagesBatchListCountryHintWithOptions.json | 4 +- .../detectLanguagesBatchStringInput.json | 4 +- .../detectSingleTextLanguage.json | 4 +- ...xtractKeyPhrasesBatchTooManyDocuments.json | 4 +- .../extractKeyPhrasesBatchWarning.json | 4 +- .../extractKeyPhrasesDuplicateIdInput.json | 4 +- .../extractKeyPhrasesEmptyIdInput.json | 4 +- .../extractKeyPhrasesForBatchInput.json | 4 +- ...KeyPhrasesForBatchInputShowStatistics.json | 4 +- .../extractKeyPhrasesForBatchStringInput.json | 4 +- .../extractKeyPhrasesForEmptyText.json | 4 +- .../extractKeyPhrasesForFaultyText.json | 4 +- .../extractKeyPhrasesForListLanguageHint.json | 4 +- ...actKeyPhrasesForListStringWithOptions.json | 4 +- .../extractKeyPhrasesForTextInput.json | 4 +- .../extractKeyPhrasesWarning.json | 4 +- ...ecognizeEntitiesBatchInputSingleError.json | 4 +- ...ecognizeEntitiesBatchTooManyDocuments.json | 4 +- .../recognizeEntitiesDiacriticsNfc.json | 4 +- .../recognizeEntitiesDiacriticsNfd.json | 4 +- .../recognizeEntitiesDuplicateIdInput.json | 4 +- .../recognizeEntitiesEmoji.json | 4 +- .../recognizeEntitiesEmojiFamily.json | 4 +- ...titiesEmojiFamilyWIthSkinToneModifier.json | 4 +- ...nizeEntitiesEmojiWithSkinToneModifier.json | 4 +- .../recognizeEntitiesEmptyIdInput.json | 4 +- .../recognizeEntitiesForBatchInput.json | 4 +- ...zeEntitiesForBatchInputShowStatistics.json | 4 +- .../recognizeEntitiesForBatchStringInput.json | 4 +- .../recognizeEntitiesForEmptyText.json | 4 +- .../recognizeEntitiesForFaultyText.json | 4 +- .../recognizeEntitiesForListLanguageHint.json | 4 +- .../recognizeEntitiesForListWithOptions.json | 4 +- .../recognizeEntitiesForTextInput.json | 4 +- .../recognizeEntitiesKoreanNfc.json | 4 +- .../recognizeEntitiesKoreanNfd.json | 4 +- .../recognizeEntitiesZalgoText.json | 4 +- ...zeLinkedEntitiesBatchTooManyDocuments.json | 4 +- .../recognizeLinkedEntitiesDiacriticsNfc.json | 4 +- .../recognizeLinkedEntitiesDiacriticsNfd.json | 4 +- ...cognizeLinkedEntitiesDuplicateIdInput.json | 4 +- .../recognizeLinkedEntitiesEmoji.json | 4 +- .../recognizeLinkedEntitiesEmojiFamily.json | 4 +- ...titiesEmojiFamilyWIthSkinToneModifier.json | 4 +- ...nkedEntitiesEmojiWithSkinToneModifier.json | 4 +- .../recognizeLinkedEntitiesEmptyIdInput.json | 4 +- .../recognizeLinkedEntitiesForBatchInput.json | 4 +- ...edEntitiesForBatchInputShowStatistics.json | 4 +- ...nizeLinkedEntitiesForBatchStringInput.json | 4 +- .../recognizeLinkedEntitiesForEmptyText.json | 4 +- .../recognizeLinkedEntitiesForFaultyText.json | 4 +- ...nizeLinkedEntitiesForListLanguageHint.json | 4 +- ...inkedEntitiesForListStringWithOptions.json | 4 +- .../recognizeLinkedEntitiesForTextInput.json | 4 +- .../recognizeLinkedEntitiesKoreanNfc.json | 4 +- .../recognizeLinkedEntitiesKoreanNfd.json | 4 +- .../recognizeLinkedEntitiesZalgoText.json | 4 +- ...gnizePiiEntitiesBatchInputSingleError.json | 4 +- ...gnizePiiEntitiesBatchTooManyDocuments.json | 4 +- .../recognizePiiEntitiesDiacriticsNfc.json | 4 +- .../recognizePiiEntitiesDiacriticsNfd.json | 4 +- .../recognizePiiEntitiesDuplicateIdInput.json | 4 +- .../recognizePiiEntitiesEmoji.json | 4 +- .../recognizePiiEntitiesEmojiFamily.json | 4 +- ...titiesEmojiFamilyWIthSkinToneModifier.json | 4 +- ...ePiiEntitiesEmojiWithSkinToneModifier.json | 4 +- .../recognizePiiEntitiesEmptyIdInput.json | 4 +- .../recognizePiiEntitiesForBatchInput.json | 4 +- ...iEntitiesForBatchInputForDomainFilter.json | 4 +- ...iiEntitiesForBatchInputShowStatistics.json | 4 +- ...iesForBatchInputStringForDomainFilter.json | 4 +- .../recognizePiiEntitiesForDomainFilter.json | 4 +- .../recognizePiiEntitiesForEmptyText.json | 4 +- .../recognizePiiEntitiesForFaultyText.json | 4 +- ...cognizePiiEntitiesForListLanguageHint.json | 4 +- ...zePiiEntitiesForListStringWithOptions.json | 4 +- .../recognizePiiEntitiesForTextInput.json | 4 +- .../recognizePiiEntitiesKoreanNfc.json | 4 +- .../recognizePiiEntitiesKoreanNfd.json | 4 +- .../recognizePiiEntitiesZalgoText.json | 4 +- .../azure-ai-textanalytics/swagger/README.md | 2 +- 223 files changed, 4095 insertions(+), 1024 deletions(-) create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/TextAnalyticsClientBuilder.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AnalyzeBatchInput.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AnalyzeHeaders.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AnalyzeJobState.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AnalyzeResponse.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CancelHealthJobHeaders.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CancelHealthJobResponse.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentHealthcareEntities.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/EntitiesTask.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/EntitiesTaskParameters.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthHeaders.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthResponse.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthcareEntity.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthcareEntityLink.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthcareJobState.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthcareRelation.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthcareResult.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/JobDescriptor.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/JobManifest.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/JobManifestTasks.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/JobMetadata.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/KeyPhrasesTask.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/KeyPhrasesTaskParameters.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Pagination.java rename sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/{PiiEntitiesResult.java => PiiResult.java} (74%) create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/PiiTask.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/PiiTaskParameters.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/PiiTaskParametersDomain.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/State.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/StringIndexTypeResponse.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TaskState.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksState.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasks.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasksEntityRecognitionPiiTasksItem.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasksEntityRecognitionTasksItem.java create mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasksKeyPhraseExtractionTasksItem.java diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/AnalyzeSentimentAsyncClient.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/AnalyzeSentimentAsyncClient.java index 9e5cb68ccf37b..0d704dbdc1f52 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/AnalyzeSentimentAsyncClient.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/AnalyzeSentimentAsyncClient.java @@ -215,8 +215,9 @@ private Mono> getAnalyzedSentimentRes } return service.sentimentWithResponseAsync( new MultiLanguageBatchInput().setDocuments(toMultiLanguageInput(documents)), - modelVersion, includeStatistics, includeOpinionMining, StringIndexType.UTF16CODE_UNIT, - context.addData(AZ_TRACING_NAMESPACE_KEY, COGNITIVE_TRACING_NAMESPACE_VALUE)) + context.addData(AZ_TRACING_NAMESPACE_KEY, COGNITIVE_TRACING_NAMESPACE_VALUE), + modelVersion, includeStatistics, includeOpinionMining, StringIndexType.UTF16CODE_UNIT + ) .doOnSubscribe(ignoredValue -> logger.info("A batch of documents - {}", documents.toString())) .doOnSuccess(response -> logger.info("Analyzed sentiment for a batch of documents - {}", response)) .doOnError(error -> logger.warning("Failed to analyze sentiment - {}", error)) diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/DetectLanguageAsyncClient.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/DetectLanguageAsyncClient.java index 8dc6407a88e36..ec9ff7afb7150 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/DetectLanguageAsyncClient.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/DetectLanguageAsyncClient.java @@ -150,15 +150,15 @@ private Response toTextAnalyticsResultDocumentRe private Mono> getDetectedLanguageResponse( Iterable documents, TextAnalyticsRequestOptions options, Context context) { return service.languagesWithResponseAsync( - new LanguageBatchInput().setDocuments(toLanguageInput(documents)), - options == null ? null : options.getModelVersion(), - options == null ? null : options.isIncludeStatistics(), - context.addData(AZ_TRACING_NAMESPACE_KEY, COGNITIVE_TRACING_NAMESPACE_VALUE)) - .doOnSubscribe(ignoredValue -> logger.info("A batch of documents - {}", documents.toString())) - .doOnSuccess(response -> logger.info("Detected languages for a batch of documents - {}", - response.getValue())) - .doOnError(error -> logger.warning("Failed to detect language - {}", error)) - .map(this::toTextAnalyticsResultDocumentResponse) - .onErrorMap(throwable -> mapToHttpResponseExceptionIfExist(throwable)); + new LanguageBatchInput().setDocuments(toLanguageInput(documents)), + context.addData(AZ_TRACING_NAMESPACE_KEY, COGNITIVE_TRACING_NAMESPACE_VALUE), + options == null ? null : options.getModelVersion(), + options == null ? null : options.isIncludeStatistics()) + .doOnSubscribe(ignoredValue -> logger.info("A batch of documents - {}", documents.toString())) + .doOnSuccess(response -> logger.info("Detected languages for a batch of documents - {}", + response.getValue())) + .doOnError(error -> logger.warning("Failed to detect language - {}", error)) + .map(this::toTextAnalyticsResultDocumentResponse) + .onErrorMap(throwable -> mapToHttpResponseExceptionIfExist(throwable)); } } diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/ExtractKeyPhraseAsyncClient.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/ExtractKeyPhraseAsyncClient.java index 0364ce8307ebe..17d1ee0bc3e4a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/ExtractKeyPhraseAsyncClient.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/ExtractKeyPhraseAsyncClient.java @@ -182,9 +182,9 @@ private Mono> getExtractedKeyPhrases Iterable documents, TextAnalyticsRequestOptions options, Context context) { return service.keyPhrasesWithResponseAsync( new MultiLanguageBatchInput().setDocuments(toMultiLanguageInput(documents)), + context.addData(AZ_TRACING_NAMESPACE_KEY, COGNITIVE_TRACING_NAMESPACE_VALUE), options == null ? null : options.getModelVersion(), - options == null ? null : options.isIncludeStatistics(), - context.addData(AZ_TRACING_NAMESPACE_KEY, COGNITIVE_TRACING_NAMESPACE_VALUE)) + options == null ? null : options.isIncludeStatistics()) .doOnSubscribe(ignoredValue -> logger.info("A batch of document - {}", documents.toString())) .doOnSuccess(response -> logger.info("A batch of key phrases output - {}", response.getValue())) .doOnError(error -> logger.warning("Failed to extract key phrases - {}", error)) diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/RecognizeEntityAsyncClient.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/RecognizeEntityAsyncClient.java index 45322526093da..bf3da7f821fee 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/RecognizeEntityAsyncClient.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/RecognizeEntityAsyncClient.java @@ -187,10 +187,10 @@ private Mono> getRecognizedEntitiesR Iterable documents, TextAnalyticsRequestOptions options, Context context) { return service.entitiesRecognitionGeneralWithResponseAsync( new MultiLanguageBatchInput().setDocuments(toMultiLanguageInput(documents)), + context.addData(AZ_TRACING_NAMESPACE_KEY, COGNITIVE_TRACING_NAMESPACE_VALUE), options == null ? null : options.getModelVersion(), options == null ? null : options.isIncludeStatistics(), - StringIndexType.UTF16CODE_UNIT, - context.addData(AZ_TRACING_NAMESPACE_KEY, COGNITIVE_TRACING_NAMESPACE_VALUE)) + StringIndexType.UTF16CODE_UNIT) .doOnSubscribe(ignoredValue -> logger.info("A batch of documents - {}", documents.toString())) .doOnSuccess(response -> logger.info("Recognized entities for a batch of documents- {}", response.getValue())) diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/RecognizeLinkedEntityAsyncClient.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/RecognizeLinkedEntityAsyncClient.java index 2f570c1ba86d7..152c4b3227d86 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/RecognizeLinkedEntityAsyncClient.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/RecognizeLinkedEntityAsyncClient.java @@ -201,10 +201,10 @@ private IterableStream mapLinkedEntity( Context context) { return service.entitiesLinkingWithResponseAsync( new MultiLanguageBatchInput().setDocuments(toMultiLanguageInput(documents)), + context.addData(AZ_TRACING_NAMESPACE_KEY, COGNITIVE_TRACING_NAMESPACE_VALUE), options == null ? null : options.getModelVersion(), options == null ? null : options.isIncludeStatistics(), - StringIndexType.UTF16CODE_UNIT, - context.addData(AZ_TRACING_NAMESPACE_KEY, COGNITIVE_TRACING_NAMESPACE_VALUE)) + StringIndexType.UTF16CODE_UNIT) .doOnSubscribe(ignoredValue -> logger.info("A batch of documents - {}", documents.toString())) .doOnSuccess(response -> logger.info("Recognized linked entities for a batch of documents - {}", response.getValue())) diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/RecognizePiiEntityAsyncClient.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/RecognizePiiEntityAsyncClient.java index ba2a11f679c4e..48ecd3191aaf0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/RecognizePiiEntityAsyncClient.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/RecognizePiiEntityAsyncClient.java @@ -7,7 +7,7 @@ import com.azure.ai.textanalytics.implementation.models.DocumentError; import com.azure.ai.textanalytics.implementation.models.EntitiesResult; import com.azure.ai.textanalytics.implementation.models.MultiLanguageBatchInput; -import com.azure.ai.textanalytics.implementation.models.PiiEntitiesResult; +import com.azure.ai.textanalytics.implementation.models.PiiResult; import com.azure.ai.textanalytics.implementation.models.StringIndexType; import com.azure.ai.textanalytics.implementation.models.WarningCodeValue; import com.azure.ai.textanalytics.models.EntityCategory; @@ -145,8 +145,8 @@ Mono> recognizePiiEntitiesBatchWi * @return A {@link Response} that contains {@link RecognizePiiEntitiesResultCollection}. */ private Response toRecognizePiiEntitiesResultCollectionResponse( - final Response response) { - final PiiEntitiesResult piiEntitiesResult = response.getValue(); + final Response response) { + final PiiResult piiEntitiesResult = response.getValue(); // List of documents results final List recognizeEntitiesResults = new ArrayList<>(); piiEntitiesResult.getDocuments().forEach(documentEntities -> { @@ -211,8 +211,11 @@ private Mono> getRecognizePiiEnti } return service.entitiesRecognitionPiiWithResponseAsync( new MultiLanguageBatchInput().setDocuments(toMultiLanguageInput(documents)), - modelVersion, includeStatistics, domainFilter, StringIndexType.UTF16CODE_UNIT, - context.addData(AZ_TRACING_NAMESPACE_KEY, COGNITIVE_TRACING_NAMESPACE_VALUE)) + context.addData(AZ_TRACING_NAMESPACE_KEY, COGNITIVE_TRACING_NAMESPACE_VALUE), + modelVersion, + includeStatistics, + domainFilter, + StringIndexType.UTF16CODE_UNIT) .doOnSubscribe(ignoredValue -> logger.info( "Start recognizing Personally Identifiable Information entities for a batch of documents.")) .doOnSuccess(response -> logger.info( diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/TextAnalyticsClientBuilder.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/TextAnalyticsClientBuilder.java new file mode 100644 index 0000000000000..b7fc2e14f009f --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/TextAnalyticsClientBuilder.java @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation; + +import com.azure.core.annotation.ServiceClientBuilder; +import com.azure.core.http.HttpPipeline; +import com.azure.core.http.HttpPipelineBuilder; +import com.azure.core.http.policy.CookiePolicy; +import com.azure.core.http.policy.RetryPolicy; +import com.azure.core.http.policy.UserAgentPolicy; + +/** + * A builder for creating a new instance of the TextAnalyticsClient type. + */ +@ServiceClientBuilder(serviceClients = {TextAnalyticsClientImpl.class}) +public final class TextAnalyticsClientBuilder { + /* + * Supported Cognitive Services endpoints (protocol and hostname, for + * example: https://westus.api.cognitive.microsoft.com). + */ + private String endpoint; + + /** + * Sets Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com). + * + * @param endpoint the endpoint value. + * @return the TextAnalyticsClientBuilder. + */ + public TextAnalyticsClientBuilder endpoint(String endpoint) { + this.endpoint = endpoint; + return this; + } + + /* + * The HTTP pipeline to send requests through + */ + private HttpPipeline pipeline; + + /** + * Sets The HTTP pipeline to send requests through. + * + * @param pipeline the pipeline value. + * @return the TextAnalyticsClientBuilder. + */ + public TextAnalyticsClientBuilder pipeline(HttpPipeline pipeline) { + this.pipeline = pipeline; + return this; + } + + /** + * Builds an instance of TextAnalyticsClientImpl with the provided parameters. + * + * @return an instance of TextAnalyticsClientImpl. + */ + public TextAnalyticsClientImpl buildClient() { + if (pipeline == null) { + this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()).build(); + } + TextAnalyticsClientImpl client = new TextAnalyticsClientImpl(pipeline); + client.setEndpoint(this.endpoint); + return client; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/TextAnalyticsClientImpl.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/TextAnalyticsClientImpl.java index 358912b3727d0..079d2e3c2a207 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/TextAnalyticsClientImpl.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/TextAnalyticsClientImpl.java @@ -4,20 +4,29 @@ package com.azure.ai.textanalytics.implementation; +import com.azure.ai.textanalytics.implementation.models.AnalyzeBatchInput; +import com.azure.ai.textanalytics.implementation.models.AnalyzeJobState; +import com.azure.ai.textanalytics.implementation.models.AnalyzeResponse; +import com.azure.ai.textanalytics.implementation.models.CancelHealthJobResponse; import com.azure.ai.textanalytics.implementation.models.EntitiesResult; import com.azure.ai.textanalytics.implementation.models.EntityLinkingResult; import com.azure.ai.textanalytics.implementation.models.ErrorResponseException; +import com.azure.ai.textanalytics.implementation.models.HealthcareJobState; +import com.azure.ai.textanalytics.implementation.models.HealthResponse; import com.azure.ai.textanalytics.implementation.models.KeyPhraseResult; import com.azure.ai.textanalytics.implementation.models.LanguageBatchInput; import com.azure.ai.textanalytics.implementation.models.LanguageResult; import com.azure.ai.textanalytics.implementation.models.MultiLanguageBatchInput; -import com.azure.ai.textanalytics.implementation.models.PiiEntitiesResult; +import com.azure.ai.textanalytics.implementation.models.PiiResult; import com.azure.ai.textanalytics.implementation.models.SentimentResponse; import com.azure.ai.textanalytics.implementation.models.StringIndexType; import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; import com.azure.core.annotation.Host; import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; import com.azure.core.annotation.Post; import com.azure.core.annotation.QueryParam; import com.azure.core.annotation.ReturnType; @@ -29,298 +38,509 @@ import com.azure.core.http.policy.CookiePolicy; import com.azure.core.http.policy.RetryPolicy; import com.azure.core.http.policy.UserAgentPolicy; -import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; +import com.azure.core.http.rest.SimpleResponse; import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import java.util.UUID; import reactor.core.publisher.Mono; -/** Initializes a new instance of the TextAnalyticsClient type. */ +/** + * Initializes a new instance of the TextAnalyticsClient type. + */ public final class TextAnalyticsClientImpl { - /** The proxy service used to perform REST calls. */ + /** + * The proxy service used to perform REST calls. + */ private final TextAnalyticsClientService service; /** - * Supported Cognitive Services endpoints (protocol and hostname, for example: - * https://westus.api.cognitive.microsoft.com). + * Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com). */ - private final String endpoint; + private String endpoint; /** - * Gets Supported Cognitive Services endpoints (protocol and hostname, for example: - * https://westus.api.cognitive.microsoft.com). - * + * Gets Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com). + * * @return the endpoint value. */ public String getEndpoint() { return this.endpoint; } - /** The HTTP pipeline to send requests through. */ + /** + * Sets Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com). + * + * @param endpoint the endpoint value. + * @return the service client itself. + */ + public TextAnalyticsClientImpl setEndpoint(String endpoint) { + this.endpoint = endpoint; + return this; + } + + /** + * The HTTP pipeline to send requests through. + */ private final HttpPipeline httpPipeline; /** * Gets The HTTP pipeline to send requests through. - * + * * @return the httpPipeline value. */ public HttpPipeline getHttpPipeline() { return this.httpPipeline; } - /** Initializes an instance of TextAnalyticsClient client. */ - TextAnalyticsClientImpl(String endpoint) { - this( - new HttpPipelineBuilder() - .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()) - .build(), - endpoint); + /** + * Initializes an instance of TextAnalyticsClient client. + */ + public TextAnalyticsClientImpl() { + this(new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()).build()); } /** * Initializes an instance of TextAnalyticsClient client. - * + * * @param httpPipeline The HTTP pipeline to send requests through. */ - TextAnalyticsClientImpl(HttpPipeline httpPipeline, String endpoint) { + public TextAnalyticsClientImpl(HttpPipeline httpPipeline) { this.httpPipeline = httpPipeline; - this.endpoint = endpoint; this.service = RestProxy.create(TextAnalyticsClientService.class, this.httpPipeline); } /** - * The interface defining all the services for TextAnalyticsClient to be used by the proxy service to perform REST - * calls. + * The interface defining all the services for TextAnalyticsClient to be + * used by the proxy service to perform REST calls. */ - @Host("{Endpoint}/text/analytics/v3.1-preview.2") + @Host("{Endpoint}/text/analytics/v3.1-preview.3") @ServiceInterface(name = "TextAnalyticsClient") private interface TextAnalyticsClientService { + @Post("/analyze") + @ExpectedResponses({202}) + @UnexpectedResponseExceptionType(ErrorResponseException.class) + Mono analyze(@HostParam("Endpoint") String endpoint, @BodyParam("application/json") AnalyzeBatchInput body, Context context); + + @Get("/analyze/jobs/{jobId}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ErrorResponseException.class) + Mono> analyzeStatus(@HostParam("Endpoint") String endpoint, @PathParam("jobId") UUID jobId, @QueryParam("showStats") Boolean showStats, @QueryParam("$top") Integer top, @QueryParam("$skip") Integer skip, Context context); + + @Get("/entities/health/jobs/{jobId}") + @ExpectedResponses({200}) + @UnexpectedResponseExceptionType(ErrorResponseException.class) + Mono> healthStatus(@HostParam("Endpoint") String endpoint, @PathParam("jobId") UUID jobId, @QueryParam("$top") Integer top, @QueryParam("$skip") Integer skip, @QueryParam("showStats") Boolean showStats, Context context); + + @Delete("/entities/health/jobs/{jobId}") + @ExpectedResponses({202}) + @UnexpectedResponseExceptionType(ErrorResponseException.class) + Mono cancelHealthJob(@HostParam("Endpoint") String endpoint, @PathParam("jobId") UUID jobId, Context context); + + @Post("/entities/health/jobs") + @ExpectedResponses({202}) + @UnexpectedResponseExceptionType(ErrorResponseException.class) + Mono health(@HostParam("Endpoint") String endpoint, @QueryParam("model-version") String modelVersion, @QueryParam("stringIndexType") StringIndexType stringIndexType, @BodyParam("application/json") MultiLanguageBatchInput input, Context context); + @Post("/entities/recognition/general") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ErrorResponseException.class) - Mono> entitiesRecognitionGeneral( - @HostParam("Endpoint") String endpoint, - @QueryParam("model-version") String modelVersion, - @QueryParam("showStats") Boolean showStats, - @QueryParam("stringIndexType") StringIndexType stringIndexType, - @BodyParam("application/json") MultiLanguageBatchInput input, - Context context); + Mono> entitiesRecognitionGeneral(@HostParam("Endpoint") String endpoint, @QueryParam("model-version") String modelVersion, @QueryParam("showStats") Boolean showStats, @QueryParam("stringIndexType") StringIndexType stringIndexType, @BodyParam("application/json") MultiLanguageBatchInput input, Context context); @Post("/entities/recognition/pii") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ErrorResponseException.class) - Mono> entitiesRecognitionPii( - @HostParam("Endpoint") String endpoint, - @QueryParam("model-version") String modelVersion, - @QueryParam("showStats") Boolean showStats, - @QueryParam("domain") String domain, - @QueryParam("stringIndexType") StringIndexType stringIndexType, - @BodyParam("application/json") MultiLanguageBatchInput input, - Context context); + Mono> entitiesRecognitionPii(@HostParam("Endpoint") String endpoint, @QueryParam("model-version") String modelVersion, @QueryParam("showStats") Boolean showStats, @QueryParam("domain") String domain, @QueryParam("stringIndexType") StringIndexType stringIndexType, @BodyParam("application/json") MultiLanguageBatchInput input, Context context); @Post("/entities/linking") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ErrorResponseException.class) - Mono> entitiesLinking( - @HostParam("Endpoint") String endpoint, - @QueryParam("model-version") String modelVersion, - @QueryParam("showStats") Boolean showStats, - @QueryParam("stringIndexType") StringIndexType stringIndexType, - @BodyParam("application/json") MultiLanguageBatchInput input, - Context context); + Mono> entitiesLinking(@HostParam("Endpoint") String endpoint, @QueryParam("model-version") String modelVersion, @QueryParam("showStats") Boolean showStats, @QueryParam("stringIndexType") StringIndexType stringIndexType, @BodyParam("application/json") MultiLanguageBatchInput input, Context context); @Post("/keyPhrases") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ErrorResponseException.class) - Mono> keyPhrases( - @HostParam("Endpoint") String endpoint, - @QueryParam("model-version") String modelVersion, - @QueryParam("showStats") Boolean showStats, - @BodyParam("application/json") MultiLanguageBatchInput input, - Context context); + Mono> keyPhrases(@HostParam("Endpoint") String endpoint, @QueryParam("model-version") String modelVersion, @QueryParam("showStats") Boolean showStats, @BodyParam("application/json") MultiLanguageBatchInput input, Context context); @Post("/languages") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ErrorResponseException.class) - Mono> languages( - @HostParam("Endpoint") String endpoint, - @QueryParam("model-version") String modelVersion, - @QueryParam("showStats") Boolean showStats, - @BodyParam("application/json") LanguageBatchInput input, - Context context); + Mono> languages(@HostParam("Endpoint") String endpoint, @QueryParam("model-version") String modelVersion, @QueryParam("showStats") Boolean showStats, @BodyParam("application/json") LanguageBatchInput input, Context context); @Post("/sentiment") @ExpectedResponses({200}) @UnexpectedResponseExceptionType(ErrorResponseException.class) - Mono> sentiment( - @HostParam("Endpoint") String endpoint, - @QueryParam("model-version") String modelVersion, - @QueryParam("showStats") Boolean showStats, - @QueryParam("opinionMining") Boolean opinionMining, - @QueryParam("stringIndexType") StringIndexType stringIndexType, - @BodyParam("application/json") MultiLanguageBatchInput input, - Context context); + Mono> sentiment(@HostParam("Endpoint") String endpoint, @QueryParam("model-version") String modelVersion, @QueryParam("showStats") Boolean showStats, @QueryParam("opinionMining") Boolean opinionMining, @QueryParam("stringIndexType") StringIndexType stringIndexType, @BodyParam("application/json") MultiLanguageBatchInput input, Context context); + } + + /** + * Submit a collection of text documents for analysis. Specify one or more unique tasks to be executed. + * + * @param body Collection of documents to analyze and tasks to execute. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono analyzeWithResponseAsync(AnalyzeBatchInput body) { + return FluxUtil.withContext(context -> service.analyze(this.getEndpoint(), body, context)); + } + + /** + * Submit a collection of text documents for analysis. Specify one or more unique tasks to be executed. + * + * @param context The context to associate with this operation. + * @param body Collection of documents to analyze and tasks to execute. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono analyzeWithResponseAsync(Context context, AnalyzeBatchInput body) { + return service.analyze(this.getEndpoint(), body, context); + } + + /** + * Get the status of an analysis job. A job may consist of one or more tasks. Once all tasks are completed, the job will transition to the completed state and results will be available for each task. + * + * @param jobId Job ID. + * @param showStats (Optional) if set to true, response will contain request and document level statistics. + * @param top (Optional) Set the maximum number of results per task. When both $top and $skip are specified, $skip is applied first. + * @param skip (Optional) Set the number of elements to offset in the response. When both $top and $skip are specified, $skip is applied first. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the status of an analysis job. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> analyzeStatusWithResponseAsync(UUID jobId, Boolean showStats, Integer top, Integer skip) { + return FluxUtil.withContext(context -> service.analyzeStatus(this.getEndpoint(), jobId, showStats, top, skip, context)); + } + + /** + * Get the status of an analysis job. A job may consist of one or more tasks. Once all tasks are completed, the job will transition to the completed state and results will be available for each task. + * + * @param jobId Job ID. + * @param context The context to associate with this operation. + * @param showStats (Optional) if set to true, response will contain request and document level statistics. + * @param top (Optional) Set the maximum number of results per task. When both $top and $skip are specified, $skip is applied first. + * @param skip (Optional) Set the number of elements to offset in the response. When both $top and $skip are specified, $skip is applied first. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the status of an analysis job. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> analyzeStatusWithResponseAsync(UUID jobId, Context context, Boolean showStats, Integer top, Integer skip) { + return service.analyzeStatus(this.getEndpoint(), jobId, showStats, top, skip, context); + } + + /** + * Get details of the healthcare prediction job specified by the jobId. + * + * @param jobId Job ID. + * @param top (Optional) Set the maximum number of results per task. When both $top and $skip are specified, $skip is applied first. + * @param skip (Optional) Set the number of elements to offset in the response. When both $top and $skip are specified, $skip is applied first. + * @param showStats (Optional) if set to true, response will contain request and document level statistics. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return details of the healthcare prediction job specified by the jobId. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> healthStatusWithResponseAsync(UUID jobId, Integer top, Integer skip, Boolean showStats) { + return FluxUtil.withContext(context -> service.healthStatus(this.getEndpoint(), jobId, top, skip, showStats, context)); + } + + /** + * Get details of the healthcare prediction job specified by the jobId. + * + * @param jobId Job ID. + * @param context The context to associate with this operation. + * @param top (Optional) Set the maximum number of results per task. When both $top and $skip are specified, $skip is applied first. + * @param skip (Optional) Set the number of elements to offset in the response. When both $top and $skip are specified, $skip is applied first. + * @param showStats (Optional) if set to true, response will contain request and document level statistics. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return details of the healthcare prediction job specified by the jobId. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> healthStatusWithResponseAsync(UUID jobId, Context context, Integer top, Integer skip, Boolean showStats) { + return service.healthStatus(this.getEndpoint(), jobId, top, skip, showStats, context); + } + + /** + * Cancel healthcare prediction job. + * + * @param jobId Job ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono cancelHealthJobWithResponseAsync(UUID jobId) { + return FluxUtil.withContext(context -> service.cancelHealthJob(this.getEndpoint(), jobId, context)); + } + + /** + * Cancel healthcare prediction job. + * + * @param jobId Job ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono cancelHealthJobWithResponseAsync(UUID jobId, Context context) { + return service.cancelHealthJob(this.getEndpoint(), jobId, context); + } + + /** + * Start a healthcare analysis job to recognize healthcare related entities (drugs, conditions, symptoms, etc) and their relations. + * + * @param input Contains a set of input documents to be analyzed by the service. + * @param modelVersion (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. + * @param stringIndexType (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono healthWithResponseAsync(MultiLanguageBatchInput input, String modelVersion, StringIndexType stringIndexType) { + return FluxUtil.withContext(context -> service.health(this.getEndpoint(), modelVersion, stringIndexType, input, context)); + } + + /** + * Start a healthcare analysis job to recognize healthcare related entities (drugs, conditions, symptoms, etc) and their relations. + * + * @param input Contains a set of input documents to be analyzed by the service. + * @param context The context to associate with this operation. + * @param modelVersion (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. + * @param stringIndexType (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completion. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono healthWithResponseAsync(MultiLanguageBatchInput input, Context context, String modelVersion, StringIndexType stringIndexType) { + return service.health(this.getEndpoint(), modelVersion, stringIndexType, input, context); } /** - * The API returns a list of general named entities in a given document. For the list of supported entity types, - * check <a href="https://aka.ms/taner">Supported Entity Types in Text Analytics API</a>. See the <a - * href="https://aka.ms/talangs">Supported languages in Text Analytics API</a> for the list of enabled - * languages. - * + * The API returns a list of general named entities in a given document. For the list of supported entity types, check <a href="https://aka.ms/taner">Supported Entity Types in Text Analytics API</a>. See the <a href="https://aka.ms/talangs">Supported languages in Text Analytics API</a> for the list of enabled languages. + * * @param input Contains a set of input documents to be analyzed by the service. - * @param modelVersion (Optional) This value indicates which model will be used for scoring. If a model-version is - * not specified, the API should default to the latest, non-preview version. + * @param modelVersion (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. * @param showStats (Optional) if set to true, response will contain request and document level statistics. - * @param stringIndexType (Optional) Specifies the method used to interpret string offsets. Defaults to Text - * Elements (Graphemes) according to Unicode v8.0.0. For additional information see - * https://aka.ms/text-analytics-offsets. + * @param stringIndexType (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> entitiesRecognitionGeneralWithResponseAsync(MultiLanguageBatchInput input, String modelVersion, Boolean showStats, StringIndexType stringIndexType) { + return FluxUtil.withContext(context -> service.entitiesRecognitionGeneral(this.getEndpoint(), modelVersion, showStats, stringIndexType, input, context)); + } + + /** + * The API returns a list of general named entities in a given document. For the list of supported entity types, check <a href="https://aka.ms/taner">Supported Entity Types in Text Analytics API</a>. See the <a href="https://aka.ms/talangs">Supported languages in Text Analytics API</a> for the list of enabled languages. + * + * @param input Contains a set of input documents to be analyzed by the service. * @param context The context to associate with this operation. + * @param modelVersion (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. + * @param showStats (Optional) if set to true, response will contain request and document level statistics. + * @param stringIndexType (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> entitiesRecognitionGeneralWithResponseAsync( - MultiLanguageBatchInput input, - String modelVersion, - Boolean showStats, - StringIndexType stringIndexType, - Context context) { - return service.entitiesRecognitionGeneral( - this.getEndpoint(), modelVersion, showStats, stringIndexType, input, context); + public Mono> entitiesRecognitionGeneralWithResponseAsync(MultiLanguageBatchInput input, Context context, String modelVersion, Boolean showStats, StringIndexType stringIndexType) { + return service.entitiesRecognitionGeneral(this.getEndpoint(), modelVersion, showStats, stringIndexType, input, context); } /** - * The API returns a list of entities with personal information (\"SSN\", \"Bank Account\" etc) in the document. For - * the list of supported entity types, check <a href="https://aka.ms/tanerpii">Supported Entity Types in Text - * Analytics API</a>. See the <a href="https://aka.ms/talangs">Supported languages in Text Analytics - * API</a> for the list of enabled languages. - * + * The API returns a list of entities with personal information (\"SSN\", \"Bank Account\" etc) in the document. For the list of supported entity types, check <a href="https://aka.ms/tanerpii">Supported Entity Types in Text Analytics API</a>. See the <a href="https://aka.ms/talangs">Supported languages in Text Analytics API</a> for the list of enabled languages. + * * @param input Contains a set of input documents to be analyzed by the service. - * @param modelVersion (Optional) This value indicates which model will be used for scoring. If a model-version is - * not specified, the API should default to the latest, non-preview version. + * @param modelVersion (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. * @param showStats (Optional) if set to true, response will contain request and document level statistics. - * @param domain (Optional) if set to 'PHI', response will contain only PHI entities. - * @param stringIndexType (Optional) Specifies the method used to interpret string offsets. Defaults to Text - * Elements (Graphemes) according to Unicode v8.0.0. For additional information see - * https://aka.ms/text-analytics-offsets. + * @param domain (Optional) if specified, will set the PII domain to include only a subset of the entity categories. Possible values include: 'PHI', 'none'. + * @param stringIndexType (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> entitiesRecognitionPiiWithResponseAsync(MultiLanguageBatchInput input, String modelVersion, Boolean showStats, String domain, StringIndexType stringIndexType) { + return FluxUtil.withContext(context -> service.entitiesRecognitionPii(this.getEndpoint(), modelVersion, showStats, domain, stringIndexType, input, context)); + } + + /** + * The API returns a list of entities with personal information (\"SSN\", \"Bank Account\" etc) in the document. For the list of supported entity types, check <a href="https://aka.ms/tanerpii">Supported Entity Types in Text Analytics API</a>. See the <a href="https://aka.ms/talangs">Supported languages in Text Analytics API</a> for the list of enabled languages. + * + * @param input Contains a set of input documents to be analyzed by the service. * @param context The context to associate with this operation. + * @param modelVersion (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. + * @param showStats (Optional) if set to true, response will contain request and document level statistics. + * @param domain (Optional) if specified, will set the PII domain to include only a subset of the entity categories. Possible values include: 'PHI', 'none'. + * @param stringIndexType (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> entitiesRecognitionPiiWithResponseAsync( - MultiLanguageBatchInput input, - String modelVersion, - Boolean showStats, - String domain, - StringIndexType stringIndexType, - Context context) { - return service.entitiesRecognitionPii( - this.getEndpoint(), modelVersion, showStats, domain, stringIndexType, input, context); + public Mono> entitiesRecognitionPiiWithResponseAsync(MultiLanguageBatchInput input, Context context, String modelVersion, Boolean showStats, String domain, StringIndexType stringIndexType) { + return service.entitiesRecognitionPii(this.getEndpoint(), modelVersion, showStats, domain, stringIndexType, input, context); } /** - * The API returns a list of recognized entities with links to a well-known knowledge base. See the <a - * href="https://aka.ms/talangs">Supported languages in Text Analytics API</a> for the list of enabled - * languages. - * + * The API returns a list of recognized entities with links to a well-known knowledge base. See the <a href="https://aka.ms/talangs">Supported languages in Text Analytics API</a> for the list of enabled languages. + * * @param input Contains a set of input documents to be analyzed by the service. - * @param modelVersion (Optional) This value indicates which model will be used for scoring. If a model-version is - * not specified, the API should default to the latest, non-preview version. + * @param modelVersion (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. * @param showStats (Optional) if set to true, response will contain request and document level statistics. - * @param stringIndexType (Optional) Specifies the method used to interpret string offsets. Defaults to Text - * Elements (Graphemes) according to Unicode v8.0.0. For additional information see - * https://aka.ms/text-analytics-offsets. + * @param stringIndexType (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> entitiesLinkingWithResponseAsync(MultiLanguageBatchInput input, String modelVersion, Boolean showStats, StringIndexType stringIndexType) { + return FluxUtil.withContext(context -> service.entitiesLinking(this.getEndpoint(), modelVersion, showStats, stringIndexType, input, context)); + } + + /** + * The API returns a list of recognized entities with links to a well-known knowledge base. See the <a href="https://aka.ms/talangs">Supported languages in Text Analytics API</a> for the list of enabled languages. + * + * @param input Contains a set of input documents to be analyzed by the service. * @param context The context to associate with this operation. + * @param modelVersion (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. + * @param showStats (Optional) if set to true, response will contain request and document level statistics. + * @param stringIndexType (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> entitiesLinkingWithResponseAsync( - MultiLanguageBatchInput input, - String modelVersion, - Boolean showStats, - StringIndexType stringIndexType, - Context context) { + public Mono> entitiesLinkingWithResponseAsync(MultiLanguageBatchInput input, Context context, String modelVersion, Boolean showStats, StringIndexType stringIndexType) { return service.entitiesLinking(this.getEndpoint(), modelVersion, showStats, stringIndexType, input, context); } /** - * The API returns a list of strings denoting the key phrases in the input text. See the <a - * href="https://aka.ms/talangs">Supported languages in Text Analytics API</a> for the list of enabled - * languages. - * + * The API returns a list of strings denoting the key phrases in the input text. See the <a href="https://aka.ms/talangs">Supported languages in Text Analytics API</a> for the list of enabled languages. + * * @param input Contains a set of input documents to be analyzed by the service. - * @param modelVersion (Optional) This value indicates which model will be used for scoring. If a model-version is - * not specified, the API should default to the latest, non-preview version. + * @param modelVersion (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. * @param showStats (Optional) if set to true, response will contain request and document level statistics. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> keyPhrasesWithResponseAsync(MultiLanguageBatchInput input, String modelVersion, Boolean showStats) { + return FluxUtil.withContext(context -> service.keyPhrases(this.getEndpoint(), modelVersion, showStats, input, context)); + } + + /** + * The API returns a list of strings denoting the key phrases in the input text. See the <a href="https://aka.ms/talangs">Supported languages in Text Analytics API</a> for the list of enabled languages. + * + * @param input Contains a set of input documents to be analyzed by the service. * @param context The context to associate with this operation. + * @param modelVersion (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. + * @param showStats (Optional) if set to true, response will contain request and document level statistics. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> keyPhrasesWithResponseAsync( - MultiLanguageBatchInput input, String modelVersion, Boolean showStats, Context context) { + public Mono> keyPhrasesWithResponseAsync(MultiLanguageBatchInput input, Context context, String modelVersion, Boolean showStats) { return service.keyPhrases(this.getEndpoint(), modelVersion, showStats, input, context); } /** - * The API returns the detected language and a numeric score between 0 and 1. Scores close to 1 indicate 100% - * certainty that the identified language is true. See the <a href="https://aka.ms/talangs">Supported - * languages in Text Analytics API</a> for the list of enabled languages. - * + * The API returns the detected language and a numeric score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true. See the <a href="https://aka.ms/talangs">Supported languages in Text Analytics API</a> for the list of enabled languages. + * * @param input Collection of documents to analyze for language endpoint. - * @param modelVersion (Optional) This value indicates which model will be used for scoring. If a model-version is - * not specified, the API should default to the latest, non-preview version. + * @param modelVersion (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. * @param showStats (Optional) if set to true, response will contain request and document level statistics. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> languagesWithResponseAsync(LanguageBatchInput input, String modelVersion, Boolean showStats) { + return FluxUtil.withContext(context -> service.languages(this.getEndpoint(), modelVersion, showStats, input, context)); + } + + /** + * The API returns the detected language and a numeric score between 0 and 1. Scores close to 1 indicate 100% certainty that the identified language is true. See the <a href="https://aka.ms/talangs">Supported languages in Text Analytics API</a> for the list of enabled languages. + * + * @param input Collection of documents to analyze for language endpoint. * @param context The context to associate with this operation. + * @param modelVersion (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. + * @param showStats (Optional) if set to true, response will contain request and document level statistics. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> languagesWithResponseAsync( - LanguageBatchInput input, String modelVersion, Boolean showStats, Context context) { + public Mono> languagesWithResponseAsync(LanguageBatchInput input, Context context, String modelVersion, Boolean showStats) { return service.languages(this.getEndpoint(), modelVersion, showStats, input, context); } /** - * The API returns a detailed sentiment analysis for the input text. The analysis is done in multiple levels of - * granularity, start from the a document level, down to sentence and key terms (aspects) and opinions. - * + * The API returns a detailed sentiment analysis for the input text. The analysis is done in multiple levels of granularity, start from the a document level, down to sentence and key terms (aspects) and opinions. + * * @param input Contains a set of input documents to be analyzed by the service. - * @param modelVersion (Optional) This value indicates which model will be used for scoring. If a model-version is - * not specified, the API should default to the latest, non-preview version. + * @param modelVersion (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. * @param showStats (Optional) if set to true, response will contain request and document level statistics. - * @param opinionMining (Optional) if set to true, response will contain input and document level statistics - * including aspect-based sentiment analysis results. - * @param stringIndexType (Optional) Specifies the method used to interpret string offsets. Defaults to Text - * Elements (Graphemes) according to Unicode v8.0.0. For additional information see - * https://aka.ms/text-analytics-offsets. + * @param opinionMining (Optional) if set to true, response will contain input and document level statistics including aspect-based sentiment analysis results. + * @param stringIndexType (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ErrorResponseException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> sentimentWithResponseAsync(MultiLanguageBatchInput input, String modelVersion, Boolean showStats, Boolean opinionMining, StringIndexType stringIndexType) { + return FluxUtil.withContext(context -> service.sentiment(this.getEndpoint(), modelVersion, showStats, opinionMining, stringIndexType, input, context)); + } + + /** + * The API returns a detailed sentiment analysis for the input text. The analysis is done in multiple levels of granularity, start from the a document level, down to sentence and key terms (aspects) and opinions. + * + * @param input Contains a set of input documents to be analyzed by the service. * @param context The context to associate with this operation. + * @param modelVersion (Optional) This value indicates which model will be used for scoring. If a model-version is not specified, the API should default to the latest, non-preview version. + * @param showStats (Optional) if set to true, response will contain request and document level statistics. + * @param opinionMining (Optional) if set to true, response will contain input and document level statistics including aspect-based sentiment analysis results. + * @param stringIndexType (Optional) Specifies the method used to interpret string offsets. Defaults to Text Elements (Graphemes) according to Unicode v8.0.0. For additional information see https://aka.ms/text-analytics-offsets. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ErrorResponseException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> sentimentWithResponseAsync( - MultiLanguageBatchInput input, - String modelVersion, - Boolean showStats, - Boolean opinionMining, - StringIndexType stringIndexType, - Context context) { - return service.sentiment( - this.getEndpoint(), modelVersion, showStats, opinionMining, stringIndexType, input, context); + public Mono> sentimentWithResponseAsync(MultiLanguageBatchInput input, Context context, String modelVersion, Boolean showStats, Boolean opinionMining, StringIndexType stringIndexType) { + return service.sentiment(this.getEndpoint(), modelVersion, showStats, opinionMining, stringIndexType, input, context); } } diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/TextAnalyticsClientImplBuilder.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/TextAnalyticsClientImplBuilder.java index 340cd55b60a3d..86bed8c55ac6b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/TextAnalyticsClientImplBuilder.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/TextAnalyticsClientImplBuilder.java @@ -60,7 +60,7 @@ public TextAnalyticsClientImpl buildClient() { .policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()) .build(); } - TextAnalyticsClientImpl client = new TextAnalyticsClientImpl(pipeline, endpoint); + TextAnalyticsClientImpl client = new TextAnalyticsClientImpl(pipeline).setEndpoint(endpoint); return client; } } diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AnalyzeBatchInput.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AnalyzeBatchInput.java new file mode 100644 index 0000000000000..970d063bd0664 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AnalyzeBatchInput.java @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The AnalyzeBatchInput model. + */ +@Fluent +public final class AnalyzeBatchInput extends JobDescriptor { + /* + * Contains a set of input documents to be analyzed by the service. + */ + @JsonProperty(value = "analysisInput", required = true) + private MultiLanguageBatchInput analysisInput; + + /* + * The set of tasks to execute on the input documents. Cannot specify the + * same task more than once. + */ + @JsonProperty(value = "tasks", required = true) + private JobManifestTasks tasks; + + /** + * Get the analysisInput property: Contains a set of input documents to be + * analyzed by the service. + * + * @return the analysisInput value. + */ + public MultiLanguageBatchInput getAnalysisInput() { + return this.analysisInput; + } + + /** + * Set the analysisInput property: Contains a set of input documents to be + * analyzed by the service. + * + * @param analysisInput the analysisInput value to set. + * @return the AnalyzeBatchInput object itself. + */ + public AnalyzeBatchInput setAnalysisInput(MultiLanguageBatchInput analysisInput) { + this.analysisInput = analysisInput; + return this; + } + + /** + * Get the tasks property: The set of tasks to execute on the input + * documents. Cannot specify the same task more than once. + * + * @return the tasks value. + */ + public JobManifestTasks getTasks() { + return this.tasks; + } + + /** + * Set the tasks property: The set of tasks to execute on the input + * documents. Cannot specify the same task more than once. + * + * @param tasks the tasks value to set. + * @return the AnalyzeBatchInput object itself. + */ + public AnalyzeBatchInput setTasks(JobManifestTasks tasks) { + this.tasks = tasks; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AnalyzeHeaders.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AnalyzeHeaders.java new file mode 100644 index 0000000000000..6e79bf323f14f --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AnalyzeHeaders.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The AnalyzeHeaders model. + */ +@Fluent +public final class AnalyzeHeaders { + /* + * The Operation-Location property. + */ + @JsonProperty(value = "Operation-Location") + private String operationLocation; + + /** + * Get the operationLocation property: The Operation-Location property. + * + * @return the operationLocation value. + */ + public String getOperationLocation() { + return this.operationLocation; + } + + /** + * Set the operationLocation property: The Operation-Location property. + * + * @param operationLocation the operationLocation value to set. + * @return the AnalyzeHeaders object itself. + */ + public AnalyzeHeaders setOperationLocation(String operationLocation) { + this.operationLocation = operationLocation; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AnalyzeJobState.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AnalyzeJobState.java new file mode 100644 index 0000000000000..f0c427bbd0726 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AnalyzeJobState.java @@ -0,0 +1,122 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** + * The AnalyzeJobState model. + */ +@Fluent +public final class AnalyzeJobState extends JobMetadata { + /* + * The errors property. + */ + @JsonProperty(value = "errors") + private List errors; + + /* + * if showStats=true was specified in the request this field will contain + * information about the request payload. + */ + @JsonProperty(value = "statistics") + private RequestStatistics statistics; + + /* + * The tasks property. + */ + @JsonProperty(value = "tasks", required = true) + private TasksStateTasks tasks; + + /* + * The @nextLink property. + */ + @JsonProperty(value = "@nextLink") + private String nextLink; + + /** + * Get the errors property: The errors property. + * + * @return the errors value. + */ + public List getErrors() { + return this.errors; + } + + /** + * Set the errors property: The errors property. + * + * @param errors the errors value to set. + * @return the AnalyzeJobState object itself. + */ + public AnalyzeJobState setErrors(List errors) { + this.errors = errors; + return this; + } + + /** + * Get the statistics property: if showStats=true was specified in the + * request this field will contain information about the request payload. + * + * @return the statistics value. + */ + public RequestStatistics getStatistics() { + return this.statistics; + } + + /** + * Set the statistics property: if showStats=true was specified in the + * request this field will contain information about the request payload. + * + * @param statistics the statistics value to set. + * @return the AnalyzeJobState object itself. + */ + public AnalyzeJobState setStatistics(RequestStatistics statistics) { + this.statistics = statistics; + return this; + } + + /** + * Get the tasks property: The tasks property. + * + * @return the tasks value. + */ + public TasksStateTasks getTasks() { + return this.tasks; + } + + /** + * Set the tasks property: The tasks property. + * + * @param tasks the tasks value to set. + * @return the AnalyzeJobState object itself. + */ + public AnalyzeJobState setTasks(TasksStateTasks tasks) { + this.tasks = tasks; + return this; + } + + /** + * Get the nextLink property: The @nextLink property. + * + * @return the nextLink value. + */ + public String getNextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: The @nextLink property. + * + * @param nextLink the nextLink value to set. + * @return the AnalyzeJobState object itself. + */ + public AnalyzeJobState setNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AnalyzeResponse.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AnalyzeResponse.java new file mode 100644 index 0000000000000..eac1ccdc04f47 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AnalyzeResponse.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpRequest; +import com.azure.core.http.rest.ResponseBase; + +/** + * Contains all response data for the analyze operation. + */ +public final class AnalyzeResponse extends ResponseBase { + /** + * Creates an instance of AnalyzeResponse. + * + * @param request the request which resulted in this AnalyzeResponse. + * @param statusCode the status code of the HTTP response. + * @param rawHeaders the raw headers of the HTTP response. + * @param value the deserialized value of the HTTP response. + * @param headers the deserialized headers of the HTTP response. + */ + public AnalyzeResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, AnalyzeHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AspectConfidenceScoreLabel.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AspectConfidenceScoreLabel.java index 668ede14eb525..43f6929b5e8e9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AspectConfidenceScoreLabel.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AspectConfidenceScoreLabel.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** The AspectConfidenceScoreLabel model. */ +/** + * The AspectConfidenceScoreLabel model. + */ @Fluent public final class AspectConfidenceScoreLabel { /* @@ -24,7 +26,7 @@ public final class AspectConfidenceScoreLabel { /** * Get the positive property: The positive property. - * + * * @return the positive value. */ public double getPositive() { @@ -33,7 +35,7 @@ public double getPositive() { /** * Set the positive property: The positive property. - * + * * @param positive the positive value to set. * @return the AspectConfidenceScoreLabel object itself. */ @@ -44,7 +46,7 @@ public AspectConfidenceScoreLabel setPositive(double positive) { /** * Get the negative property: The negative property. - * + * * @return the negative value. */ public double getNegative() { @@ -53,7 +55,7 @@ public double getNegative() { /** * Set the negative property: The negative property. - * + * * @param negative the negative value to set. * @return the AspectConfidenceScoreLabel object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AspectRelation.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AspectRelation.java index 05ce364475299..79407b9c22137 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AspectRelation.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AspectRelation.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** The AspectRelation model. */ +/** + * The AspectRelation model. + */ @Fluent public final class AspectRelation { /* @@ -24,7 +26,7 @@ public final class AspectRelation { /** * Get the relationType property: The type related to the aspect. - * + * * @return the relationType value. */ public AspectRelationType getRelationType() { @@ -33,7 +35,7 @@ public AspectRelationType getRelationType() { /** * Set the relationType property: The type related to the aspect. - * + * * @param relationType the relationType value to set. * @return the AspectRelation object itself. */ @@ -44,7 +46,7 @@ public AspectRelation setRelationType(AspectRelationType relationType) { /** * Get the ref property: The JSON pointer indicating the linked object. - * + * * @return the ref value. */ public String getRef() { @@ -53,7 +55,7 @@ public String getRef() { /** * Set the ref property: The JSON pointer indicating the linked object. - * + * * @param ref the ref value to set. * @return the AspectRelation object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AspectRelationType.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AspectRelationType.java index c50d3d7043713..c12dcb7486304 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AspectRelationType.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AspectRelationType.java @@ -7,15 +7,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for AspectRelationType. */ +/** + * Defines values for AspectRelationType. + */ public enum AspectRelationType { - /** Enum value opinion. */ + /** + * Enum value opinion. + */ OPINION("opinion"), - /** Enum value aspect. */ + /** + * Enum value aspect. + */ ASPECT("aspect"); - /** The actual serialized value for a AspectRelationType instance. */ + /** + * The actual serialized value for a AspectRelationType instance. + */ private final String value; AspectRelationType(String value) { @@ -24,7 +32,7 @@ public enum AspectRelationType { /** * Parses a serialized value to a AspectRelationType instance. - * + * * @param value the serialized value to parse. * @return the parsed AspectRelationType object, or null if unable to parse. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CancelHealthJobHeaders.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CancelHealthJobHeaders.java new file mode 100644 index 0000000000000..a15e2484c289e --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CancelHealthJobHeaders.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The CancelHealthJobHeaders model. + */ +@Fluent +public final class CancelHealthJobHeaders { + /* + * The Operation-Location property. + */ + @JsonProperty(value = "Operation-Location") + private String operationLocation; + + /** + * Get the operationLocation property: The Operation-Location property. + * + * @return the operationLocation value. + */ + public String getOperationLocation() { + return this.operationLocation; + } + + /** + * Set the operationLocation property: The Operation-Location property. + * + * @param operationLocation the operationLocation value to set. + * @return the CancelHealthJobHeaders object itself. + */ + public CancelHealthJobHeaders setOperationLocation(String operationLocation) { + this.operationLocation = operationLocation; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CancelHealthJobResponse.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CancelHealthJobResponse.java new file mode 100644 index 0000000000000..b9cf8e1fefbc9 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CancelHealthJobResponse.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpRequest; +import com.azure.core.http.rest.ResponseBase; + +/** + * Contains all response data for the cancelHealthJob operation. + */ +public final class CancelHealthJobResponse extends ResponseBase { + /** + * Creates an instance of CancelHealthJobResponse. + * + * @param request the request which resulted in this CancelHealthJobResponse. + * @param statusCode the status code of the HTTP response. + * @param rawHeaders the raw headers of the HTTP response. + * @param value the deserialized value of the HTTP response. + * @param headers the deserialized headers of the HTTP response. + */ + public CancelHealthJobResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, CancelHealthJobHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1.java new file mode 100644 index 0000000000000..93927a313d8af --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The + * Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1 + * model. + */ +@Fluent +public class Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1 { + /* + * The results property. + */ + @JsonProperty(value = "results") + private EntitiesResult results; + + /** + * Get the results property: The results property. + * + * @return the results value. + */ + public EntitiesResult getResults() { + return this.results; + } + + /** + * Set the results property: The results property. + * + * @param results the results value to set. + * @return the + * Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1 + * object itself. + */ + public Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1 setResults(EntitiesResult results) { + this.results = results; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1.java new file mode 100644 index 0000000000000..7ba3a187d86d8 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The + * Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1 + * model. + */ +@Fluent +public class Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1 { + /* + * The results property. + */ + @JsonProperty(value = "results") + private PiiResult results; + + /** + * Get the results property: The results property. + * + * @return the results value. + */ + public PiiResult getResults() { + return this.results; + } + + /** + * Set the results property: The results property. + * + * @param results the results value to set. + * @return the + * Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1 + * object itself. + */ + public Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1 setResults(PiiResult results) { + this.results = results; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1.java new file mode 100644 index 0000000000000..1bfefcd27363a --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The + * Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1 + * model. + */ +@Fluent +public class Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1 { + /* + * The results property. + */ + @JsonProperty(value = "results") + private KeyPhraseResult results; + + /** + * Get the results property: The results property. + * + * @return the results value. + */ + public KeyPhraseResult getResults() { + return this.results; + } + + /** + * Set the results property: The results property. + * + * @param results the results value to set. + * @return the + * Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1 + * object itself. + */ + public Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1 setResults(KeyPhraseResult results) { + this.results = results; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DetectedLanguage.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DetectedLanguage.java index db9538d2c0043..bd031227091f8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DetectedLanguage.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DetectedLanguage.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** The DetectedLanguage model. */ +/** + * The DetectedLanguage model. + */ @Fluent public final class DetectedLanguage { /* @@ -31,8 +33,9 @@ public final class DetectedLanguage { private double confidenceScore; /** - * Get the name property: Long name of a detected language (e.g. English, French). - * + * Get the name property: Long name of a detected language (e.g. English, + * French). + * * @return the name value. */ public String getName() { @@ -40,8 +43,9 @@ public String getName() { } /** - * Set the name property: Long name of a detected language (e.g. English, French). - * + * Set the name property: Long name of a detected language (e.g. English, + * French). + * * @param name the name value to set. * @return the DetectedLanguage object itself. */ @@ -51,9 +55,9 @@ public DetectedLanguage setName(String name) { } /** - * Get the iso6391Name property: A two letter representation of the detected language according to the ISO 639-1 - * standard (e.g. en, fr). - * + * Get the iso6391Name property: A two letter representation of the + * detected language according to the ISO 639-1 standard (e.g. en, fr). + * * @return the iso6391Name value. */ public String getIso6391Name() { @@ -61,9 +65,9 @@ public String getIso6391Name() { } /** - * Set the iso6391Name property: A two letter representation of the detected language according to the ISO 639-1 - * standard (e.g. en, fr). - * + * Set the iso6391Name property: A two letter representation of the + * detected language according to the ISO 639-1 standard (e.g. en, fr). + * * @param iso6391Name the iso6391Name value to set. * @return the DetectedLanguage object itself. */ @@ -73,9 +77,10 @@ public DetectedLanguage setIso6391Name(String iso6391Name) { } /** - * Get the confidenceScore property: A confidence score between 0 and 1. Scores close to 1 indicate 100% certainty - * that the identified language is true. - * + * Get the confidenceScore property: A confidence score between 0 and 1. + * Scores close to 1 indicate 100% certainty that the identified language + * is true. + * * @return the confidenceScore value. */ public double getConfidenceScore() { @@ -83,9 +88,10 @@ public double getConfidenceScore() { } /** - * Set the confidenceScore property: A confidence score between 0 and 1. Scores close to 1 indicate 100% certainty - * that the identified language is true. - * + * Set the confidenceScore property: A confidence score between 0 and 1. + * Scores close to 1 indicate 100% certainty that the identified language + * is true. + * * @param confidenceScore the confidenceScore value to set. * @return the DetectedLanguage object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentEntities.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentEntities.java index 19f70d0823d81..dd1637927928f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentEntities.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentEntities.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The DocumentEntities model. */ +/** + * The DocumentEntities model. + */ @Fluent public final class DocumentEntities { /* @@ -38,7 +40,7 @@ public final class DocumentEntities { /** * Get the id property: Unique, non-empty document identifier. - * + * * @return the id value. */ public String getId() { @@ -47,7 +49,7 @@ public String getId() { /** * Set the id property: Unique, non-empty document identifier. - * + * * @param id the id value to set. * @return the DocumentEntities object itself. */ @@ -58,7 +60,7 @@ public DocumentEntities setId(String id) { /** * Get the entities property: Recognized entities in the document. - * + * * @return the entities value. */ public List getEntities() { @@ -67,7 +69,7 @@ public List getEntities() { /** * Set the entities property: Recognized entities in the document. - * + * * @param entities the entities value to set. * @return the DocumentEntities object itself. */ @@ -77,8 +79,9 @@ public DocumentEntities setEntities(List entities) { } /** - * Get the warnings property: Warnings encountered while processing document. - * + * Get the warnings property: Warnings encountered while processing + * document. + * * @return the warnings value. */ public List getWarnings() { @@ -86,8 +89,9 @@ public List getWarnings() { } /** - * Set the warnings property: Warnings encountered while processing document. - * + * Set the warnings property: Warnings encountered while processing + * document. + * * @param warnings the warnings value to set. * @return the DocumentEntities object itself. */ @@ -97,9 +101,9 @@ public DocumentEntities setWarnings(List warnings) { } /** - * Get the statistics property: if showStats=true was specified in the request this field will contain information - * about the document payload. - * + * Get the statistics property: if showStats=true was specified in the + * request this field will contain information about the document payload. + * * @return the statistics value. */ public DocumentStatistics getStatistics() { @@ -107,9 +111,9 @@ public DocumentStatistics getStatistics() { } /** - * Set the statistics property: if showStats=true was specified in the request this field will contain information - * about the document payload. - * + * Set the statistics property: if showStats=true was specified in the + * request this field will contain information about the document payload. + * * @param statistics the statistics value to set. * @return the DocumentEntities object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentError.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentError.java index cdcc457d59e3e..7d1ac563e085b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentError.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentError.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** The DocumentError model. */ +/** + * The DocumentError model. + */ @Fluent public final class DocumentError { /* @@ -24,7 +26,7 @@ public final class DocumentError { /** * Get the id property: Document Id. - * + * * @return the id value. */ public String getId() { @@ -33,7 +35,7 @@ public String getId() { /** * Set the id property: Document Id. - * + * * @param id the id value to set. * @return the DocumentError object itself. */ @@ -44,7 +46,7 @@ public DocumentError setId(String id) { /** * Get the error property: Document Error. - * + * * @return the error value. */ public TextAnalyticsError getError() { @@ -53,7 +55,7 @@ public TextAnalyticsError getError() { /** * Set the error property: Document Error. - * + * * @param error the error value to set. * @return the DocumentError object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentHealthcareEntities.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentHealthcareEntities.java new file mode 100644 index 0000000000000..11ee7c8135ee7 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentHealthcareEntities.java @@ -0,0 +1,150 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** + * The DocumentHealthcareEntities model. + */ +@Fluent +public final class DocumentHealthcareEntities { + /* + * Unique, non-empty document identifier. + */ + @JsonProperty(value = "id", required = true) + private String id; + + /* + * Healthcare entities. + */ + @JsonProperty(value = "entities", required = true) + private List entities; + + /* + * Healthcare entity relations. + */ + @JsonProperty(value = "relations", required = true) + private List relations; + + /* + * Warnings encountered while processing document. + */ + @JsonProperty(value = "warnings", required = true) + private List warnings; + + /* + * if showStats=true was specified in the request this field will contain + * information about the document payload. + */ + @JsonProperty(value = "statistics") + private DocumentStatistics statistics; + + /** + * Get the id property: Unique, non-empty document identifier. + * + * @return the id value. + */ + public String getId() { + return this.id; + } + + /** + * Set the id property: Unique, non-empty document identifier. + * + * @param id the id value to set. + * @return the DocumentHealthcareEntities object itself. + */ + public DocumentHealthcareEntities setId(String id) { + this.id = id; + return this; + } + + /** + * Get the entities property: Healthcare entities. + * + * @return the entities value. + */ + public List getEntities() { + return this.entities; + } + + /** + * Set the entities property: Healthcare entities. + * + * @param entities the entities value to set. + * @return the DocumentHealthcareEntities object itself. + */ + public DocumentHealthcareEntities setEntities(List entities) { + this.entities = entities; + return this; + } + + /** + * Get the relations property: Healthcare entity relations. + * + * @return the relations value. + */ + public List getRelations() { + return this.relations; + } + + /** + * Set the relations property: Healthcare entity relations. + * + * @param relations the relations value to set. + * @return the DocumentHealthcareEntities object itself. + */ + public DocumentHealthcareEntities setRelations(List relations) { + this.relations = relations; + return this; + } + + /** + * Get the warnings property: Warnings encountered while processing + * document. + * + * @return the warnings value. + */ + public List getWarnings() { + return this.warnings; + } + + /** + * Set the warnings property: Warnings encountered while processing + * document. + * + * @param warnings the warnings value to set. + * @return the DocumentHealthcareEntities object itself. + */ + public DocumentHealthcareEntities setWarnings(List warnings) { + this.warnings = warnings; + return this; + } + + /** + * Get the statistics property: if showStats=true was specified in the + * request this field will contain information about the document payload. + * + * @return the statistics value. + */ + public DocumentStatistics getStatistics() { + return this.statistics; + } + + /** + * Set the statistics property: if showStats=true was specified in the + * request this field will contain information about the document payload. + * + * @param statistics the statistics value to set. + * @return the DocumentHealthcareEntities object itself. + */ + public DocumentHealthcareEntities setStatistics(DocumentStatistics statistics) { + this.statistics = statistics; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentKeyPhrases.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentKeyPhrases.java index 7246406feabd5..98c442b0fe7d7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentKeyPhrases.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentKeyPhrases.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The DocumentKeyPhrases model. */ +/** + * The DocumentKeyPhrases model. + */ @Fluent public final class DocumentKeyPhrases { /* @@ -39,7 +41,7 @@ public final class DocumentKeyPhrases { /** * Get the id property: Unique, non-empty document identifier. - * + * * @return the id value. */ public String getId() { @@ -48,7 +50,7 @@ public String getId() { /** * Set the id property: Unique, non-empty document identifier. - * + * * @param id the id value to set. * @return the DocumentKeyPhrases object itself. */ @@ -58,9 +60,10 @@ public DocumentKeyPhrases setId(String id) { } /** - * Get the keyPhrases property: A list of representative words or phrases. The number of key phrases returned is - * proportional to the number of words in the input document. - * + * Get the keyPhrases property: A list of representative words or phrases. + * The number of key phrases returned is proportional to the number of + * words in the input document. + * * @return the keyPhrases value. */ public List getKeyPhrases() { @@ -68,9 +71,10 @@ public List getKeyPhrases() { } /** - * Set the keyPhrases property: A list of representative words or phrases. The number of key phrases returned is - * proportional to the number of words in the input document. - * + * Set the keyPhrases property: A list of representative words or phrases. + * The number of key phrases returned is proportional to the number of + * words in the input document. + * * @param keyPhrases the keyPhrases value to set. * @return the DocumentKeyPhrases object itself. */ @@ -80,8 +84,9 @@ public DocumentKeyPhrases setKeyPhrases(List keyPhrases) { } /** - * Get the warnings property: Warnings encountered while processing document. - * + * Get the warnings property: Warnings encountered while processing + * document. + * * @return the warnings value. */ public List getWarnings() { @@ -89,8 +94,9 @@ public List getWarnings() { } /** - * Set the warnings property: Warnings encountered while processing document. - * + * Set the warnings property: Warnings encountered while processing + * document. + * * @param warnings the warnings value to set. * @return the DocumentKeyPhrases object itself. */ @@ -100,9 +106,9 @@ public DocumentKeyPhrases setWarnings(List warnings) { } /** - * Get the statistics property: if showStats=true was specified in the request this field will contain information - * about the document payload. - * + * Get the statistics property: if showStats=true was specified in the + * request this field will contain information about the document payload. + * * @return the statistics value. */ public DocumentStatistics getStatistics() { @@ -110,9 +116,9 @@ public DocumentStatistics getStatistics() { } /** - * Set the statistics property: if showStats=true was specified in the request this field will contain information - * about the document payload. - * + * Set the statistics property: if showStats=true was specified in the + * request this field will contain information about the document payload. + * * @param statistics the statistics value to set. * @return the DocumentKeyPhrases object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentLanguage.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentLanguage.java index b195406d85350..64b11e8231f7c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentLanguage.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentLanguage.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The DocumentLanguage model. */ +/** + * The DocumentLanguage model. + */ @Fluent public final class DocumentLanguage { /* @@ -38,7 +40,7 @@ public final class DocumentLanguage { /** * Get the id property: Unique, non-empty document identifier. - * + * * @return the id value. */ public String getId() { @@ -47,7 +49,7 @@ public String getId() { /** * Set the id property: Unique, non-empty document identifier. - * + * * @param id the id value to set. * @return the DocumentLanguage object itself. */ @@ -58,7 +60,7 @@ public DocumentLanguage setId(String id) { /** * Get the detectedLanguage property: Detected Language. - * + * * @return the detectedLanguage value. */ public DetectedLanguage getDetectedLanguage() { @@ -67,7 +69,7 @@ public DetectedLanguage getDetectedLanguage() { /** * Set the detectedLanguage property: Detected Language. - * + * * @param detectedLanguage the detectedLanguage value to set. * @return the DocumentLanguage object itself. */ @@ -77,8 +79,9 @@ public DocumentLanguage setDetectedLanguage(DetectedLanguage detectedLanguage) { } /** - * Get the warnings property: Warnings encountered while processing document. - * + * Get the warnings property: Warnings encountered while processing + * document. + * * @return the warnings value. */ public List getWarnings() { @@ -86,8 +89,9 @@ public List getWarnings() { } /** - * Set the warnings property: Warnings encountered while processing document. - * + * Set the warnings property: Warnings encountered while processing + * document. + * * @param warnings the warnings value to set. * @return the DocumentLanguage object itself. */ @@ -97,9 +101,9 @@ public DocumentLanguage setWarnings(List warnings) { } /** - * Get the statistics property: if showStats=true was specified in the request this field will contain information - * about the document payload. - * + * Get the statistics property: if showStats=true was specified in the + * request this field will contain information about the document payload. + * * @return the statistics value. */ public DocumentStatistics getStatistics() { @@ -107,9 +111,9 @@ public DocumentStatistics getStatistics() { } /** - * Set the statistics property: if showStats=true was specified in the request this field will contain information - * about the document payload. - * + * Set the statistics property: if showStats=true was specified in the + * request this field will contain information about the document payload. + * * @param statistics the statistics value to set. * @return the DocumentLanguage object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentLinkedEntities.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentLinkedEntities.java index 952b1f972ddc0..c6c548e484b84 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentLinkedEntities.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentLinkedEntities.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The DocumentLinkedEntities model. */ +/** + * The DocumentLinkedEntities model. + */ @Fluent public final class DocumentLinkedEntities { /* @@ -38,7 +40,7 @@ public final class DocumentLinkedEntities { /** * Get the id property: Unique, non-empty document identifier. - * + * * @return the id value. */ public String getId() { @@ -47,7 +49,7 @@ public String getId() { /** * Set the id property: Unique, non-empty document identifier. - * + * * @param id the id value to set. * @return the DocumentLinkedEntities object itself. */ @@ -57,8 +59,9 @@ public DocumentLinkedEntities setId(String id) { } /** - * Get the entities property: Recognized well-known entities in the document. - * + * Get the entities property: Recognized well-known entities in the + * document. + * * @return the entities value. */ public List getEntities() { @@ -66,8 +69,9 @@ public List getEntities() { } /** - * Set the entities property: Recognized well-known entities in the document. - * + * Set the entities property: Recognized well-known entities in the + * document. + * * @param entities the entities value to set. * @return the DocumentLinkedEntities object itself. */ @@ -77,8 +81,9 @@ public DocumentLinkedEntities setEntities(List entities) { } /** - * Get the warnings property: Warnings encountered while processing document. - * + * Get the warnings property: Warnings encountered while processing + * document. + * * @return the warnings value. */ public List getWarnings() { @@ -86,8 +91,9 @@ public List getWarnings() { } /** - * Set the warnings property: Warnings encountered while processing document. - * + * Set the warnings property: Warnings encountered while processing + * document. + * * @param warnings the warnings value to set. * @return the DocumentLinkedEntities object itself. */ @@ -97,9 +103,9 @@ public DocumentLinkedEntities setWarnings(List warnings) { } /** - * Get the statistics property: if showStats=true was specified in the request this field will contain information - * about the document payload. - * + * Get the statistics property: if showStats=true was specified in the + * request this field will contain information about the document payload. + * * @return the statistics value. */ public DocumentStatistics getStatistics() { @@ -107,9 +113,9 @@ public DocumentStatistics getStatistics() { } /** - * Set the statistics property: if showStats=true was specified in the request this field will contain information - * about the document payload. - * + * Set the statistics property: if showStats=true was specified in the + * request this field will contain information about the document payload. + * * @param statistics the statistics value to set. * @return the DocumentLinkedEntities object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentSentiment.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentSentiment.java index d029dc57e4b9b..80d62cfe0082f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentSentiment.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentSentiment.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The DocumentSentiment model. */ +/** + * The DocumentSentiment model. + */ @Fluent public final class DocumentSentiment { /* @@ -52,7 +54,7 @@ public final class DocumentSentiment { /** * Get the id property: Unique, non-empty document identifier. - * + * * @return the id value. */ public String getId() { @@ -61,7 +63,7 @@ public String getId() { /** * Set the id property: Unique, non-empty document identifier. - * + * * @param id the id value to set. * @return the DocumentSentiment object itself. */ @@ -71,8 +73,9 @@ public DocumentSentiment setId(String id) { } /** - * Get the sentiment property: Predicted sentiment for document (Negative, Neutral, Positive, or Mixed). - * + * Get the sentiment property: Predicted sentiment for document (Negative, + * Neutral, Positive, or Mixed). + * * @return the sentiment value. */ public DocumentSentimentValue getSentiment() { @@ -80,8 +83,9 @@ public DocumentSentimentValue getSentiment() { } /** - * Set the sentiment property: Predicted sentiment for document (Negative, Neutral, Positive, or Mixed). - * + * Set the sentiment property: Predicted sentiment for document (Negative, + * Neutral, Positive, or Mixed). + * * @param sentiment the sentiment value to set. * @return the DocumentSentiment object itself. */ @@ -91,9 +95,9 @@ public DocumentSentiment setSentiment(DocumentSentimentValue sentiment) { } /** - * Get the statistics property: if showStats=true was specified in the request this field will contain information - * about the document payload. - * + * Get the statistics property: if showStats=true was specified in the + * request this field will contain information about the document payload. + * * @return the statistics value. */ public DocumentStatistics getStatistics() { @@ -101,9 +105,9 @@ public DocumentStatistics getStatistics() { } /** - * Set the statistics property: if showStats=true was specified in the request this field will contain information - * about the document payload. - * + * Set the statistics property: if showStats=true was specified in the + * request this field will contain information about the document payload. + * * @param statistics the statistics value to set. * @return the DocumentSentiment object itself. */ @@ -113,9 +117,9 @@ public DocumentSentiment setStatistics(DocumentStatistics statistics) { } /** - * Get the confidenceScores property: Document level sentiment confidence scores between 0 and 1 for each sentiment - * class. - * + * Get the confidenceScores property: Document level sentiment confidence + * scores between 0 and 1 for each sentiment class. + * * @return the confidenceScores value. */ public SentimentConfidenceScorePerLabel getConfidenceScores() { @@ -123,9 +127,9 @@ public SentimentConfidenceScorePerLabel getConfidenceScores() { } /** - * Set the confidenceScores property: Document level sentiment confidence scores between 0 and 1 for each sentiment - * class. - * + * Set the confidenceScores property: Document level sentiment confidence + * scores between 0 and 1 for each sentiment class. + * * @param confidenceScores the confidenceScores value to set. * @return the DocumentSentiment object itself. */ @@ -136,7 +140,7 @@ public DocumentSentiment setConfidenceScores(SentimentConfidenceScorePerLabel co /** * Get the sentences property: Sentence level sentiment analysis. - * + * * @return the sentences value. */ public List getSentences() { @@ -145,7 +149,7 @@ public List getSentences() { /** * Set the sentences property: Sentence level sentiment analysis. - * + * * @param sentences the sentences value to set. * @return the DocumentSentiment object itself. */ @@ -155,8 +159,9 @@ public DocumentSentiment setSentences(List sentences) { } /** - * Get the warnings property: Warnings encountered while processing document. - * + * Get the warnings property: Warnings encountered while processing + * document. + * * @return the warnings value. */ public List getWarnings() { @@ -164,8 +169,9 @@ public List getWarnings() { } /** - * Set the warnings property: Warnings encountered while processing document. - * + * Set the warnings property: Warnings encountered while processing + * document. + * * @param warnings the warnings value to set. * @return the DocumentSentiment object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentSentimentValue.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentSentimentValue.java index 0964d67bafe2d..3348780b91a96 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentSentimentValue.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentSentimentValue.java @@ -7,21 +7,33 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for DocumentSentimentValue. */ +/** + * Defines values for DocumentSentimentValue. + */ public enum DocumentSentimentValue { - /** Enum value positive. */ + /** + * Enum value positive. + */ POSITIVE("positive"), - /** Enum value neutral. */ + /** + * Enum value neutral. + */ NEUTRAL("neutral"), - /** Enum value negative. */ + /** + * Enum value negative. + */ NEGATIVE("negative"), - /** Enum value mixed. */ + /** + * Enum value mixed. + */ MIXED("mixed"); - /** The actual serialized value for a DocumentSentimentValue instance. */ + /** + * The actual serialized value for a DocumentSentimentValue instance. + */ private final String value; DocumentSentimentValue(String value) { @@ -30,7 +42,7 @@ public enum DocumentSentimentValue { /** * Parses a serialized value to a DocumentSentimentValue instance. - * + * * @param value the serialized value to parse. * @return the parsed DocumentSentimentValue object, or null if unable to parse. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentStatistics.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentStatistics.java index 93d26d27cfd03..ef73e3f47e57f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentStatistics.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/DocumentStatistics.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** The DocumentStatistics model. */ +/** + * The DocumentStatistics model. + */ @Fluent public final class DocumentStatistics { /* @@ -23,8 +25,9 @@ public final class DocumentStatistics { private int transactionsCount; /** - * Get the charactersCount property: Number of text elements recognized in the document. - * + * Get the charactersCount property: Number of text elements recognized in + * the document. + * * @return the charactersCount value. */ public int getCharactersCount() { @@ -32,8 +35,9 @@ public int getCharactersCount() { } /** - * Set the charactersCount property: Number of text elements recognized in the document. - * + * Set the charactersCount property: Number of text elements recognized in + * the document. + * * @param charactersCount the charactersCount value to set. * @return the DocumentStatistics object itself. */ @@ -43,8 +47,9 @@ public DocumentStatistics setCharactersCount(int charactersCount) { } /** - * Get the transactionsCount property: Number of transactions for the document. - * + * Get the transactionsCount property: Number of transactions for the + * document. + * * @return the transactionsCount value. */ public int getTransactionsCount() { @@ -52,8 +57,9 @@ public int getTransactionsCount() { } /** - * Set the transactionsCount property: Number of transactions for the document. - * + * Set the transactionsCount property: Number of transactions for the + * document. + * * @param transactionsCount the transactionsCount value to set. * @return the DocumentStatistics object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/EntitiesResult.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/EntitiesResult.java index 51baf6e747dff..e103245b3c997 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/EntitiesResult.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/EntitiesResult.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The EntitiesResult model. */ +/** + * The EntitiesResult model. + */ @Fluent public final class EntitiesResult { /* @@ -38,7 +40,7 @@ public final class EntitiesResult { /** * Get the documents property: Response by document. - * + * * @return the documents value. */ public List getDocuments() { @@ -47,7 +49,7 @@ public List getDocuments() { /** * Set the documents property: Response by document. - * + * * @param documents the documents value to set. * @return the EntitiesResult object itself. */ @@ -58,7 +60,7 @@ public EntitiesResult setDocuments(List documents) { /** * Get the errors property: Errors by document id. - * + * * @return the errors value. */ public List getErrors() { @@ -67,7 +69,7 @@ public List getErrors() { /** * Set the errors property: Errors by document id. - * + * * @param errors the errors value to set. * @return the EntitiesResult object itself. */ @@ -77,9 +79,9 @@ public EntitiesResult setErrors(List errors) { } /** - * Get the statistics property: if showStats=true was specified in the request this field will contain information - * about the request payload. - * + * Get the statistics property: if showStats=true was specified in the + * request this field will contain information about the request payload. + * * @return the statistics value. */ public RequestStatistics getStatistics() { @@ -87,9 +89,9 @@ public RequestStatistics getStatistics() { } /** - * Set the statistics property: if showStats=true was specified in the request this field will contain information - * about the request payload. - * + * Set the statistics property: if showStats=true was specified in the + * request this field will contain information about the request payload. + * * @param statistics the statistics value to set. * @return the EntitiesResult object itself. */ @@ -99,8 +101,9 @@ public EntitiesResult setStatistics(RequestStatistics statistics) { } /** - * Get the modelVersion property: This field indicates which model is used for scoring. - * + * Get the modelVersion property: This field indicates which model is used + * for scoring. + * * @return the modelVersion value. */ public String getModelVersion() { @@ -108,8 +111,9 @@ public String getModelVersion() { } /** - * Set the modelVersion property: This field indicates which model is used for scoring. - * + * Set the modelVersion property: This field indicates which model is used + * for scoring. + * * @param modelVersion the modelVersion value to set. * @return the EntitiesResult object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/EntitiesTask.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/EntitiesTask.java new file mode 100644 index 0000000000000..9544c7f9d1e78 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/EntitiesTask.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The EntitiesTask model. + */ +@Fluent +public final class EntitiesTask { + /* + * The parameters property. + */ + @JsonProperty(value = "parameters") + private EntitiesTaskParameters parameters; + + /** + * Get the parameters property: The parameters property. + * + * @return the parameters value. + */ + public EntitiesTaskParameters getParameters() { + return this.parameters; + } + + /** + * Set the parameters property: The parameters property. + * + * @param parameters the parameters value to set. + * @return the EntitiesTask object itself. + */ + public EntitiesTask setParameters(EntitiesTaskParameters parameters) { + this.parameters = parameters; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/EntitiesTaskParameters.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/EntitiesTaskParameters.java new file mode 100644 index 0000000000000..89fcbaa426b3f --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/EntitiesTaskParameters.java @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The EntitiesTaskParameters model. + */ +@Fluent +public final class EntitiesTaskParameters { + /* + * The model-version property. + */ + @JsonProperty(value = "model-version") + private String modelVersion; + + /* + * The stringIndexType property. + */ + @JsonProperty(value = "stringIndexType") + private StringIndexTypeResponse stringIndexType; + + /** + * Get the modelVersion property: The model-version property. + * + * @return the modelVersion value. + */ + public String getModelVersion() { + return this.modelVersion; + } + + /** + * Set the modelVersion property: The model-version property. + * + * @param modelVersion the modelVersion value to set. + * @return the EntitiesTaskParameters object itself. + */ + public EntitiesTaskParameters setModelVersion(String modelVersion) { + this.modelVersion = modelVersion; + return this; + } + + /** + * Get the stringIndexType property: The stringIndexType property. + * + * @return the stringIndexType value. + */ + public StringIndexTypeResponse getStringIndexType() { + return this.stringIndexType; + } + + /** + * Set the stringIndexType property: The stringIndexType property. + * + * @param stringIndexType the stringIndexType value to set. + * @return the EntitiesTaskParameters object itself. + */ + public EntitiesTaskParameters setStringIndexType(StringIndexTypeResponse stringIndexType) { + this.stringIndexType = stringIndexType; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Entity.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Entity.java index bf46484caa80a..a9e6e133fc1f6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Entity.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Entity.java @@ -7,9 +7,11 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** The Entity model. */ +/** + * The Entity model. + */ @Fluent -public final class Entity { +public class Entity { /* * Entity text as appears in the request. */ @@ -17,25 +19,27 @@ public final class Entity { private String text; /* - * Entity type, such as Person/Location/Org/SSN etc + * Entity type. */ @JsonProperty(value = "category", required = true) private String category; /* - * Entity sub type, such as Age/Year/TimeRange etc + * (Optional) Entity sub type. */ @JsonProperty(value = "subcategory") private String subcategory; /* - * Start position for the entity text. + * Start position for the entity text. Use of different 'stringIndexType' + * values can affect the offset returned. */ @JsonProperty(value = "offset", required = true) private int offset; /* - * Length for the entity text. + * Length for the entity text. Use of different 'stringIndexType' values + * can affect the length returned. */ @JsonProperty(value = "length", required = true) private int length; @@ -48,7 +52,7 @@ public final class Entity { /** * Get the text property: Entity text as appears in the request. - * + * * @return the text value. */ public String getText() { @@ -57,7 +61,7 @@ public String getText() { /** * Set the text property: Entity text as appears in the request. - * + * * @param text the text value to set. * @return the Entity object itself. */ @@ -67,8 +71,8 @@ public Entity setText(String text) { } /** - * Get the category property: Entity type, such as Person/Location/Org/SSN etc. - * + * Get the category property: Entity type. + * * @return the category value. */ public String getCategory() { @@ -76,8 +80,8 @@ public String getCategory() { } /** - * Set the category property: Entity type, such as Person/Location/Org/SSN etc. - * + * Set the category property: Entity type. + * * @param category the category value to set. * @return the Entity object itself. */ @@ -87,8 +91,8 @@ public Entity setCategory(String category) { } /** - * Get the subcategory property: Entity sub type, such as Age/Year/TimeRange etc. - * + * Get the subcategory property: (Optional) Entity sub type. + * * @return the subcategory value. */ public String getSubcategory() { @@ -96,8 +100,8 @@ public String getSubcategory() { } /** - * Set the subcategory property: Entity sub type, such as Age/Year/TimeRange etc. - * + * Set the subcategory property: (Optional) Entity sub type. + * * @param subcategory the subcategory value to set. * @return the Entity object itself. */ @@ -107,8 +111,9 @@ public Entity setSubcategory(String subcategory) { } /** - * Get the offset property: Start position for the entity text. - * + * Get the offset property: Start position for the entity text. Use of + * different 'stringIndexType' values can affect the offset returned. + * * @return the offset value. */ public int getOffset() { @@ -116,8 +121,9 @@ public int getOffset() { } /** - * Set the offset property: Start position for the entity text. - * + * Set the offset property: Start position for the entity text. Use of + * different 'stringIndexType' values can affect the offset returned. + * * @param offset the offset value to set. * @return the Entity object itself. */ @@ -127,8 +133,9 @@ public Entity setOffset(int offset) { } /** - * Get the length property: Length for the entity text. - * + * Get the length property: Length for the entity text. Use of different + * 'stringIndexType' values can affect the length returned. + * * @return the length value. */ public int getLength() { @@ -136,8 +143,9 @@ public int getLength() { } /** - * Set the length property: Length for the entity text. - * + * Set the length property: Length for the entity text. Use of different + * 'stringIndexType' values can affect the length returned. + * * @param length the length value to set. * @return the Entity object itself. */ @@ -147,8 +155,9 @@ public Entity setLength(int length) { } /** - * Get the confidenceScore property: Confidence score between 0 and 1 of the extracted entity. - * + * Get the confidenceScore property: Confidence score between 0 and 1 of + * the extracted entity. + * * @return the confidenceScore value. */ public double getConfidenceScore() { @@ -156,8 +165,9 @@ public double getConfidenceScore() { } /** - * Set the confidenceScore property: Confidence score between 0 and 1 of the extracted entity. - * + * Set the confidenceScore property: Confidence score between 0 and 1 of + * the extracted entity. + * * @param confidenceScore the confidenceScore value to set. * @return the Entity object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/EntityLinkingResult.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/EntityLinkingResult.java index 35b71cc3b8b05..ffadfa03a1188 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/EntityLinkingResult.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/EntityLinkingResult.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The EntityLinkingResult model. */ +/** + * The EntityLinkingResult model. + */ @Fluent public final class EntityLinkingResult { /* @@ -38,7 +40,7 @@ public final class EntityLinkingResult { /** * Get the documents property: Response by document. - * + * * @return the documents value. */ public List getDocuments() { @@ -47,7 +49,7 @@ public List getDocuments() { /** * Set the documents property: Response by document. - * + * * @param documents the documents value to set. * @return the EntityLinkingResult object itself. */ @@ -58,7 +60,7 @@ public EntityLinkingResult setDocuments(List documents) /** * Get the errors property: Errors by document id. - * + * * @return the errors value. */ public List getErrors() { @@ -67,7 +69,7 @@ public List getErrors() { /** * Set the errors property: Errors by document id. - * + * * @param errors the errors value to set. * @return the EntityLinkingResult object itself. */ @@ -77,9 +79,9 @@ public EntityLinkingResult setErrors(List errors) { } /** - * Get the statistics property: if showStats=true was specified in the request this field will contain information - * about the request payload. - * + * Get the statistics property: if showStats=true was specified in the + * request this field will contain information about the request payload. + * * @return the statistics value. */ public RequestStatistics getStatistics() { @@ -87,9 +89,9 @@ public RequestStatistics getStatistics() { } /** - * Set the statistics property: if showStats=true was specified in the request this field will contain information - * about the request payload. - * + * Set the statistics property: if showStats=true was specified in the + * request this field will contain information about the request payload. + * * @param statistics the statistics value to set. * @return the EntityLinkingResult object itself. */ @@ -99,8 +101,9 @@ public EntityLinkingResult setStatistics(RequestStatistics statistics) { } /** - * Get the modelVersion property: This field indicates which model is used for scoring. - * + * Get the modelVersion property: This field indicates which model is used + * for scoring. + * * @return the modelVersion value. */ public String getModelVersion() { @@ -108,8 +111,9 @@ public String getModelVersion() { } /** - * Set the modelVersion property: This field indicates which model is used for scoring. - * + * Set the modelVersion property: This field indicates which model is used + * for scoring. + * * @param modelVersion the modelVersion value to set. * @return the EntityLinkingResult object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/ErrorCodeValue.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/ErrorCodeValue.java index a6dca165182da..f13b0bcc069dd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/ErrorCodeValue.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/ErrorCodeValue.java @@ -4,37 +4,67 @@ package com.azure.ai.textanalytics.implementation.models; -import com.azure.core.util.ExpandableStringEnum; import com.fasterxml.jackson.annotation.JsonCreator; -import java.util.Collection; +import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for ErrorCodeValue. */ -public final class ErrorCodeValue extends ExpandableStringEnum { - /** Static value InvalidRequest for ErrorCodeValue. */ - public static final ErrorCodeValue INVALID_REQUEST = fromString("InvalidRequest"); +/** + * Defines values for ErrorCodeValue. + */ +public enum ErrorCodeValue { + /** + * Enum value InvalidRequest. + */ + INVALID_REQUEST("InvalidRequest"), + + /** + * Enum value InvalidArgument. + */ + INVALID_ARGUMENT("InvalidArgument"), + + /** + * Enum value InternalServerError. + */ + INTERNAL_SERVER_ERROR("InternalServerError"), - /** Static value InvalidArgument for ErrorCodeValue. */ - public static final ErrorCodeValue INVALID_ARGUMENT = fromString("InvalidArgument"); + /** + * Enum value ServiceUnavailable. + */ + SERVICE_UNAVAILABLE("ServiceUnavailable"), + + /** + * Enum value NotFound. + */ + NOT_FOUND("NotFound"); - /** Static value InternalServerError for ErrorCodeValue. */ - public static final ErrorCodeValue INTERNAL_SERVER_ERROR = fromString("InternalServerError"); + /** + * The actual serialized value for a ErrorCodeValue instance. + */ + private final String value; - /** Static value ServiceUnavailable for ErrorCodeValue. */ - public static final ErrorCodeValue SERVICE_UNAVAILABLE = fromString("ServiceUnavailable"); + ErrorCodeValue(String value) { + this.value = value; + } /** - * Creates or finds a ErrorCodeValue from its string representation. - * - * @param name a name to look for. - * @return the corresponding ErrorCodeValue. + * Parses a serialized value to a ErrorCodeValue instance. + * + * @param value the serialized value to parse. + * @return the parsed ErrorCodeValue object, or null if unable to parse. */ @JsonCreator - public static ErrorCodeValue fromString(String name) { - return fromString(name, ErrorCodeValue.class); + public static ErrorCodeValue fromString(String value) { + ErrorCodeValue[] items = ErrorCodeValue.values(); + for (ErrorCodeValue item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; } - /** @return known ErrorCodeValue values. */ - public static Collection values() { - return values(ErrorCodeValue.class); + @JsonValue + @Override + public String toString() { + return this.value; } } diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/ErrorResponse.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/ErrorResponse.java index 2689490a7c97b..428b6b7e863be 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/ErrorResponse.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/ErrorResponse.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** The ErrorResponse model. */ +/** + * The ErrorResponse model. + */ @Fluent public final class ErrorResponse { /* @@ -18,7 +20,7 @@ public final class ErrorResponse { /** * Get the error property: Document Error. - * + * * @return the error value. */ public TextAnalyticsError getError() { @@ -27,7 +29,7 @@ public TextAnalyticsError getError() { /** * Set the error property: Document Error. - * + * * @param error the error value to set. * @return the ErrorResponse object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/ErrorResponseException.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/ErrorResponseException.java index 4d335f2abf876..87097b5ea35df 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/ErrorResponseException.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/ErrorResponseException.java @@ -7,11 +7,13 @@ import com.azure.core.exception.HttpResponseException; import com.azure.core.http.HttpResponse; -/** Exception thrown for an invalid response with ErrorResponse information. */ +/** + * Exception thrown for an invalid response with ErrorResponse information. + */ public final class ErrorResponseException extends HttpResponseException { /** * Initializes a new instance of the ErrorResponseException class. - * + * * @param message the exception message or the response content if a message is not available. * @param response the HTTP response. */ @@ -21,7 +23,7 @@ public ErrorResponseException(String message, HttpResponse response) { /** * Initializes a new instance of the ErrorResponseException class. - * + * * @param message the exception message or the response content if a message is not available. * @param response the HTTP response. * @param value the deserialized response value. diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthHeaders.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthHeaders.java new file mode 100644 index 0000000000000..b1cf0224a554d --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthHeaders.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The HealthHeaders model. + */ +@Fluent +public final class HealthHeaders { + /* + * The Operation-Location property. + */ + @JsonProperty(value = "Operation-Location") + private String operationLocation; + + /** + * Get the operationLocation property: The Operation-Location property. + * + * @return the operationLocation value. + */ + public String getOperationLocation() { + return this.operationLocation; + } + + /** + * Set the operationLocation property: The Operation-Location property. + * + * @param operationLocation the operationLocation value to set. + * @return the HealthHeaders object itself. + */ + public HealthHeaders setOperationLocation(String operationLocation) { + this.operationLocation = operationLocation; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthResponse.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthResponse.java new file mode 100644 index 0000000000000..bf8c8df17f212 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthResponse.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpRequest; +import com.azure.core.http.rest.ResponseBase; + +/** + * Contains all response data for the health operation. + */ +public final class HealthResponse extends ResponseBase { + /** + * Creates an instance of HealthResponse. + * + * @param request the request which resulted in this HealthResponse. + * @param statusCode the status code of the HTTP response. + * @param rawHeaders the raw headers of the HTTP response. + * @param value the deserialized value of the HTTP response. + * @param headers the deserialized headers of the HTTP response. + */ + public HealthResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, HealthHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthcareEntity.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthcareEntity.java new file mode 100644 index 0000000000000..1bbeb8589aef1 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthcareEntity.java @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** + * The HealthcareEntity model. + */ +@Fluent +public final class HealthcareEntity extends Entity { + /* + * The isNegated property. + */ + @JsonProperty(value = "isNegated", required = true) + private boolean isNegated; + + /* + * Entity references in known data sources. + */ + @JsonProperty(value = "links") + private List links; + + /** + * Get the isNegated property: The isNegated property. + * + * @return the isNegated value. + */ + public boolean isNegated() { + return this.isNegated; + } + + /** + * Set the isNegated property: The isNegated property. + * + * @param isNegated the isNegated value to set. + * @return the HealthcareEntity object itself. + */ + public HealthcareEntity setIsNegated(boolean isNegated) { + this.isNegated = isNegated; + return this; + } + + /** + * Get the links property: Entity references in known data sources. + * + * @return the links value. + */ + public List getLinks() { + return this.links; + } + + /** + * Set the links property: Entity references in known data sources. + * + * @param links the links value to set. + * @return the HealthcareEntity object itself. + */ + public HealthcareEntity setLinks(List links) { + this.links = links; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthcareEntityLink.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthcareEntityLink.java new file mode 100644 index 0000000000000..b87b8a168ae2d --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthcareEntityLink.java @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The HealthcareEntityLink model. + */ +@Fluent +public final class HealthcareEntityLink { + /* + * Entity Catalog. Examples include: UMLS, CHV, MSH, etc. + */ + @JsonProperty(value = "dataSource", required = true) + private String dataSource; + + /* + * Entity id in the given source catalog. + */ + @JsonProperty(value = "id", required = true) + private String id; + + /** + * Get the dataSource property: Entity Catalog. Examples include: UMLS, + * CHV, MSH, etc. + * + * @return the dataSource value. + */ + public String getDataSource() { + return this.dataSource; + } + + /** + * Set the dataSource property: Entity Catalog. Examples include: UMLS, + * CHV, MSH, etc. + * + * @param dataSource the dataSource value to set. + * @return the HealthcareEntityLink object itself. + */ + public HealthcareEntityLink setDataSource(String dataSource) { + this.dataSource = dataSource; + return this; + } + + /** + * Get the id property: Entity id in the given source catalog. + * + * @return the id value. + */ + public String getId() { + return this.id; + } + + /** + * Set the id property: Entity id in the given source catalog. + * + * @param id the id value to set. + * @return the HealthcareEntityLink object itself. + */ + public HealthcareEntityLink setId(String id) { + this.id = id; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthcareJobState.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthcareJobState.java new file mode 100644 index 0000000000000..64fe86f2ad3ec --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthcareJobState.java @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The HealthcareJobState model. + */ +@Fluent +public final class HealthcareJobState extends JobMetadata { + /* + * The results property. + */ + @JsonProperty(value = "results") + private HealthcareResult results; + + /* + * The @nextLink property. + */ + @JsonProperty(value = "@nextLink") + private String nextLink; + + /** + * Get the results property: The results property. + * + * @return the results value. + */ + public HealthcareResult getResults() { + return this.results; + } + + /** + * Set the results property: The results property. + * + * @param results the results value to set. + * @return the HealthcareJobState object itself. + */ + public HealthcareJobState setResults(HealthcareResult results) { + this.results = results; + return this; + } + + /** + * Get the nextLink property: The @nextLink property. + * + * @return the nextLink value. + */ + public String getNextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: The @nextLink property. + * + * @param nextLink the nextLink value to set. + * @return the HealthcareJobState object itself. + */ + public HealthcareJobState setNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthcareRelation.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthcareRelation.java new file mode 100644 index 0000000000000..e43dc0ed45d89 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthcareRelation.java @@ -0,0 +1,124 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The HealthcareRelation model. + */ +@Fluent +public final class HealthcareRelation { + /* + * Type of relation. Examples include: `DosageOfMedication` or + * 'FrequencyOfMedication', etc. + */ + @JsonProperty(value = "relationType", required = true) + private String relationType; + + /* + * If true the relation between the entities is bidirectional, otherwise + * directionality is source to target. + */ + @JsonProperty(value = "bidirectional", required = true) + private boolean bidirectional; + + /* + * Reference link to the source entity. + */ + @JsonProperty(value = "source", required = true) + private String source; + + /* + * Reference link to the target entity. + */ + @JsonProperty(value = "target", required = true) + private String target; + + /** + * Get the relationType property: Type of relation. Examples include: + * `DosageOfMedication` or 'FrequencyOfMedication', etc. + * + * @return the relationType value. + */ + public String getRelationType() { + return this.relationType; + } + + /** + * Set the relationType property: Type of relation. Examples include: + * `DosageOfMedication` or 'FrequencyOfMedication', etc. + * + * @param relationType the relationType value to set. + * @return the HealthcareRelation object itself. + */ + public HealthcareRelation setRelationType(String relationType) { + this.relationType = relationType; + return this; + } + + /** + * Get the bidirectional property: If true the relation between the + * entities is bidirectional, otherwise directionality is source to target. + * + * @return the bidirectional value. + */ + public boolean isBidirectional() { + return this.bidirectional; + } + + /** + * Set the bidirectional property: If true the relation between the + * entities is bidirectional, otherwise directionality is source to target. + * + * @param bidirectional the bidirectional value to set. + * @return the HealthcareRelation object itself. + */ + public HealthcareRelation setBidirectional(boolean bidirectional) { + this.bidirectional = bidirectional; + return this; + } + + /** + * Get the source property: Reference link to the source entity. + * + * @return the source value. + */ + public String getSource() { + return this.source; + } + + /** + * Set the source property: Reference link to the source entity. + * + * @param source the source value to set. + * @return the HealthcareRelation object itself. + */ + public HealthcareRelation setSource(String source) { + this.source = source; + return this; + } + + /** + * Get the target property: Reference link to the target entity. + * + * @return the target value. + */ + public String getTarget() { + return this.target; + } + + /** + * Set the target property: Reference link to the target entity. + * + * @param target the target value to set. + * @return the HealthcareRelation object itself. + */ + public HealthcareRelation setTarget(String target) { + this.target = target; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthcareResult.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthcareResult.java new file mode 100644 index 0000000000000..ec7c37d2d7e6d --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthcareResult.java @@ -0,0 +1,124 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** + * The HealthcareResult model. + */ +@Fluent +public final class HealthcareResult { + /* + * Response by document + */ + @JsonProperty(value = "documents", required = true) + private List documents; + + /* + * Errors by document id. + */ + @JsonProperty(value = "errors", required = true) + private List errors; + + /* + * if showStats=true was specified in the request this field will contain + * information about the request payload. + */ + @JsonProperty(value = "statistics") + private RequestStatistics statistics; + + /* + * This field indicates which model is used for scoring. + */ + @JsonProperty(value = "modelVersion", required = true) + private String modelVersion; + + /** + * Get the documents property: Response by document. + * + * @return the documents value. + */ + public List getDocuments() { + return this.documents; + } + + /** + * Set the documents property: Response by document. + * + * @param documents the documents value to set. + * @return the HealthcareResult object itself. + */ + public HealthcareResult setDocuments(List documents) { + this.documents = documents; + return this; + } + + /** + * Get the errors property: Errors by document id. + * + * @return the errors value. + */ + public List getErrors() { + return this.errors; + } + + /** + * Set the errors property: Errors by document id. + * + * @param errors the errors value to set. + * @return the HealthcareResult object itself. + */ + public HealthcareResult setErrors(List errors) { + this.errors = errors; + return this; + } + + /** + * Get the statistics property: if showStats=true was specified in the + * request this field will contain information about the request payload. + * + * @return the statistics value. + */ + public RequestStatistics getStatistics() { + return this.statistics; + } + + /** + * Set the statistics property: if showStats=true was specified in the + * request this field will contain information about the request payload. + * + * @param statistics the statistics value to set. + * @return the HealthcareResult object itself. + */ + public HealthcareResult setStatistics(RequestStatistics statistics) { + this.statistics = statistics; + return this; + } + + /** + * Get the modelVersion property: This field indicates which model is used + * for scoring. + * + * @return the modelVersion value. + */ + public String getModelVersion() { + return this.modelVersion; + } + + /** + * Set the modelVersion property: This field indicates which model is used + * for scoring. + * + * @param modelVersion the modelVersion value to set. + * @return the HealthcareResult object itself. + */ + public HealthcareResult setModelVersion(String modelVersion) { + this.modelVersion = modelVersion; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/InnerError.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/InnerError.java index 554a5c86ddcc7..e2a97c1c062ee 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/InnerError.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/InnerError.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Map; -/** The InnerError model. */ +/** + * The InnerError model. + */ @Fluent public final class InnerError { /* @@ -43,7 +45,7 @@ public final class InnerError { /** * Get the code property: Error code. - * + * * @return the code value. */ public InnerErrorCodeValue getCode() { @@ -52,7 +54,7 @@ public InnerErrorCodeValue getCode() { /** * Set the code property: Error code. - * + * * @param code the code value to set. * @return the InnerError object itself. */ @@ -63,7 +65,7 @@ public InnerError setCode(InnerErrorCodeValue code) { /** * Get the message property: Error message. - * + * * @return the message value. */ public String getMessage() { @@ -72,7 +74,7 @@ public String getMessage() { /** * Set the message property: Error message. - * + * * @param message the message value to set. * @return the InnerError object itself. */ @@ -83,7 +85,7 @@ public InnerError setMessage(String message) { /** * Get the details property: Error details. - * + * * @return the details value. */ public Map getDetails() { @@ -92,7 +94,7 @@ public Map getDetails() { /** * Set the details property: Error details. - * + * * @param details the details value to set. * @return the InnerError object itself. */ @@ -103,7 +105,7 @@ public InnerError setDetails(Map details) { /** * Get the target property: Error target. - * + * * @return the target value. */ public String getTarget() { @@ -112,7 +114,7 @@ public String getTarget() { /** * Set the target property: Error target. - * + * * @param target the target value to set. * @return the InnerError object itself. */ @@ -122,8 +124,9 @@ public InnerError setTarget(String target) { } /** - * Get the innererror property: Inner error contains more specific information. - * + * Get the innererror property: Inner error contains more specific + * information. + * * @return the innererror value. */ public InnerError getInnererror() { @@ -131,8 +134,9 @@ public InnerError getInnererror() { } /** - * Set the innererror property: Inner error contains more specific information. - * + * Set the innererror property: Inner error contains more specific + * information. + * * @param innererror the innererror value to set. * @return the InnerError object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/InnerErrorCodeValue.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/InnerErrorCodeValue.java index 8231b7dbd6ec5..89b4f1fca2453 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/InnerErrorCodeValue.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/InnerErrorCodeValue.java @@ -8,38 +8,58 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for InnerErrorCodeValue. */ +/** + * Defines values for InnerErrorCodeValue. + */ public final class InnerErrorCodeValue extends ExpandableStringEnum { - /** Static value InvalidParameterValue for InnerErrorCodeValue. */ + /** + * Static value InvalidParameterValue for InnerErrorCodeValue. + */ public static final InnerErrorCodeValue INVALID_PARAMETER_VALUE = fromString("InvalidParameterValue"); - /** Static value InvalidRequestBodyFormat for InnerErrorCodeValue. */ + /** + * Static value InvalidRequestBodyFormat for InnerErrorCodeValue. + */ public static final InnerErrorCodeValue INVALID_REQUEST_BODY_FORMAT = fromString("InvalidRequestBodyFormat"); - /** Static value EmptyRequest for InnerErrorCodeValue. */ + /** + * Static value EmptyRequest for InnerErrorCodeValue. + */ public static final InnerErrorCodeValue EMPTY_REQUEST = fromString("EmptyRequest"); - /** Static value MissingInputRecords for InnerErrorCodeValue. */ + /** + * Static value MissingInputRecords for InnerErrorCodeValue. + */ public static final InnerErrorCodeValue MISSING_INPUT_RECORDS = fromString("MissingInputRecords"); - /** Static value InvalidDocument for InnerErrorCodeValue. */ + /** + * Static value InvalidDocument for InnerErrorCodeValue. + */ public static final InnerErrorCodeValue INVALID_DOCUMENT = fromString("InvalidDocument"); - /** Static value ModelVersionIncorrect for InnerErrorCodeValue. */ + /** + * Static value ModelVersionIncorrect for InnerErrorCodeValue. + */ public static final InnerErrorCodeValue MODEL_VERSION_INCORRECT = fromString("ModelVersionIncorrect"); - /** Static value InvalidDocumentBatch for InnerErrorCodeValue. */ + /** + * Static value InvalidDocumentBatch for InnerErrorCodeValue. + */ public static final InnerErrorCodeValue INVALID_DOCUMENT_BATCH = fromString("InvalidDocumentBatch"); - /** Static value UnsupportedLanguageCode for InnerErrorCodeValue. */ + /** + * Static value UnsupportedLanguageCode for InnerErrorCodeValue. + */ public static final InnerErrorCodeValue UNSUPPORTED_LANGUAGE_CODE = fromString("UnsupportedLanguageCode"); - /** Static value InvalidCountryHint for InnerErrorCodeValue. */ + /** + * Static value InvalidCountryHint for InnerErrorCodeValue. + */ public static final InnerErrorCodeValue INVALID_COUNTRY_HINT = fromString("InvalidCountryHint"); /** * Creates or finds a InnerErrorCodeValue from its string representation. - * + * * @param name a name to look for. * @return the corresponding InnerErrorCodeValue. */ @@ -48,7 +68,9 @@ public static InnerErrorCodeValue fromString(String name) { return fromString(name, InnerErrorCodeValue.class); } - /** @return known InnerErrorCodeValue values. */ + /** + * @return known InnerErrorCodeValue values. + */ public static Collection values() { return values(InnerErrorCodeValue.class); } diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/JobDescriptor.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/JobDescriptor.java new file mode 100644 index 0000000000000..948216c733fbd --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/JobDescriptor.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The JobDescriptor model. + */ +@Fluent +public class JobDescriptor { + /* + * Optional display name for the analysis job. + */ + @JsonProperty(value = "displayName") + private String displayName; + + /** + * Get the displayName property: Optional display name for the analysis + * job. + * + * @return the displayName value. + */ + public String getDisplayName() { + return this.displayName; + } + + /** + * Set the displayName property: Optional display name for the analysis + * job. + * + * @param displayName the displayName value to set. + * @return the JobDescriptor object itself. + */ + public JobDescriptor setDisplayName(String displayName) { + this.displayName = displayName; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/JobManifest.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/JobManifest.java new file mode 100644 index 0000000000000..1518fbe858305 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/JobManifest.java @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The JobManifest model. + */ +@Fluent +public class JobManifest { + /* + * The set of tasks to execute on the input documents. Cannot specify the + * same task more than once. + */ + @JsonProperty(value = "tasks", required = true) + private JobManifestTasks tasks; + + /** + * Get the tasks property: The set of tasks to execute on the input + * documents. Cannot specify the same task more than once. + * + * @return the tasks value. + */ + public JobManifestTasks getTasks() { + return this.tasks; + } + + /** + * Set the tasks property: The set of tasks to execute on the input + * documents. Cannot specify the same task more than once. + * + * @param tasks the tasks value to set. + * @return the JobManifest object itself. + */ + public JobManifest setTasks(JobManifestTasks tasks) { + this.tasks = tasks; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/JobManifestTasks.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/JobManifestTasks.java new file mode 100644 index 0000000000000..6701bf6833527 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/JobManifestTasks.java @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** + * The JobManifestTasks model. + */ +@Fluent +public final class JobManifestTasks { + /* + * The entityRecognitionTasks property. + */ + @JsonProperty(value = "entityRecognitionTasks") + private List entityRecognitionTasks; + + /* + * The entityRecognitionPiiTasks property. + */ + @JsonProperty(value = "entityRecognitionPiiTasks") + private List entityRecognitionPiiTasks; + + /* + * The keyPhraseExtractionTasks property. + */ + @JsonProperty(value = "keyPhraseExtractionTasks") + private List keyPhraseExtractionTasks; + + /** + * Get the entityRecognitionTasks property: The entityRecognitionTasks + * property. + * + * @return the entityRecognitionTasks value. + */ + public List getEntityRecognitionTasks() { + return this.entityRecognitionTasks; + } + + /** + * Set the entityRecognitionTasks property: The entityRecognitionTasks + * property. + * + * @param entityRecognitionTasks the entityRecognitionTasks value to set. + * @return the JobManifestTasks object itself. + */ + public JobManifestTasks setEntityRecognitionTasks(List entityRecognitionTasks) { + this.entityRecognitionTasks = entityRecognitionTasks; + return this; + } + + /** + * Get the entityRecognitionPiiTasks property: The + * entityRecognitionPiiTasks property. + * + * @return the entityRecognitionPiiTasks value. + */ + public List getEntityRecognitionPiiTasks() { + return this.entityRecognitionPiiTasks; + } + + /** + * Set the entityRecognitionPiiTasks property: The + * entityRecognitionPiiTasks property. + * + * @param entityRecognitionPiiTasks the entityRecognitionPiiTasks value to + * set. + * @return the JobManifestTasks object itself. + */ + public JobManifestTasks setEntityRecognitionPiiTasks(List entityRecognitionPiiTasks) { + this.entityRecognitionPiiTasks = entityRecognitionPiiTasks; + return this; + } + + /** + * Get the keyPhraseExtractionTasks property: The keyPhraseExtractionTasks + * property. + * + * @return the keyPhraseExtractionTasks value. + */ + public List getKeyPhraseExtractionTasks() { + return this.keyPhraseExtractionTasks; + } + + /** + * Set the keyPhraseExtractionTasks property: The keyPhraseExtractionTasks + * property. + * + * @param keyPhraseExtractionTasks the keyPhraseExtractionTasks value to + * set. + * @return the JobManifestTasks object itself. + */ + public JobManifestTasks setKeyPhraseExtractionTasks(List keyPhraseExtractionTasks) { + this.keyPhraseExtractionTasks = keyPhraseExtractionTasks; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/JobMetadata.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/JobMetadata.java new file mode 100644 index 0000000000000..69aae5975880a --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/JobMetadata.java @@ -0,0 +1,172 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.UUID; + +/** + * The JobMetadata model. + */ +@Fluent +public class JobMetadata { + /* + * The createdDateTime property. + */ + @JsonProperty(value = "createdDateTime", required = true) + private OffsetDateTime createdDateTime; + + /* + * The displayName property. + */ + @JsonProperty(value = "displayName") + private String displayName; + + /* + * The expirationDateTime property. + */ + @JsonProperty(value = "expirationDateTime") + private OffsetDateTime expirationDateTime; + + /* + * The jobId property. + */ + @JsonProperty(value = "jobId", required = true) + private UUID jobId; + + /* + * The lastUpdateDateTime property. + */ + @JsonProperty(value = "lastUpdateDateTime", required = true) + private OffsetDateTime lastUpdateDateTime; + + /* + * The status property. + */ + @JsonProperty(value = "status", required = true) + private State status; + + /** + * Get the createdDateTime property: The createdDateTime property. + * + * @return the createdDateTime value. + */ + public OffsetDateTime getCreatedDateTime() { + return this.createdDateTime; + } + + /** + * Set the createdDateTime property: The createdDateTime property. + * + * @param createdDateTime the createdDateTime value to set. + * @return the JobMetadata object itself. + */ + public JobMetadata setCreatedDateTime(OffsetDateTime createdDateTime) { + this.createdDateTime = createdDateTime; + return this; + } + + /** + * Get the displayName property: The displayName property. + * + * @return the displayName value. + */ + public String getDisplayName() { + return this.displayName; + } + + /** + * Set the displayName property: The displayName property. + * + * @param displayName the displayName value to set. + * @return the JobMetadata object itself. + */ + public JobMetadata setDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get the expirationDateTime property: The expirationDateTime property. + * + * @return the expirationDateTime value. + */ + public OffsetDateTime getExpirationDateTime() { + return this.expirationDateTime; + } + + /** + * Set the expirationDateTime property: The expirationDateTime property. + * + * @param expirationDateTime the expirationDateTime value to set. + * @return the JobMetadata object itself. + */ + public JobMetadata setExpirationDateTime(OffsetDateTime expirationDateTime) { + this.expirationDateTime = expirationDateTime; + return this; + } + + /** + * Get the jobId property: The jobId property. + * + * @return the jobId value. + */ + public UUID getJobId() { + return this.jobId; + } + + /** + * Set the jobId property: The jobId property. + * + * @param jobId the jobId value to set. + * @return the JobMetadata object itself. + */ + public JobMetadata setJobId(UUID jobId) { + this.jobId = jobId; + return this; + } + + /** + * Get the lastUpdateDateTime property: The lastUpdateDateTime property. + * + * @return the lastUpdateDateTime value. + */ + public OffsetDateTime getLastUpdateDateTime() { + return this.lastUpdateDateTime; + } + + /** + * Set the lastUpdateDateTime property: The lastUpdateDateTime property. + * + * @param lastUpdateDateTime the lastUpdateDateTime value to set. + * @return the JobMetadata object itself. + */ + public JobMetadata setLastUpdateDateTime(OffsetDateTime lastUpdateDateTime) { + this.lastUpdateDateTime = lastUpdateDateTime; + return this; + } + + /** + * Get the status property: The status property. + * + * @return the status value. + */ + public State getStatus() { + return this.status; + } + + /** + * Set the status property: The status property. + * + * @param status the status value to set. + * @return the JobMetadata object itself. + */ + public JobMetadata setStatus(State status) { + this.status = status; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/KeyPhraseResult.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/KeyPhraseResult.java index c849875792608..bd7223494fd27 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/KeyPhraseResult.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/KeyPhraseResult.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The KeyPhraseResult model. */ +/** + * The KeyPhraseResult model. + */ @Fluent public final class KeyPhraseResult { /* @@ -38,7 +40,7 @@ public final class KeyPhraseResult { /** * Get the documents property: Response by document. - * + * * @return the documents value. */ public List getDocuments() { @@ -47,7 +49,7 @@ public List getDocuments() { /** * Set the documents property: Response by document. - * + * * @param documents the documents value to set. * @return the KeyPhraseResult object itself. */ @@ -58,7 +60,7 @@ public KeyPhraseResult setDocuments(List documents) { /** * Get the errors property: Errors by document id. - * + * * @return the errors value. */ public List getErrors() { @@ -67,7 +69,7 @@ public List getErrors() { /** * Set the errors property: Errors by document id. - * + * * @param errors the errors value to set. * @return the KeyPhraseResult object itself. */ @@ -77,9 +79,9 @@ public KeyPhraseResult setErrors(List errors) { } /** - * Get the statistics property: if showStats=true was specified in the request this field will contain information - * about the request payload. - * + * Get the statistics property: if showStats=true was specified in the + * request this field will contain information about the request payload. + * * @return the statistics value. */ public RequestStatistics getStatistics() { @@ -87,9 +89,9 @@ public RequestStatistics getStatistics() { } /** - * Set the statistics property: if showStats=true was specified in the request this field will contain information - * about the request payload. - * + * Set the statistics property: if showStats=true was specified in the + * request this field will contain information about the request payload. + * * @param statistics the statistics value to set. * @return the KeyPhraseResult object itself. */ @@ -99,8 +101,9 @@ public KeyPhraseResult setStatistics(RequestStatistics statistics) { } /** - * Get the modelVersion property: This field indicates which model is used for scoring. - * + * Get the modelVersion property: This field indicates which model is used + * for scoring. + * * @return the modelVersion value. */ public String getModelVersion() { @@ -108,8 +111,9 @@ public String getModelVersion() { } /** - * Set the modelVersion property: This field indicates which model is used for scoring. - * + * Set the modelVersion property: This field indicates which model is used + * for scoring. + * * @param modelVersion the modelVersion value to set. * @return the KeyPhraseResult object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/KeyPhrasesTask.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/KeyPhrasesTask.java new file mode 100644 index 0000000000000..98a5a969e8a67 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/KeyPhrasesTask.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The KeyPhrasesTask model. + */ +@Fluent +public final class KeyPhrasesTask { + /* + * The parameters property. + */ + @JsonProperty(value = "parameters") + private KeyPhrasesTaskParameters parameters; + + /** + * Get the parameters property: The parameters property. + * + * @return the parameters value. + */ + public KeyPhrasesTaskParameters getParameters() { + return this.parameters; + } + + /** + * Set the parameters property: The parameters property. + * + * @param parameters the parameters value to set. + * @return the KeyPhrasesTask object itself. + */ + public KeyPhrasesTask setParameters(KeyPhrasesTaskParameters parameters) { + this.parameters = parameters; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/KeyPhrasesTaskParameters.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/KeyPhrasesTaskParameters.java new file mode 100644 index 0000000000000..be42a055d7f6c --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/KeyPhrasesTaskParameters.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The KeyPhrasesTaskParameters model. + */ +@Fluent +public final class KeyPhrasesTaskParameters { + /* + * The model-version property. + */ + @JsonProperty(value = "model-version") + private String modelVersion; + + /** + * Get the modelVersion property: The model-version property. + * + * @return the modelVersion value. + */ + public String getModelVersion() { + return this.modelVersion; + } + + /** + * Set the modelVersion property: The model-version property. + * + * @param modelVersion the modelVersion value to set. + * @return the KeyPhrasesTaskParameters object itself. + */ + public KeyPhrasesTaskParameters setModelVersion(String modelVersion) { + this.modelVersion = modelVersion; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/LanguageBatchInput.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/LanguageBatchInput.java index 2e1bde460b170..4ff3423367c42 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/LanguageBatchInput.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/LanguageBatchInput.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The LanguageBatchInput model. */ +/** + * The LanguageBatchInput model. + */ @Fluent public final class LanguageBatchInput { /* @@ -19,7 +21,7 @@ public final class LanguageBatchInput { /** * Get the documents property: The documents property. - * + * * @return the documents value. */ public List getDocuments() { @@ -28,7 +30,7 @@ public List getDocuments() { /** * Set the documents property: The documents property. - * + * * @param documents the documents value to set. * @return the LanguageBatchInput object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/LanguageInput.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/LanguageInput.java index d81ea140b1a0c..2a9d7d3f91b55 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/LanguageInput.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/LanguageInput.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** The LanguageInput model. */ +/** + * The LanguageInput model. + */ @Fluent public final class LanguageInput { /* @@ -30,7 +32,7 @@ public final class LanguageInput { /** * Get the id property: Unique, non-empty document identifier. - * + * * @return the id value. */ public String getId() { @@ -39,7 +41,7 @@ public String getId() { /** * Set the id property: Unique, non-empty document identifier. - * + * * @param id the id value to set. * @return the LanguageInput object itself. */ @@ -50,7 +52,7 @@ public LanguageInput setId(String id) { /** * Get the text property: The text property. - * + * * @return the text value. */ public String getText() { @@ -59,7 +61,7 @@ public String getText() { /** * Set the text property: The text property. - * + * * @param text the text value to set. * @return the LanguageInput object itself. */ @@ -70,7 +72,7 @@ public LanguageInput setText(String text) { /** * Get the countryHint property: The countryHint property. - * + * * @return the countryHint value. */ public String getCountryHint() { @@ -79,7 +81,7 @@ public String getCountryHint() { /** * Set the countryHint property: The countryHint property. - * + * * @param countryHint the countryHint value to set. * @return the LanguageInput object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/LanguageResult.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/LanguageResult.java index be55cd24b5d25..46515f53c93be 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/LanguageResult.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/LanguageResult.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The LanguageResult model. */ +/** + * The LanguageResult model. + */ @Fluent public final class LanguageResult { /* @@ -38,7 +40,7 @@ public final class LanguageResult { /** * Get the documents property: Response by document. - * + * * @return the documents value. */ public List getDocuments() { @@ -47,7 +49,7 @@ public List getDocuments() { /** * Set the documents property: Response by document. - * + * * @param documents the documents value to set. * @return the LanguageResult object itself. */ @@ -58,7 +60,7 @@ public LanguageResult setDocuments(List documents) { /** * Get the errors property: Errors by document id. - * + * * @return the errors value. */ public List getErrors() { @@ -67,7 +69,7 @@ public List getErrors() { /** * Set the errors property: Errors by document id. - * + * * @param errors the errors value to set. * @return the LanguageResult object itself. */ @@ -77,9 +79,9 @@ public LanguageResult setErrors(List errors) { } /** - * Get the statistics property: if showStats=true was specified in the request this field will contain information - * about the request payload. - * + * Get the statistics property: if showStats=true was specified in the + * request this field will contain information about the request payload. + * * @return the statistics value. */ public RequestStatistics getStatistics() { @@ -87,9 +89,9 @@ public RequestStatistics getStatistics() { } /** - * Set the statistics property: if showStats=true was specified in the request this field will contain information - * about the request payload. - * + * Set the statistics property: if showStats=true was specified in the + * request this field will contain information about the request payload. + * * @param statistics the statistics value to set. * @return the LanguageResult object itself. */ @@ -99,8 +101,9 @@ public LanguageResult setStatistics(RequestStatistics statistics) { } /** - * Get the modelVersion property: This field indicates which model is used for scoring. - * + * Get the modelVersion property: This field indicates which model is used + * for scoring. + * * @return the modelVersion value. */ public String getModelVersion() { @@ -108,8 +111,9 @@ public String getModelVersion() { } /** - * Set the modelVersion property: This field indicates which model is used for scoring. - * + * Set the modelVersion property: This field indicates which model is used + * for scoring. + * * @param modelVersion the modelVersion value to set. * @return the LanguageResult object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/LinkedEntity.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/LinkedEntity.java index 002c5a673e461..5d51698304b93 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/LinkedEntity.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/LinkedEntity.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The LinkedEntity model. */ +/** + * The LinkedEntity model. + */ @Fluent public final class LinkedEntity { /* @@ -48,15 +50,14 @@ public final class LinkedEntity { private String dataSource; /* - * Bing unique identifier of the recognized entity. Use in conjunction with - * the Bing Entity Search API to fetch additional relevant information. + * Bing Entity Search API unique identifier of the recognized entity. */ @JsonProperty(value = "bingId") private String bingId; /** * Get the name property: Entity Linking formal name. - * + * * @return the name value. */ public String getName() { @@ -65,7 +66,7 @@ public String getName() { /** * Set the name property: Entity Linking formal name. - * + * * @param name the name value to set. * @return the LinkedEntity object itself. */ @@ -75,8 +76,9 @@ public LinkedEntity setName(String name) { } /** - * Get the matches property: List of instances this entity appears in the text. - * + * Get the matches property: List of instances this entity appears in the + * text. + * * @return the matches value. */ public List getMatches() { @@ -84,8 +86,9 @@ public List getMatches() { } /** - * Set the matches property: List of instances this entity appears in the text. - * + * Set the matches property: List of instances this entity appears in the + * text. + * * @param matches the matches value to set. * @return the LinkedEntity object itself. */ @@ -96,7 +99,7 @@ public LinkedEntity setMatches(List matches) { /** * Get the language property: Language used in the data source. - * + * * @return the language value. */ public String getLanguage() { @@ -105,7 +108,7 @@ public String getLanguage() { /** * Set the language property: Language used in the data source. - * + * * @param language the language value to set. * @return the LinkedEntity object itself. */ @@ -115,8 +118,9 @@ public LinkedEntity setLanguage(String language) { } /** - * Get the id property: Unique identifier of the recognized entity from the data source. - * + * Get the id property: Unique identifier of the recognized entity from the + * data source. + * * @return the id value. */ public String getId() { @@ -124,8 +128,9 @@ public String getId() { } /** - * Set the id property: Unique identifier of the recognized entity from the data source. - * + * Set the id property: Unique identifier of the recognized entity from the + * data source. + * * @param id the id value to set. * @return the LinkedEntity object itself. */ @@ -136,7 +141,7 @@ public LinkedEntity setId(String id) { /** * Get the url property: URL for the entity's page from the data source. - * + * * @return the url value. */ public String getUrl() { @@ -145,7 +150,7 @@ public String getUrl() { /** * Set the url property: URL for the entity's page from the data source. - * + * * @param url the url value to set. * @return the LinkedEntity object itself. */ @@ -155,8 +160,9 @@ public LinkedEntity setUrl(String url) { } /** - * Get the dataSource property: Data source used to extract entity linking, such as Wiki/Bing etc. - * + * Get the dataSource property: Data source used to extract entity linking, + * such as Wiki/Bing etc. + * * @return the dataSource value. */ public String getDataSource() { @@ -164,8 +170,9 @@ public String getDataSource() { } /** - * Set the dataSource property: Data source used to extract entity linking, such as Wiki/Bing etc. - * + * Set the dataSource property: Data source used to extract entity linking, + * such as Wiki/Bing etc. + * * @param dataSource the dataSource value to set. * @return the LinkedEntity object itself. */ @@ -175,9 +182,9 @@ public LinkedEntity setDataSource(String dataSource) { } /** - * Get the bingId property: Bing unique identifier of the recognized entity. Use in conjunction with the Bing Entity - * Search API to fetch additional relevant information. - * + * Get the bingId property: Bing Entity Search API unique identifier of the + * recognized entity. + * * @return the bingId value. */ public String getBingId() { @@ -185,9 +192,9 @@ public String getBingId() { } /** - * Set the bingId property: Bing unique identifier of the recognized entity. Use in conjunction with the Bing Entity - * Search API to fetch additional relevant information. - * + * Set the bingId property: Bing Entity Search API unique identifier of the + * recognized entity. + * * @param bingId the bingId value to set. * @return the LinkedEntity object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Match.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Match.java index 197feeb7ca037..71a6264f0855e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Match.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Match.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** The Match model. */ +/** + * The Match model. + */ @Fluent public final class Match { /* @@ -36,9 +38,10 @@ public final class Match { private int length; /** - * Get the confidenceScore property: If a well-known item is recognized, a decimal number denoting the confidence - * level between 0 and 1 will be returned. - * + * Get the confidenceScore property: If a well-known item is recognized, a + * decimal number denoting the confidence level between 0 and 1 will be + * returned. + * * @return the confidenceScore value. */ public double getConfidenceScore() { @@ -46,9 +49,10 @@ public double getConfidenceScore() { } /** - * Set the confidenceScore property: If a well-known item is recognized, a decimal number denoting the confidence - * level between 0 and 1 will be returned. - * + * Set the confidenceScore property: If a well-known item is recognized, a + * decimal number denoting the confidence level between 0 and 1 will be + * returned. + * * @param confidenceScore the confidenceScore value to set. * @return the Match object itself. */ @@ -59,7 +63,7 @@ public Match setConfidenceScore(double confidenceScore) { /** * Get the text property: Entity text as appears in the request. - * + * * @return the text value. */ public String getText() { @@ -68,7 +72,7 @@ public String getText() { /** * Set the text property: Entity text as appears in the request. - * + * * @param text the text value to set. * @return the Match object itself. */ @@ -79,7 +83,7 @@ public Match setText(String text) { /** * Get the offset property: Start position for the entity match text. - * + * * @return the offset value. */ public int getOffset() { @@ -88,7 +92,7 @@ public int getOffset() { /** * Set the offset property: Start position for the entity match text. - * + * * @param offset the offset value to set. * @return the Match object itself. */ @@ -99,7 +103,7 @@ public Match setOffset(int offset) { /** * Get the length property: Length for the entity match text. - * + * * @return the length value. */ public int getLength() { @@ -108,7 +112,7 @@ public int getLength() { /** * Set the length property: Length for the entity match text. - * + * * @param length the length value to set. * @return the Match object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/MultiLanguageBatchInput.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/MultiLanguageBatchInput.java index 186e5923c357b..285b47ab9b3c0 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/MultiLanguageBatchInput.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/MultiLanguageBatchInput.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The MultiLanguageBatchInput model. */ +/** + * The MultiLanguageBatchInput model. + */ @Fluent public final class MultiLanguageBatchInput { /* @@ -18,8 +20,9 @@ public final class MultiLanguageBatchInput { private List documents; /** - * Get the documents property: The set of documents to process as part of this batch. - * + * Get the documents property: The set of documents to process as part of + * this batch. + * * @return the documents value. */ public List getDocuments() { @@ -27,8 +30,9 @@ public List getDocuments() { } /** - * Set the documents property: The set of documents to process as part of this batch. - * + * Set the documents property: The set of documents to process as part of + * this batch. + * * @param documents the documents value to set. * @return the MultiLanguageBatchInput object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/MultiLanguageInput.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/MultiLanguageInput.java index b69c017d068c9..f2ba9a4180365 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/MultiLanguageInput.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/MultiLanguageInput.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** The MultiLanguageInput model. */ +/** + * The MultiLanguageInput model. + */ @Fluent public final class MultiLanguageInput { /* @@ -32,7 +34,7 @@ public final class MultiLanguageInput { /** * Get the id property: A unique, non-empty document identifier. - * + * * @return the id value. */ public String getId() { @@ -41,7 +43,7 @@ public String getId() { /** * Set the id property: A unique, non-empty document identifier. - * + * * @param id the id value to set. * @return the MultiLanguageInput object itself. */ @@ -52,7 +54,7 @@ public MultiLanguageInput setId(String id) { /** * Get the text property: The input text to process. - * + * * @return the text value. */ public String getText() { @@ -61,7 +63,7 @@ public String getText() { /** * Set the text property: The input text to process. - * + * * @param text the text value to set. * @return the MultiLanguageInput object itself. */ @@ -71,9 +73,10 @@ public MultiLanguageInput setText(String text) { } /** - * Get the language property: (Optional) This is the 2 letter ISO 639-1 representation of a language. For example, - * use "en" for English; "es" for Spanish etc. If not set, use "en" for English as default. - * + * Get the language property: (Optional) This is the 2 letter ISO 639-1 + * representation of a language. For example, use "en" for English; "es" + * for Spanish etc. If not set, use "en" for English as default. + * * @return the language value. */ public String getLanguage() { @@ -81,9 +84,10 @@ public String getLanguage() { } /** - * Set the language property: (Optional) This is the 2 letter ISO 639-1 representation of a language. For example, - * use "en" for English; "es" for Spanish etc. If not set, use "en" for English as default. - * + * Set the language property: (Optional) This is the 2 letter ISO 639-1 + * representation of a language. For example, use "en" for English; "es" + * for Spanish etc. If not set, use "en" for English as default. + * * @param language the language value to set. * @return the MultiLanguageInput object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Pagination.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Pagination.java new file mode 100644 index 0000000000000..b4d576aac7797 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Pagination.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The Pagination model. + */ +@Fluent +public class Pagination { + /* + * The @nextLink property. + */ + @JsonProperty(value = "@nextLink") + private String nextLink; + + /** + * Get the nextLink property: The @nextLink property. + * + * @return the nextLink value. + */ + public String getNextLink() { + return this.nextLink; + } + + /** + * Set the nextLink property: The @nextLink property. + * + * @param nextLink the nextLink value to set. + * @return the Pagination object itself. + */ + public Pagination setNextLink(String nextLink) { + this.nextLink = nextLink; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/PiiDocumentEntities.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/PiiDocumentEntities.java index 60cc03b4e9422..5027bb5998545 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/PiiDocumentEntities.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/PiiDocumentEntities.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The PiiDocumentEntities model. */ +/** + * The PiiDocumentEntities model. + */ @Fluent public final class PiiDocumentEntities { /* @@ -17,6 +19,12 @@ public final class PiiDocumentEntities { @JsonProperty(value = "id", required = true) private String id; + /* + * Returns redacted text. + */ + @JsonProperty(value = "redactedText", required = true) + private String redactedText; + /* * Recognized entities in the document. */ @@ -36,15 +44,9 @@ public final class PiiDocumentEntities { @JsonProperty(value = "statistics") private DocumentStatistics statistics; - /* - * Returns redacted text. - */ - @JsonProperty(value = "redactedText") - private String redactedText; - /** * Get the id property: Unique, non-empty document identifier. - * + * * @return the id value. */ public String getId() { @@ -53,7 +55,7 @@ public String getId() { /** * Set the id property: Unique, non-empty document identifier. - * + * * @param id the id value to set. * @return the PiiDocumentEntities object itself. */ @@ -62,9 +64,29 @@ public PiiDocumentEntities setId(String id) { return this; } + /** + * Get the redactedText property: Returns redacted text. + * + * @return the redactedText value. + */ + public String getRedactedText() { + return this.redactedText; + } + + /** + * Set the redactedText property: Returns redacted text. + * + * @param redactedText the redactedText value to set. + * @return the PiiDocumentEntities object itself. + */ + public PiiDocumentEntities setRedactedText(String redactedText) { + this.redactedText = redactedText; + return this; + } + /** * Get the entities property: Recognized entities in the document. - * + * * @return the entities value. */ public List getEntities() { @@ -73,7 +95,7 @@ public List getEntities() { /** * Set the entities property: Recognized entities in the document. - * + * * @param entities the entities value to set. * @return the PiiDocumentEntities object itself. */ @@ -83,8 +105,9 @@ public PiiDocumentEntities setEntities(List entities) { } /** - * Get the warnings property: Warnings encountered while processing document. - * + * Get the warnings property: Warnings encountered while processing + * document. + * * @return the warnings value. */ public List getWarnings() { @@ -92,8 +115,9 @@ public List getWarnings() { } /** - * Set the warnings property: Warnings encountered while processing document. - * + * Set the warnings property: Warnings encountered while processing + * document. + * * @param warnings the warnings value to set. * @return the PiiDocumentEntities object itself. */ @@ -103,9 +127,9 @@ public PiiDocumentEntities setWarnings(List warnings) { } /** - * Get the statistics property: if showStats=true was specified in the request this field will contain information - * about the document payload. - * + * Get the statistics property: if showStats=true was specified in the + * request this field will contain information about the document payload. + * * @return the statistics value. */ public DocumentStatistics getStatistics() { @@ -113,9 +137,9 @@ public DocumentStatistics getStatistics() { } /** - * Set the statistics property: if showStats=true was specified in the request this field will contain information - * about the document payload. - * + * Set the statistics property: if showStats=true was specified in the + * request this field will contain information about the document payload. + * * @param statistics the statistics value to set. * @return the PiiDocumentEntities object itself. */ @@ -123,24 +147,4 @@ public PiiDocumentEntities setStatistics(DocumentStatistics statistics) { this.statistics = statistics; return this; } - - /** - * Get the redactedText property: Returns redacted text. - * - * @return the redactedText value. - */ - public String getRedactedText() { - return this.redactedText; - } - - /** - * Set the redactedText property: Returns redacted text. - * - * @param redactedText the redactedText value to set. - * @return the PiiDocumentEntities object itself. - */ - public PiiDocumentEntities setRedactedText(String redactedText) { - this.redactedText = redactedText; - return this; - } } diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/PiiEntitiesResult.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/PiiResult.java similarity index 74% rename from sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/PiiEntitiesResult.java rename to sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/PiiResult.java index fade6eb5c72e2..2e012d060e3b1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/PiiEntitiesResult.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/PiiResult.java @@ -8,9 +8,11 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The PiiEntitiesResult model. */ +/** + * The PiiResult model. + */ @Fluent -public final class PiiEntitiesResult { +public final class PiiResult { /* * Response by document */ @@ -38,7 +40,7 @@ public final class PiiEntitiesResult { /** * Get the documents property: Response by document. - * + * * @return the documents value. */ public List getDocuments() { @@ -47,18 +49,18 @@ public List getDocuments() { /** * Set the documents property: Response by document. - * + * * @param documents the documents value to set. - * @return the PiiEntitiesResult object itself. + * @return the PiiResult object itself. */ - public PiiEntitiesResult setDocuments(List documents) { + public PiiResult setDocuments(List documents) { this.documents = documents; return this; } /** * Get the errors property: Errors by document id. - * + * * @return the errors value. */ public List getErrors() { @@ -67,19 +69,19 @@ public List getErrors() { /** * Set the errors property: Errors by document id. - * + * * @param errors the errors value to set. - * @return the PiiEntitiesResult object itself. + * @return the PiiResult object itself. */ - public PiiEntitiesResult setErrors(List errors) { + public PiiResult setErrors(List errors) { this.errors = errors; return this; } /** - * Get the statistics property: if showStats=true was specified in the request this field will contain information - * about the request payload. - * + * Get the statistics property: if showStats=true was specified in the + * request this field will contain information about the request payload. + * * @return the statistics value. */ public RequestStatistics getStatistics() { @@ -87,20 +89,21 @@ public RequestStatistics getStatistics() { } /** - * Set the statistics property: if showStats=true was specified in the request this field will contain information - * about the request payload. - * + * Set the statistics property: if showStats=true was specified in the + * request this field will contain information about the request payload. + * * @param statistics the statistics value to set. - * @return the PiiEntitiesResult object itself. + * @return the PiiResult object itself. */ - public PiiEntitiesResult setStatistics(RequestStatistics statistics) { + public PiiResult setStatistics(RequestStatistics statistics) { this.statistics = statistics; return this; } /** - * Get the modelVersion property: This field indicates which model is used for scoring. - * + * Get the modelVersion property: This field indicates which model is used + * for scoring. + * * @return the modelVersion value. */ public String getModelVersion() { @@ -108,12 +111,13 @@ public String getModelVersion() { } /** - * Set the modelVersion property: This field indicates which model is used for scoring. - * + * Set the modelVersion property: This field indicates which model is used + * for scoring. + * * @param modelVersion the modelVersion value to set. - * @return the PiiEntitiesResult object itself. + * @return the PiiResult object itself. */ - public PiiEntitiesResult setModelVersion(String modelVersion) { + public PiiResult setModelVersion(String modelVersion) { this.modelVersion = modelVersion; return this; } diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/PiiTask.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/PiiTask.java new file mode 100644 index 0000000000000..6ca8a5602ccf4 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/PiiTask.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The PiiTask model. + */ +@Fluent +public final class PiiTask { + /* + * The parameters property. + */ + @JsonProperty(value = "parameters") + private PiiTaskParameters parameters; + + /** + * Get the parameters property: The parameters property. + * + * @return the parameters value. + */ + public PiiTaskParameters getParameters() { + return this.parameters; + } + + /** + * Set the parameters property: The parameters property. + * + * @param parameters the parameters value to set. + * @return the PiiTask object itself. + */ + public PiiTask setParameters(PiiTaskParameters parameters) { + this.parameters = parameters; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/PiiTaskParameters.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/PiiTaskParameters.java new file mode 100644 index 0000000000000..6130182d76991 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/PiiTaskParameters.java @@ -0,0 +1,92 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The PiiTaskParameters model. + */ +@Fluent +public final class PiiTaskParameters { + /* + * The domain property. + */ + @JsonProperty(value = "domain") + private PiiTaskParametersDomain domain; + + /* + * The model-version property. + */ + @JsonProperty(value = "model-version") + private String modelVersion; + + /* + * The stringIndexType property. + */ + @JsonProperty(value = "stringIndexType") + private StringIndexTypeResponse stringIndexType; + + /** + * Get the domain property: The domain property. + * + * @return the domain value. + */ + public PiiTaskParametersDomain getDomain() { + return this.domain; + } + + /** + * Set the domain property: The domain property. + * + * @param domain the domain value to set. + * @return the PiiTaskParameters object itself. + */ + public PiiTaskParameters setDomain(PiiTaskParametersDomain domain) { + this.domain = domain; + return this; + } + + /** + * Get the modelVersion property: The model-version property. + * + * @return the modelVersion value. + */ + public String getModelVersion() { + return this.modelVersion; + } + + /** + * Set the modelVersion property: The model-version property. + * + * @param modelVersion the modelVersion value to set. + * @return the PiiTaskParameters object itself. + */ + public PiiTaskParameters setModelVersion(String modelVersion) { + this.modelVersion = modelVersion; + return this; + } + + /** + * Get the stringIndexType property: The stringIndexType property. + * + * @return the stringIndexType value. + */ + public StringIndexTypeResponse getStringIndexType() { + return this.stringIndexType; + } + + /** + * Set the stringIndexType property: The stringIndexType property. + * + * @param stringIndexType the stringIndexType value to set. + * @return the PiiTaskParameters object itself. + */ + public PiiTaskParameters setStringIndexType(StringIndexTypeResponse stringIndexType) { + this.stringIndexType = stringIndexType; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/PiiTaskParametersDomain.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/PiiTaskParametersDomain.java new file mode 100644 index 0000000000000..d666d015fa0f9 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/PiiTaskParametersDomain.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.util.ExpandableStringEnum; +import com.fasterxml.jackson.annotation.JsonCreator; +import java.util.Collection; + +/** + * Defines values for PiiTaskParametersDomain. + */ +public final class PiiTaskParametersDomain extends ExpandableStringEnum { + /** + * Static value phi for PiiTaskParametersDomain. + */ + public static final PiiTaskParametersDomain PHI = fromString("phi"); + + /** + * Static value none for PiiTaskParametersDomain. + */ + public static final PiiTaskParametersDomain NONE = fromString("none"); + + /** + * Creates or finds a PiiTaskParametersDomain from its string representation. + * + * @param name a name to look for. + * @return the corresponding PiiTaskParametersDomain. + */ + @JsonCreator + public static PiiTaskParametersDomain fromString(String name) { + return fromString(name, PiiTaskParametersDomain.class); + } + + /** + * @return known PiiTaskParametersDomain values. + */ + public static Collection values() { + return values(PiiTaskParametersDomain.class); + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/RequestStatistics.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/RequestStatistics.java index 653a40960b82b..ceb0be002998e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/RequestStatistics.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/RequestStatistics.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** The RequestStatistics model. */ +/** + * The RequestStatistics model. + */ @Fluent public final class RequestStatistics { /* @@ -37,8 +39,9 @@ public final class RequestStatistics { private long transactionsCount; /** - * Get the documentsCount property: Number of documents submitted in the request. - * + * Get the documentsCount property: Number of documents submitted in the + * request. + * * @return the documentsCount value. */ public int getDocumentsCount() { @@ -46,8 +49,9 @@ public int getDocumentsCount() { } /** - * Set the documentsCount property: Number of documents submitted in the request. - * + * Set the documentsCount property: Number of documents submitted in the + * request. + * * @param documentsCount the documentsCount value to set. * @return the RequestStatistics object itself. */ @@ -57,9 +61,9 @@ public RequestStatistics setDocumentsCount(int documentsCount) { } /** - * Get the validDocumentsCount property: Number of valid documents. This excludes empty, over-size limit or - * non-supported languages documents. - * + * Get the validDocumentsCount property: Number of valid documents. This + * excludes empty, over-size limit or non-supported languages documents. + * * @return the validDocumentsCount value. */ public int getValidDocumentsCount() { @@ -67,9 +71,9 @@ public int getValidDocumentsCount() { } /** - * Set the validDocumentsCount property: Number of valid documents. This excludes empty, over-size limit or - * non-supported languages documents. - * + * Set the validDocumentsCount property: Number of valid documents. This + * excludes empty, over-size limit or non-supported languages documents. + * * @param validDocumentsCount the validDocumentsCount value to set. * @return the RequestStatistics object itself. */ @@ -79,9 +83,10 @@ public RequestStatistics setValidDocumentsCount(int validDocumentsCount) { } /** - * Get the erroneousDocumentsCount property: Number of invalid documents. This includes empty, over-size limit or - * non-supported languages documents. - * + * Get the erroneousDocumentsCount property: Number of invalid documents. + * This includes empty, over-size limit or non-supported languages + * documents. + * * @return the erroneousDocumentsCount value. */ public int getErroneousDocumentsCount() { @@ -89,9 +94,10 @@ public int getErroneousDocumentsCount() { } /** - * Set the erroneousDocumentsCount property: Number of invalid documents. This includes empty, over-size limit or - * non-supported languages documents. - * + * Set the erroneousDocumentsCount property: Number of invalid documents. + * This includes empty, over-size limit or non-supported languages + * documents. + * * @param erroneousDocumentsCount the erroneousDocumentsCount value to set. * @return the RequestStatistics object itself. */ @@ -101,8 +107,9 @@ public RequestStatistics setErroneousDocumentsCount(int erroneousDocumentsCount) } /** - * Get the transactionsCount property: Number of transactions for the request. - * + * Get the transactionsCount property: Number of transactions for the + * request. + * * @return the transactionsCount value. */ public long getTransactionsCount() { @@ -110,8 +117,9 @@ public long getTransactionsCount() { } /** - * Set the transactionsCount property: Number of transactions for the request. - * + * Set the transactionsCount property: Number of transactions for the + * request. + * * @param transactionsCount the transactionsCount value to set. * @return the RequestStatistics object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SentenceAspect.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SentenceAspect.java index d7489460660a8..2c2c74260dfd3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SentenceAspect.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SentenceAspect.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The SentenceAspect model. */ +/** + * The SentenceAspect model. + */ @Fluent public final class SentenceAspect { /* @@ -49,8 +51,9 @@ public final class SentenceAspect { private List relations; /** - * Get the sentiment property: Aspect level sentiment for the aspect in the sentence. - * + * Get the sentiment property: Aspect level sentiment for the aspect in the + * sentence. + * * @return the sentiment value. */ public TokenSentimentValue getSentiment() { @@ -58,8 +61,9 @@ public TokenSentimentValue getSentiment() { } /** - * Set the sentiment property: Aspect level sentiment for the aspect in the sentence. - * + * Set the sentiment property: Aspect level sentiment for the aspect in the + * sentence. + * * @param sentiment the sentiment value to set. * @return the SentenceAspect object itself. */ @@ -69,8 +73,9 @@ public SentenceAspect setSentiment(TokenSentimentValue sentiment) { } /** - * Get the confidenceScores property: Aspect level sentiment confidence scores for the aspect in the sentence. - * + * Get the confidenceScores property: Aspect level sentiment confidence + * scores for the aspect in the sentence. + * * @return the confidenceScores value. */ public AspectConfidenceScoreLabel getConfidenceScores() { @@ -78,8 +83,9 @@ public AspectConfidenceScoreLabel getConfidenceScores() { } /** - * Set the confidenceScores property: Aspect level sentiment confidence scores for the aspect in the sentence. - * + * Set the confidenceScores property: Aspect level sentiment confidence + * scores for the aspect in the sentence. + * * @param confidenceScores the confidenceScores value to set. * @return the SentenceAspect object itself. */ @@ -89,8 +95,9 @@ public SentenceAspect setConfidenceScores(AspectConfidenceScoreLabel confidenceS } /** - * Get the offset property: The aspect offset from the start of the sentence. - * + * Get the offset property: The aspect offset from the start of the + * sentence. + * * @return the offset value. */ public int getOffset() { @@ -98,8 +105,9 @@ public int getOffset() { } /** - * Set the offset property: The aspect offset from the start of the sentence. - * + * Set the offset property: The aspect offset from the start of the + * sentence. + * * @param offset the offset value to set. * @return the SentenceAspect object itself. */ @@ -110,7 +118,7 @@ public SentenceAspect setOffset(int offset) { /** * Get the length property: The length of the aspect. - * + * * @return the length value. */ public int getLength() { @@ -119,7 +127,7 @@ public int getLength() { /** * Set the length property: The length of the aspect. - * + * * @param length the length value to set. * @return the SentenceAspect object itself. */ @@ -130,7 +138,7 @@ public SentenceAspect setLength(int length) { /** * Get the text property: The aspect text detected. - * + * * @return the text value. */ public String getText() { @@ -139,7 +147,7 @@ public String getText() { /** * Set the text property: The aspect text detected. - * + * * @param text the text value to set. * @return the SentenceAspect object itself. */ @@ -149,8 +157,9 @@ public SentenceAspect setText(String text) { } /** - * Get the relations property: The array of either opinion or aspect object which is related to the aspect. - * + * Get the relations property: The array of either opinion or aspect object + * which is related to the aspect. + * * @return the relations value. */ public List getRelations() { @@ -158,8 +167,9 @@ public List getRelations() { } /** - * Set the relations property: The array of either opinion or aspect object which is related to the aspect. - * + * Set the relations property: The array of either opinion or aspect object + * which is related to the aspect. + * * @param relations the relations value to set. * @return the SentenceAspect object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SentenceOpinion.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SentenceOpinion.java index d54d20f27272d..13aa3b367e04a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SentenceOpinion.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SentenceOpinion.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** The SentenceOpinion model. */ +/** + * The SentenceOpinion model. + */ @Fluent public final class SentenceOpinion { /* @@ -48,8 +50,9 @@ public final class SentenceOpinion { private boolean isNegated; /** - * Get the sentiment property: Opinion level sentiment for the aspect in the sentence. - * + * Get the sentiment property: Opinion level sentiment for the aspect in + * the sentence. + * * @return the sentiment value. */ public TokenSentimentValue getSentiment() { @@ -57,8 +60,9 @@ public TokenSentimentValue getSentiment() { } /** - * Set the sentiment property: Opinion level sentiment for the aspect in the sentence. - * + * Set the sentiment property: Opinion level sentiment for the aspect in + * the sentence. + * * @param sentiment the sentiment value to set. * @return the SentenceOpinion object itself. */ @@ -68,8 +72,9 @@ public SentenceOpinion setSentiment(TokenSentimentValue sentiment) { } /** - * Get the confidenceScores property: Opinion level sentiment confidence scores for the aspect in the sentence. - * + * Get the confidenceScores property: Opinion level sentiment confidence + * scores for the aspect in the sentence. + * * @return the confidenceScores value. */ public AspectConfidenceScoreLabel getConfidenceScores() { @@ -77,8 +82,9 @@ public AspectConfidenceScoreLabel getConfidenceScores() { } /** - * Set the confidenceScores property: Opinion level sentiment confidence scores for the aspect in the sentence. - * + * Set the confidenceScores property: Opinion level sentiment confidence + * scores for the aspect in the sentence. + * * @param confidenceScores the confidenceScores value to set. * @return the SentenceOpinion object itself. */ @@ -88,8 +94,9 @@ public SentenceOpinion setConfidenceScores(AspectConfidenceScoreLabel confidence } /** - * Get the offset property: The opinion offset from the start of the sentence. - * + * Get the offset property: The opinion offset from the start of the + * sentence. + * * @return the offset value. */ public int getOffset() { @@ -97,8 +104,9 @@ public int getOffset() { } /** - * Set the offset property: The opinion offset from the start of the sentence. - * + * Set the offset property: The opinion offset from the start of the + * sentence. + * * @param offset the offset value to set. * @return the SentenceOpinion object itself. */ @@ -109,7 +117,7 @@ public SentenceOpinion setOffset(int offset) { /** * Get the length property: The length of the opinion. - * + * * @return the length value. */ public int getLength() { @@ -118,7 +126,7 @@ public int getLength() { /** * Set the length property: The length of the opinion. - * + * * @param length the length value to set. * @return the SentenceOpinion object itself. */ @@ -129,7 +137,7 @@ public SentenceOpinion setLength(int length) { /** * Get the text property: The aspect text detected. - * + * * @return the text value. */ public String getText() { @@ -138,7 +146,7 @@ public String getText() { /** * Set the text property: The aspect text detected. - * + * * @param text the text value to set. * @return the SentenceOpinion object itself. */ @@ -148,8 +156,9 @@ public SentenceOpinion setText(String text) { } /** - * Get the isNegated property: The indicator representing if the opinion is negated. - * + * Get the isNegated property: The indicator representing if the opinion is + * negated. + * * @return the isNegated value. */ public boolean isNegated() { @@ -157,8 +166,9 @@ public boolean isNegated() { } /** - * Set the isNegated property: The indicator representing if the opinion is negated. - * + * Set the isNegated property: The indicator representing if the opinion is + * negated. + * * @param isNegated the isNegated value to set. * @return the SentenceOpinion object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SentenceSentiment.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SentenceSentiment.java index 5bdd3283c6808..195b5151b12f7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SentenceSentiment.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SentenceSentiment.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The SentenceSentiment model. */ +/** + * The SentenceSentiment model. + */ @Fluent public final class SentenceSentiment { /* @@ -56,7 +58,7 @@ public final class SentenceSentiment { /** * Get the text property: The sentence text. - * + * * @return the text value. */ public String getText() { @@ -65,7 +67,7 @@ public String getText() { /** * Set the text property: The sentence text. - * + * * @param text the text value to set. * @return the SentenceSentiment object itself. */ @@ -76,7 +78,7 @@ public SentenceSentiment setText(String text) { /** * Get the sentiment property: The predicted Sentiment for the sentence. - * + * * @return the sentiment value. */ public SentenceSentimentValue getSentiment() { @@ -85,7 +87,7 @@ public SentenceSentimentValue getSentiment() { /** * Set the sentiment property: The predicted Sentiment for the sentence. - * + * * @param sentiment the sentiment value to set. * @return the SentenceSentiment object itself. */ @@ -95,9 +97,9 @@ public SentenceSentiment setSentiment(SentenceSentimentValue sentiment) { } /** - * Get the confidenceScores property: The sentiment confidence score between 0 and 1 for the sentence for all - * classes. - * + * Get the confidenceScores property: The sentiment confidence score + * between 0 and 1 for the sentence for all classes. + * * @return the confidenceScores value. */ public SentimentConfidenceScorePerLabel getConfidenceScores() { @@ -105,9 +107,9 @@ public SentimentConfidenceScorePerLabel getConfidenceScores() { } /** - * Set the confidenceScores property: The sentiment confidence score between 0 and 1 for the sentence for all - * classes. - * + * Set the confidenceScores property: The sentiment confidence score + * between 0 and 1 for the sentence for all classes. + * * @param confidenceScores the confidenceScores value to set. * @return the SentenceSentiment object itself. */ @@ -117,8 +119,9 @@ public SentenceSentiment setConfidenceScores(SentimentConfidenceScorePerLabel co } /** - * Get the offset property: The sentence offset from the start of the document. - * + * Get the offset property: The sentence offset from the start of the + * document. + * * @return the offset value. */ public int getOffset() { @@ -126,8 +129,9 @@ public int getOffset() { } /** - * Set the offset property: The sentence offset from the start of the document. - * + * Set the offset property: The sentence offset from the start of the + * document. + * * @param offset the offset value to set. * @return the SentenceSentiment object itself. */ @@ -138,7 +142,7 @@ public SentenceSentiment setOffset(int offset) { /** * Get the length property: The length of the sentence. - * + * * @return the length value. */ public int getLength() { @@ -147,7 +151,7 @@ public int getLength() { /** * Set the length property: The length of the sentence. - * + * * @param length the length value to set. * @return the SentenceSentiment object itself. */ @@ -158,7 +162,7 @@ public SentenceSentiment setLength(int length) { /** * Get the aspects property: The array of aspect object for the sentence. - * + * * @return the aspects value. */ public List getAspects() { @@ -167,7 +171,7 @@ public List getAspects() { /** * Set the aspects property: The array of aspect object for the sentence. - * + * * @param aspects the aspects value to set. * @return the SentenceSentiment object itself. */ @@ -178,7 +182,7 @@ public SentenceSentiment setAspects(List aspects) { /** * Get the opinions property: The array of opinion object for the sentence. - * + * * @return the opinions value. */ public List getOpinions() { @@ -187,7 +191,7 @@ public List getOpinions() { /** * Set the opinions property: The array of opinion object for the sentence. - * + * * @param opinions the opinions value to set. * @return the SentenceSentiment object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SentenceSentimentValue.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SentenceSentimentValue.java index 5be87d8a7036f..c80b516477d59 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SentenceSentimentValue.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SentenceSentimentValue.java @@ -7,18 +7,28 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for SentenceSentimentValue. */ +/** + * Defines values for SentenceSentimentValue. + */ public enum SentenceSentimentValue { - /** Enum value positive. */ + /** + * Enum value positive. + */ POSITIVE("positive"), - /** Enum value neutral. */ + /** + * Enum value neutral. + */ NEUTRAL("neutral"), - /** Enum value negative. */ + /** + * Enum value negative. + */ NEGATIVE("negative"); - /** The actual serialized value for a SentenceSentimentValue instance. */ + /** + * The actual serialized value for a SentenceSentimentValue instance. + */ private final String value; SentenceSentimentValue(String value) { @@ -27,7 +37,7 @@ public enum SentenceSentimentValue { /** * Parses a serialized value to a SentenceSentimentValue instance. - * + * * @param value the serialized value to parse. * @return the parsed SentenceSentimentValue object, or null if unable to parse. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SentimentConfidenceScorePerLabel.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SentimentConfidenceScorePerLabel.java index 94da963ed515a..9c7561cf86b60 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SentimentConfidenceScorePerLabel.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SentimentConfidenceScorePerLabel.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** The SentimentConfidenceScorePerLabel model. */ +/** + * The SentimentConfidenceScorePerLabel model. + */ @Fluent public final class SentimentConfidenceScorePerLabel { /* @@ -30,7 +32,7 @@ public final class SentimentConfidenceScorePerLabel { /** * Get the positive property: The positive property. - * + * * @return the positive value. */ public double getPositive() { @@ -39,7 +41,7 @@ public double getPositive() { /** * Set the positive property: The positive property. - * + * * @param positive the positive value to set. * @return the SentimentConfidenceScorePerLabel object itself. */ @@ -50,7 +52,7 @@ public SentimentConfidenceScorePerLabel setPositive(double positive) { /** * Get the neutral property: The neutral property. - * + * * @return the neutral value. */ public double getNeutral() { @@ -59,7 +61,7 @@ public double getNeutral() { /** * Set the neutral property: The neutral property. - * + * * @param neutral the neutral value to set. * @return the SentimentConfidenceScorePerLabel object itself. */ @@ -70,7 +72,7 @@ public SentimentConfidenceScorePerLabel setNeutral(double neutral) { /** * Get the negative property: The negative property. - * + * * @return the negative value. */ public double getNegative() { @@ -79,7 +81,7 @@ public double getNegative() { /** * Set the negative property: The negative property. - * + * * @param negative the negative value to set. * @return the SentimentConfidenceScorePerLabel object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SentimentResponse.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SentimentResponse.java index f2b2394796892..b9175434c7200 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SentimentResponse.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/SentimentResponse.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The SentimentResponse model. */ +/** + * The SentimentResponse model. + */ @Fluent public final class SentimentResponse { /* @@ -38,7 +40,7 @@ public final class SentimentResponse { /** * Get the documents property: Sentiment analysis per document. - * + * * @return the documents value. */ public List getDocuments() { @@ -47,7 +49,7 @@ public List getDocuments() { /** * Set the documents property: Sentiment analysis per document. - * + * * @param documents the documents value to set. * @return the SentimentResponse object itself. */ @@ -58,7 +60,7 @@ public SentimentResponse setDocuments(List documents) { /** * Get the errors property: Errors by document id. - * + * * @return the errors value. */ public List getErrors() { @@ -67,7 +69,7 @@ public List getErrors() { /** * Set the errors property: Errors by document id. - * + * * @param errors the errors value to set. * @return the SentimentResponse object itself. */ @@ -77,9 +79,9 @@ public SentimentResponse setErrors(List errors) { } /** - * Get the statistics property: if showStats=true was specified in the request this field will contain information - * about the request payload. - * + * Get the statistics property: if showStats=true was specified in the + * request this field will contain information about the request payload. + * * @return the statistics value. */ public RequestStatistics getStatistics() { @@ -87,9 +89,9 @@ public RequestStatistics getStatistics() { } /** - * Set the statistics property: if showStats=true was specified in the request this field will contain information - * about the request payload. - * + * Set the statistics property: if showStats=true was specified in the + * request this field will contain information about the request payload. + * * @param statistics the statistics value to set. * @return the SentimentResponse object itself. */ @@ -99,8 +101,9 @@ public SentimentResponse setStatistics(RequestStatistics statistics) { } /** - * Get the modelVersion property: This field indicates which model is used for scoring. - * + * Get the modelVersion property: This field indicates which model is used + * for scoring. + * * @return the modelVersion value. */ public String getModelVersion() { @@ -108,8 +111,9 @@ public String getModelVersion() { } /** - * Set the modelVersion property: This field indicates which model is used for scoring. - * + * Set the modelVersion property: This field indicates which model is used + * for scoring. + * * @param modelVersion the modelVersion value to set. * @return the SentimentResponse object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/State.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/State.java new file mode 100644 index 0000000000000..1e64dde9d901a --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/State.java @@ -0,0 +1,85 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for State. + */ +public enum State { + /** + * Enum value notstarted. + */ + NOTSTARTED("notstarted"), + + /** + * Enum value running. + */ + RUNNING("running"), + + /** + * Enum value succeeded. + */ + SUCCEEDED("succeeded"), + + /** + * Enum value failed. + */ + FAILED("failed"), + + /** + * Enum value cancelled. + */ + CANCELLED("cancelled"), + + /** + * Enum value cancelling. + */ + CANCELLING("cancelling"), + + /** + * Enum value notStarted. + */ + NOT_STARTED("notStarted"), + + /** + * Enum value partiallyCompleted. + */ + PARTIALLY_COMPLETED("partiallyCompleted"); + + /** + * The actual serialized value for a State instance. + */ + private final String value; + + State(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a State instance. + * + * @param value the serialized value to parse. + * @return the parsed State object, or null if unable to parse. + */ + @JsonCreator + public static State fromString(String value) { + State[] items = State.values(); + for (State item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/StringIndexType.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/StringIndexType.java index 208af0412a484..921ec242ce301 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/StringIndexType.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/StringIndexType.java @@ -8,20 +8,28 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for StringIndexType. */ +/** + * Defines values for StringIndexType. + */ public final class StringIndexType extends ExpandableStringEnum { - /** Static value TextElements_v8 for StringIndexType. */ + /** + * Static value TextElements_v8 for StringIndexType. + */ public static final StringIndexType TEXT_ELEMENTS_V8 = fromString("TextElements_v8"); - /** Static value UnicodeCodePoint for StringIndexType. */ + /** + * Static value UnicodeCodePoint for StringIndexType. + */ public static final StringIndexType UNICODE_CODE_POINT = fromString("UnicodeCodePoint"); - /** Static value Utf16CodeUnit for StringIndexType. */ + /** + * Static value Utf16CodeUnit for StringIndexType. + */ public static final StringIndexType UTF16CODE_UNIT = fromString("Utf16CodeUnit"); /** * Creates or finds a StringIndexType from its string representation. - * + * * @param name a name to look for. * @return the corresponding StringIndexType. */ @@ -30,7 +38,9 @@ public static StringIndexType fromString(String name) { return fromString(name, StringIndexType.class); } - /** @return known StringIndexType values. */ + /** + * @return known StringIndexType values. + */ public static Collection values() { return values(StringIndexType.class); } diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/StringIndexTypeResponse.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/StringIndexTypeResponse.java new file mode 100644 index 0000000000000..a69e7d8e4ba5e --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/StringIndexTypeResponse.java @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Defines values for StringIndexTypeResponse. + */ +public enum StringIndexTypeResponse { + /** + * Enum value TextElements_v8. + */ + TEXT_ELEMENTS_V8("TextElements_v8"), + + /** + * Enum value UnicodeCodePoint. + */ + UNICODE_CODE_POINT("UnicodeCodePoint"), + + /** + * Enum value Utf16CodeUnit. + */ + UTF16CODE_UNIT("Utf16CodeUnit"); + + /** + * The actual serialized value for a StringIndexTypeResponse instance. + */ + private final String value; + + StringIndexTypeResponse(String value) { + this.value = value; + } + + /** + * Parses a serialized value to a StringIndexTypeResponse instance. + * + * @param value the serialized value to parse. + * @return the parsed StringIndexTypeResponse object, or null if unable to parse. + */ + @JsonCreator + public static StringIndexTypeResponse fromString(String value) { + StringIndexTypeResponse[] items = StringIndexTypeResponse.values(); + for (StringIndexTypeResponse item : items) { + if (item.toString().equalsIgnoreCase(value)) { + return item; + } + } + return null; + } + + @JsonValue + @Override + public String toString() { + return this.value; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TaskState.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TaskState.java new file mode 100644 index 0000000000000..8b78b306b868b --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TaskState.java @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; + +/** + * The TaskState model. + */ +@Fluent +public class TaskState { + /* + * The lastUpdateDateTime property. + */ + @JsonProperty(value = "lastUpdateDateTime", required = true) + private OffsetDateTime lastUpdateDateTime; + + /* + * The name property. + */ + @JsonProperty(value = "name", required = true) + private String name; + + /* + * The status property. + */ + @JsonProperty(value = "status", required = true) + private State status; + + /** + * Get the lastUpdateDateTime property: The lastUpdateDateTime property. + * + * @return the lastUpdateDateTime value. + */ + public OffsetDateTime getLastUpdateDateTime() { + return this.lastUpdateDateTime; + } + + /** + * Set the lastUpdateDateTime property: The lastUpdateDateTime property. + * + * @param lastUpdateDateTime the lastUpdateDateTime value to set. + * @return the TaskState object itself. + */ + public TaskState setLastUpdateDateTime(OffsetDateTime lastUpdateDateTime) { + this.lastUpdateDateTime = lastUpdateDateTime; + return this; + } + + /** + * Get the name property: The name property. + * + * @return the name value. + */ + public String getName() { + return this.name; + } + + /** + * Set the name property: The name property. + * + * @param name the name value to set. + * @return the TaskState object itself. + */ + public TaskState setName(String name) { + this.name = name; + return this; + } + + /** + * Get the status property: The status property. + * + * @return the status value. + */ + public State getStatus() { + return this.status; + } + + /** + * Set the status property: The status property. + * + * @param status the status value to set. + * @return the TaskState object itself. + */ + public TaskState setStatus(State status) { + this.status = status; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksState.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksState.java new file mode 100644 index 0000000000000..c9f2e7d142d77 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksState.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The TasksState model. + */ +@Fluent +public class TasksState { + /* + * The tasks property. + */ + @JsonProperty(value = "tasks", required = true) + private TasksStateTasks tasks; + + /** + * Get the tasks property: The tasks property. + * + * @return the tasks value. + */ + public TasksStateTasks getTasks() { + return this.tasks; + } + + /** + * Set the tasks property: The tasks property. + * + * @param tasks the tasks value to set. + * @return the TasksState object itself. + */ + public TasksState setTasks(TasksStateTasks tasks) { + this.tasks = tasks; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasks.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasks.java new file mode 100644 index 0000000000000..83f644aae98c6 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasks.java @@ -0,0 +1,231 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; + +/** + * The TasksStateTasks model. + */ +@Fluent +public final class TasksStateTasks { + /* + * The details property. + */ + @JsonProperty(value = "details") + private List details; + + /* + * The completed property. + */ + @JsonProperty(value = "completed", required = true) + private int completed; + + /* + * The failed property. + */ + @JsonProperty(value = "failed", required = true) + private int failed; + + /* + * The inProgress property. + */ + @JsonProperty(value = "inProgress", required = true) + private int inProgress; + + /* + * The total property. + */ + @JsonProperty(value = "total", required = true) + private int total; + + /* + * The entityRecognitionTasks property. + */ + @JsonProperty(value = "entityRecognitionTasks") + private List entityRecognitionTasks; + + /* + * The entityRecognitionPiiTasks property. + */ + @JsonProperty(value = "entityRecognitionPiiTasks") + private List entityRecognitionPiiTasks; + + /* + * The keyPhraseExtractionTasks property. + */ + @JsonProperty(value = "keyPhraseExtractionTasks") + private List keyPhraseExtractionTasks; + + /** + * Get the details property: The details property. + * + * @return the details value. + */ + public List getDetails() { + return this.details; + } + + /** + * Set the details property: The details property. + * + * @param details the details value to set. + * @return the TasksStateTasks object itself. + */ + public TasksStateTasks setDetails(List details) { + this.details = details; + return this; + } + + /** + * Get the completed property: The completed property. + * + * @return the completed value. + */ + public int getCompleted() { + return this.completed; + } + + /** + * Set the completed property: The completed property. + * + * @param completed the completed value to set. + * @return the TasksStateTasks object itself. + */ + public TasksStateTasks setCompleted(int completed) { + this.completed = completed; + return this; + } + + /** + * Get the failed property: The failed property. + * + * @return the failed value. + */ + public int getFailed() { + return this.failed; + } + + /** + * Set the failed property: The failed property. + * + * @param failed the failed value to set. + * @return the TasksStateTasks object itself. + */ + public TasksStateTasks setFailed(int failed) { + this.failed = failed; + return this; + } + + /** + * Get the inProgress property: The inProgress property. + * + * @return the inProgress value. + */ + public int getInProgress() { + return this.inProgress; + } + + /** + * Set the inProgress property: The inProgress property. + * + * @param inProgress the inProgress value to set. + * @return the TasksStateTasks object itself. + */ + public TasksStateTasks setInProgress(int inProgress) { + this.inProgress = inProgress; + return this; + } + + /** + * Get the total property: The total property. + * + * @return the total value. + */ + public int getTotal() { + return this.total; + } + + /** + * Set the total property: The total property. + * + * @param total the total value to set. + * @return the TasksStateTasks object itself. + */ + public TasksStateTasks setTotal(int total) { + this.total = total; + return this; + } + + /** + * Get the entityRecognitionTasks property: The entityRecognitionTasks + * property. + * + * @return the entityRecognitionTasks value. + */ + public List getEntityRecognitionTasks() { + return this.entityRecognitionTasks; + } + + /** + * Set the entityRecognitionTasks property: The entityRecognitionTasks + * property. + * + * @param entityRecognitionTasks the entityRecognitionTasks value to set. + * @return the TasksStateTasks object itself. + */ + public TasksStateTasks setEntityRecognitionTasks(List entityRecognitionTasks) { + this.entityRecognitionTasks = entityRecognitionTasks; + return this; + } + + /** + * Get the entityRecognitionPiiTasks property: The + * entityRecognitionPiiTasks property. + * + * @return the entityRecognitionPiiTasks value. + */ + public List getEntityRecognitionPiiTasks() { + return this.entityRecognitionPiiTasks; + } + + /** + * Set the entityRecognitionPiiTasks property: The + * entityRecognitionPiiTasks property. + * + * @param entityRecognitionPiiTasks the entityRecognitionPiiTasks value to + * set. + * @return the TasksStateTasks object itself. + */ + public TasksStateTasks setEntityRecognitionPiiTasks(List entityRecognitionPiiTasks) { + this.entityRecognitionPiiTasks = entityRecognitionPiiTasks; + return this; + } + + /** + * Get the keyPhraseExtractionTasks property: The keyPhraseExtractionTasks + * property. + * + * @return the keyPhraseExtractionTasks value. + */ + public List getKeyPhraseExtractionTasks() { + return this.keyPhraseExtractionTasks; + } + + /** + * Set the keyPhraseExtractionTasks property: The keyPhraseExtractionTasks + * property. + * + * @param keyPhraseExtractionTasks the keyPhraseExtractionTasks value to + * set. + * @return the TasksStateTasks object itself. + */ + public TasksStateTasks setKeyPhraseExtractionTasks(List keyPhraseExtractionTasks) { + this.keyPhraseExtractionTasks = keyPhraseExtractionTasks; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasksEntityRecognitionPiiTasksItem.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasksEntityRecognitionPiiTasksItem.java new file mode 100644 index 0000000000000..5056402076d6e --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasksEntityRecognitionPiiTasksItem.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The TasksStateTasksEntityRecognitionPiiTasksItem model. + */ +@Fluent +public final class TasksStateTasksEntityRecognitionPiiTasksItem extends TaskState { + /* + * The results property. + */ + @JsonProperty(value = "results") + private PiiResult results; + + /** + * Get the results property: The results property. + * + * @return the results value. + */ + public PiiResult getResults() { + return this.results; + } + + /** + * Set the results property: The results property. + * + * @param results the results value to set. + * @return the TasksStateTasksEntityRecognitionPiiTasksItem object itself. + */ + public TasksStateTasksEntityRecognitionPiiTasksItem setResults(PiiResult results) { + this.results = results; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasksEntityRecognitionTasksItem.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasksEntityRecognitionTasksItem.java new file mode 100644 index 0000000000000..5b27aeef35545 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasksEntityRecognitionTasksItem.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The TasksStateTasksEntityRecognitionTasksItem model. + */ +@Fluent +public final class TasksStateTasksEntityRecognitionTasksItem extends TaskState { + /* + * The results property. + */ + @JsonProperty(value = "results") + private EntitiesResult results; + + /** + * Get the results property: The results property. + * + * @return the results value. + */ + public EntitiesResult getResults() { + return this.results; + } + + /** + * Set the results property: The results property. + * + * @param results the results value to set. + * @return the TasksStateTasksEntityRecognitionTasksItem object itself. + */ + public TasksStateTasksEntityRecognitionTasksItem setResults(EntitiesResult results) { + this.results = results; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasksKeyPhraseExtractionTasksItem.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasksKeyPhraseExtractionTasksItem.java new file mode 100644 index 0000000000000..28f5d4ebd8df9 --- /dev/null +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasksKeyPhraseExtractionTasksItem.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.ai.textanalytics.implementation.models; + +import com.azure.core.annotation.Fluent; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * The TasksStateTasksKeyPhraseExtractionTasksItem model. + */ +@Fluent +public final class TasksStateTasksKeyPhraseExtractionTasksItem extends TaskState { + /* + * The results property. + */ + @JsonProperty(value = "results") + private KeyPhraseResult results; + + /** + * Get the results property: The results property. + * + * @return the results value. + */ + public KeyPhraseResult getResults() { + return this.results; + } + + /** + * Set the results property: The results property. + * + * @param results the results value to set. + * @return the TasksStateTasksKeyPhraseExtractionTasksItem object itself. + */ + public TasksStateTasksKeyPhraseExtractionTasksItem setResults(KeyPhraseResult results) { + this.results = results; + return this; + } +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TextAnalyticsError.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TextAnalyticsError.java index e3da62cd7a965..5e5d1a837d602 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TextAnalyticsError.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TextAnalyticsError.java @@ -8,7 +8,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; -/** The TextAnalyticsError model. */ +/** + * The TextAnalyticsError model. + */ @Fluent public final class TextAnalyticsError { /* @@ -43,7 +45,7 @@ public final class TextAnalyticsError { /** * Get the code property: Error code. - * + * * @return the code value. */ public ErrorCodeValue getCode() { @@ -52,7 +54,7 @@ public ErrorCodeValue getCode() { /** * Set the code property: Error code. - * + * * @param code the code value to set. * @return the TextAnalyticsError object itself. */ @@ -63,7 +65,7 @@ public TextAnalyticsError setCode(ErrorCodeValue code) { /** * Get the message property: Error message. - * + * * @return the message value. */ public String getMessage() { @@ -72,7 +74,7 @@ public String getMessage() { /** * Set the message property: Error message. - * + * * @param message the message value to set. * @return the TextAnalyticsError object itself. */ @@ -83,7 +85,7 @@ public TextAnalyticsError setMessage(String message) { /** * Get the target property: Error target. - * + * * @return the target value. */ public String getTarget() { @@ -92,7 +94,7 @@ public String getTarget() { /** * Set the target property: Error target. - * + * * @param target the target value to set. * @return the TextAnalyticsError object itself. */ @@ -102,8 +104,9 @@ public TextAnalyticsError setTarget(String target) { } /** - * Get the innererror property: Inner error contains more specific information. - * + * Get the innererror property: Inner error contains more specific + * information. + * * @return the innererror value. */ public InnerError getInnererror() { @@ -111,8 +114,9 @@ public InnerError getInnererror() { } /** - * Set the innererror property: Inner error contains more specific information. - * + * Set the innererror property: Inner error contains more specific + * information. + * * @param innererror the innererror value to set. * @return the TextAnalyticsError object itself. */ @@ -122,8 +126,9 @@ public TextAnalyticsError setInnererror(InnerError innererror) { } /** - * Get the details property: Details about specific errors that led to this reported error. - * + * Get the details property: Details about specific errors that led to this + * reported error. + * * @return the details value. */ public List getDetails() { @@ -131,8 +136,9 @@ public List getDetails() { } /** - * Set the details property: Details about specific errors that led to this reported error. - * + * Set the details property: Details about specific errors that led to this + * reported error. + * * @param details the details value to set. * @return the TextAnalyticsError object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TextAnalyticsWarning.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TextAnalyticsWarning.java index bbd1e6c2b6fc1..50318f1fbc3ae 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TextAnalyticsWarning.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TextAnalyticsWarning.java @@ -7,7 +7,9 @@ import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; -/** The TextAnalyticsWarning model. */ +/** + * The TextAnalyticsWarning model. + */ @Fluent public final class TextAnalyticsWarning { /* @@ -30,7 +32,7 @@ public final class TextAnalyticsWarning { /** * Get the code property: Error code. - * + * * @return the code value. */ public WarningCodeValue getCode() { @@ -39,7 +41,7 @@ public WarningCodeValue getCode() { /** * Set the code property: Error code. - * + * * @param code the code value to set. * @return the TextAnalyticsWarning object itself. */ @@ -50,7 +52,7 @@ public TextAnalyticsWarning setCode(WarningCodeValue code) { /** * Get the message property: Warning message. - * + * * @return the message value. */ public String getMessage() { @@ -59,7 +61,7 @@ public String getMessage() { /** * Set the message property: Warning message. - * + * * @param message the message value to set. * @return the TextAnalyticsWarning object itself. */ @@ -69,8 +71,9 @@ public TextAnalyticsWarning setMessage(String message) { } /** - * Get the targetRef property: A JSON pointer reference indicating the target object. - * + * Get the targetRef property: A JSON pointer reference indicating the + * target object. + * * @return the targetRef value. */ public String getTargetRef() { @@ -78,8 +81,9 @@ public String getTargetRef() { } /** - * Set the targetRef property: A JSON pointer reference indicating the target object. - * + * Set the targetRef property: A JSON pointer reference indicating the + * target object. + * * @param targetRef the targetRef value to set. * @return the TextAnalyticsWarning object itself. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TokenSentimentValue.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TokenSentimentValue.java index 553364d3720c5..70db542f4cc3b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TokenSentimentValue.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TokenSentimentValue.java @@ -7,18 +7,28 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; -/** Defines values for TokenSentimentValue. */ +/** + * Defines values for TokenSentimentValue. + */ public enum TokenSentimentValue { - /** Enum value positive. */ + /** + * Enum value positive. + */ POSITIVE("positive"), - /** Enum value mixed. */ + /** + * Enum value mixed. + */ MIXED("mixed"), - /** Enum value negative. */ + /** + * Enum value negative. + */ NEGATIVE("negative"); - /** The actual serialized value for a TokenSentimentValue instance. */ + /** + * The actual serialized value for a TokenSentimentValue instance. + */ private final String value; TokenSentimentValue(String value) { @@ -27,7 +37,7 @@ public enum TokenSentimentValue { /** * Parses a serialized value to a TokenSentimentValue instance. - * + * * @param value the serialized value to parse. * @return the parsed TokenSentimentValue object, or null if unable to parse. */ diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/WarningCodeValue.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/WarningCodeValue.java index d196cf67b357c..0d1e01ee20707 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/WarningCodeValue.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/WarningCodeValue.java @@ -8,17 +8,23 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for WarningCodeValue. */ +/** + * Defines values for WarningCodeValue. + */ public final class WarningCodeValue extends ExpandableStringEnum { - /** Static value LongWordsInDocument for WarningCodeValue. */ + /** + * Static value LongWordsInDocument for WarningCodeValue. + */ public static final WarningCodeValue LONG_WORDS_IN_DOCUMENT = fromString("LongWordsInDocument"); - /** Static value DocumentTruncated for WarningCodeValue. */ + /** + * Static value DocumentTruncated for WarningCodeValue. + */ public static final WarningCodeValue DOCUMENT_TRUNCATED = fromString("DocumentTruncated"); /** * Creates or finds a WarningCodeValue from its string representation. - * + * * @param name a name to look for. * @return the corresponding WarningCodeValue. */ @@ -27,7 +33,9 @@ public static WarningCodeValue fromString(String name) { return fromString(name, WarningCodeValue.class); } - /** @return known WarningCodeValue values. */ + /** + * @return known WarningCodeValue values. + */ public static Collection values() { return values(WarningCodeValue.class); } diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/package-info.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/package-info.java index 99e5843b9cc75..e1280b72a9525 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/package-info.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/package-info.java @@ -3,11 +3,12 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the data models for TextAnalyticsClient. The Text Analytics API is a suite of text analytics web - * services built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured - * text for tasks such as sentiment analysis, key phrase extraction and language detection. No training data is needed - * to use this API; just bring your text data. This API uses advanced natural language processing techniques to deliver - * best in class predictions. Further documentation can be found in - * https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview. + * Package containing the data models for TextAnalyticsClient. + * The Text Analytics API is a suite of natural language processing (NLP) + * services built with best-in-class Microsoft machine learning algorithms. + * The API can be used to analyze unstructured text for tasks such as sentiment + * analysis, key phrase extraction and language detection. Further + * documentation can be found in <a + * href="https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview">https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview</a>. */ package com.azure.ai.textanalytics.implementation.models; diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/package-info.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/package-info.java index 583ec2fb820b2..43d1844614c44 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/package-info.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/package-info.java @@ -3,11 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. /** - * Package containing the implementations and inner classes for TextAnalyticsClient. The Text Analytics API is a suite - * of text analytics web services built with best-in-class Microsoft machine learning algorithms. The API can be used to - * analyze unstructured text for tasks such as sentiment analysis, key phrase extraction and language detection. No - * training data is needed to use this API; just bring your text data. This API uses advanced natural language - * processing techniques to deliver best in class predictions. Further documentation can be found in - * https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview. + * Package containing the implementations and inner classes for + * TextAnalyticsClient. + * The Text Analytics API is a suite of natural language processing (NLP) + * services built with best-in-class Microsoft machine learning algorithms. + * The API can be used to analyze unstructured text for tasks such as sentiment + * analysis, key phrase extraction and language detection. Further + * documentation can be found in <a + * href="https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview">https://docs.microsoft.com/en-us/azure/cognitive-services/text-analytics/overview</a>. */ package com.azure.ai.textanalytics.implementation; diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentBatchTooManyDocuments.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentBatchTooManyDocuments.json index 1ac7c3abdbdb5..74bb45bc1818f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentBatchTooManyDocuments.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentBatchTooManyDocuments.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "5c6c2929-ed11-4d0e-8fd8-70f787885835", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentDiacriticsNfc.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentDiacriticsNfc.json index 83ea2257e0d6c..86f9f4b16152a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentDiacriticsNfc.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentDiacriticsNfc.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "a83f8ab8-164a-461f-a08d-aaabce2dea8a", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentDiacriticsNfd.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentDiacriticsNfd.json index b395e475577e7..ccc12171c14a6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentDiacriticsNfd.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentDiacriticsNfd.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "0843202a-667b-49a6-82bd-94330f97b993", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentDuplicateIdInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentDuplicateIdInput.json index 99c4de9bdee33..8702e985a7cc2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentDuplicateIdInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentDuplicateIdInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?showStats=false&opinionMining=false&stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?showStats=false&opinionMining=false&stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "d596b89d-5b58-4224-9b7b-5f1be0a2d32a", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentEmoji.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentEmoji.json index 3a71ecbb71d8d..4f15ec619ce27 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentEmoji.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentEmoji.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "e2f1e123-866a-4846-91d1-8484ced8b94e", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentEmojiFamily.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentEmojiFamily.json index f2f8cf5a8486d..29e2b3f849f34 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentEmojiFamily.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentEmojiFamily.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "591bf922-9a34-4131-8fdc-50d3c44cb392", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentEmojiFamilyWithSkinToneModifier.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentEmojiFamilyWithSkinToneModifier.json index 0e2e7ea59a997..1fac666600f65 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentEmojiFamilyWithSkinToneModifier.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentEmojiFamilyWithSkinToneModifier.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "0fecf14e-1a09-43d5-8d6e-97af232058e1", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentEmojiWithSkinToneModifier.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentEmojiWithSkinToneModifier.json index 26c59bb162df7..eabd2cadb8eb9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentEmojiWithSkinToneModifier.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentEmojiWithSkinToneModifier.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "0514eaf1-871d-4c75-8dcd-5fcebfff3eca", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentEmptyIdInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentEmptyIdInput.json index 4f58fa6be18ff..4460249375f0a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentEmptyIdInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentEmptyIdInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "e12d2cd0-895a-4c8c-8528-1b25be38063e", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchInputNotShowStatisticsButIncludeOpinionMining.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchInputNotShowStatisticsButIncludeOpinionMining.json index 62de7e36223dc..d7023b7b5db1d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchInputNotShowStatisticsButIncludeOpinionMining.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchInputNotShowStatisticsButIncludeOpinionMining.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?showStats=false&opinionMining=true&stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?showStats=false&opinionMining=true&stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "3a16be16-d742-4bff-b7cd-f08ba2f1fbf3", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchInputShowStatistics.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchInputShowStatistics.json index 239bb9c5e05ac..626709bfe57bf 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchInputShowStatistics.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchInputShowStatistics.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?showStats=true&opinionMining=false&stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?showStats=true&opinionMining=false&stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "23c9b4c8-324c-43a2-9d25-4f8e01d525bd", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchInputShowStatisticsAndIncludeOpinionMining.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchInputShowStatisticsAndIncludeOpinionMining.json index 0b0b2c29c4065..86f18a0b1b674 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchInputShowStatisticsAndIncludeOpinionMining.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchInputShowStatisticsAndIncludeOpinionMining.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?showStats=true&opinionMining=true&stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?showStats=true&opinionMining=true&stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "c8ee1e2f-7305-4f0d-a2ac-5bf6e519010d", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchInputShowStatisticsExcludeOpinionMining.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchInputShowStatisticsExcludeOpinionMining.json index fb28be0793c3d..f21869eda843d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchInputShowStatisticsExcludeOpinionMining.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchInputShowStatisticsExcludeOpinionMining.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?showStats=true&opinionMining=false&stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?showStats=true&opinionMining=false&stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "878483d8-b1a1-4f45-b1cd-8343acb1b6e1", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchInputWithNullAnalyzeSentimentOptions.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchInputWithNullAnalyzeSentimentOptions.json index dbefe112f87ec..26a6f6aa0e234 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchInputWithNullAnalyzeSentimentOptions.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchInputWithNullAnalyzeSentimentOptions.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "0a65f274-d47a-4f7f-b488-649df4652157", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchInputWithNullRequestOptions.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchInputWithNullRequestOptions.json index 4696e49a71486..06e3084dfac2a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchInputWithNullRequestOptions.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchInputWithNullRequestOptions.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?showStats=false&opinionMining=false&stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?showStats=false&opinionMining=false&stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "9f14fd52-8b61-4601-90a3-a90d8b05a9b8", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchStringInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchStringInput.json index 65165d0d93873..675c783ded234 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchStringInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForBatchStringInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?showStats=false&opinionMining=false&stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?showStats=false&opinionMining=false&stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "7d6c73a9-e9ec-4b39-99ba-9be6c8d3535a", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForEmptyText.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForEmptyText.json index 6bae8aa1d14f0..6b9e3914c1b13 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForEmptyText.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForEmptyText.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "50986742-9343-4f38-946f-458b88a5604d", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForFaultyText.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForFaultyText.json index 8ddc4504b72be..0a60b66a341a8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForFaultyText.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForFaultyText.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "8aa696ca-9a04-4bf4-bb17-b5030d971d6e", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForListStringNotShowStatisticsButIncludeOpinionMining.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForListStringNotShowStatisticsButIncludeOpinionMining.json index b42925c1e26c3..5bb28e33a031a 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForListStringNotShowStatisticsButIncludeOpinionMining.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForListStringNotShowStatisticsButIncludeOpinionMining.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?showStats=false&opinionMining=true&stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?showStats=false&opinionMining=true&stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "6d4d94c1-88d1-489e-89b6-c90affc8c21c", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForListStringShowStatisticsAndIncludeOpinionMining.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForListStringShowStatisticsAndIncludeOpinionMining.json index 23e3a7e708f01..3a505a5dbb277 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForListStringShowStatisticsAndIncludeOpinionMining.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForListStringShowStatisticsAndIncludeOpinionMining.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?showStats=true&opinionMining=true&stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?showStats=true&opinionMining=true&stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "1ddf7dba-de38-4b70-af2f-d7338f676beb", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForListStringShowStatisticsExcludeOpinionMining.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForListStringShowStatisticsExcludeOpinionMining.json index 929d332bb75a1..c1c2cbe38636f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForListStringShowStatisticsExcludeOpinionMining.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForListStringShowStatisticsExcludeOpinionMining.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?showStats=true&opinionMining=false&stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?showStats=true&opinionMining=false&stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "7d04a7af-12f2-4105-baf7-e843ca68421d", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForListStringWithLanguageHint.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForListStringWithLanguageHint.json index 375f3391c7617..86c5f2645a2aa 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForListStringWithLanguageHint.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForListStringWithLanguageHint.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?showStats=false&opinionMining=false&stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?showStats=false&opinionMining=false&stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "eeeb8809-db08-434d-9a04-72d93a5e25d5", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForTextInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForTextInput.json index 63d086299c6c7..4077cef140acc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForTextInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForTextInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "9e3d2772-dac1-4494-a88f-a2858f74c67c", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForTextInputWithDefaultLanguageHint.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForTextInputWithDefaultLanguageHint.json index 6dce9e2c66d5a..e07c6fc759d75 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForTextInputWithDefaultLanguageHint.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForTextInputWithDefaultLanguageHint.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "5c51283b-1648-44c6-8694-5520ebb725e8", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForTextInputWithOpinionMining.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForTextInputWithOpinionMining.json index 2b6626a1fa2ff..c2bfa3eedfb47 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForTextInputWithOpinionMining.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentForTextInputWithOpinionMining.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?showStats=false&opinionMining=true&stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?showStats=false&opinionMining=true&stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "8dc4b5aa-7cb5-46f9-bb31-632c3b2a4918", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentKoreanNfc.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentKoreanNfc.json index 0a5a112078dde..fc72538b65b95 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentKoreanNfc.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentKoreanNfc.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "a49433b3-0322-4693-b89d-f2581e0f761c", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentKoreanNfd.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentKoreanNfd.json index 69bfb11171059..3b0b2bbe69608 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentKoreanNfd.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentKoreanNfd.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "1674b82d-4585-4f6b-aac7-3cb3e3a8fda4", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentZalgoText.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentZalgoText.json index c068fa3c74722..050b945fbb811 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentZalgoText.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/analyzeSentimentZalgoText.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//sentiment?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//sentiment?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "ee22488f-8cbb-4e00-87ba-98749c645b14", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithDefaultCountryHint.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithDefaultCountryHint.json index e159a49d0c8e2..ea70a1fcf7bb8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithDefaultCountryHint.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithDefaultCountryHint.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//languages", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//languages", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "f7eccc75-2242-4798-9fef-4c73f5b32665", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithDefaultCountryHintForBatchOperation.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithDefaultCountryHintForBatchOperation.json index f6fd9ef8f30d9..c1d76fbea2288 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithDefaultCountryHintForBatchOperation.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithDefaultCountryHintForBatchOperation.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//languages", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//languages", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "5134811a-6154-40d9-8299-9097dcbc6783", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithDefaultLanguage.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithDefaultLanguage.json index adddd014a8efc..e53958f3724fb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithDefaultLanguage.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithDefaultLanguage.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//keyPhrases", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//keyPhrases", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "0a456e2a-dbf9-40f9-b9df-f54fce09cf02", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithDefaultLanguageForBatchOperation.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithDefaultLanguageForBatchOperation.json index 087584d7263c3..cf537a3962aa1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithDefaultLanguageForBatchOperation.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithDefaultLanguageForBatchOperation.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//keyPhrases", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//keyPhrases", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "3f758411-44a1-4f9b-99cf-aff644ea13d8", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithDefaultPipeline.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithDefaultPipeline.json index 0ec074b2977cf..afaee93738311 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithDefaultPipeline.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithDefaultPipeline.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//languages", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//languages", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "8d4945bf-584b-46e4-a696-744d148e46b8", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithInvalidApiKeyCredential.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithInvalidApiKeyCredential.json index 083a2cb08bcbb..6ede3573183ee 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithInvalidApiKeyCredential.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithInvalidApiKeyCredential.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//languages", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//languages", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "5a0bf3eb-e79f-4913-976d-18d81ee584d5", @@ -17,4 +17,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithNewCountryHint.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithNewCountryHint.json index ec34ecc214f46..9756247b37dcd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithNewCountryHint.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithNewCountryHint.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//languages", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//languages", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "9e864f6e-94c8-4e8b-bb3b-02fd4db3ad23", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithNewCountryHintForBatchOperation.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithNewCountryHintForBatchOperation.json index 7ec3e78527352..d9a595faababb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithNewCountryHintForBatchOperation.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithNewCountryHintForBatchOperation.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//languages", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//languages", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "b34c63b0-9733-4698-9e37-bd7eb0e7daa5", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithNewLanguage.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithNewLanguage.json index 4fb2138eb3f2d..8436a6fa53313 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithNewLanguage.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithNewLanguage.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//keyPhrases", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//keyPhrases", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "d295894b-41e9-49bc-a5ba-2739e06a8428", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithNewLanguageForBatchOperation.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithNewLanguageForBatchOperation.json index 1ed06f6f063f0..1639504b9585d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithNewLanguageForBatchOperation.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithNewLanguageForBatchOperation.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//keyPhrases", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//keyPhrases", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "7d02effa-9a18-46b4-b91e-9b4bba11d129", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithNullServiceVersion.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithNullServiceVersion.json index 66c633883cd2c..7492d8f095892 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithNullServiceVersion.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithNullServiceVersion.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//languages", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//languages", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "7c7662a0-ae4f-4201-bee5-23f4fd74b7c6", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithRotateToInvalidKey.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithRotateToInvalidKey.json index c339b49c0c498..4e7e11417b63d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithRotateToInvalidKey.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithRotateToInvalidKey.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//languages", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//languages", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "3cea85e5-707c-4377-acd6-e0c2c776aba2", @@ -17,4 +17,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithRotateToValidKey.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithRotateToValidKey.json index dd41b509d77d9..b94f9db12b1ab 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithRotateToValidKey.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithRotateToValidKey.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//languages", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//languages", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "b0d78eda-3f6b-4683-b017-36d0641f26b2", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithValidApiKeyCredential.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithValidApiKeyCredential.json index c76ca619e539c..cc58e75241dab 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithValidApiKeyCredential.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/clientBuilderWithValidApiKeyCredential.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//languages", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//languages", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "cb931e99-7541-41b1-a08d-dbe338dcfe72", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageDuplicateIdInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageDuplicateIdInput.json index 6e0a37ef65a0b..82ca37a3f6a42 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageDuplicateIdInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageDuplicateIdInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//languages", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//languages", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "20f05c0a-4717-48a3-9e72-378a5c2c512d", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageEmptyCountryHint.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageEmptyCountryHint.json index 6f6843971e4a6..c4b5d8bc3806f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageEmptyCountryHint.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageEmptyCountryHint.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//languages", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//languages", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "d36aa3f3-f430-492a-8c2b-47c01c84858e", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageEmptyIdInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageEmptyIdInput.json index e867b0d3be148..60432645f751d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageEmptyIdInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageEmptyIdInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//languages", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//languages", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "83b94598-4918-47c8-b7c9-4509a386319a", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageEmptyText.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageEmptyText.json index b671815b41807..5aa7a185581ff 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageEmptyText.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageEmptyText.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//languages", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//languages", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "e0638242-e3f4-40e7-a09d-9d50ccd8f0c5", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageFaultyText.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageFaultyText.json index a99e0cd69703e..ba63c3b3f39de 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageFaultyText.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageFaultyText.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//languages", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//languages", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "4580fddf-92c5-4e5b-9352-e65a443d496c", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageInvalidCountryHint.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageInvalidCountryHint.json index 4c0d4581629c1..6fb7c70734df8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageInvalidCountryHint.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageInvalidCountryHint.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//languages", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//languages", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "9722e589-4af5-4cbf-b68c-ed640ac0bf3b", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageNoneCountryHint.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageNoneCountryHint.json index 8453f660aa681..e3756b8bbbac3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageNoneCountryHint.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguageNoneCountryHint.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//languages", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//languages", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "efae7fbe-55cf-4b26-8592-45f9c021ef90", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguagesBatchInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguagesBatchInput.json index f032a64da886c..d2181f5b492b1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguagesBatchInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguagesBatchInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//languages", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//languages", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "059dde47-14a3-4a5a-a3d4-99aee2f4d13b", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguagesBatchInputShowStatistics.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguagesBatchInputShowStatistics.json index b0db80970e0b6..ac614166f2150 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguagesBatchInputShowStatistics.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguagesBatchInputShowStatistics.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//languages?showStats=true", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//languages?showStats=true", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "c7e2564e-dba8-4bc1-8c83-22c3ad851b52", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguagesBatchListCountryHint.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguagesBatchListCountryHint.json index a4ed03a474e13..f52a599684bd9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguagesBatchListCountryHint.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguagesBatchListCountryHint.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//languages", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//languages", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "025082c7-ae96-41b0-a89c-4f03664e2992", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguagesBatchListCountryHintWithOptions.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguagesBatchListCountryHintWithOptions.json index 423f0d4de2108..1264d14fad991 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguagesBatchListCountryHintWithOptions.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguagesBatchListCountryHintWithOptions.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//languages?showStats=true", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//languages?showStats=true", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "6a2f9363-b4f8-4134-86a9-bde15f6a0fe1", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguagesBatchStringInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguagesBatchStringInput.json index bc015665459aa..7a8ffbf958dc2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguagesBatchStringInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectLanguagesBatchStringInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//languages", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//languages", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "64ea71c7-db6b-49a0-84b9-017d6f85ec1e", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectSingleTextLanguage.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectSingleTextLanguage.json index 18165a166a9f9..3fe875bf3635d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectSingleTextLanguage.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/detectSingleTextLanguage.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//languages", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//languages", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "c7dfb57d-46ef-4411-a1c2-62fa3c71bda4", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesBatchTooManyDocuments.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesBatchTooManyDocuments.json index ab95acb5bca43..bc5ed3cd06ec1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesBatchTooManyDocuments.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesBatchTooManyDocuments.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//keyPhrases", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//keyPhrases", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "a71ab59a-4320-4099-b527-f856725ed717", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesBatchWarning.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesBatchWarning.json index 750b29d774994..36ef03a457332 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesBatchWarning.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesBatchWarning.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//keyPhrases", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//keyPhrases", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "3c4d7a11-d3b7-46f5-b87d-43d2a4928b0d", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesDuplicateIdInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesDuplicateIdInput.json index a200f395a602a..2b9b92d6e1a68 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesDuplicateIdInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesDuplicateIdInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//keyPhrases", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//keyPhrases", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "331ea854-985a-4826-800f-42906f0dc39e", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesEmptyIdInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesEmptyIdInput.json index e7130a9c3d499..6b21b229778c2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesEmptyIdInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesEmptyIdInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//keyPhrases", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//keyPhrases", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "46083ebe-7708-4fc9-bd61-d0439cf212d8", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForBatchInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForBatchInput.json index 7ca7e2de7b9a6..72fe29632dada 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForBatchInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForBatchInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//keyPhrases", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//keyPhrases", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "527734a0-b5d0-44d5-a5f3-ff0f3654d10c", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForBatchInputShowStatistics.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForBatchInputShowStatistics.json index 9d3565e1bcdec..d592c6a6df5f8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForBatchInputShowStatistics.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForBatchInputShowStatistics.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//keyPhrases?showStats=true", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//keyPhrases?showStats=true", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "0d1a273e-4938-41b4-9a1d-7bdb59c21e7e", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForBatchStringInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForBatchStringInput.json index 4ad4e0242c762..e94cc7ad3d204 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForBatchStringInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForBatchStringInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//keyPhrases", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//keyPhrases", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "803e6647-30a0-4fa2-9df5-b02696fe58b4", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForEmptyText.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForEmptyText.json index e4846a515474a..3bc429e95969c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForEmptyText.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForEmptyText.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//keyPhrases", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//keyPhrases", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "862dabe7-a09c-477d-bdac-794864b00e3b", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForFaultyText.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForFaultyText.json index fba14971fe02f..d54e28cc9af9f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForFaultyText.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForFaultyText.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//keyPhrases", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//keyPhrases", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "9e21a90a-19fc-4132-9653-ca50528c6a04", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForListLanguageHint.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForListLanguageHint.json index ba1d17d5463ab..2b30b867c66bf 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForListLanguageHint.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForListLanguageHint.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//keyPhrases", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//keyPhrases", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "81d11171-495b-4adc-8d52-40b13cedf0dc", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForListStringWithOptions.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForListStringWithOptions.json index cfcf20ccb9d68..bd0633d549b50 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForListStringWithOptions.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForListStringWithOptions.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//keyPhrases?showStats=true", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//keyPhrases?showStats=true", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "0d62328e-f4cb-4d14-b207-b7e118dcf91e", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForTextInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForTextInput.json index 813a97835036c..9c1cfaa2c4e70 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForTextInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesForTextInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//keyPhrases", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//keyPhrases", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "314cc613-01dc-49b8-a132-0c7e938f0b87", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesWarning.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesWarning.json index 064a202129a76..bb8a1fa5d078f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesWarning.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/extractKeyPhrasesWarning.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//keyPhrases", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//keyPhrases", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "d929f1cd-82ca-4cbe-bacf-db946576faf3", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesBatchInputSingleError.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesBatchInputSingleError.json index 75de352780b81..7a5075c69de16 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesBatchInputSingleError.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesBatchInputSingleError.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/general?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/general?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "fc62b511-6705-4a46-a485-bcbc2ec1a58d", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesBatchTooManyDocuments.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesBatchTooManyDocuments.json index a1d254929f22b..e2e5617dcb283 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesBatchTooManyDocuments.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesBatchTooManyDocuments.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/general?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/general?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "fba8d8d7-53f3-4a9e-ba62-8605e8e9ddc4", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesDiacriticsNfc.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesDiacriticsNfc.json index baac2faa311b2..c65d5f37fff7d 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesDiacriticsNfc.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesDiacriticsNfc.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/general?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/general?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "91ca340e-50f7-4f54-be0c-839101384433", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesDiacriticsNfd.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesDiacriticsNfd.json index 7627093cd1041..bcaaa0f184f67 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesDiacriticsNfd.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesDiacriticsNfd.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/general?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/general?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "5aaf2abf-c350-4c5e-803e-e987fce4875f", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesDuplicateIdInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesDuplicateIdInput.json index 3b7ad148c2fbc..471c6892fa87e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesDuplicateIdInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesDuplicateIdInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/general?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/general?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "bef15ea0-9821-4f0a-844a-4d734898ac24", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesEmoji.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesEmoji.json index fb65b83ffd423..3c8540b44b608 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesEmoji.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesEmoji.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/general?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/general?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "ba219dcf-fe70-4714-9794-0a80d74b10cf", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesEmojiFamily.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesEmojiFamily.json index 7aae04712ac41..fa9718e50f86b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesEmojiFamily.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesEmojiFamily.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/general?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/general?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "024dd68d-f3cc-477b-814c-b3248eddeeec", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesEmojiFamilyWIthSkinToneModifier.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesEmojiFamilyWIthSkinToneModifier.json index 80184b5670bfd..80e8e81789385 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesEmojiFamilyWIthSkinToneModifier.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesEmojiFamilyWIthSkinToneModifier.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/general?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/general?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "d4d01bb1-02b5-4fef-a708-3913df730384", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesEmojiWithSkinToneModifier.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesEmojiWithSkinToneModifier.json index 1d85d3e64ac25..3d773c170a9dc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesEmojiWithSkinToneModifier.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesEmojiWithSkinToneModifier.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/general?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/general?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "87e22552-fb74-4bb0-914e-d04afdb7cbf2", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesEmptyIdInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesEmptyIdInput.json index 2af9f87c3ce24..52b96f4c91db7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesEmptyIdInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesEmptyIdInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/general?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/general?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "fe75b814-99a3-449d-bef9-11dc4160ad30", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForBatchInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForBatchInput.json index 8296a9dd63583..6ac086dd0ebcf 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForBatchInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForBatchInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/general?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/general?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "1c774096-ae90-4196-b27a-4fe9b6053ccf", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForBatchInputShowStatistics.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForBatchInputShowStatistics.json index 2114848197eef..46a86466b4dbc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForBatchInputShowStatistics.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForBatchInputShowStatistics.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/general?showStats=true&stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/general?showStats=true&stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "94f3b1f3-8c5c-4006-ae9f-33654c57ce96", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForBatchStringInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForBatchStringInput.json index 1601e5a9924a1..0383eba247c89 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForBatchStringInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForBatchStringInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/general?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/general?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "1d0ccae8-baa4-407b-827a-1936b563dbdb", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForEmptyText.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForEmptyText.json index 6c98d99c063a2..e19d2b2cb4c31 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForEmptyText.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForEmptyText.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/general?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/general?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "067b153d-daf2-4391-ab4f-bc599ba04380", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForFaultyText.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForFaultyText.json index 7e8b9bd8cea39..f8332bfc659f1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForFaultyText.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForFaultyText.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/general?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/general?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "9165db69-6cfb-4621-9c5f-9787a67a8d74", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForListLanguageHint.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForListLanguageHint.json index 84c0b947841d8..8b0e9eae015f9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForListLanguageHint.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForListLanguageHint.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/general?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/general?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "f4a48fa0-d757-4630-9cdb-776cb5cfd76e", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForListWithOptions.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForListWithOptions.json index 881fda7f6e90d..bf700239845bc 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForListWithOptions.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForListWithOptions.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/general?showStats=true&stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/general?showStats=true&stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "8b1b2c96-ca8a-4ed5-882b-cc29e584bce6", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForTextInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForTextInput.json index b39bb79df9c29..1a1951e476234 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForTextInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesForTextInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/general?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/general?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "4753cf0f-77d5-4a26-9287-b4ea3504ccba", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesKoreanNfc.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesKoreanNfc.json index bff746ef06cd2..ff0d596c0f361 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesKoreanNfc.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesKoreanNfc.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/general?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/general?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "d55a5919-9dc6-40d2-bc0a-e8652264b043", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesKoreanNfd.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesKoreanNfd.json index d570999a497d1..1ba7d34f0d0c6 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesKoreanNfd.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesKoreanNfd.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/general?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/general?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "a0149344-6615-4916-a60b-511ab6e8bcfc", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesZalgoText.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesZalgoText.json index 8cf499c3b4301..ebce1640a39f2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesZalgoText.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeEntitiesZalgoText.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/general?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/general?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "8e2b4efd-4321-4597-b778-fc6fe9a302e8", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesBatchTooManyDocuments.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesBatchTooManyDocuments.json index 17f89e1c1fc02..0925b6727f7e8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesBatchTooManyDocuments.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesBatchTooManyDocuments.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/linking?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/linking?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "fbad32bf-1259-4eb7-9a4f-f8521337eaff", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesDiacriticsNfc.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesDiacriticsNfc.json index 14cec16d7c80b..2af7b9b09bcb3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesDiacriticsNfc.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesDiacriticsNfc.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/linking?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/linking?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "4e1fd9d0-d71c-46f5-b3a6-c1419a7c12ca", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesDiacriticsNfd.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesDiacriticsNfd.json index 924c2687fec83..e6ac3820cff3c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesDiacriticsNfd.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesDiacriticsNfd.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/linking?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/linking?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "4d387dfc-ea7b-42aa-a3fb-21a763b7f482", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesDuplicateIdInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesDuplicateIdInput.json index 3eb879c7e82fb..a6698c475e702 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesDuplicateIdInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesDuplicateIdInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/linking?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/linking?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "a440f22c-b653-4ee0-9232-784cc62536bc", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesEmoji.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesEmoji.json index f5564a9dc3857..7c7111b06d23e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesEmoji.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesEmoji.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/linking?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/linking?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "ed776b78-5365-48c8-8ea1-4440799afaeb", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesEmojiFamily.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesEmojiFamily.json index ca846d748bafb..361b29ed450d3 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesEmojiFamily.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesEmojiFamily.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/linking?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/linking?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "60f40ce4-3c24-481d-a222-e13c6174f717", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesEmojiFamilyWIthSkinToneModifier.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesEmojiFamilyWIthSkinToneModifier.json index 3ae20849f9dba..dc15a6556dcad 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesEmojiFamilyWIthSkinToneModifier.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesEmojiFamilyWIthSkinToneModifier.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/linking?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/linking?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "e338fece-4adc-4d0d-bde9-22cc55f36dbd", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesEmojiWithSkinToneModifier.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesEmojiWithSkinToneModifier.json index fc672993366ef..53223f3921985 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesEmojiWithSkinToneModifier.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesEmojiWithSkinToneModifier.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/linking?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/linking?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "16c1350c-35f8-4c47-a627-020e0f07cf72", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesEmptyIdInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesEmptyIdInput.json index 36b7cc72b162e..8005925856810 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesEmptyIdInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesEmptyIdInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/linking?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/linking?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "1f4cb3a1-faab-44d0-b70b-b93021efc527", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForBatchInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForBatchInput.json index bf85d72dd9260..4d37db7f6dbe1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForBatchInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForBatchInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/linking?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/linking?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "e1c8f748-2cf0-4bd7-9f03-b8c4615e17c1", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForBatchInputShowStatistics.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForBatchInputShowStatistics.json index 26e880cc18505..8769b77774451 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForBatchInputShowStatistics.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForBatchInputShowStatistics.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/linking?showStats=true&stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/linking?showStats=true&stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "37dab68e-5479-47b4-9d0a-b6d37e6f5ffe", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForBatchStringInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForBatchStringInput.json index c2b49616c3aed..63223d2240c64 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForBatchStringInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForBatchStringInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/linking?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/linking?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "221b9e2d-de44-4686-b404-50cc7cb768fa", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForEmptyText.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForEmptyText.json index e887313109e8b..a9cb3db87fd60 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForEmptyText.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForEmptyText.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/linking?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/linking?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "ce295d63-1914-4fcf-ba4b-735f0c2a8e18", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForFaultyText.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForFaultyText.json index f1d29b442757d..c0f723c326f42 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForFaultyText.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForFaultyText.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/linking?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/linking?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "8179787d-9312-4cb1-8747-2b41d0e48e9e", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForListLanguageHint.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForListLanguageHint.json index 05c34744f5ecf..515e494a8088e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForListLanguageHint.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForListLanguageHint.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/linking?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/linking?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "11d209dc-1fc0-40cf-93a8-1f9699c78d1a", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForListStringWithOptions.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForListStringWithOptions.json index 67c3feb6fd544..313aaea130ac1 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForListStringWithOptions.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForListStringWithOptions.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/linking?showStats=true&stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/linking?showStats=true&stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "7bdf1e0b-aef0-4ed6-8d07-7e8709a51afe", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForTextInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForTextInput.json index 9b0cfd97af9ff..d6389bedb824e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForTextInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesForTextInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/linking?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/linking?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "1843ea29-e72a-4e1a-a45d-33b292b53331", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesKoreanNfc.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesKoreanNfc.json index 44977cc8e35aa..ee37e71a29716 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesKoreanNfc.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesKoreanNfc.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/linking?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/linking?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "b8db2fba-e3da-4763-a0c5-0561f992f779", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesKoreanNfd.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesKoreanNfd.json index 089cb505c0c08..c49df3290c437 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesKoreanNfd.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesKoreanNfd.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/linking?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/linking?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "a75ff53a-acad-47b3-81c2-dcdfc25ecd2e", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesZalgoText.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesZalgoText.json index 4737b65c5bada..8c50e6cba1a60 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesZalgoText.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizeLinkedEntitiesZalgoText.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/linking?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/linking?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "556d27cd-784d-4592-9b9a-379abc1bbf6d", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesBatchInputSingleError.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesBatchInputSingleError.json index 03d0c3f58ce5c..faa327a6d7ad9 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesBatchInputSingleError.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesBatchInputSingleError.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/pii?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/pii?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "b9b7d09e-a0c8-434b-bf5a-2a4c520fcabe", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesBatchTooManyDocuments.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesBatchTooManyDocuments.json index 4c62d3bdbbcf5..69af055c71f18 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesBatchTooManyDocuments.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesBatchTooManyDocuments.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/pii?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/pii?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "d9a37065-663c-4410-a5b4-e7b09b0e8487", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesDiacriticsNfc.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesDiacriticsNfc.json index 6480e3e2a8cf2..00d5dc3c4821b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesDiacriticsNfc.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesDiacriticsNfc.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/pii?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/pii?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "f364b5ff-a2d4-43b2-8324-4344bfd23512", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesDiacriticsNfd.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesDiacriticsNfd.json index c6525ca3042e3..b4161fedfce5f 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesDiacriticsNfd.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesDiacriticsNfd.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/pii?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/pii?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "afb9b994-64a4-42f1-97fa-ccdee7df94ce", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesDuplicateIdInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesDuplicateIdInput.json index b73b63c3c142c..6310566158e7e 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesDuplicateIdInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesDuplicateIdInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/pii?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/pii?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "6165bd6b-195d-4bb1-b6ad-2e4bc8309197", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesEmoji.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesEmoji.json index f3169fd7515e1..6361b8fa7b5c5 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesEmoji.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesEmoji.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/pii?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/pii?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "ead30b42-6828-4db7-8129-75a46aa4fdb0", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesEmojiFamily.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesEmojiFamily.json index 022addbbb8b07..45a1387796c98 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesEmojiFamily.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesEmojiFamily.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/pii?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/pii?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "9ccae6b4-fa24-4137-a0b4-7630c36fceb9", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesEmojiFamilyWIthSkinToneModifier.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesEmojiFamilyWIthSkinToneModifier.json index d3ac8514fe2e4..352397630b584 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesEmojiFamilyWIthSkinToneModifier.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesEmojiFamilyWIthSkinToneModifier.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/pii?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/pii?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "0410d1f2-ca75-4d61-9369-6e0c37facbd0", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesEmojiWithSkinToneModifier.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesEmojiWithSkinToneModifier.json index e293f20ed5729..000a9770dd4ac 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesEmojiWithSkinToneModifier.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesEmojiWithSkinToneModifier.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/pii?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/pii?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "7066bb6c-0633-4fb0-828c-2ac39db966ee", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesEmptyIdInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesEmptyIdInput.json index 841dbade9de58..efcb988ce53ca 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesEmptyIdInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesEmptyIdInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/pii?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/pii?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "80f7c4f5-bf4b-476a-b334-c75a5c0d88f3", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForBatchInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForBatchInput.json index b857deabf9b78..efd5c5e929369 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForBatchInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForBatchInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/pii?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/pii?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "2cc26d76-5c36-4871-9b00-fd586f991928", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForBatchInputForDomainFilter.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForBatchInputForDomainFilter.json index daf76590799c6..466b50fbe8e3c 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForBatchInputForDomainFilter.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForBatchInputForDomainFilter.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/pii?showStats=false&domain=PHI&stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/pii?showStats=false&domain=PHI&stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "d12860b5-4b4d-4277-9064-1512b84f289c", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForBatchInputShowStatistics.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForBatchInputShowStatistics.json index cd8e68a97305d..57101ec6b510b 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForBatchInputShowStatistics.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForBatchInputShowStatistics.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/pii?showStats=true&stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/pii?showStats=true&stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "cf15b07d-130d-41bb-9d10-ec7e9c588986", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForBatchInputStringForDomainFilter.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForBatchInputStringForDomainFilter.json index d6a86af10902e..d7d30151235a8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForBatchInputStringForDomainFilter.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForBatchInputStringForDomainFilter.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/pii?showStats=false&domain=PHI&stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/pii?showStats=false&domain=PHI&stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "7051662f-b272-4857-951f-327fd231943c", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForDomainFilter.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForDomainFilter.json index 49046bfa7c2e3..77fbaaac0cd56 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForDomainFilter.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForDomainFilter.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/pii?showStats=false&domain=PHI&stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/pii?showStats=false&domain=PHI&stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "8be63659-d554-4018-87e4-60c9d3d6fcf6", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForEmptyText.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForEmptyText.json index 9b9962a7fa601..c575e195ad007 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForEmptyText.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForEmptyText.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/pii?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/pii?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "62001a27-af90-46d0-a783-e8e779f60575", @@ -22,4 +22,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForFaultyText.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForFaultyText.json index 52cfdad68935b..daba45f024877 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForFaultyText.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForFaultyText.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/pii?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/pii?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "84d3378d-bfde-4190-98a9-9091710afb26", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForListLanguageHint.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForListLanguageHint.json index aec32ad6abfaa..45e22d946d8f4 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForListLanguageHint.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForListLanguageHint.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/pii?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/pii?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "9bdae4dc-317a-4f11-bdf2-7513da2920f2", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForListStringWithOptions.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForListStringWithOptions.json index 78ed7fc20bef0..6725290c49bc8 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForListStringWithOptions.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForListStringWithOptions.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/pii?showStats=true&stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/pii?showStats=true&stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "5cb62422-f5c2-44ad-b6cd-c3c9977a344a", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForTextInput.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForTextInput.json index 93eb90acb36d3..e5c57475b20a2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForTextInput.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesForTextInput.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/pii?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/pii?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "fc8901b8-3654-4d50-b899-11b86f5fc212", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesKoreanNfc.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesKoreanNfc.json index 4d3b6641e26b0..c218a2ce06b03 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesKoreanNfc.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesKoreanNfc.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/pii?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/pii?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "30d84360-4db4-4e62-98e6-6622cd1a58c9", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesKoreanNfd.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesKoreanNfd.json index a91d552fb09c3..92652963c50f2 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesKoreanNfd.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesKoreanNfd.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/pii?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/pii?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "c8d4b2fc-79a0-4eca-8782-52397a4475a5", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesZalgoText.json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesZalgoText.json index c6afd58186211..de917863ac636 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesZalgoText.json +++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/recognizePiiEntitiesZalgoText.json @@ -1,7 +1,7 @@ { "networkCallRecords" : [ { "Method" : "POST", - "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.2//entities/recognition/pii?stringIndexType=Utf16CodeUnit", + "Uri" : "https://REDACTED.azure-api.net/text/analytics/v3.1-preview.3//entities/recognition/pii?stringIndexType=Utf16CodeUnit", "Headers" : { "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.1.0-beta.1 (11.0.7; Windows 10; 10.0)", "x-ms-client-request-id" : "84a44541-df9b-4081-abd5-53b0585bbede", @@ -23,4 +23,4 @@ "Exception" : null } ], "variables" : [ ] -} \ No newline at end of file +} diff --git a/sdk/textanalytics/azure-ai-textanalytics/swagger/README.md b/sdk/textanalytics/azure-ai-textanalytics/swagger/README.md index 32de6ebe32ba4..208b308657efd 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/swagger/README.md +++ b/sdk/textanalytics/azure-ai-textanalytics/swagger/README.md @@ -20,7 +20,7 @@ autorest --java --use=C:/work/autorest.java ### Code generation settings ``` yaml -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.2/TextAnalytics.json +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.1-preview.3/TextAnalytics.json java: true output-folder: ..\ generate-client-as-impl: true From 0531290fd948d5b6ef1a20d3aeda150148018e1b Mon Sep 17 00:00:00 2001 From: shafang Date: Wed, 4 Nov 2020 13:56:17 -0800 Subject: [PATCH 2/2] fixes spotbugs --- .../TextAnalyticsClientBuilder.java | 12 ++--- .../models/AnalyzeResponse.java | 5 ++- .../models/CancelHealthJobResponse.java | 5 ++- ...tiesEntityrecognitiontasksItemsAllof1.java | 44 ------------------- ...sEntityrecognitionpiitasksItemsAllof1.java | 44 ------------------- ...esKeyphraseextractiontasksItemsAllof1.java | 44 ------------------- .../implementation/models/HealthResponse.java | 5 ++- .../models/TasksStateTasks.java | 41 +++++++++-------- 8 files changed, 38 insertions(+), 162 deletions(-) delete mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1.java delete mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1.java delete mode 100644 sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1.java diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/TextAnalyticsClientBuilder.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/TextAnalyticsClientBuilder.java index b7fc2e14f009f..04aac2d8062fb 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/TextAnalyticsClientBuilder.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/TextAnalyticsClientBuilder.java @@ -23,8 +23,9 @@ public final class TextAnalyticsClientBuilder { private String endpoint; /** - * Sets Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com). - * + * Sets Supported Cognitive Services endpoints (protocol and hostname, for example: + * https://westus.api.cognitive.microsoft.com). + * * @param endpoint the endpoint value. * @return the TextAnalyticsClientBuilder. */ @@ -40,7 +41,7 @@ public TextAnalyticsClientBuilder endpoint(String endpoint) { /** * Sets The HTTP pipeline to send requests through. - * + * * @param pipeline the pipeline value. * @return the TextAnalyticsClientBuilder. */ @@ -51,12 +52,13 @@ public TextAnalyticsClientBuilder pipeline(HttpPipeline pipeline) { /** * Builds an instance of TextAnalyticsClientImpl with the provided parameters. - * + * * @return an instance of TextAnalyticsClientImpl. */ public TextAnalyticsClientImpl buildClient() { if (pipeline == null) { - this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy(), new CookiePolicy()).build(); + this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy(), + new CookiePolicy()).build(); } TextAnalyticsClientImpl client = new TextAnalyticsClientImpl(pipeline); client.setEndpoint(this.endpoint); diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AnalyzeResponse.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AnalyzeResponse.java index eac1ccdc04f47..683cebbc065b7 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AnalyzeResponse.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/AnalyzeResponse.java @@ -14,14 +14,15 @@ public final class AnalyzeResponse extends ResponseBase { /** * Creates an instance of AnalyzeResponse. - * + * * @param request the request which resulted in this AnalyzeResponse. * @param statusCode the status code of the HTTP response. * @param rawHeaders the raw headers of the HTTP response. * @param value the deserialized value of the HTTP response. * @param headers the deserialized headers of the HTTP response. */ - public AnalyzeResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, AnalyzeHeaders headers) { + public AnalyzeResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, + AnalyzeHeaders headers) { super(request, statusCode, rawHeaders, value, headers); } } diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CancelHealthJobResponse.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CancelHealthJobResponse.java index b9cf8e1fefbc9..a709321055e84 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CancelHealthJobResponse.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/CancelHealthJobResponse.java @@ -14,14 +14,15 @@ public final class CancelHealthJobResponse extends ResponseBase { /** * Creates an instance of CancelHealthJobResponse. - * + * * @param request the request which resulted in this CancelHealthJobResponse. * @param statusCode the status code of the HTTP response. * @param rawHeaders the raw headers of the HTTP response. * @param value the deserialized value of the HTTP response. * @param headers the deserialized headers of the HTTP response. */ - public CancelHealthJobResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, CancelHealthJobHeaders headers) { + public CancelHealthJobResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, + CancelHealthJobHeaders headers) { super(request, statusCode, rawHeaders, value, headers); } } diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1.java deleted file mode 100644 index 93927a313d8af..0000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.ai.textanalytics.implementation.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * The - * Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1 - * model. - */ -@Fluent -public class Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1 { - /* - * The results property. - */ - @JsonProperty(value = "results") - private EntitiesResult results; - - /** - * Get the results property: The results property. - * - * @return the results value. - */ - public EntitiesResult getResults() { - return this.results; - } - - /** - * Set the results property: The results property. - * - * @param results the results value to set. - * @return the - * Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1 - * object itself. - */ - public Components15Gvwi3SchemasTasksstatePropertiesTasksPropertiesEntityrecognitiontasksItemsAllof1 setResults(EntitiesResult results) { - this.results = results; - return this; - } -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1.java deleted file mode 100644 index 7ba3a187d86d8..0000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.ai.textanalytics.implementation.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * The - * Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1 - * model. - */ -@Fluent -public class Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1 { - /* - * The results property. - */ - @JsonProperty(value = "results") - private PiiResult results; - - /** - * Get the results property: The results property. - * - * @return the results value. - */ - public PiiResult getResults() { - return this.results; - } - - /** - * Set the results property: The results property. - * - * @param results the results value to set. - * @return the - * Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1 - * object itself. - */ - public Components15X8E9LSchemasTasksstatePropertiesTasksPropertiesEntityrecognitionpiitasksItemsAllof1 setResults(PiiResult results) { - this.results = results; - return this; - } -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1.java deleted file mode 100644 index 1bfefcd27363a..0000000000000 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.ai.textanalytics.implementation.models; - -import com.azure.core.annotation.Fluent; -import com.fasterxml.jackson.annotation.JsonProperty; - -/** - * The - * Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1 - * model. - */ -@Fluent -public class Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1 { - /* - * The results property. - */ - @JsonProperty(value = "results") - private KeyPhraseResult results; - - /** - * Get the results property: The results property. - * - * @return the results value. - */ - public KeyPhraseResult getResults() { - return this.results; - } - - /** - * Set the results property: The results property. - * - * @param results the results value to set. - * @return the - * Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1 - * object itself. - */ - public Components1D9IzucSchemasTasksstatePropertiesTasksPropertiesKeyphraseextractiontasksItemsAllof1 setResults(KeyPhraseResult results) { - this.results = results; - return this; - } -} diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthResponse.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthResponse.java index bf8c8df17f212..77be31d1cccdf 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthResponse.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/HealthResponse.java @@ -14,14 +14,15 @@ public final class HealthResponse extends ResponseBase { /** * Creates an instance of HealthResponse. - * + * * @param request the request which resulted in this HealthResponse. * @param statusCode the status code of the HTTP response. * @param rawHeaders the raw headers of the HTTP response. * @param value the deserialized value of the HTTP response. * @param headers the deserialized headers of the HTTP response. */ - public HealthResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, HealthHeaders headers) { + public HealthResponse(HttpRequest request, int statusCode, HttpHeaders rawHeaders, Void value, + HealthHeaders headers) { super(request, statusCode, rawHeaders, value, headers); } } diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasks.java b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasks.java index 83f644aae98c6..38f6865e874af 100644 --- a/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasks.java +++ b/sdk/textanalytics/azure-ai-textanalytics/src/main/java/com/azure/ai/textanalytics/implementation/models/TasksStateTasks.java @@ -63,7 +63,7 @@ public final class TasksStateTasks { /** * Get the details property: The details property. - * + * * @return the details value. */ public List getDetails() { @@ -72,7 +72,7 @@ public List getDetails() { /** * Set the details property: The details property. - * + * * @param details the details value to set. * @return the TasksStateTasks object itself. */ @@ -83,7 +83,7 @@ public TasksStateTasks setDetails(List details) { /** * Get the completed property: The completed property. - * + * * @return the completed value. */ public int getCompleted() { @@ -92,7 +92,7 @@ public int getCompleted() { /** * Set the completed property: The completed property. - * + * * @param completed the completed value to set. * @return the TasksStateTasks object itself. */ @@ -103,7 +103,7 @@ public TasksStateTasks setCompleted(int completed) { /** * Get the failed property: The failed property. - * + * * @return the failed value. */ public int getFailed() { @@ -112,7 +112,7 @@ public int getFailed() { /** * Set the failed property: The failed property. - * + * * @param failed the failed value to set. * @return the TasksStateTasks object itself. */ @@ -123,7 +123,7 @@ public TasksStateTasks setFailed(int failed) { /** * Get the inProgress property: The inProgress property. - * + * * @return the inProgress value. */ public int getInProgress() { @@ -132,7 +132,7 @@ public int getInProgress() { /** * Set the inProgress property: The inProgress property. - * + * * @param inProgress the inProgress value to set. * @return the TasksStateTasks object itself. */ @@ -143,7 +143,7 @@ public TasksStateTasks setInProgress(int inProgress) { /** * Get the total property: The total property. - * + * * @return the total value. */ public int getTotal() { @@ -152,7 +152,7 @@ public int getTotal() { /** * Set the total property: The total property. - * + * * @param total the total value to set. * @return the TasksStateTasks object itself. */ @@ -164,7 +164,7 @@ public TasksStateTasks setTotal(int total) { /** * Get the entityRecognitionTasks property: The entityRecognitionTasks * property. - * + * * @return the entityRecognitionTasks value. */ public List getEntityRecognitionTasks() { @@ -174,11 +174,12 @@ public List getEntityRecognitionTasks /** * Set the entityRecognitionTasks property: The entityRecognitionTasks * property. - * + * * @param entityRecognitionTasks the entityRecognitionTasks value to set. * @return the TasksStateTasks object itself. */ - public TasksStateTasks setEntityRecognitionTasks(List entityRecognitionTasks) { + public TasksStateTasks setEntityRecognitionTasks( + List entityRecognitionTasks) { this.entityRecognitionTasks = entityRecognitionTasks; return this; } @@ -186,7 +187,7 @@ public TasksStateTasks setEntityRecognitionTasks(List getEntityRecognitionPiiTasks() { @@ -196,12 +197,13 @@ public List getEntityRecognitionPi /** * Set the entityRecognitionPiiTasks property: The * entityRecognitionPiiTasks property. - * + * * @param entityRecognitionPiiTasks the entityRecognitionPiiTasks value to * set. * @return the TasksStateTasks object itself. */ - public TasksStateTasks setEntityRecognitionPiiTasks(List entityRecognitionPiiTasks) { + public TasksStateTasks setEntityRecognitionPiiTasks( + List entityRecognitionPiiTasks) { this.entityRecognitionPiiTasks = entityRecognitionPiiTasks; return this; } @@ -209,7 +211,7 @@ public TasksStateTasks setEntityRecognitionPiiTasks(List getKeyPhraseExtractionTasks() { @@ -219,12 +221,13 @@ public List getKeyPhraseExtractionT /** * Set the keyPhraseExtractionTasks property: The keyPhraseExtractionTasks * property. - * + * * @param keyPhraseExtractionTasks the keyPhraseExtractionTasks value to * set. * @return the TasksStateTasks object itself. */ - public TasksStateTasks setKeyPhraseExtractionTasks(List keyPhraseExtractionTasks) { + public TasksStateTasks setKeyPhraseExtractionTasks( + List keyPhraseExtractionTasks) { this.keyPhraseExtractionTasks = keyPhraseExtractionTasks; return this; }