diff --git a/sdk/textanalytics/azure-ai-textanalytics/pom.xml b/sdk/textanalytics/azure-ai-textanalytics/pom.xml
index 1aaf22cf82b04..89cec364ffd5a 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/pom.xml
+++ b/sdk/textanalytics/azure-ai-textanalytics/pom.xml
@@ -36,8 +36,9 @@
--add-exports com.azure.core/com.azure.core.implementation.http=ALL-UNNAMED
+ --add-exports com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED
--add-opens com.azure.ai.textanalytics/com.azure.ai.textanalytics=ALL-UNNAMED
- --add-exports com.azure.core/com.azure.core.implementation.http=ALL-UNNAMED
+ --add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED
diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/java/com/azure/ai/textanalytics/TextAnalyticsClientTestBase.java b/sdk/textanalytics/azure-ai-textanalytics/src/test/java/com/azure/ai/textanalytics/TextAnalyticsClientTestBase.java
index cb12d93dbd92c..06736840a32d3 100644
--- a/sdk/textanalytics/azure-ai-textanalytics/src/test/java/com/azure/ai/textanalytics/TextAnalyticsClientTestBase.java
+++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/java/com/azure/ai/textanalytics/TextAnalyticsClientTestBase.java
@@ -1218,29 +1218,20 @@ void classifyCustomMultiCategoryActionRunner(BiConsumer, TextAnalyt
void recognizeCustomEntitiesRunner(BiConsumer, List> testRunner) {
testRunner.accept(CUSTOM_ENTITIES_INPUT,
- asList(
- Configuration.getGlobalConfiguration().get(AZURE_TEXT_ANALYTICS_CUSTOM_ENTITIES_PROJECT_NAME),
- Configuration.getGlobalConfiguration().get(AZURE_TEXT_ANALYTICS_CUSTOM_ENTITIES_DEPLOYMENT_NAME))
- );
+ asList(AZURE_TEXT_ANALYTICS_CUSTOM_ENTITIES_PROJECT_NAME,
+ AZURE_TEXT_ANALYTICS_CUSTOM_ENTITIES_DEPLOYMENT_NAME));
}
void classifyCustomSingleLabelRunner(BiConsumer, List> testRunner) {
testRunner.accept(CUSTOM_SINGLE_CLASSIFICATION,
- asList(
- Configuration.getGlobalConfiguration().get(
- AZURE_TEXT_ANALYTICS_CUSTOM_SINGLE_CLASSIFICATION_PROJECT_NAME),
- Configuration.getGlobalConfiguration().get(
- AZURE_TEXT_ANALYTICS_CUSTOM_SINGLE_CLASSIFICATION_DEPLOYMENT_NAME))
- );
+ asList(AZURE_TEXT_ANALYTICS_CUSTOM_SINGLE_CLASSIFICATION_PROJECT_NAME,
+ AZURE_TEXT_ANALYTICS_CUSTOM_SINGLE_CLASSIFICATION_DEPLOYMENT_NAME));
}
void classifyCustomMultiLabelRunner(BiConsumer, List> testRunner) {
testRunner.accept(CUSTOM_MULTI_CLASSIFICATION,
- asList(
- Configuration.getGlobalConfiguration().get(
- AZURE_TEXT_ANALYTICS_CUSTOM_MULTI_CLASSIFICATION_PROJECT_NAME),
- Configuration.getGlobalConfiguration().get(
- AZURE_TEXT_ANALYTICS_CUSTOM_MULTI_CLASSIFICATION_DEPLOYMENT_NAME)));
+ asList(AZURE_TEXT_ANALYTICS_CUSTOM_MULTI_CLASSIFICATION_PROJECT_NAME,
+ AZURE_TEXT_ANALYTICS_CUSTOM_MULTI_CLASSIFICATION_DEPLOYMENT_NAME));
}
String getEndpoint() {
diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.multiLabelClassification[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.multiLabelClassification[1].json
new file mode 100644
index 0000000000000..a9de5e2387d56
--- /dev/null
+++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.multiLabelClassification[1].json
@@ -0,0 +1,64 @@
+{
+ "networkCallRecords" : [ {
+ "Method" : "POST",
+ "Uri" : "https://REDACTED.cognitiveservices.azure.com/language/analyze-text/jobs?api-version=2022-05-01",
+ "Headers" : {
+ "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.2.0-beta.4 (11.0.10; Windows 10; 10.0)",
+ "x-ms-client-request-id" : "f53ab57a-2ef5-449f-a2c2-43f772352bc5",
+ "Content-Type" : "application/json"
+ },
+ "Response" : {
+ "content-length" : "0",
+ "x-envoy-upstream-service-time" : "509",
+ "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload",
+ "operation-location" : "https://javatextanalyticstestresources.cognitiveservices.azure.com/language/analyze-text/jobs/fb41649a-4f2a-4a79-b2b6-3f10c8c89407?api-version=2022-05-01",
+ "x-content-type-options" : "nosniff",
+ "apim-request-id" : "079e274c-ee49-4842-8f60-232060e6b851",
+ "retry-after" : "0",
+ "StatusCode" : "202",
+ "Date" : "Thu, 11 Aug 2022 18:08:59 GMT"
+ },
+ "Exception" : null
+ }, {
+ "Method" : "GET",
+ "Uri" : "https://REDACTED.cognitiveservices.azure.com/language/analyze-text/jobs/fb41649a-4f2a-4a79-b2b6-3f10c8c89407?api-version=2022-05-01&showStats=false",
+ "Headers" : {
+ "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.2.0-beta.4 (11.0.10; Windows 10; 10.0)",
+ "x-ms-client-request-id" : "5a38509b-1269-4005-8aa6-e1733abb2492"
+ },
+ "Response" : {
+ "content-length" : "641",
+ "x-envoy-upstream-service-time" : "32",
+ "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options" : "nosniff",
+ "apim-request-id" : "1009ca9a-cce1-473b-b364-b77fbf4b35aa",
+ "retry-after" : "0",
+ "StatusCode" : "200",
+ "Body" : "{\"jobId\":\"fb41649a-4f2a-4a79-b2b6-3f10c8c89407\",\"lastUpdatedDateTime\":\"2022-08-11T18:09:01Z\",\"createdDateTime\":\"2022-08-11T18:09:00Z\",\"expirationDateTime\":\"2022-08-12T18:09:00Z\",\"status\":\"succeeded\",\"errors\":[],\"tasks\":{\"completed\":1,\"failed\":0,\"inProgress\":0,\"total\":1,\"items\":[{\"kind\":\"CustomMultiLabelClassificationLROResults\",\"lastUpdateDateTime\":\"2022-08-11T18:09:01.1086171Z\",\"status\":\"succeeded\",\"results\":{\"documents\":[{\"id\":\"0\",\"class\":[{\"category\":\"BookRestaurant\",\"confidenceScore\":0.97}],\"warnings\":[]}],\"errors\":[],\"projectName\":\"7cdace98-537b-494a-b69a-c19754718025\",\"deploymentName\":\"7cdace98-537b-494a-b69a-c19754718025\"}}]}}",
+ "Date" : "Thu, 11 Aug 2022 18:09:30 GMT",
+ "Content-Type" : "application/json; charset=utf-8"
+ },
+ "Exception" : null
+ }, {
+ "Method" : "GET",
+ "Uri" : "https://REDACTED.cognitiveservices.azure.com/language/analyze-text/jobs/fb41649a-4f2a-4a79-b2b6-3f10c8c89407?api-version=2022-05-01&showStats=false",
+ "Headers" : {
+ "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.2.0-beta.4 (11.0.10; Windows 10; 10.0)",
+ "x-ms-client-request-id" : "f357d703-486b-494b-979c-9225be8da9fb"
+ },
+ "Response" : {
+ "content-length" : "641",
+ "x-envoy-upstream-service-time" : "29",
+ "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options" : "nosniff",
+ "apim-request-id" : "638fcb1e-628f-4004-896b-88f379547935",
+ "retry-after" : "0",
+ "StatusCode" : "200",
+ "Body" : "{\"jobId\":\"fb41649a-4f2a-4a79-b2b6-3f10c8c89407\",\"lastUpdatedDateTime\":\"2022-08-11T18:09:01Z\",\"createdDateTime\":\"2022-08-11T18:09:00Z\",\"expirationDateTime\":\"2022-08-12T18:09:00Z\",\"status\":\"succeeded\",\"errors\":[],\"tasks\":{\"completed\":1,\"failed\":0,\"inProgress\":0,\"total\":1,\"items\":[{\"kind\":\"CustomMultiLabelClassificationLROResults\",\"lastUpdateDateTime\":\"2022-08-11T18:09:01.1086171Z\",\"status\":\"succeeded\",\"results\":{\"documents\":[{\"id\":\"0\",\"class\":[{\"category\":\"BookRestaurant\",\"confidenceScore\":0.97}],\"warnings\":[]}],\"errors\":[],\"projectName\":\"7cdace98-537b-494a-b69a-c19754718025\",\"deploymentName\":\"7cdace98-537b-494a-b69a-c19754718025\"}}]}}",
+ "Date" : "Thu, 11 Aug 2022 18:09:30 GMT",
+ "Content-Type" : "application/json; charset=utf-8"
+ },
+ "Exception" : null
+ } ],
+ "variables" : [ ]
+}
\ No newline at end of file
diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeCustomEntities[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeCustomEntities[1].json
new file mode 100644
index 0000000000000..1b798e2cc5162
--- /dev/null
+++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.recognizeCustomEntities[1].json
@@ -0,0 +1,64 @@
+{
+ "networkCallRecords" : [ {
+ "Method" : "POST",
+ "Uri" : "https://REDACTED.cognitiveservices.azure.com/language/analyze-text/jobs?api-version=2022-05-01",
+ "Headers" : {
+ "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.2.0-beta.4 (11.0.10; Windows 10; 10.0)",
+ "x-ms-client-request-id" : "8d7803d1-85bc-487f-a60e-0c3913b25be3",
+ "Content-Type" : "application/json"
+ },
+ "Response" : {
+ "content-length" : "0",
+ "x-envoy-upstream-service-time" : "170",
+ "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload",
+ "operation-location" : "https://javatextanalyticstestresources.cognitiveservices.azure.com/language/analyze-text/jobs/6afcaf9a-b0b7-49ec-aad6-05d24abb6b36?api-version=2022-05-01",
+ "x-content-type-options" : "nosniff",
+ "apim-request-id" : "4e76b7ca-ed4d-4dae-a5b9-be205126539f",
+ "retry-after" : "0",
+ "StatusCode" : "202",
+ "Date" : "Thu, 11 Aug 2022 18:05:55 GMT"
+ },
+ "Exception" : null
+ }, {
+ "Method" : "GET",
+ "Uri" : "https://REDACTED.cognitiveservices.azure.com/language/analyze-text/jobs/6afcaf9a-b0b7-49ec-aad6-05d24abb6b36?api-version=2022-05-01&showStats=false",
+ "Headers" : {
+ "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.2.0-beta.4 (11.0.10; Windows 10; 10.0)",
+ "x-ms-client-request-id" : "7402d5ee-370b-4acf-8284-2f11ca11b44f"
+ },
+ "Response" : {
+ "content-length" : "1244",
+ "x-envoy-upstream-service-time" : "29",
+ "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options" : "nosniff",
+ "apim-request-id" : "fd61b8c1-ea70-46b7-a147-47a43896ba15",
+ "retry-after" : "0",
+ "StatusCode" : "200",
+ "Body" : "{\"jobId\":\"6afcaf9a-b0b7-49ec-aad6-05d24abb6b36\",\"lastUpdatedDateTime\":\"2022-08-11T18:05:56Z\",\"createdDateTime\":\"2022-08-11T18:05:55Z\",\"expirationDateTime\":\"2022-08-12T18:05:55Z\",\"status\":\"succeeded\",\"errors\":[],\"tasks\":{\"completed\":1,\"failed\":0,\"inProgress\":0,\"total\":1,\"items\":[{\"kind\":\"CustomEntityRecognitionLROResults\",\"lastUpdateDateTime\":\"2022-08-11T18:05:56.8652002Z\",\"status\":\"succeeded\",\"results\":{\"documents\":[{\"id\":\"0\",\"entities\":[{\"text\":\"David Schmidt\",\"category\":\"artist\",\"offset\":0,\"length\":13,\"confidenceScore\":0.8},{\"text\":\"Food\",\"category\":\"service\",\"offset\":38,\"length\":4,\"confidenceScore\":0.03},{\"text\":\"Safety\",\"category\":\"geographic_poi\",\"offset\":43,\"length\":6,\"confidenceScore\":0.06},{\"text\":\"International Food\",\"category\":\"geographic_poi\",\"offset\":51,\"length\":18,\"confidenceScore\":0.07},{\"text\":\"Information Council\",\"category\":\"restaurant_name\",\"offset\":70,\"length\":19,\"confidenceScore\":0.1},{\"text\":\"IFIC\",\"category\":\"geographic_poi\",\"offset\":91,\"length\":4,\"confidenceScore\":0.05},{\"text\":\"Washington, D.C.\",\"category\":\"state\",\"offset\":98,\"length\":16,\"confidenceScore\":0.49}],\"warnings\":[]}],\"errors\":[],\"projectName\":\"88ee0f78-fbca-444d-98e2-7c4c8631e494\",\"deploymentName\":\"88ee0f78-fbca-444d-98e2-7c4c8631e494\"}}]}}",
+ "Date" : "Thu, 11 Aug 2022 18:06:26 GMT",
+ "Content-Type" : "application/json; charset=utf-8"
+ },
+ "Exception" : null
+ }, {
+ "Method" : "GET",
+ "Uri" : "https://REDACTED.cognitiveservices.azure.com/language/analyze-text/jobs/6afcaf9a-b0b7-49ec-aad6-05d24abb6b36?api-version=2022-05-01&showStats=false",
+ "Headers" : {
+ "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.2.0-beta.4 (11.0.10; Windows 10; 10.0)",
+ "x-ms-client-request-id" : "754aeb4b-8f66-441c-aeb6-2dedf7a28b3f"
+ },
+ "Response" : {
+ "content-length" : "1244",
+ "x-envoy-upstream-service-time" : "34",
+ "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options" : "nosniff",
+ "apim-request-id" : "30705a54-2950-4769-820f-faa508086405",
+ "retry-after" : "0",
+ "StatusCode" : "200",
+ "Body" : "{\"jobId\":\"6afcaf9a-b0b7-49ec-aad6-05d24abb6b36\",\"lastUpdatedDateTime\":\"2022-08-11T18:05:56Z\",\"createdDateTime\":\"2022-08-11T18:05:55Z\",\"expirationDateTime\":\"2022-08-12T18:05:55Z\",\"status\":\"succeeded\",\"errors\":[],\"tasks\":{\"completed\":1,\"failed\":0,\"inProgress\":0,\"total\":1,\"items\":[{\"kind\":\"CustomEntityRecognitionLROResults\",\"lastUpdateDateTime\":\"2022-08-11T18:05:56.8652002Z\",\"status\":\"succeeded\",\"results\":{\"documents\":[{\"id\":\"0\",\"entities\":[{\"text\":\"David Schmidt\",\"category\":\"artist\",\"offset\":0,\"length\":13,\"confidenceScore\":0.8},{\"text\":\"Food\",\"category\":\"service\",\"offset\":38,\"length\":4,\"confidenceScore\":0.03},{\"text\":\"Safety\",\"category\":\"geographic_poi\",\"offset\":43,\"length\":6,\"confidenceScore\":0.06},{\"text\":\"International Food\",\"category\":\"geographic_poi\",\"offset\":51,\"length\":18,\"confidenceScore\":0.07},{\"text\":\"Information Council\",\"category\":\"restaurant_name\",\"offset\":70,\"length\":19,\"confidenceScore\":0.1},{\"text\":\"IFIC\",\"category\":\"geographic_poi\",\"offset\":91,\"length\":4,\"confidenceScore\":0.05},{\"text\":\"Washington, D.C.\",\"category\":\"state\",\"offset\":98,\"length\":16,\"confidenceScore\":0.49}],\"warnings\":[]}],\"errors\":[],\"projectName\":\"88ee0f78-fbca-444d-98e2-7c4c8631e494\",\"deploymentName\":\"88ee0f78-fbca-444d-98e2-7c4c8631e494\"}}]}}",
+ "Date" : "Thu, 11 Aug 2022 18:06:26 GMT",
+ "Content-Type" : "application/json; charset=utf-8"
+ },
+ "Exception" : null
+ } ],
+ "variables" : [ ]
+}
\ No newline at end of file
diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.singleLabelClassificationAction[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.singleLabelClassificationAction[1].json
new file mode 100644
index 0000000000000..ddf5edc7eadbb
--- /dev/null
+++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.singleLabelClassificationAction[1].json
@@ -0,0 +1,64 @@
+{
+ "networkCallRecords" : [ {
+ "Method" : "POST",
+ "Uri" : "https://REDACTED.cognitiveservices.azure.com/language/analyze-text/jobs?api-version=2022-05-01",
+ "Headers" : {
+ "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.2.0-beta.4 (11.0.10; Windows 10; 10.0)",
+ "x-ms-client-request-id" : "3728deb8-b063-4111-88ed-c628b0bce3dd",
+ "Content-Type" : "application/json"
+ },
+ "Response" : {
+ "content-length" : "0",
+ "x-envoy-upstream-service-time" : "290",
+ "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload",
+ "operation-location" : "https://javatextanalyticstestresources.cognitiveservices.azure.com/language/analyze-text/jobs/1a90b5ad-b82f-455b-bd16-d403a61fc50c?api-version=2022-05-01",
+ "x-content-type-options" : "nosniff",
+ "apim-request-id" : "68cd0b13-4280-4430-80ec-2366057e4a4b",
+ "retry-after" : "0",
+ "StatusCode" : "202",
+ "Date" : "Thu, 11 Aug 2022 18:03:52 GMT"
+ },
+ "Exception" : null
+ }, {
+ "Method" : "GET",
+ "Uri" : "https://REDACTED.cognitiveservices.azure.com/language/analyze-text/jobs/1a90b5ad-b82f-455b-bd16-d403a61fc50c?api-version=2022-05-01&showStats=false",
+ "Headers" : {
+ "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.2.0-beta.4 (11.0.10; Windows 10; 10.0)",
+ "x-ms-client-request-id" : "c3912c8e-c9a9-40f2-bc67-7d28d8d4e86b"
+ },
+ "Response" : {
+ "content-length" : "636",
+ "x-envoy-upstream-service-time" : "34",
+ "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options" : "nosniff",
+ "apim-request-id" : "06d5f923-2280-43da-ad5e-a1a98932350c",
+ "retry-after" : "0",
+ "StatusCode" : "200",
+ "Body" : "{\"jobId\":\"1a90b5ad-b82f-455b-bd16-d403a61fc50c\",\"lastUpdatedDateTime\":\"2022-08-11T18:03:53Z\",\"createdDateTime\":\"2022-08-11T18:03:53Z\",\"expirationDateTime\":\"2022-08-12T18:03:53Z\",\"status\":\"succeeded\",\"errors\":[],\"tasks\":{\"completed\":1,\"failed\":0,\"inProgress\":0,\"total\":1,\"items\":[{\"kind\":\"CustomSingleLabelClassificationLROResults\",\"lastUpdateDateTime\":\"2022-08-11T18:03:53.8508332Z\",\"status\":\"succeeded\",\"results\":{\"documents\":[{\"id\":\"0\",\"class\":[{\"category\":\"RateBook\",\"confidenceScore\":0.76}],\"warnings\":[]}],\"errors\":[],\"projectName\":\"659c1851-be0b-4142-b12a-087da9785926\",\"deploymentName\":\"659c1851-be0b-4142-b12a-087da9785926\"}}]}}",
+ "Date" : "Thu, 11 Aug 2022 18:04:23 GMT",
+ "Content-Type" : "application/json; charset=utf-8"
+ },
+ "Exception" : null
+ }, {
+ "Method" : "GET",
+ "Uri" : "https://REDACTED.cognitiveservices.azure.com/language/analyze-text/jobs/1a90b5ad-b82f-455b-bd16-d403a61fc50c?api-version=2022-05-01&showStats=false",
+ "Headers" : {
+ "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.2.0-beta.4 (11.0.10; Windows 10; 10.0)",
+ "x-ms-client-request-id" : "00d6c217-accd-4c11-9780-e7e6831794f8"
+ },
+ "Response" : {
+ "content-length" : "636",
+ "x-envoy-upstream-service-time" : "29",
+ "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options" : "nosniff",
+ "apim-request-id" : "c1ea8292-4a27-4811-a3c6-820ada5964b2",
+ "retry-after" : "0",
+ "StatusCode" : "200",
+ "Body" : "{\"jobId\":\"1a90b5ad-b82f-455b-bd16-d403a61fc50c\",\"lastUpdatedDateTime\":\"2022-08-11T18:03:53Z\",\"createdDateTime\":\"2022-08-11T18:03:53Z\",\"expirationDateTime\":\"2022-08-12T18:03:53Z\",\"status\":\"succeeded\",\"errors\":[],\"tasks\":{\"completed\":1,\"failed\":0,\"inProgress\":0,\"total\":1,\"items\":[{\"kind\":\"CustomSingleLabelClassificationLROResults\",\"lastUpdateDateTime\":\"2022-08-11T18:03:53.8508332Z\",\"status\":\"succeeded\",\"results\":{\"documents\":[{\"id\":\"0\",\"class\":[{\"category\":\"RateBook\",\"confidenceScore\":0.76}],\"warnings\":[]}],\"errors\":[],\"projectName\":\"659c1851-be0b-4142-b12a-087da9785926\",\"deploymentName\":\"659c1851-be0b-4142-b12a-087da9785926\"}}]}}",
+ "Date" : "Thu, 11 Aug 2022 18:04:23 GMT",
+ "Content-Type" : "application/json; charset=utf-8"
+ },
+ "Exception" : null
+ } ],
+ "variables" : [ ]
+}
\ No newline at end of file
diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.singleLabelClassification[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.singleLabelClassification[1].json
new file mode 100644
index 0000000000000..cfcc57c0484d7
--- /dev/null
+++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsAsyncClientTest.singleLabelClassification[1].json
@@ -0,0 +1,64 @@
+{
+ "networkCallRecords" : [ {
+ "Method" : "POST",
+ "Uri" : "https://REDACTED.cognitiveservices.azure.com/language/analyze-text/jobs?api-version=2022-05-01",
+ "Headers" : {
+ "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.2.0-beta.4 (11.0.10; Windows 10; 10.0)",
+ "x-ms-client-request-id" : "a19f8c2d-a218-462d-a230-2bb6e95134a0",
+ "Content-Type" : "application/json"
+ },
+ "Response" : {
+ "content-length" : "0",
+ "x-envoy-upstream-service-time" : "207",
+ "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload",
+ "operation-location" : "https://javatextanalyticstestresources.cognitiveservices.azure.com/language/analyze-text/jobs/fba6dfad-4ed1-4796-aa7f-93fed9a1b3fc?api-version=2022-05-01",
+ "x-content-type-options" : "nosniff",
+ "apim-request-id" : "0f7e1458-9544-430b-8abb-e8386e7b1806",
+ "retry-after" : "0",
+ "StatusCode" : "202",
+ "Date" : "Thu, 11 Aug 2022 18:07:23 GMT"
+ },
+ "Exception" : null
+ }, {
+ "Method" : "GET",
+ "Uri" : "https://REDACTED.cognitiveservices.azure.com/language/analyze-text/jobs/fba6dfad-4ed1-4796-aa7f-93fed9a1b3fc?api-version=2022-05-01&showStats=false",
+ "Headers" : {
+ "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.2.0-beta.4 (11.0.10; Windows 10; 10.0)",
+ "x-ms-client-request-id" : "321e692d-18fb-4ec8-8ffa-60091b34bd25"
+ },
+ "Response" : {
+ "content-length" : "636",
+ "x-envoy-upstream-service-time" : "85",
+ "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options" : "nosniff",
+ "apim-request-id" : "44e492ce-4a60-4d48-874c-7cb09c9aa3c0",
+ "retry-after" : "0",
+ "StatusCode" : "200",
+ "Body" : "{\"jobId\":\"fba6dfad-4ed1-4796-aa7f-93fed9a1b3fc\",\"lastUpdatedDateTime\":\"2022-08-11T18:07:24Z\",\"createdDateTime\":\"2022-08-11T18:07:23Z\",\"expirationDateTime\":\"2022-08-12T18:07:23Z\",\"status\":\"succeeded\",\"errors\":[],\"tasks\":{\"completed\":1,\"failed\":0,\"inProgress\":0,\"total\":1,\"items\":[{\"kind\":\"CustomSingleLabelClassificationLROResults\",\"lastUpdateDateTime\":\"2022-08-11T18:07:24.1054342Z\",\"status\":\"succeeded\",\"results\":{\"documents\":[{\"id\":\"0\",\"class\":[{\"category\":\"RateBook\",\"confidenceScore\":0.76}],\"warnings\":[]}],\"errors\":[],\"projectName\":\"659c1851-be0b-4142-b12a-087da9785926\",\"deploymentName\":\"659c1851-be0b-4142-b12a-087da9785926\"}}]}}",
+ "Date" : "Thu, 11 Aug 2022 18:07:53 GMT",
+ "Content-Type" : "application/json; charset=utf-8"
+ },
+ "Exception" : null
+ }, {
+ "Method" : "GET",
+ "Uri" : "https://REDACTED.cognitiveservices.azure.com/language/analyze-text/jobs/fba6dfad-4ed1-4796-aa7f-93fed9a1b3fc?api-version=2022-05-01&showStats=false",
+ "Headers" : {
+ "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.2.0-beta.4 (11.0.10; Windows 10; 10.0)",
+ "x-ms-client-request-id" : "d3422882-35d2-4a75-8ea0-3b46eb542140"
+ },
+ "Response" : {
+ "content-length" : "636",
+ "x-envoy-upstream-service-time" : "30",
+ "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options" : "nosniff",
+ "apim-request-id" : "7855c368-bd58-4d70-b89a-29babc2e5cd5",
+ "retry-after" : "0",
+ "StatusCode" : "200",
+ "Body" : "{\"jobId\":\"fba6dfad-4ed1-4796-aa7f-93fed9a1b3fc\",\"lastUpdatedDateTime\":\"2022-08-11T18:07:24Z\",\"createdDateTime\":\"2022-08-11T18:07:23Z\",\"expirationDateTime\":\"2022-08-12T18:07:23Z\",\"status\":\"succeeded\",\"errors\":[],\"tasks\":{\"completed\":1,\"failed\":0,\"inProgress\":0,\"total\":1,\"items\":[{\"kind\":\"CustomSingleLabelClassificationLROResults\",\"lastUpdateDateTime\":\"2022-08-11T18:07:24.1054342Z\",\"status\":\"succeeded\",\"results\":{\"documents\":[{\"id\":\"0\",\"class\":[{\"category\":\"RateBook\",\"confidenceScore\":0.76}],\"warnings\":[]}],\"errors\":[],\"projectName\":\"659c1851-be0b-4142-b12a-087da9785926\",\"deploymentName\":\"659c1851-be0b-4142-b12a-087da9785926\"}}]}}",
+ "Date" : "Thu, 11 Aug 2022 18:07:53 GMT",
+ "Content-Type" : "application/json; charset=utf-8"
+ },
+ "Exception" : null
+ } ],
+ "variables" : [ ]
+}
\ No newline at end of file
diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.multiLabelClassification[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.multiLabelClassification[1].json
new file mode 100644
index 0000000000000..f06de3005dff9
--- /dev/null
+++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.multiLabelClassification[1].json
@@ -0,0 +1,64 @@
+{
+ "networkCallRecords" : [ {
+ "Method" : "POST",
+ "Uri" : "https://REDACTED.cognitiveservices.azure.com/language/analyze-text/jobs?api-version=2022-05-01",
+ "Headers" : {
+ "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.2.0-beta.4 (11.0.10; Windows 10; 10.0)",
+ "x-ms-client-request-id" : "45d4ee22-71c8-4ce3-b32f-af1243086200",
+ "Content-Type" : "application/json"
+ },
+ "Response" : {
+ "content-length" : "0",
+ "x-envoy-upstream-service-time" : "160",
+ "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload",
+ "operation-location" : "https://javatextanalyticstestresources.cognitiveservices.azure.com/language/analyze-text/jobs/dc7cd7b5-6ed5-4e57-8030-a1d301ba9f5b?api-version=2022-05-01",
+ "x-content-type-options" : "nosniff",
+ "apim-request-id" : "eb427312-69de-4cb7-8a1d-e846f2a75274",
+ "retry-after" : "0",
+ "StatusCode" : "202",
+ "Date" : "Thu, 11 Aug 2022 18:09:47 GMT"
+ },
+ "Exception" : null
+ }, {
+ "Method" : "GET",
+ "Uri" : "https://REDACTED.cognitiveservices.azure.com/language/analyze-text/jobs/dc7cd7b5-6ed5-4e57-8030-a1d301ba9f5b?api-version=2022-05-01&showStats=false",
+ "Headers" : {
+ "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.2.0-beta.4 (11.0.10; Windows 10; 10.0)",
+ "x-ms-client-request-id" : "d714b038-867f-45d8-90f5-0b960002216f"
+ },
+ "Response" : {
+ "content-length" : "641",
+ "x-envoy-upstream-service-time" : "35",
+ "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options" : "nosniff",
+ "apim-request-id" : "5076115d-b04a-4526-b70f-701520ec4d24",
+ "retry-after" : "0",
+ "StatusCode" : "200",
+ "Body" : "{\"jobId\":\"dc7cd7b5-6ed5-4e57-8030-a1d301ba9f5b\",\"lastUpdatedDateTime\":\"2022-08-11T18:09:48Z\",\"createdDateTime\":\"2022-08-11T18:09:47Z\",\"expirationDateTime\":\"2022-08-12T18:09:47Z\",\"status\":\"succeeded\",\"errors\":[],\"tasks\":{\"completed\":1,\"failed\":0,\"inProgress\":0,\"total\":1,\"items\":[{\"kind\":\"CustomMultiLabelClassificationLROResults\",\"lastUpdateDateTime\":\"2022-08-11T18:09:48.5525148Z\",\"status\":\"succeeded\",\"results\":{\"documents\":[{\"id\":\"0\",\"class\":[{\"category\":\"BookRestaurant\",\"confidenceScore\":0.97}],\"warnings\":[]}],\"errors\":[],\"projectName\":\"7cdace98-537b-494a-b69a-c19754718025\",\"deploymentName\":\"7cdace98-537b-494a-b69a-c19754718025\"}}]}}",
+ "Date" : "Thu, 11 Aug 2022 18:10:18 GMT",
+ "Content-Type" : "application/json; charset=utf-8"
+ },
+ "Exception" : null
+ }, {
+ "Method" : "GET",
+ "Uri" : "https://REDACTED.cognitiveservices.azure.com/language/analyze-text/jobs/dc7cd7b5-6ed5-4e57-8030-a1d301ba9f5b?api-version=2022-05-01&showStats=false",
+ "Headers" : {
+ "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.2.0-beta.4 (11.0.10; Windows 10; 10.0)",
+ "x-ms-client-request-id" : "c474ab81-52b2-4658-a699-6c65edf7c8e5"
+ },
+ "Response" : {
+ "content-length" : "641",
+ "x-envoy-upstream-service-time" : "34",
+ "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options" : "nosniff",
+ "apim-request-id" : "df0bba47-3684-433f-a53e-f6ec20b43377",
+ "retry-after" : "0",
+ "StatusCode" : "200",
+ "Body" : "{\"jobId\":\"dc7cd7b5-6ed5-4e57-8030-a1d301ba9f5b\",\"lastUpdatedDateTime\":\"2022-08-11T18:09:48Z\",\"createdDateTime\":\"2022-08-11T18:09:47Z\",\"expirationDateTime\":\"2022-08-12T18:09:47Z\",\"status\":\"succeeded\",\"errors\":[],\"tasks\":{\"completed\":1,\"failed\":0,\"inProgress\":0,\"total\":1,\"items\":[{\"kind\":\"CustomMultiLabelClassificationLROResults\",\"lastUpdateDateTime\":\"2022-08-11T18:09:48.5525148Z\",\"status\":\"succeeded\",\"results\":{\"documents\":[{\"id\":\"0\",\"class\":[{\"category\":\"BookRestaurant\",\"confidenceScore\":0.97}],\"warnings\":[]}],\"errors\":[],\"projectName\":\"7cdace98-537b-494a-b69a-c19754718025\",\"deploymentName\":\"7cdace98-537b-494a-b69a-c19754718025\"}}]}}",
+ "Date" : "Thu, 11 Aug 2022 18:10:18 GMT",
+ "Content-Type" : "application/json; charset=utf-8"
+ },
+ "Exception" : null
+ } ],
+ "variables" : [ ]
+}
\ No newline at end of file
diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeCustomEntities[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeCustomEntities[1].json
new file mode 100644
index 0000000000000..c5123c2226176
--- /dev/null
+++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.recognizeCustomEntities[1].json
@@ -0,0 +1,64 @@
+{
+ "networkCallRecords" : [ {
+ "Method" : "POST",
+ "Uri" : "https://REDACTED.cognitiveservices.azure.com/language/analyze-text/jobs?api-version=2022-05-01",
+ "Headers" : {
+ "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.2.0-beta.4 (11.0.10; Windows 10; 10.0)",
+ "x-ms-client-request-id" : "a6433106-5e16-4f88-b459-0af819517ec6",
+ "Content-Type" : "application/json"
+ },
+ "Response" : {
+ "content-length" : "0",
+ "x-envoy-upstream-service-time" : "165",
+ "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload",
+ "operation-location" : "https://javatextanalyticstestresources.cognitiveservices.azure.com/language/analyze-text/jobs/ae7f4e69-f51a-4814-a9ad-0b1c32d7deee?api-version=2022-05-01",
+ "x-content-type-options" : "nosniff",
+ "apim-request-id" : "887b110a-e2e6-4dcb-ac3b-292818e862ec",
+ "retry-after" : "0",
+ "StatusCode" : "202",
+ "Date" : "Thu, 11 Aug 2022 18:06:39 GMT"
+ },
+ "Exception" : null
+ }, {
+ "Method" : "GET",
+ "Uri" : "https://REDACTED.cognitiveservices.azure.com/language/analyze-text/jobs/ae7f4e69-f51a-4814-a9ad-0b1c32d7deee?api-version=2022-05-01&showStats=false",
+ "Headers" : {
+ "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.2.0-beta.4 (11.0.10; Windows 10; 10.0)",
+ "x-ms-client-request-id" : "2bb958e6-bf83-4975-aba7-ddfb4ddf6934"
+ },
+ "Response" : {
+ "content-length" : "1243",
+ "x-envoy-upstream-service-time" : "39",
+ "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options" : "nosniff",
+ "apim-request-id" : "c2f559e2-8ab0-4992-8402-818bd2871653",
+ "retry-after" : "0",
+ "StatusCode" : "200",
+ "Body" : "{\"jobId\":\"ae7f4e69-f51a-4814-a9ad-0b1c32d7deee\",\"lastUpdatedDateTime\":\"2022-08-11T18:06:40Z\",\"createdDateTime\":\"2022-08-11T18:06:39Z\",\"expirationDateTime\":\"2022-08-12T18:06:39Z\",\"status\":\"succeeded\",\"errors\":[],\"tasks\":{\"completed\":1,\"failed\":0,\"inProgress\":0,\"total\":1,\"items\":[{\"kind\":\"CustomEntityRecognitionLROResults\",\"lastUpdateDateTime\":\"2022-08-11T18:06:40.779186Z\",\"status\":\"succeeded\",\"results\":{\"documents\":[{\"id\":\"0\",\"entities\":[{\"text\":\"David Schmidt\",\"category\":\"artist\",\"offset\":0,\"length\":13,\"confidenceScore\":0.8},{\"text\":\"Food\",\"category\":\"service\",\"offset\":38,\"length\":4,\"confidenceScore\":0.03},{\"text\":\"Safety\",\"category\":\"geographic_poi\",\"offset\":43,\"length\":6,\"confidenceScore\":0.06},{\"text\":\"International Food\",\"category\":\"geographic_poi\",\"offset\":51,\"length\":18,\"confidenceScore\":0.07},{\"text\":\"Information Council\",\"category\":\"restaurant_name\",\"offset\":70,\"length\":19,\"confidenceScore\":0.1},{\"text\":\"IFIC\",\"category\":\"geographic_poi\",\"offset\":91,\"length\":4,\"confidenceScore\":0.05},{\"text\":\"Washington, D.C.\",\"category\":\"state\",\"offset\":98,\"length\":16,\"confidenceScore\":0.49}],\"warnings\":[]}],\"errors\":[],\"projectName\":\"88ee0f78-fbca-444d-98e2-7c4c8631e494\",\"deploymentName\":\"88ee0f78-fbca-444d-98e2-7c4c8631e494\"}}]}}",
+ "Date" : "Thu, 11 Aug 2022 18:07:10 GMT",
+ "Content-Type" : "application/json; charset=utf-8"
+ },
+ "Exception" : null
+ }, {
+ "Method" : "GET",
+ "Uri" : "https://REDACTED.cognitiveservices.azure.com/language/analyze-text/jobs/ae7f4e69-f51a-4814-a9ad-0b1c32d7deee?api-version=2022-05-01&showStats=false",
+ "Headers" : {
+ "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.2.0-beta.4 (11.0.10; Windows 10; 10.0)",
+ "x-ms-client-request-id" : "c764b4dd-a6fe-44bf-8659-3985f7bf7889"
+ },
+ "Response" : {
+ "content-length" : "1243",
+ "x-envoy-upstream-service-time" : "87",
+ "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options" : "nosniff",
+ "apim-request-id" : "cd472300-b80a-47b3-9541-fcf221672a24",
+ "retry-after" : "0",
+ "StatusCode" : "200",
+ "Body" : "{\"jobId\":\"ae7f4e69-f51a-4814-a9ad-0b1c32d7deee\",\"lastUpdatedDateTime\":\"2022-08-11T18:06:40Z\",\"createdDateTime\":\"2022-08-11T18:06:39Z\",\"expirationDateTime\":\"2022-08-12T18:06:39Z\",\"status\":\"succeeded\",\"errors\":[],\"tasks\":{\"completed\":1,\"failed\":0,\"inProgress\":0,\"total\":1,\"items\":[{\"kind\":\"CustomEntityRecognitionLROResults\",\"lastUpdateDateTime\":\"2022-08-11T18:06:40.779186Z\",\"status\":\"succeeded\",\"results\":{\"documents\":[{\"id\":\"0\",\"entities\":[{\"text\":\"David Schmidt\",\"category\":\"artist\",\"offset\":0,\"length\":13,\"confidenceScore\":0.8},{\"text\":\"Food\",\"category\":\"service\",\"offset\":38,\"length\":4,\"confidenceScore\":0.03},{\"text\":\"Safety\",\"category\":\"geographic_poi\",\"offset\":43,\"length\":6,\"confidenceScore\":0.06},{\"text\":\"International Food\",\"category\":\"geographic_poi\",\"offset\":51,\"length\":18,\"confidenceScore\":0.07},{\"text\":\"Information Council\",\"category\":\"restaurant_name\",\"offset\":70,\"length\":19,\"confidenceScore\":0.1},{\"text\":\"IFIC\",\"category\":\"geographic_poi\",\"offset\":91,\"length\":4,\"confidenceScore\":0.05},{\"text\":\"Washington, D.C.\",\"category\":\"state\",\"offset\":98,\"length\":16,\"confidenceScore\":0.49}],\"warnings\":[]}],\"errors\":[],\"projectName\":\"88ee0f78-fbca-444d-98e2-7c4c8631e494\",\"deploymentName\":\"88ee0f78-fbca-444d-98e2-7c4c8631e494\"}}]}}",
+ "Date" : "Thu, 11 Aug 2022 18:07:10 GMT",
+ "Content-Type" : "application/json; charset=utf-8"
+ },
+ "Exception" : null
+ } ],
+ "variables" : [ ]
+}
\ No newline at end of file
diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.singleLabelClassificationAction[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.singleLabelClassificationAction[1].json
new file mode 100644
index 0000000000000..ad1d35f313fdb
--- /dev/null
+++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.singleLabelClassificationAction[1].json
@@ -0,0 +1,64 @@
+{
+ "networkCallRecords" : [ {
+ "Method" : "POST",
+ "Uri" : "https://REDACTED.cognitiveservices.azure.com/language/analyze-text/jobs?api-version=2022-05-01",
+ "Headers" : {
+ "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.2.0-beta.4 (11.0.10; Windows 10; 10.0)",
+ "x-ms-client-request-id" : "474c54f5-47bd-44bf-8a23-31ad41732acd",
+ "Content-Type" : "application/json"
+ },
+ "Response" : {
+ "content-length" : "0",
+ "x-envoy-upstream-service-time" : "148",
+ "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload",
+ "operation-location" : "https://javatextanalyticstestresources.cognitiveservices.azure.com/language/analyze-text/jobs/009ac09d-74e2-4c1e-9708-a378381a7d2a?api-version=2022-05-01",
+ "x-content-type-options" : "nosniff",
+ "apim-request-id" : "a0663b44-1ad8-494a-89e4-7205df0b4fe3",
+ "retry-after" : "0",
+ "StatusCode" : "202",
+ "Date" : "Thu, 11 Aug 2022 18:05:05 GMT"
+ },
+ "Exception" : null
+ }, {
+ "Method" : "GET",
+ "Uri" : "https://REDACTED.cognitiveservices.azure.com/language/analyze-text/jobs/009ac09d-74e2-4c1e-9708-a378381a7d2a?api-version=2022-05-01&showStats=false",
+ "Headers" : {
+ "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.2.0-beta.4 (11.0.10; Windows 10; 10.0)",
+ "x-ms-client-request-id" : "01921536-68c0-4559-9653-098a93ae78df"
+ },
+ "Response" : {
+ "content-length" : "636",
+ "x-envoy-upstream-service-time" : "30",
+ "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options" : "nosniff",
+ "apim-request-id" : "8d9b93b5-8611-47a1-bdf1-7009e85f612a",
+ "retry-after" : "0",
+ "StatusCode" : "200",
+ "Body" : "{\"jobId\":\"009ac09d-74e2-4c1e-9708-a378381a7d2a\",\"lastUpdatedDateTime\":\"2022-08-11T18:05:05Z\",\"createdDateTime\":\"2022-08-11T18:05:05Z\",\"expirationDateTime\":\"2022-08-12T18:05:05Z\",\"status\":\"succeeded\",\"errors\":[],\"tasks\":{\"completed\":1,\"failed\":0,\"inProgress\":0,\"total\":1,\"items\":[{\"kind\":\"CustomSingleLabelClassificationLROResults\",\"lastUpdateDateTime\":\"2022-08-11T18:05:05.4238339Z\",\"status\":\"succeeded\",\"results\":{\"documents\":[{\"id\":\"0\",\"class\":[{\"category\":\"RateBook\",\"confidenceScore\":0.76}],\"warnings\":[]}],\"errors\":[],\"projectName\":\"659c1851-be0b-4142-b12a-087da9785926\",\"deploymentName\":\"659c1851-be0b-4142-b12a-087da9785926\"}}]}}",
+ "Date" : "Thu, 11 Aug 2022 18:05:35 GMT",
+ "Content-Type" : "application/json; charset=utf-8"
+ },
+ "Exception" : null
+ }, {
+ "Method" : "GET",
+ "Uri" : "https://REDACTED.cognitiveservices.azure.com/language/analyze-text/jobs/009ac09d-74e2-4c1e-9708-a378381a7d2a?api-version=2022-05-01&showStats=false",
+ "Headers" : {
+ "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.2.0-beta.4 (11.0.10; Windows 10; 10.0)",
+ "x-ms-client-request-id" : "60d82088-793e-4687-a90f-570f2215b3b1"
+ },
+ "Response" : {
+ "content-length" : "636",
+ "x-envoy-upstream-service-time" : "25",
+ "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options" : "nosniff",
+ "apim-request-id" : "8dc87eaa-0e0c-4a91-be88-4c2d7b3beadd",
+ "retry-after" : "0",
+ "StatusCode" : "200",
+ "Body" : "{\"jobId\":\"009ac09d-74e2-4c1e-9708-a378381a7d2a\",\"lastUpdatedDateTime\":\"2022-08-11T18:05:05Z\",\"createdDateTime\":\"2022-08-11T18:05:05Z\",\"expirationDateTime\":\"2022-08-12T18:05:05Z\",\"status\":\"succeeded\",\"errors\":[],\"tasks\":{\"completed\":1,\"failed\":0,\"inProgress\":0,\"total\":1,\"items\":[{\"kind\":\"CustomSingleLabelClassificationLROResults\",\"lastUpdateDateTime\":\"2022-08-11T18:05:05.4238339Z\",\"status\":\"succeeded\",\"results\":{\"documents\":[{\"id\":\"0\",\"class\":[{\"category\":\"RateBook\",\"confidenceScore\":0.76}],\"warnings\":[]}],\"errors\":[],\"projectName\":\"659c1851-be0b-4142-b12a-087da9785926\",\"deploymentName\":\"659c1851-be0b-4142-b12a-087da9785926\"}}]}}",
+ "Date" : "Thu, 11 Aug 2022 18:05:35 GMT",
+ "Content-Type" : "application/json; charset=utf-8"
+ },
+ "Exception" : null
+ } ],
+ "variables" : [ ]
+}
\ No newline at end of file
diff --git a/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.singleLabelClassification[1].json b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.singleLabelClassification[1].json
new file mode 100644
index 0000000000000..59bcd61ca5a16
--- /dev/null
+++ b/sdk/textanalytics/azure-ai-textanalytics/src/test/resources/session-records/TextAnalyticsClientTest.singleLabelClassification[1].json
@@ -0,0 +1,64 @@
+{
+ "networkCallRecords" : [ {
+ "Method" : "POST",
+ "Uri" : "https://REDACTED.cognitiveservices.azure.com/language/analyze-text/jobs?api-version=2022-05-01",
+ "Headers" : {
+ "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.2.0-beta.4 (11.0.10; Windows 10; 10.0)",
+ "x-ms-client-request-id" : "7e057d0d-d0b2-4e09-9aea-699726e4cc8f",
+ "Content-Type" : "application/json"
+ },
+ "Response" : {
+ "content-length" : "0",
+ "x-envoy-upstream-service-time" : "297",
+ "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload",
+ "operation-location" : "https://javatextanalyticstestresources.cognitiveservices.azure.com/language/analyze-text/jobs/408b6c7d-81d0-49a5-9a45-96ea6ca0627f?api-version=2022-05-01",
+ "x-content-type-options" : "nosniff",
+ "apim-request-id" : "18d378dd-4652-4273-a9f7-86e2c84049d6",
+ "retry-after" : "0",
+ "StatusCode" : "202",
+ "Date" : "Thu, 11 Aug 2022 18:08:03 GMT"
+ },
+ "Exception" : null
+ }, {
+ "Method" : "GET",
+ "Uri" : "https://REDACTED.cognitiveservices.azure.com/language/analyze-text/jobs/408b6c7d-81d0-49a5-9a45-96ea6ca0627f?api-version=2022-05-01&showStats=false",
+ "Headers" : {
+ "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.2.0-beta.4 (11.0.10; Windows 10; 10.0)",
+ "x-ms-client-request-id" : "93d69bfa-e0fa-47dc-9c75-cff9c1205cff"
+ },
+ "Response" : {
+ "content-length" : "636",
+ "x-envoy-upstream-service-time" : "41",
+ "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options" : "nosniff",
+ "apim-request-id" : "f85b7c04-e006-4d58-8014-7bce9f0ebe93",
+ "retry-after" : "0",
+ "StatusCode" : "200",
+ "Body" : "{\"jobId\":\"408b6c7d-81d0-49a5-9a45-96ea6ca0627f\",\"lastUpdatedDateTime\":\"2022-08-11T18:08:05Z\",\"createdDateTime\":\"2022-08-11T18:08:04Z\",\"expirationDateTime\":\"2022-08-12T18:08:04Z\",\"status\":\"succeeded\",\"errors\":[],\"tasks\":{\"completed\":1,\"failed\":0,\"inProgress\":0,\"total\":1,\"items\":[{\"kind\":\"CustomSingleLabelClassificationLROResults\",\"lastUpdateDateTime\":\"2022-08-11T18:08:05.1332387Z\",\"status\":\"succeeded\",\"results\":{\"documents\":[{\"id\":\"0\",\"class\":[{\"category\":\"RateBook\",\"confidenceScore\":0.76}],\"warnings\":[]}],\"errors\":[],\"projectName\":\"659c1851-be0b-4142-b12a-087da9785926\",\"deploymentName\":\"659c1851-be0b-4142-b12a-087da9785926\"}}]}}",
+ "Date" : "Thu, 11 Aug 2022 18:08:34 GMT",
+ "Content-Type" : "application/json; charset=utf-8"
+ },
+ "Exception" : null
+ }, {
+ "Method" : "GET",
+ "Uri" : "https://REDACTED.cognitiveservices.azure.com/language/analyze-text/jobs/408b6c7d-81d0-49a5-9a45-96ea6ca0627f?api-version=2022-05-01&showStats=false",
+ "Headers" : {
+ "User-Agent" : "azsdk-java-azure-ai-textanalytics/5.2.0-beta.4 (11.0.10; Windows 10; 10.0)",
+ "x-ms-client-request-id" : "dc2e57d7-cc45-4ad6-97ef-0d1312573e32"
+ },
+ "Response" : {
+ "content-length" : "636",
+ "x-envoy-upstream-service-time" : "26",
+ "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload",
+ "x-content-type-options" : "nosniff",
+ "apim-request-id" : "b219ca73-4cad-407e-b0ac-ffab3977310f",
+ "retry-after" : "0",
+ "StatusCode" : "200",
+ "Body" : "{\"jobId\":\"408b6c7d-81d0-49a5-9a45-96ea6ca0627f\",\"lastUpdatedDateTime\":\"2022-08-11T18:08:05Z\",\"createdDateTime\":\"2022-08-11T18:08:04Z\",\"expirationDateTime\":\"2022-08-12T18:08:04Z\",\"status\":\"succeeded\",\"errors\":[],\"tasks\":{\"completed\":1,\"failed\":0,\"inProgress\":0,\"total\":1,\"items\":[{\"kind\":\"CustomSingleLabelClassificationLROResults\",\"lastUpdateDateTime\":\"2022-08-11T18:08:05.1332387Z\",\"status\":\"succeeded\",\"results\":{\"documents\":[{\"id\":\"0\",\"class\":[{\"category\":\"RateBook\",\"confidenceScore\":0.76}],\"warnings\":[]}],\"errors\":[],\"projectName\":\"659c1851-be0b-4142-b12a-087da9785926\",\"deploymentName\":\"659c1851-be0b-4142-b12a-087da9785926\"}}]}}",
+ "Date" : "Thu, 11 Aug 2022 18:08:34 GMT",
+ "Content-Type" : "application/json; charset=utf-8"
+ },
+ "Exception" : null
+ } ],
+ "variables" : [ ]
+}
\ No newline at end of file