<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/node/apikey_textanalyticsclient_lros_health/recording_output_has_the_same_order_as_input.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "2d6dc378f178664fbb5e419f53f37dd5";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint', {"encodedQueryParams":true})
  .post('/text/analytics/v3.2-preview.2/entities/health/jobs', {"documents":[{"id":"1","text":"one"},{"id":"2","text":"two"},{"id":"3","text":"three"},{"id":"4","text":"four"},{"id":"5","text":"five"}]})
  .query(true)
  .reply(202, "", [
  'Transfer-Encoding',
  'chunked',
  'operation-location',
  'https://endpoint/text/analytics/v3.2-preview.1/entities/health/jobs/2cc9827f-2f2f-4618-851b-32ded368c22d',
  'x-envoy-upstream-service-time',
  '626',
  'apim-request-id',
  '4877db36-1120-47eb-8f96-d04fc28baf6d',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:35 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/2cc9827f-2f2f-4618-851b-32ded368c22d')
  .query(true)
  .reply(200, {"jobId":"2cc9827f-2f2f-4618-851b-32ded368c22d","lastUpdateDateTime":"2021-10-23T00:42:35Z","createdDateTime":"2021-10-23T00:42:35Z","expirationDateTime":"2021-10-24T00:42:35Z","status":"notStarted","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '13',
  'apim-request-id',
  'd826ebaf-6324-4d4d-85a6-61e97fade55a',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:35 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/2cc9827f-2f2f-4618-851b-32ded368c22d')
  .query(true)
  .reply(200, {"jobId":"2cc9827f-2f2f-4618-851b-32ded368c22d","lastUpdateDateTime":"2021-10-23T00:42:35Z","createdDateTime":"2021-10-23T00:42:35Z","expirationDateTime":"2021-10-24T00:42:35Z","status":"running","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '8',
  'apim-request-id',
  'e2a5a15d-6433-4576-b20e-1de447a9b297',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:35 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/2cc9827f-2f2f-4618-851b-32ded368c22d')
  .query(true)
  .reply(200, {"jobId":"2cc9827f-2f2f-4618-851b-32ded368c22d","lastUpdateDateTime":"2021-10-23T00:42:36Z","createdDateTime":"2021-10-23T00:42:35Z","expirationDateTime":"2021-10-24T00:42:35Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"1","entities":[],"relations":[],"warnings":[]},{"id":"2","entities":[],"relations":[],"warnings":[]},{"id":"3","entities":[],"relations":[],"warnings":[]},{"id":"4","entities":[],"relations":[],"warnings":[]},{"id":"5","entities":[{"offset":0,"length":4,"text":"five","category":"Dosage","confidenceScore":0.58}],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '172',
  'apim-request-id',
  '27f5a868-408a-4f0b-ab39-8143219607a7',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:37 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/2cc9827f-2f2f-4618-851b-32ded368c22d')
  .query(true)
  .reply(200, {"jobId":"2cc9827f-2f2f-4618-851b-32ded368c22d","lastUpdateDateTime":"2021-10-23T00:42:36Z","createdDateTime":"2021-10-23T00:42:35Z","expirationDateTime":"2021-10-24T00:42:35Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"1","entities":[],"relations":[],"warnings":[]},{"id":"2","entities":[],"relations":[],"warnings":[]},{"id":"3","entities":[],"relations":[],"warnings":[]},{"id":"4","entities":[],"relations":[],"warnings":[]},{"id":"5","entities":[{"offset":0,"length":4,"text":"five","category":"Dosage","confidenceScore":0.58}],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '102',
  'apim-request-id',
  'e1f5d73a-8734-43cd-85e7-ff6bd3e28ba0',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:37 GMT'
]);


<|start_filename|>sdk/tables/data-tables/recordings/node/tableclient_sasconnectionstring_createentity_getentity_and_delete/recording_should_create_binary_entities_as_primitive_and_metadata.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "65cc82d96f05ba1e9b1cd10656750bd7";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .post('/tableClientTestSASConnectionStringnode', {"PartitionKey":"CreateBinary_SASConnectionStringnode","RowKey":"first_SASConnectionStringnode","binary":"QmFy","<EMAIL>":"Edm.Binary","binaryMetadata":"QmFy","<EMAIL>":"Edm.Binary"})
  .query(true)
  .reply(204, "", [
  'Cache-Control',
  'no-cache',
  'Content-Length',
  '0',
  'ETag',
  `W/"datetime'2021-10-18T19%3A42%3A39.8159151Z'"`,
  'Location',
  "https://fakeaccount.table.core.windows.net/tableClientTestSASConnectionStringnode(PartitionKey='CreateBinary_SASConnectionStringnode',RowKey='first_SASConnectionStringnode')",
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  'edc5c464-a002-00b7-7b58-c48eba000000',
  'x-ms-client-request-id',
  'c1f90852-0b69-46ed-8830-3e2474001326',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'Preference-Applied',
  'return-no-content',
  'DataServiceId',
  "https://fakeaccount.table.core.windows.net/tableClientTestSASConnectionStringnode(PartitionKey='CreateBinary_SASConnectionStringnode',RowKey='first_SASConnectionStringnode')",
  'Date',
  'Mon, 18 Oct 2021 19:42:38 GMT'
]);

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .get(`/tableClientTestSASConnectionStringnode(PartitionKey='CreateBinary_SASConnectionStringnode',RowKey='first_SASConnectionStringnode')`)
  .query(true)
  .reply(200, {"odata.metadata":"https://fakeaccount.table.core.windows.net/$metadata#tableClientTestSASConnectionStringnode/@Element","odata.etag":"W/\"datetime'2021-10-18T19%3A42%3A39.8159151Z'\"","PartitionKey":"CreateBinary_SASConnectionStringnode","RowKey":"first_SASConnectionStringnode","Timestamp":"2021-10-18T19:42:39.8159151Z","<EMAIL>":"Edm.<EMAIL>","binary":"QmFy","<EMAIL>":"Edm.Binary","binaryMetadata":"QmFy"}, [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json;odata=minimalmetadata;streaming=true;charset=utf-8',
  'ETag',
  `W/"datetime'2021-10-18T19%3A42%3A39.8159151Z'"`,
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  'edc5c47d-a002-00b7-1258-c48eba000000',
  'x-ms-client-request-id',
  '110fbefd-6e57-4c1c-88dc-a0081b9e2ca0',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'Access-Control-Expose-Headers',
  'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,ETag,Content-Type,Content-Length,Date,Transfer-Encoding',
  'Access-Control-Allow-Origin',
  '*',
  'Date',
  'Mon, 18 Oct 2021 19:42:38 GMT'
]);


<|start_filename|>sdk/tables/data-tables/recordings/browsers/tableclient_tokencredential_createentity_getentity_and_delete/recording_should_createentity_with_empty_string.json<|end_filename|>
{
 "recordings": [
  {
   "method": "POST",
   "url": "https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token",
   "query": {},
   "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F",
   "status": 200,
   "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}",
   "responseHeaders": {
    "cache-control": "no-store, no-cache",
    "content-length": "1318",
    "content-type": "application/json; charset=utf-8",
    "date": "Fri, 15 Oct 2021 16:13:33 GMT",
    "expires": "-1",
    "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}",
    "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"",
    "pragma": "no-cache",
    "referrer-policy": "strict-origin-when-cross-origin",
    "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+est\"}]}",
    "strict-transport-security": "max-age=31536000; includeSubDomains",
    "x-content-type-options": "nosniff",
    "x-ms-ests-server": "2.1.12158.6 - WUS2 ProdSlices",
    "x-ms-request-id": "2158fdff-7ae6-46b3-a337-930a8e421700"
   }
  },
  {
   "method": "POST",
   "url": "https://fakeaccount.table.core.windows.net/tableClientTestTokenCredentialbrowser",
   "query": {},
   "requestBody": "{\"PartitionKey\":\"emptyString\",\"RowKey\":\"0\",\"value\":\"\",\"value<EMAIL>\":\"Edm.String\"}",
   "status": 204,
   "response": "",
   "responseHeaders": {
    "cache-control": "no-cache",
    "content-length": "0",
    "dataserviceid": "https://fakeaccount.table.core.windows.net/tableClientTestTokenCredentialbrowser(PartitionKey='emptyString',RowKey='0')",
    "date": "Fri, 15 Oct 2021 16:13:33 GMT",
    "etag": "W/\"datetime'2021-10-15T16%3A13%3A33.6733118Z'\"",
    "location": "https://fakeaccount.table.core.windows.net/tableClientTestTokenCredentialbrowser(PartitionKey='emptyString',RowKey='0')",
    "preference-applied": "return-no-content",
    "server": "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0",
    "x-content-type-options": "nosniff",
    "x-ms-client-request-id": "8f770af6-f046-46c5-9bbb-3cef6f817002",
    "x-ms-request-id": "8cdfcd4c-8002-0028-6cdf-c1f600000000",
    "x-ms-version": "2019-02-02"
   }
  },
  {
   "method": "GET",
   "url": "https://fakeaccount.table.core.windows.net/tableClientTestTokenCredentialbrowser(PartitionKey='emptyString',RowKey='0')",
   "query": {},
   "requestBody": null,
   "status": 200,
   "response": "{\"odata.metadata\":\"https://fakeaccount.table.core.windows.net/$metadata#tableClientTestTokenCredentialbrowser/@Element\",\"odata.etag\":\"W/\\\"datetime'2021-10-15T16%3A13%3A33.6733118Z'\\\"\",\"PartitionKey\":\"emptyString\",\"RowKey\":\"0\",\"Timestamp\":\"2021-10-15T16:13:33.6733118Z\",\"value\":\"\"}",
   "responseHeaders": {
    "access-control-allow-origin": "*",
    "access-control-expose-headers": "x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,ETag,Content-Type,Content-Length,Date,Transfer-Encoding",
    "cache-control": "no-cache",
    "content-type": "application/json;odata=minimalmetadata;streaming=true;charset=utf-8",
    "date": "Fri, 15 Oct 2021 16:13:33 GMT",
    "etag": "W/\"datetime'2021-10-15T16%3A13%3A33.6733118Z'\"",
    "server": "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0",
    "transfer-encoding": "chunked",
    "x-content-type-options": "nosniff",
    "x-ms-client-request-id": "d07189d2-580a-413c-8fa1-1b950122630f",
    "x-ms-request-id": "8cdfcd50-8002-0028-70df-c1f600000000",
    "x-ms-version": "2019-02-02"
   }
  }
 ],
 "uniqueTestInfo": {
  "uniqueName": {},
  "newDate": {}
 },
 "hash": "<KEY>"
}

<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/node/datasourcecredential_datasource_credential_crud_operations/recording_updates_service_principal_credential.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "c93d3a58b35e0b0f5fb77bac6758413a";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .patch('/metricsadvisor/v1.0/credentials/d92566c8-6a08-4ddc-917f-120139250878', {"dataSourceCredentialType":"ServicePrincipal","dataSourceCredentialName":"js-test-servicePrincipalCred-163702281643106518","dataSourceCredentialDescription":"updated description","parameters":{"clientId":"updated-client","clientSecret":"updated-secret","tenantId":"updated-tenant"}})
  .reply(200, {"dataSourceCredentialId":"d92566c8-6a08-4ddc-917f-120139250878","dataSourceCredentialName":"js-test-servicePrincipalCred-163702281643106518","dataSourceCredentialDescription":"updated description","dataSourceCredentialType":"ServicePrincipal","parameters":{"clientId":"updated-client","tenantId":"updated-tenant"}}, [
  'Content-Length',
  '315',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  'dfb1a420-9460-4320-9e8c-9f9257b40fae',
  'x-envoy-upstream-service-time',
  '520',
  'apim-request-id',
  'dfb1a420-9460-4320-9e8c-9f9257b40fae',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:33:38 GMT'
]);


<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/node/api_key_metricsadvisorclient/recording_listmetricseriesdefinitions_by_page.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "ca3785921eac0dbce5f4659dfd9d76b3";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .post('/metricsadvisor/v1.0/metrics/189ff959-d9f4-45c7-a1e0-f87c9c7ca80f/series/query', {"activeSince":"2021-08-05T00:00:00.000Z"})
  .query(true)
  .reply(200, {"value":[{"metricId":"189ff959-d9f4-45c7-a1e0-f87c9c7ca80f","dimension":{"category":"Shoes Handbags & Sunglasses","region":"Cairo"}},{"metricId":"189ff959-d9f4-45c7-a1e0-f87c9c7ca80f","dimension":{"category":"Shoes Handbags & Sunglasses","region":"__SUM__"}}],"@nextLink":"https://endpoint:443/metricsadvisor/v1.0/metrics/189ff959-d9f4-45c7-a1e0-f87c9c7ca80f/series/query?$maxpagesize=2&$skip=2"}, [
  'Content-Length',
  '435',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  'c3c700d8-270f-4286-bcfb-a08834001be8',
  'x-envoy-upstream-service-time',
  '95',
  'apim-request-id',
  'c3c700d8-270f-4286-bcfb-a08834001be8',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:32:45 GMT'
]);

nock('https://endpoint:443', {"encodedQueryParams":true})
  .post('/metricsadvisor/v1.0/metrics/189ff959-d9f4-45c7-a1e0-f87c9c7ca80f/series/query', {"activeSince":"2021-08-05T00:00:00.000Z"})
  .query(true)
  .reply(200, {"value":[{"metricId":"189ff959-d9f4-45c7-a1e0-f87c9c7ca80f","dimension":{"category":"Office Products","region":"Seoul"}},{"metricId":"189ff959-d9f4-45c7-a1e0-f87c9c7ca80f","dimension":{"category":"__SUM__","region":"Miami"}}],"@nextLink":"https://endpoint:443/metricsadvisor/v1.0/metrics/189ff959-d9f4-45c7-a1e0-f87c9c7ca80f/series/query?$maxpagesize=2&$skip=4"}, [
  'Content-Length',
  '401',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  'f17a4272-9d0e-4573-bd0b-6143558baf6f',
  'x-envoy-upstream-service-time',
  '102',
  'apim-request-id',
  'f17a4272-9d0e-4573-bd0b-6143558baf6f',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:32:45 GMT'
]);


<|start_filename|>sdk/formrecognizer/ai-form-recognizer/samples/v4/javascript/getInfo.js<|end_filename|>
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

/**
 * This sample shows how to programmatically retrieve metadata about the number of custom models in the Form Recognizer
 * resource and the limit of custom models that the resource will allow to be created.
 *
 * @summary get information about the count and limit of custom models in the resource
 */

const {
  AzureKeyCredential,
  DocumentModelAdministrationClient
} = require("@azure/ai-form-recognizer");

const dotenv = require("dotenv");
dotenv.config();

async function main() {
  const endpoint = process.env.FORM_RECOGNIZER_ENDPOINT ?? "<endpoint>";
  const credential = new AzureKeyCredential(process.env.FORM_RECOGNIZER_API_KEY ?? "<api key>");

  const client = new DocumentModelAdministrationClient(endpoint, credential);

  const info = await client.getInfo();

  console.log(
    `Custom document models: ${info.customDocumentModels.count} of ${info.customDocumentModels.limit}`
  );
}

main().catch((error) => {
  console.error("An error occurred:", error);
  process.exit(1);
});


<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/node/datasourcecredential_datasource_credential_crud_operations/recording_creates_sql_server_connection_string_credential.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "cb45fa53cb5d83c598a46274e82e7c8f";

module.exports.testInfo = {"uniqueName":{"js-test-sqlServerCred-":"js-test-sqlServerCred-163702281643106715","js-test-datalakeCred-":"js-test-datalakeCred-163702281643103059","js-test-servicePrincipalCred-":"js-test-servicePrincipalCred-163702281643106518","js-test-servicePrincipalInKVCred-":"js-test-servicePrincipalInKVCred-163702281643108508"},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .post('/metricsadvisor/v1.0/credentials', {"dataSourceCredentialType":"AzureSQLConnectionString","dataSourceCredentialName":"js-test-sqlServerCred-163702281643106715","dataSourceCredentialDescription":"used for testing purposes only","parameters":{"connectionString":"sql-server-connection-string"}})
  .reply(201, "", [
  'Content-Length',
  '0',
  'Location',
  'https://endpoint/metricsadvisor/v1.0/credentials/44d64215-151e-441d-a446-44477a71f5c6',
  'x-request-id',
  '61e751f2-1464-4e04-8572-b8118cfb689c',
  'x-envoy-upstream-service-time',
  '399',
  'apim-request-id',
  '61e751f2-1464-4e04-8572-b8118cfb689c',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:33:36 GMT'
]);

nock('https://endpoint:443', {"encodedQueryParams":true})
  .get('/metricsadvisor/v1.0/credentials/44d6421<PASSWORD>')
  .reply(200, {"dataSourceCredentialId":"<PASSWORD>","dataSourceCredentialName":"js-test-sqlServerCred-163702281643106715","dataSourceCredentialDescription":"used for testing purposes only","dataSourceCredentialType":"AzureSQLConnectionString","parameters":{}}, [
  'Content-Length',
  '272',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  '49d17afa-d052-445b-ac43-8b8a433fdee0',
  'x-envoy-upstream-service-time',
  '136',
  'apim-request-id',
  '49d17afa-d052-445b-ac43-8b8a433fdee0',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:33:36 GMT'
]);


<|start_filename|>sdk/formrecognizer/ai-form-recognizer/samples/v4/javascript/analyzeBusinessCard.js<|end_filename|>
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

/**
 * This sample shows how to extract elements of a business card from a URL to a file using the prebuilt business card
 * model.
 *
 * The prebuilt business card model can return several fields. For a detailed list of the fields supported by the
 * business card model, see the `BusinessCard` type in the documentation, or refer to the following link:
 *
 * https://aka.ms/azsdk/formrecognizer/businesscardfieldschema
 *
 * @summary extract data from a business card document
 */

const {
  AzureKeyCredential,
  DocumentAnalysisClient,
  PrebuiltModels
} = require("@azure/ai-form-recognizer");

const dotenv = require("dotenv");
dotenv.config();

async function main() {
  const endpoint = process.env.FORM_RECOGNIZER_ENDPOINT ?? "<endpoint>";
  const credential = new AzureKeyCredential(process.env.FORM_RECOGNIZER_API_KEY ?? "<api key>");

  const client = new DocumentAnalysisClient(endpoint, credential);

  const poller = await client.beginAnalyzeDocuments(
    PrebuiltModels.BusinessCard,
    // The form recognizer service will access the following URL to a business card image and extract data from it
    "https://raw.githubusercontent.com/Azure/azure-sdk-for-js/main/sdk/formrecognizer/ai-form-recognizer/assets/businessCard/business-card-english.jpg"
  );

  const {
    documents: [result]
  } = await poller.pollUntilDone();

  // Use of PrebuiltModels.Receipt above (rather than the raw model ID), adds strong typing of the model's output
  if (result) {
    const businessCard = result.fields;
    console.log("=== Business Card Information ===");

    // There are more fields than just these few, and the model allows for multiple contact & company names as well as
    // phone numbers, though we'll only show the first extracted values here.
    const [name] = businessCard.contactNames?.values ?? [];
    console.log("Name:", name?.properties.firstName?.value, name?.properties.lastName?.value);

    const [company] = businessCard.companyNames?.values ?? [];
    console.log("Company:", company?.value);

    const [address] = businessCard.addresses?.values ?? [];
    console.log("Address:", address?.value);
  } else {
    throw new Error("Expected at least one business card in the result.");
  }
}

main().catch((error) => {
  console.error("An error occurred:", error);
  process.exit(1);
});


<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/node/apikey_textanalyticsclient_fast_tests_analyzesentiment/recording_client_gets_no_mined_assessments.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "02fc8cd878126d65fa0c1a49402ba0b8";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint', {"encodedQueryParams":true})
  .post('/text/analytics/v3.2-preview.2/sentiment', {"documents":[{"id":"0","text":"today is a hot day","language":"en"}]})
  .query(true)
  .reply(200, {"documents":[{"id":"0","sentiment":"neutral","confidenceScores":{"positive":0.1,"neutral":0.88,"negative":0.02},"sentences":[{"sentiment":"neutral","confidenceScores":{"positive":0.1,"neutral":0.88,"negative":0.02},"offset":0,"length":18,"text":"today is a hot day","targets":[],"assessments":[]}],"warnings":[]}],"errors":[],"modelVersion":"2020-04-01"}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'csp-billing-usage',
  'CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1',
  'x-envoy-upstream-service-time',
  '105',
  'apim-request-id',
  '4b3bc8d8-4474-4b77-bbca-e6e2155c5b38',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:36:37 GMT'
]);


<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/node/api_key_metricsadvisoradministrationclient_detection_and_alert_configs_crud_operations/recording_deletes_a_detection_configuration.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "245355127474a82348bfd6e169bccfd4";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .delete('/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/52eba2dd-87a2-44d7-b4f2-3510e7df5647')
  .reply(204, "", [
  'Content-Length',
  '0',
  'x-request-id',
  'bbcce9ae-b749-417d-a67b-603a048fd5d3',
  'x-envoy-upstream-service-time',
  '126',
  'apim-request-id',
  'bbcce9ae-b749-417d-a67b-603a048fd5d3',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:32:15 GMT'
]);

nock('https://endpoint:443', {"encodedQueryParams":true})
  .get('/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/52eba2dd-87a2-44d7-b4f2-3510e7df5647')
  .reply(404, {"code":"Not Found","message":"Not found this AnomalyDetectionConfiguration. TraceId: 1033bcf2-0615-45b2-a4f3-3d60844e0d6a"}, [
  'Content-Length',
  '124',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  '1033bcf2-0615-45b2-a4f3-3d60844e0d6a',
  'x-envoy-upstream-service-time',
  '88',
  'apim-request-id',
  '1033bcf2-0615-45b2-a4f3-3d60844e0d6a',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:32:15 GMT'
]);


<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/node/api_key_metricsadvisoradministrationclient_datafeed_datafeed/recording_deletes_an_azure_sql_server_feed.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "26be118ace021c1235287359e5075d53";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .delete('/metricsadvisor/v1.0/dataFeeds/41d7b0ff-d17f-44b6-97e3-53b41cecd38e')
  .reply(204, "", [
  'Content-Length',
  '0',
  'x-request-id',
  'bb333be2-8300-4a33-81c3-623bd82568bf',
  'x-envoy-upstream-service-time',
  '294',
  'apim-request-id',
  'bb333be2-8300-4a33-81c3-623bd82568bf',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:33:24 GMT'
]);

nock('https://endpoint:443', {"encodedQueryParams":true})
  .get('/metricsadvisor/v1.0/dataFeeds/41d7b0ff-d17f-44b6-97e3-53b41cecd38e')
  .reply(404, {"code":"404 NOT_FOUND","message":"datafeedId is invalid."}, [
  'Content-Length',
  '59',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  '5c4e16d7-143d-4b55-80d5-481e0bcfe5a8',
  'x-envoy-upstream-service-time',
  '69',
  'apim-request-id',
  '5c4e16d7-143d-4b55-80d5-481e0bcfe5a8',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:33:24 GMT'
]);


<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/node/apikey_textanalyticsclient_lros_health/recording_invalid_language_hint_in_doc.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "95091b45dc61495bb4243ad632fd8fa2";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint', {"encodedQueryParams":true})
  .post('/text/analytics/v3.2-preview.2/entities/health/jobs', {"documents":[{"id":"1","text":"This should fail because we're passing in an invalid language hint","language":"notalanguage"}]})
  .query(true)
  .reply(202, "", [
  'Transfer-Encoding',
  'chunked',
  'operation-location',
  'https://endpoint/text/analytics/v3.2-preview.1/entities/health/jobs/a1f47bab-9c8e-4d9f-acec-8f0636fa1b14',
  'x-envoy-upstream-service-time',
  '352',
  'apim-request-id',
  'bde29f15-6ebe-42bf-836f-01024afa2400',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:57 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/a1f47bab-9c8e-4d9f-acec-8f0636fa1b14')
  .query(true)
  .reply(200, {"jobId":"a1f47bab-9c8e-4d9f-acec-8f0636fa1b14","lastUpdateDateTime":"2021-10-23T00:42:57Z","createdDateTime":"2021-10-23T00:42:57Z","expirationDateTime":"2021-10-24T00:42:57Z","status":"notStarted","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '10',
  'apim-request-id',
  'b238bb40-08bc-4003-81c6-caeb7dfcd382',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:57 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/a1f47bab-9c8e-4d9f-acec-8f0636fa1b14')
  .query(true)
  .reply(200, {"jobId":"a1f47bab-9c8e-4d9f-acec-8f0636fa1b14","lastUpdateDateTime":"2021-10-23T00:42:57Z","createdDateTime":"2021-10-23T00:42:57Z","expirationDateTime":"2021-10-24T00:42:57Z","status":"notStarted","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '9',
  'apim-request-id',
  'e15c3b0e-7acf-4466-ab94-e4bf2c130e21',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:57 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/a1f47bab-9c8e-4d9f-acec-8f0636fa1b14')
  .query(true)
  .reply(200, {"jobId":"a1f47bab-9c8e-4d9f-acec-8f0636fa1b14","lastUpdateDateTime":"2021-10-23T00:42:58Z","createdDateTime":"2021-10-23T00:42:57Z","expirationDateTime":"2021-10-24T00:42:57Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-05-15"}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '67',
  'apim-request-id',
  'bc79b900-8f32-4925-b7b0-05217cee158c',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:59 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/a1f47bab-9c8e-4d9f-acec-8f0636fa1b14')
  .query(true)
  .reply(200, {"jobId":"a1f47bab-9c8e-4d9f-acec-8f0636fa1b14","lastUpdateDateTime":"2021-10-23T00:42:58Z","createdDateTime":"2021-10-23T00:42:57Z","expirationDateTime":"2021-10-24T00:42:57Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-05-15"}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '95',
  'apim-request-id',
  '6da4bba5-93eb-42f3-89d0-7d97cbe62a3b',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:59 GMT'
]);


<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/node/apikey_textanalyticsclient_lros_analyze/recording_family_emoji_wit_skin_tone_modifier.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "586a571f3405fc4a91192c8057f26eba";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint', {"encodedQueryParams":true})
  .post('/text/analytics/v3.2-preview.2/analyze', {"analysisInput":{"documents":[{"id":"0","text":"👩🏻‍👩🏽‍👧🏾‍👦🏿 SSN: 859-98-0987","language":"en"}]},"tasks":{"entityRecognitionPiiTasks":[{"parameters":{"model-version":"latest","stringIndexType":"UnicodeCodePoint"}}]}})
  .reply(202, "", [
  'Transfer-Encoding',
  'chunked',
  'operation-location',
  'https://endpoint/text/analytics/v3.2-preview.2/analyze/jobs/9ebcc56f-6735-4204-897e-e585142d7244',
  'x-envoy-upstream-service-time',
  '823',
  'apim-request-id',
  '5bf306d1-a1a6-489d-9ca1-0c8cdd8a0c56',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:41:08 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/9ebcc56f-6735-4204-897e-e585142d7244')
  .query(true)
  .reply(200, {"jobId":"9ebcc56f-6735-4204-897e-e585142d7244","lastUpdateDateTime":"2021-10-23T00:41:08Z","createdDateTime":"2021-10-23T00:41:08Z","expirationDateTime":"2021-10-24T00:41:08Z","status":"notStarted","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '11',
  'apim-request-id',
  'a56aac5b-f8ad-48db-88f4-c3dc8b464c80',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:41:08 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/9ebcc56f-6735-4204-897e-e585142d7244')
  .query(true)
  .reply(200, {"jobId":"9ebcc56f-6735-4204-897e-e585142d7244","lastUpdateDateTime":"2021-10-23T00:41:08Z","createdDateTime":"2021-10-23T00:41:08Z","expirationDateTime":"2021-10-24T00:41:08Z","status":"notStarted","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '7',
  'apim-request-id',
  '8b33ce8f-a7c9-496c-81a5-345118fc6153',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:41:08 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/9ebcc56f-6735-4204-897e-e585142d7244')
  .query(true)
  .reply(200, {"jobId":"9ebcc56f-6735-4204-897e-e585142d7244","lastUpdateDateTime":"2021-10-23T00:41:09Z","createdDateTime":"2021-10-23T00:41:08Z","expirationDateTime":"2021-10-24T00:41:08Z","status":"running","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '8',
  'apim-request-id',
  'c2d49d26-b139-469e-9328-9b36a74b4f11',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:41:10 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/9ebcc56f-6735-4204-897e-e585142d7244')
  .query(true)
  .reply(200, {"jobId":"9ebcc56f-6735-4204-897e-e585142d7244","lastUpdateDateTime":"2021-10-23T00:41:09Z","createdDateTime":"2021-10-23T00:41:08Z","expirationDateTime":"2021-10-24T00:41:08Z","status":"running","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '10',
  'apim-request-id',
  'dd713664-3e9d-4b66-9ceb-263050c835cd',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:41:12 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/9ebcc56f-6735-4204-897e-e585142d7244')
  .query(true)
  .reply(200, {"jobId":"9ebcc56f-6735-4204-897e-e585142d7244","lastUpdateDateTime":"2021-10-23T00:41:09Z","createdDateTime":"2021-10-23T00:41:08Z","expirationDateTime":"2021-10-24T00:41:08Z","status":"running","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '40',
  'apim-request-id',
  'ee3b27d3-ddb0-4e0a-aa34-e9e0b8d34f7a',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:41:14 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/9ebcc56f-6735-4204-897e-e585142d7244')
  .query(true)
  .reply(200, {"jobId":"9ebcc56f-6735-4204-897e-e585142d7244","lastUpdateDateTime":"2021-10-23T00:41:16Z","createdDateTime":"2021-10-23T00:41:08Z","expirationDateTime":"2021-10-24T00:41:08Z","status":"succeeded","errors":[],"tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-23T00:41:16.4789392Z","state":"succeeded","results":{"documents":[{"redactedText":"👩🏻‍👩🏽‍👧🏾‍👦🏿 SSN: ***********","id":"0","entities":[{"text":"859-98-0987","category":"USSocialSecurityNumber","offset":17,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '57',
  'apim-request-id',
  '21257b4e-0054-4ea6-86aa-0b6109f53c81',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:41:17 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/9ebcc56f-6735-4204-897e-e585142d7244')
  .query(true)
  .reply(200, {"jobId":"9ebcc56f-6735-4204-897e-e585142d7244","lastUpdateDateTime":"2021-10-23T00:41:16Z","createdDateTime":"2021-10-23T00:41:08Z","expirationDateTime":"2021-10-24T00:41:08Z","status":"succeeded","errors":[],"tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-23T00:41:16.4789392Z","state":"succeeded","results":{"documents":[{"redactedText":"👩🏻‍👩🏽‍👧🏾‍👦🏿 SSN: ***********","id":"0","entities":[{"text":"859-98-0987","category":"USSocialSecurityNumber","offset":17,"length":11,"confidenceScore":0.65}],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '68',
  'apim-request-id',
  '172766e4-f6f9-4c0d-893f-e44f85c54cb0',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:41:17 GMT'
]);


<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/datasourcecredential_datasource_credential_crud_operations/recording_updates_sql_server_connection_string_credential.json<|end_filename|>
{
 "recordings": [
  {
   "method": "PATCH",
   "url": "https://endpoint/metricsadvisor/v1.0/credentials/d4f4ab90-c96d-4149-aa91-d<PASSWORD>60",
   "query": {},
   "requestBody": "{\"dataSourceCredentialType\":\"AzureSQLConnectionString\",\"dataSourceCredentialName\":\"js-test-sqlServerCred-163702813323109349\",\"dataSourceCredentialDescription\":\"updated description\",\"parameters\":{\"connectionString\":\"updated-string\"}}",
   "status": 200,
   "response": "{\"dataSourceCredentialId\":\"d<PASSWORD>\",\"dataSourceCredentialName\":\"js-test-sqlServerCred-163702813323109349\",\"dataSourceCredentialDescription\":\"updated description\",\"dataSourceCredentialType\":\"AzureSQLConnectionString\",\"parameters\":{}}",
   "responseHeaders": {
    "apim-request-id": "5b3e6497-93f6-4697-9c70-1e7c7f6b9fdd",
    "content-length": "261",
    "content-type": "application/json; charset=utf-8",
    "date": "Tue, 16 Nov 2021 02:02:13 GMT",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "x-content-type-options": "nosniff",
    "x-envoy-upstream-service-time": "391",
    "x-request-id": "5b3e6497-93f6-4697-9c70-1e7c7f6b9fdd"
   }
  }
 ],
 "uniqueTestInfo": {
  "uniqueName": {},
  "newDate": {}
 },
 "hash": "92e250d76ae6951f639e97a6380b91a3"
}

<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/node/api_key_metricsadvisorclient/recording_list_metric_enrichment_status_by_page.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "366f7c412fa8555bd7a058782fcf69f0";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .post('/metricsadvisor/v1.0/metrics/189ff959-d9f4-45c7-a1e0-f87c9c7ca80f/status/enrichment/anomalyDetection/query', {"startTime":"2021-01-01T00:00:00.000Z","endTime":"2021-11-05T00:00:00.000Z"})
  .query(true)
  .reply(200, {"value":[{"timestamp":"2021-08-11T00:00:00Z","status":"Succeeded","message":"{\"CreateTime\":\"2021-09-07T23:45:37.533Z\",\"UpdateTime\":\"2021-09-07T23:45:37.533Z\"}"},{"timestamp":"2021-08-12T00:00:00Z","status":"Succeeded","message":"{\"CreateTime\":\"2021-09-07T23:45:37.533Z\",\"UpdateTime\":\"2021-09-07T23:45:37.533Z\"}"}],"@nextLink":"https://endpoint:443/metricsadvisor/v1.0/metrics/189ff959-d9f4-45c7-a1e0-f87c9c7ca80f/status/enrichment/anomalyDetection/query?$maxpagesize=2&$skip=2"}, [
  'Content-Length',
  '533',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  'bbcc3ff7-b528-45df-b7a9-e17dc18bc662',
  'x-envoy-upstream-service-time',
  '197',
  'apim-request-id',
  'bbcc3ff7-b528-45df-b7a9-e17dc18bc662',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:32:47 GMT'
]);

nock('https://endpoint:443', {"encodedQueryParams":true})
  .post('/metricsadvisor/v1.0/metrics/189ff959-d9f4-45c7-a1e0-f87c9c7ca80f/status/enrichment/anomalyDetection/query', {"startTime":"2021-01-01T00:00:00.000Z","endTime":"2021-11-05T00:00:00.000Z"})
  .query(true)
  .reply(200, {"value":[{"timestamp":"2021-08-13T00:00:00Z","status":"Succeeded","message":"{\"CreateTime\":\"2021-09-07T23:45:37.533Z\",\"UpdateTime\":\"2021-09-07T23:45:37.533Z\"}"},{"timestamp":"2021-08-14T00:00:00Z","status":"Succeeded","message":"{\"CreateTime\":\"2021-09-07T23:45:37.533Z\",\"UpdateTime\":\"2021-09-07T23:45:37.533Z\"}"}],"@nextLink":"https://endpoint:443/metricsadvisor/v1.0/metrics/189ff959-d9f4-45c7-a1e0-f87c9c7ca80f/status/enrichment/anomalyDetection/query?$maxpagesize=2&$skip=4"}, [
  'Content-Length',
  '533',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  '7c82a796-a483-4aae-9205-74af05cc5f46',
  'x-envoy-upstream-service-time',
  '178',
  'apim-request-id',
  '7c82a796-a483-4aae-9205-74af05cc5f46',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:32:47 GMT'
]);


<|start_filename|>sdk/keyvault/keyvault-secrets/samples/v4/javascript/helloWorld.js<|end_filename|>
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

/**
 * @summary Uses a SecretClient to create, read, and update a secret in various ways.
 */

const { SecretClient } = require("@azure/keyvault-secrets");
const { DefaultAzureCredential } = require("@azure/identity");

// Load the .env file if it exists
const dotenv = require("dotenv");
dotenv.config();

async function main() {
  // DefaultAzureCredential expects the following three environment variables:
  // - AZURE_TENANT_ID: The tenant ID in Azure Active Directory
  // - AZURE_CLIENT_ID: The application (client) ID registered in the AAD tenant
  // - AZURE_CLIENT_SECRET: The client secret for the registered application
  const credential = new DefaultAzureCredential();

  const url = process.env["KEYVAULT_URI"] || "<keyvault-url>";

  const client = new SecretClient(url, credential);

  // Create a secret
  const uniqueString = new Date().getTime();
  const secretName = `secret${uniqueString}`;
  const result = await client.setSecret(secretName, "MySecretValue");
  console.log("result: ", result);

  // Read the secret we created
  const secret = await client.getSecret(secretName);
  console.log("secret: ", secret);

  // Update the secret with different attributes
  const updatedSecret = await client.updateSecretProperties(secretName, result.properties.version, {
    enabled: false
  });
  console.log("updated secret: ", updatedSecret);

  // Delete the secret
  // If we don't want to purge the secret later, we don't need to wait until this finishes
  await client.beginDeleteSecret(secretName);
}

main().catch((error) => {
  console.error("An error occurred:", error);
  process.exit(1);
});


<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/aad_metricsadvisorclient/recording_lists_anomalies_for_alert_by_page.json<|end_filename|>
{
 "recordings": [
  {
   "method": "POST",
   "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token",
   "query": {},
   "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F",
   "status": 200,
   "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}",
   "responseHeaders": {
    "cache-control": "no-store, no-cache",
    "content-length": "1331",
    "content-type": "application/json; charset=utf-8",
    "date": "Tue, 16 Nov 2021 02:01:09 GMT",
    "expires": "-1",
    "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}",
    "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"",
    "pragma": "no-cache",
    "referrer-policy": "strict-origin-when-cross-origin",
    "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+est\"}]}",
    "strict-transport-security": "max-age=31536000; includeSubDomains",
    "x-content-type-options": "nosniff",
    "x-ms-ests-server": "2.1.12231.7 - SCUS ProdSlices",
    "x-ms-request-id": "807ea866-a70c-4f1f-86a7-d6b696fa1601"
   }
  },
  {
   "method": "GET",
   "url": "https://endpoint/metricsadvisor/v1.0/alert/anomaly/configurations/7edf304f-6487-4e3d-a137-cc4f679bcbc0/alerts/17470297800/anomalies",
   "query": {
    "$maxpagesize": "1"
   },
   "requestBody": null,
   "status": 200,
   "response": "{\"value\":[{\"dataFeedId\":\"52b0c20c-cb7c-43f0-9507-2a33170342db\",\"metricId\":\"189ff959-d9f4-45c7-a1e0-f87c9c7ca80f\",\"anomalyDetectionConfigurationId\":\"26ece682-80a6-4415-89a2-05903dd9a640\",\"timestamp\":\"2021-09-07T00:00:00Z\",\"createdTime\":\"2021-09-08T00:09:22.716Z\",\"modifiedTime\":\"2021-09-08T00:09:22.716Z\",\"dimension\":{\"region\":\"__SUM__\",\"category\":\"Shoes Handbags & Sunglasses\"},\"property\":{\"anomalySeverity\":\"High\",\"anomalyStatus\":\"Active\",\"value\":55791561.8,\"expectedValue\":52146711.57082515}}],\"@nextLink\":\"https://endpoint:443/metricsadvisor/v1.0/alert/anomaly/configurations/7edf304f-6487-4e3d-a137-cc4f679bcbc0/alerts/17470297800/anomalies?$maxpagesize=1&$skip=1\"}",
   "responseHeaders": {
    "apim-request-id": "8d41af57-2dee-4e2c-96de-48b15ec3d5dd",
    "content-length": "707",
    "content-type": "application/json; charset=utf-8",
    "date": "Tue, 16 Nov 2021 02:01:10 GMT",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "x-content-type-options": "nosniff",
    "x-envoy-upstream-service-time": "38",
    "x-request-id": "8d41af57-2dee-4e2c-96de-48b15ec3d5dd"
   }
  },
  {
   "method": "GET",
   "url": "https://endpoint:443/metricsadvisor/v1.0/alert/anomaly/configurations/7edf304f-6487-4e3d-a137-cc4f679bcbc0/alerts/17470297800/anomalies",
   "query": {
    "$maxpagesize": "1",
    "$skip": "1"
   },
   "requestBody": null,
   "status": 200,
   "response": "{\"value\":[{\"dataFeedId\":\"52b0c20c-cb7c-43f0-9507-2a33170342db\",\"metricId\":\"189ff959-d9f4-45c7-a1e0-f87c9c7ca80f\",\"anomalyDetectionConfigurationId\":\"26ece682-80a6-4415-89a2-05903dd9a640\",\"timestamp\":\"2021-09-07T00:00:00Z\",\"createdTime\":\"2021-09-08T00:09:22.716Z\",\"modifiedTime\":\"2021-09-08T00:09:22.716Z\",\"dimension\":{\"region\":\"Seoul\",\"category\":\"Office Products\"},\"property\":{\"anomalySeverity\":\"Medium\",\"anomalyStatus\":\"Active\",\"value\":17763.6,\"expectedValue\":14939.115446142221}}],\"@nextLink\":\"https://endpoint:443/metricsadvisor/v1.0/alert/anomaly/configurations/7edf304f-6487-4e3d-a137-cc4f679bcbc0/alerts/17470297800/anomalies?$maxpagesize=1&$skip=2\"}",
   "responseHeaders": {
    "apim-request-id": "0ff8f9e0-c1ae-4395-8fce-550fb676ab6d",
    "content-length": "693",
    "content-type": "application/json; charset=utf-8",
    "date": "Tue, 16 Nov 2021 02:01:10 GMT",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "x-content-type-options": "nosniff",
    "x-envoy-upstream-service-time": "28",
    "x-request-id": "0ff8f9e0-c1ae-4395-8fce-550fb676ab6d"
   }
  }
 ],
 "uniqueTestInfo": {
  "uniqueName": {},
  "newDate": {}
 },
 "hash": "f16ad423e5556ff9cda4b80b355970c3"
}

<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/node/apikey_textanalyticsclient_lros_analyze/recording_single_custom_entity_recognition_action.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "7912107dd789728b7425c517733f2253";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint', {"encodedQueryParams":true})
  .post('/text/analytics/v3.2-preview.2/analyze', {"analysisInput":{"documents":[{"id":"1","text":"A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal lands over the past six years has stretched the staff of the BLM to a point that it has been unable to meet its environmental protection responsibilities.","language":"en"}]},"tasks":{"customEntityRecognitionTasks":[{"parameters":{"project-name":"project_name","deployment-name":"deployment_name","stringIndexType":"Utf16CodeUnit"}}]}})
  .reply(202, "", [
  'Transfer-Encoding',
  'chunked',
  'operation-location',
  'https://endpoint/text/analytics/v3.2-preview.2/analyze/jobs/ca3959d5-6d61-49aa-b53c-cd3ec8b89da7',
  'x-envoy-upstream-service-time',
  '506',
  'apim-request-id',
  'd13a3e6a-32e0-4d47-9199-83217c73fd07',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:36:44 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/ca3959d5-6d61-49aa-b53c-cd3ec8b89da7')
  .query(true)
  .reply(200, {"jobId":"ca3959d5-6d61-49aa-b53c-cd3ec8b89da7","lastUpdateDateTime":"2021-10-23T00:36:44Z","createdDateTime":"2021-10-23T00:36:44Z","expirationDateTime":"2021-10-24T00:36:44Z","status":"notStarted","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '25',
  'apim-request-id',
  '96daf8d7-5702-486d-a80d-25b69450e288',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:36:44 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/ca3959d5-6d61-49aa-b53c-cd3ec8b89da7')
  .query(true)
  .reply(200, {"jobId":"ca3959d5-6d61-49aa-b53c-cd3ec8b89da7","lastUpdateDateTime":"2021-10-23T00:36:44Z","createdDateTime":"2021-10-23T00:36:44Z","expirationDateTime":"2021-10-24T00:36:44Z","status":"notStarted","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '18',
  'apim-request-id',
  'a62802c6-bbda-4be2-84b3-d6e27a79bcd4',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:36:44 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/ca3959d5-6d61-49aa-b53c-cd3ec8b89da7')
  .query(true)
  .reply(200, {"jobId":"ca3959d5-6d61-49aa-b53c-cd3ec8b89da7","lastUpdateDateTime":"2021-10-23T00:36:45Z","createdDateTime":"2021-10-23T00:36:44Z","expirationDateTime":"2021-10-24T00:36:44Z","status":"succeeded","errors":[],"tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-23T00:36:45.9554221Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[{"text":"98-0987","category":"timeRange","offset":4,"length":7,"confidenceScore":0.55},{"text":"$100","category":"timeRange","offset":27,"length":4,"confidenceScore":0.15},{"text":"<NAME>","category":"artist","offset":12,"length":9,"confidenceScore":0.18},{"text":"Mike","category":"artist","offset":22,"length":4,"confidenceScore":0.35}],"warnings":[]}],"errors":[],"projectName":"project_name","deploymentName":"deployment_name"}}]}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '247',
  'apim-request-id',
  '2a02b948-2c8b-49cc-9433-b1057b80ae8d',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:36:46 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/ca3959d5-6d61-49aa-b53c-cd3ec8b89da7')
  .query(true)
  .reply(200, {"jobId":"ca3959d5-6d61-49aa-b53c-cd3ec8b89da7","lastUpdateDateTime":"2021-10-23T00:36:45Z","createdDateTime":"2021-10-23T00:36:44Z","expirationDateTime":"2021-10-24T00:36:44Z","status":"succeeded","errors":[],"tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"customEntityRecognitionTasks":[{"lastUpdateDateTime":"2021-10-23T00:36:45.9554221Z","state":"succeeded","results":{"documents":[{"id":"1","entities":[{"text":"98-0987","category":"timeRange","offset":4,"length":7,"confidenceScore":0.55},{"text":"$100","category":"timeRange","offset":27,"length":4,"confidenceScore":0.15},{"text":"<NAME>","category":"artist","offset":12,"length":9,"confidenceScore":0.18},{"text":"Mike","category":"artist","offset":22,"length":4,"confidenceScore":0.35}],"warnings":[]}],"errors":[],"projectName":"project_name","deploymentName":"deployment_name"}}]}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '107',
  'apim-request-id',
  '1ead05f6-be9f-46ae-9a0f-082cd5684d6d',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:36:46 GMT'
]);


<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/node/apikey_textanalyticsclient_lros_analyze/recording_operation_metadata.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "204756a0ef7bb31d61c833d32a9152fa";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint', {"encodedQueryParams":true})
  .post('/text/analytics/v3.2-preview.2/analyze', {"displayName":"testJob","analysisInput":{"documents":[{"id":"1","text":"I will go to the park."},{"id":"2","text":"Este es un document escrito en Español."},{"id":"3","text":"猫は幸せ"}]},"tasks":{"entityRecognitionPiiTasks":[{"parameters":{"model-version":"latest","stringIndexType":"Utf16CodeUnit"}}]}})
  .reply(202, "", [
  'Transfer-Encoding',
  'chunked',
  'operation-location',
  'https://endpoint/text/analytics/v3.2-preview.2/analyze/jobs/f8fc91ac-fdfd-421c-9230-f156728095b7',
  'x-envoy-upstream-service-time',
  '202',
  'apim-request-id',
  'f611a9a8-8e7f-44b8-965b-c56a0e7ddabc',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:41:03 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/f8fc91ac-fdfd-421c-9230-f156728095b7')
  .query(true)
  .reply(200, {"jobId":"f8fc91ac-fdfd-421c-9230-f156728095b7","lastUpdateDateTime":"2021-10-23T00:41:03Z","createdDateTime":"2021-10-23T00:41:03Z","expirationDateTime":"2021-10-24T00:41:03Z","status":"notStarted","errors":[],"displayName":"testJob","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '17',
  'apim-request-id',
  '955056b0-4237-4104-a5bb-eb2a4b4eb18a',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:41:03 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/f8fc91ac-fdfd-421c-9230-f156728095b7')
  .query(true)
  .reply(200, {"jobId":"f8fc91ac-fdfd-421c-9230-f156728095b7","lastUpdateDateTime":"2021-10-23T00:41:03Z","createdDateTime":"2021-10-23T00:41:03Z","expirationDateTime":"2021-10-24T00:41:03Z","status":"notStarted","errors":[],"displayName":"testJob","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '10',
  'apim-request-id',
  '3a342317-4595-49f8-b7d3-db5a63edd1bc',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:41:03 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/f8fc91ac-fdfd-421c-9230-f156728095b7')
  .query(true)
  .reply(200, {"jobId":"f8fc91ac-fdfd-421c-9230-f156728095b7","lastUpdateDateTime":"2021-10-23T00:41:04Z","createdDateTime":"2021-10-23T00:41:03Z","expirationDateTime":"2021-10-24T00:41:03Z","status":"running","errors":[],"displayName":"testJob","tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '13',
  'apim-request-id',
  'cc0f9fe7-bd41-4865-b0a7-12b33edccc43',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:41:05 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/f8fc91ac-fdfd-421c-9230-f156728095b7')
  .query(true)
  .reply(200, {"jobId":"f8fc91ac-fdfd-421c-9230-f156728095b7","lastUpdateDateTime":"2021-10-23T00:41:06Z","createdDateTime":"2021-10-23T00:41:03Z","expirationDateTime":"2021-10-24T00:41:03Z","status":"succeeded","errors":[],"displayName":"testJob","tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-23T00:41:06.9084334Z","state":"succeeded","results":{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"Este es un document escrito en Español.","id":"2","entities":[],"warnings":[]},{"redactedText":"猫は幸せ","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '79',
  'apim-request-id',
  '947fd080-0237-4492-a023-4dd45836ebfb',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:41:07 GMT'
]);


<|start_filename|>sdk/formrecognizer/ai-form-recognizer/samples/v4/javascript/analyzeIdentityDocument.js<|end_filename|>
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

/**
 * This sample shows how to extract elements of an identity document (such as a driver license or passport) from a URL
 * to a file using the prebuilt identity document model.
 *
 * The prebuilt identity document model can return several fields. For a detailed list of the fields supported by the
 * identity document model, see the `IdentityDocument` type in the documentation, or refer to the following link:
 *
 * https://aka.ms/azsdk/formrecognizer/iddocumentfieldschema
 *
 * @summary extract data from an identity document
 */

const {
  AzureKeyCredential,
  DocumentAnalysisClient,
  PrebuiltModels
} = require("@azure/ai-form-recognizer");

const dotenv = require("dotenv");
dotenv.config();

async function main() {
  const endpoint = process.env.FORM_RECOGNIZER_ENDPOINT ?? "<endpoint>";
  const credential = new AzureKeyCredential(process.env.FORM_RECOGNIZER_API_KEY ?? "<api key>");

  const client = new DocumentAnalysisClient(endpoint, credential);

  const poller = await client.beginAnalyzeDocuments(
    PrebuiltModels.IdentityDocument,
    // The form recognizer service will access the following URL to a driver license image and extract data from it
    "https://raw.githubusercontent.com/Azure/azure-sdk-for-js/main/sdk/formrecognizer/ai-form-recognizer/assets/identityDocument/license.jpg"
  );

  const {
    documents: [result]
  } = await poller.pollUntilDone();

  // Use of PrebuiltModels.Receipt above (rather than the raw model ID), adds strong typing of the model's output
  if (result) {
    // The identity document model has multiple document types, so we need to know which document type was actually
    // extracted.
    if (result.docType === "prebuilt:idDocument:driverLicense") {
      const driverLicense = result.fields;

      // For the sake of the example, we'll only show a few of the fields that are produced.
      console.log("Extracted a Driver License:");
      console.log("  Name:", driverLicense.firstName?.value, driverLicense.lastName?.value);
      console.log("  License No.:", driverLicense.documentNumber?.value);
      console.log("  Date of Birth:", driverLicense.dateOfBirth?.value);
      console.log("  Expiration:", driverLicense.documentNumber?.value);
    } else if (result.docType === "prebuilt:idDocument:passport") {
      const passport = result.fields;

      // The passport document type extracts and parses the Passport's machine-readable zone
      const fields = passport.machineReadableZone?.properties;
      console.log("Extracted a Passport:");
      console.log("  Name:", fields?.firstName?.value, fields?.lastName?.value);
      console.log("  Date of Birth:", fields?.dateOfBirth?.value);
      console.log("  Nationality:", fields?.nationality?.value);
      console.log("  Passport No.:", fields?.documentNumber?.value);
      console.log("  Issuer:", fields?.countryRegion?.value);
      console.log("  Expiration Date:", fields?.dateOfExpiration?.value);
    } else {
      // The only reason this would happen is if the client library's schema for the prebuilt identity document model is
      // out of date, and a new document type has been introduced.
      console.error("Unknown document type in result:", result);
    }
  } else {
    throw new Error("Expected at least one receipt in the result.");
  }
}

main().catch((error) => {
  console.error("An error occurred:", error);
  process.exit(1);
});


<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/datasourcecredential_datasource_credential_crud_operations/recording_updates_datalake_gen2_shared_key_credential.json<|end_filename|>
{
 "recordings": [
  {
   "method": "PATCH",
   "url": "https://endpoint/metricsadvisor/v1.0/credentials/9<PASSWORD>",
   "query": {},
   "requestBody": "{\"dataSourceCredentialType\":\"DataLakeGen2SharedKey\",\"dataSourceCredentialName\":\"js-test-datalakeCred-163702813323209420\",\"dataSourceCredentialDescription\":\"updated description\",\"parameters\":{\"accountKey\":\"updated account key\"}}",
   "status": 200,
   "response": "{\"dataSourceCredentialId\":\"9<PASSWORD>\",\"dataSourceCredentialName\":\"js-test-datalakeCred-163702813323209420\",\"dataSourceCredentialDescription\":\"updated description\",\"dataSourceCredentialType\":\"DataLakeGen2SharedKey\",\"parameters\":{}}",
   "responseHeaders": {
    "apim-request-id": "06bf4c3d-c8df-43ed-ab3b-19de8c0e261f",
    "content-length": "257",
    "content-type": "application/json; charset=utf-8",
    "date": "Tue, 16 Nov 2021 02:02:14 GMT",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "x-content-type-options": "nosniff",
    "x-envoy-upstream-service-time": "363",
    "x-request-id": "06bf4c3d-c8df-43ed-ab3b-19de8c0e261f"
   }
  }
 ],
 "uniqueTestInfo": {
  "uniqueName": {},
  "newDate": {}
 },
 "hash": "ca0375af9d0a02b8798c881504e8c127"
}

<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/node/datasourcecredential_datasource_credential_crud_operations/recording_updates_datalake_gen2_shared_key_credential.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "7f61a3ca73f444984086d5c92c386135";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .patch('/metricsadvisor/v1.0/credentials/<PASSWORD>', {"dataSourceCredentialType":"DataLakeGen2SharedKey","dataSourceCredentialName":"js-test-datalakeCred-163702281643103059","dataSourceCredentialDescription":"updated description","parameters":{"accountKey":"updated account key"}})
  .reply(200, {"dataSourceCredentialId":"<PASSWORD>","dataSourceCredentialName":"js-test-datalakeCred-163702281643103059","dataSourceCredentialDescription":"updated description","dataSourceCredentialType":"DataLakeGen2SharedKey","parameters":{}}, [
  'Content-Length',
  '257',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  '81545619-ed73-487a-873f-11fb70a16a81',
  'x-envoy-upstream-service-time',
  '434',
  'apim-request-id',
  '81545619-ed73-487a-873f-11fb70a16a81',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:33:37 GMT'
]);


<|start_filename|>sdk/formrecognizer/ai-form-recognizer/recordings/browsers/api_key_model_management_model_build_model_information/recording_delete_models_from_the_account.json<|end_filename|>
{
 "recordings": [
  {
   "method": "DELETE",
   "url": "https://endpoint/formrecognizer/documentModels/modelName163226013887303315",
   "query": {
    "api-version": "2021-09-30-preview"
   },
   "requestBody": null,
   "status": 204,
   "response": "",
   "responseHeaders": {
    "apim-request-id": "5ff9b6e8-35bb-48c1-9dd0-a576ce0a668e",
    "content-length": "0",
    "date": "Tue, 21 Sep 2021 21:35:59 GMT",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "x-content-type-options": "nosniff",
    "x-envoy-upstream-service-time": "218"
   }
  },
  {
   "method": "GET",
   "url": "https://endpoint/formrecognizer/documentModels/modelName163226013887303315",
   "query": {
    "api-version": "2021-09-30-preview"
   },
   "requestBody": null,
   "status": 404,
   "response": "{\n  \"error\": {\n    \"code\": \"NotFound\",\n    \"message\": \"Resource not found.\",\n    \"innererror\": {\n      \"code\": \"ModelNotFound\",\n      \"message\": \"The requested model was not found.\"\n    }\n  }\n}",
   "responseHeaders": {
    "apim-request-id": "1e545330-c11c-40ce-9bb2-5e019ef47596",
    "content-type": "application/json",
    "date": "Tue, 21 Sep 2021 21:36:00 GMT",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "x-content-type-options": "nosniff",
    "x-envoy-upstream-service-time": "158"
   }
  }
 ],
 "uniqueTestInfo": {
  "uniqueName": {},
  "newDate": {}
 },
 "hash": "4b301e80abe3405e0ac47fd5f57a6338"
}

<|start_filename|>sdk/monitor/monitor-query/recordings/browsers/logsqueryclient_live_tests/recording_includequerystatistics.json<|end_filename|>
{
 "recordings": [
  {
   "method": "POST",
   "url": "https://login.microsoftonline.com/98123456-7614-3456-5678-789980112547/oauth2/v2.0/token",
   "query": {},
   "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F",
   "status": 200,
   "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}",
   "responseHeaders": {
    "cache-control": "no-store, no-cache",
    "content-length": "1321",
    "content-type": "application/json; charset=utf-8",
    "date": "Wed, 29 Sep 2021 01:11:36 GMT",
    "expires": "-1",
    "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}",
    "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"",
    "pragma": "no-cache",
    "referrer-policy": "strict-origin-when-cross-origin",
    "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}",
    "strict-transport-security": "max-age=31536000; includeSubDomains",
    "x-content-type-options": "nosniff",
    "x-ms-ests-server": "2.1.12071.16 - WUS2 ProdSlices",
    "x-ms-request-id": "f36c0617-e7d4-4e94-a042-cd033964a200"
   }
  },
  {
   "method": "POST",
   "url": "https://api.loganalytics.io/v1/workspaces/workspace-id/query",
   "query": {},
   "requestBody": "{\"query\":\"AppEvents | limit 1\",\"timespan\":\"P1D\"}",
   "status": 200,
   "response": "{\"tables\":[{\"name\":\"PrimaryResult\",\"columns\":[{\"name\":\"TenantId\",\"type\":\"string\"},{\"name\":\"TimeGenerated\",\"type\":\"datetime\"},{\"name\":\"Name\",\"type\":\"string\"},{\"name\":\"Properties\",\"type\":\"dynamic\"},{\"name\":\"Measurements\",\"type\":\"dynamic\"},{\"name\":\"OperationName\",\"type\":\"string\"},{\"name\":\"OperationId\",\"type\":\"string\"},{\"name\":\"ParentId\",\"type\":\"string\"},{\"name\":\"SyntheticSource\",\"type\":\"string\"},{\"name\":\"SessionId\",\"type\":\"string\"},{\"name\":\"UserId\",\"type\":\"string\"},{\"name\":\"UserAuthenticatedId\",\"type\":\"string\"},{\"name\":\"UserAccountId\",\"type\":\"string\"},{\"name\":\"AppVersion\",\"type\":\"string\"},{\"name\":\"AppRoleName\",\"type\":\"string\"},{\"name\":\"AppRoleInstance\",\"type\":\"string\"},{\"name\":\"ClientType\",\"type\":\"string\"},{\"name\":\"ClientModel\",\"type\":\"string\"},{\"name\":\"ClientOS\",\"type\":\"string\"},{\"name\":\"ClientIP\",\"type\":\"string\"},{\"name\":\"ClientCity\",\"type\":\"string\"},{\"name\":\"ClientStateOrProvince\",\"type\":\"string\"},{\"name\":\"ClientCountryOrRegion\",\"type\":\"string\"},{\"name\":\"ClientBrowser\",\"type\":\"string\"},{\"name\":\"ResourceGUID\",\"type\":\"string\"},{\"name\":\"IKey\",\"type\":\"string\"},{\"name\":\"SDKVersion\",\"type\":\"string\"},{\"name\":\"ItemCount\",\"type\":\"int\"},{\"name\":\"SourceSystem\",\"type\":\"string\"},{\"name\":\"Type\",\"type\":\"string\"},{\"name\":\"_ResourceId\",\"type\":\"string\"}],\"rows\":[]}],\"statistics\":{\"query\":{\"executionTime\":0.0781814,\"resourceUsage\":{\"cache\":{\"memory\":{\"hits\":0,\"misses\":0,\"total\":0},\"disk\":{\"hits\":0,\"misses\":0,\"total\":0},\"shards\":{\"hot\":{\"hitbytes\":0,\"missbytes\":0,\"retrievebytes\":0},\"cold\":{\"hitbytes\":0,\"missbytes\":0,\"retrievebytes\":0},\"bypassbytes\":0}},\"cpu\":{\"user\":\"00:00:00.0937500\",\"kernel\":\"00:00:00\",\"totalCpu\":\"00:00:00.0937500\"},\"memory\":{\"peakPerNode\":12588000}},\"inputDatasetStatistics\":{\"extents\":{\"total\":0,\"scanned\":0,\"scannedMinDatetime\":\"0001-01-01T00:00:00.0000000Z\",\"scannedMaxDatetime\":\"0001-01-01T00:00:00.0000000Z\"},\"rows\":{\"total\":0,\"scanned\":0},\"rowstores\":{\"scannedRows\":8303,\"scannedValuesSize\":7998880},\"shards\":{\"queriesGeneric\":0,\"queriesSpecialized\":0}},\"datasetStatistics\":[{\"tableRowCount\":0,\"tableSize\":0}]}}}",
   "responseHeaders": {
    "access-control-allow-origin": "*",
    "access-control-expose-headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location",
    "age": "109",
    "content-encoding": "gzip",
    "content-type": "application/json; charset=utf-8",
    "date": "Wed, 29 Sep 2021 01:11:37 GMT",
    "strict-transport-security": "max-age=15724800; includeSubDomains",
    "vary": "Accept-Encoding",
    "via": "1.1 draft-oms-65975698db-cflfp",
    "x-content-type-options": "nosniff"
   }
  }
 ],
 "uniqueTestInfo": {
  "uniqueName": {},
  "newDate": {}
 },
 "hash": "a286a75072723520656b4e9986158590"
}

<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/node/apikey_textanalyticsclient_lros_health/recording_document_warnings.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "692c28f4e7d96a9f71e04224dcbab4ad";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint', {"encodedQueryParams":true})
  .post('/text/analytics/v3.2-preview.2/entities/health/jobs', {"documents":[{"id":"1","text":"This won't actually create a warning :'("}]})
  .query(true)
  .reply(202, "", [
  'Transfer-Encoding',
  'chunked',
  'operation-location',
  'https://endpoint/text/analytics/v3.2-preview.1/entities/health/jobs/ebfb6ad0-1bdd-4eb5-b486-056be2c49d55',
  'x-envoy-upstream-service-time',
  '217',
  'apim-request-id',
  'e683901e-bb10-4539-93d1-8831cee7ecf1',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:32 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/ebfb6ad0-1bdd-4eb5-b486-056be2c49d55')
  .query(true)
  .reply(200, {"jobId":"ebfb6ad0-1bdd-4eb5-b486-056be2c49d55","lastUpdateDateTime":"2021-10-23T00:42:32Z","createdDateTime":"2021-10-23T00:42:32Z","expirationDateTime":"2021-10-24T00:42:32Z","status":"notStarted","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '32',
  'apim-request-id',
  'bbfd3f08-e9ea-42b1-bacc-029392c2fe0c',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:32 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/ebfb6ad0-1bdd-4eb5-b486-056be2c49d55')
  .query(true)
  .reply(200, {"jobId":"ebfb6ad0-1bdd-4eb5-b486-056be2c49d55","lastUpdateDateTime":"2021-10-23T00:42:32Z","createdDateTime":"2021-10-23T00:42:32Z","expirationDateTime":"2021-10-24T00:42:32Z","status":"running","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '9',
  'apim-request-id',
  'a4786757-ba6f-490e-a0ec-7c43d16cd473',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:32 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/ebfb6ad0-1bdd-4eb5-b486-056be2c49d55')
  .query(true)
  .reply(200, {"jobId":"ebfb6ad0-1bdd-4eb5-b486-056be2c49d55","lastUpdateDateTime":"2021-10-23T00:42:33Z","createdDateTime":"2021-10-23T00:42:32Z","expirationDateTime":"2021-10-24T00:42:32Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"1","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '73',
  'apim-request-id',
  '921b866b-ccfb-41e2-8194-449c0cd57f58',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:34 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/ebfb6ad0-1bdd-4eb5-b486-056be2c49d55')
  .query(true)
  .reply(200, {"jobId":"ebfb6ad0-1bdd-4eb5-b486-056be2c49d55","lastUpdateDateTime":"2021-10-23T00:42:33Z","createdDateTime":"2021-10-23T00:42:32Z","expirationDateTime":"2021-10-24T00:42:32Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"1","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '75',
  'apim-request-id',
  '7ee2fab4-4a25-4e7c-94fc-2cc63da1fde6',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:34 GMT'
]);


<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/node/apikey_textanalyticsclient_lros_health/recording_whole_batch_empty_language_hint_per_doc.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "7b424c93f75bfddb132b20861a2983df";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint', {"encodedQueryParams":true})
  .post('/text/analytics/v3.2-preview.2/entities/health/jobs', {"documents":[{"id":"1","text":"I will go to the park.","language":""},{"id":"2","text":"I did not like the hotel we stayed at.","language":""},{"id":"3","text":"The restaurant had really good food."}]})
  .query(true)
  .reply(202, "", [
  'Transfer-Encoding',
  'chunked',
  'operation-location',
  'https://endpoint/text/analytics/v3.2-preview.1/entities/health/jobs/2e3f077a-f4d5-404c-b41e-2dee558e0dbe',
  'x-envoy-upstream-service-time',
  '321',
  'apim-request-id',
  '29a40b6f-b004-44fd-8d7f-0f522649bff8',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:48 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/2e3f077a-f4d5-404c-b41e-2dee558e0dbe')
  .query(true)
  .reply(200, {"jobId":"2e3f077a-f4d5-404c-b41e-2dee558e0dbe","lastUpdateDateTime":"2021-10-23T00:42:49Z","createdDateTime":"2021-10-23T00:42:48Z","expirationDateTime":"2021-10-24T00:42:48Z","status":"notStarted","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '8',
  'apim-request-id',
  '3f77e648-9f0a-48e4-8409-5df7f4d22e9b',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:48 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/2e3f077a-f4d5-404c-b41e-2dee558e0dbe')
  .query(true)
  .reply(200, {"jobId":"2e3f077a-f4d5-404c-b41e-2dee558e0dbe","lastUpdateDateTime":"2021-10-23T00:42:49Z","createdDateTime":"2021-10-23T00:42:48Z","expirationDateTime":"2021-10-24T00:42:48Z","status":"notStarted","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '10',
  'apim-request-id',
  '36cb4d48-178d-49a0-92da-cbacd90ab622',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:48 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/2e3f077a-f4d5-404c-b41e-2dee558e0dbe')
  .query(true)
  .reply(200, {"jobId":"2e3f077a-f4d5-404c-b41e-2dee558e0dbe","lastUpdateDateTime":"2021-10-23T00:42:50Z","createdDateTime":"2021-10-23T00:42:48Z","expirationDateTime":"2021-10-24T00:42:48Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"1","entities":[],"relations":[],"warnings":[]},{"id":"2","entities":[],"relations":[],"warnings":[]},{"id":"3","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '71',
  'apim-request-id',
  '321f2ff7-d0f9-400f-8d93-eca2e41e2aa2',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:50 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/2e3f077a-f4d5-404c-b41e-2dee558e0dbe')
  .query(true)
  .reply(200, {"jobId":"2e3f077a-f4d5-404c-b41e-2dee558e0dbe","lastUpdateDateTime":"2021-10-23T00:42:50Z","createdDateTime":"2021-10-23T00:42:48Z","expirationDateTime":"2021-10-24T00:42:48Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"1","entities":[],"relations":[],"warnings":[]},{"id":"2","entities":[],"relations":[],"warnings":[]},{"id":"3","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '80',
  'apim-request-id',
  '8e01a937-0ed3-4195-9771-f4d43da2c1b2',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:50 GMT'
]);


<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/datasourcecredential_datasource_credential_crud_operations/recording_updates_service_principal_in_keyvault_credential.json<|end_filename|>
{
 "recordings": [
  {
   "method": "PATCH",
   "url": "https://endpoint/metricsadvisor/v1.0/credentials/67b854bd-2b2a-4717-ac7d-a1e975a477ab",
   "query": {},
   "requestBody": "{\"dataSourceCredentialType\":\"ServicePrincipalInKV\",\"dataSourceCredentialName\":\"js-test-servicePrincipalInKVCred-163702813323208109\",\"dataSourceCredentialDescription\":\"updated description\",\"parameters\":{\"keyVaultEndpoint\":\"updated-keyvault-endpoint\",\"keyVaultClientId\":\"updated-keyvault-client-id\",\"keyVaultClientSecret\":\"updated-keyvault-client-secret\",\"servicePrincipalIdNameInKV\":\"updated-service-principal-in-kv\",\"servicePrincipalSecretNameInKV\":\"updated-service-principal-secret-name-in-kv\",\"tenantId\":\"updated-tenant\"}}",
   "status": 200,
   "response": "{\"dataSourceCredentialId\":\"67b854bd-2b2a-4717-ac7d-a1e975a477ab\",\"dataSourceCredentialName\":\"js-test-servicePrincipalInKVCred-163702813323208109\",\"dataSourceCredentialDescription\":\"updated description\",\"dataSourceCredentialType\":\"ServicePrincipalInKV\",\"parameters\":{\"servicePrincipalSecretNameInKV\":\"updated-service-principal-secret-name-in-kv\",\"servicePrincipalIdNameInKV\":\"updated-service-principal-in-kv\",\"tenantId\":\"updated-tenant\",\"keyVaultClientId\":\"updated-keyvault-client-id\",\"keyVaultEndpoint\":\"updated-keyvault-endpoint\"}}",
   "responseHeaders": {
    "apim-request-id": "338dc72d-7877-43df-9941-de42f1f25216",
    "content-length": "532",
    "content-type": "application/json; charset=utf-8",
    "date": "Tue, 16 Nov 2021 02:02:15 GMT",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "x-content-type-options": "nosniff",
    "x-envoy-upstream-service-time": "348",
    "x-request-id": "338dc72d-7877-43df-9941-de42f1f25216"
   }
  }
 ],
 "uniqueTestInfo": {
  "uniqueName": {},
  "newDate": {}
 },
 "hash": "1ac5cda998c5b6613fff1de1b0ffdb92"
}

<|start_filename|>sdk/search/search-documents/recordings/node/searchindexclient_synonymmaps/recording_creates_the_synonymmap_object_using_createorupdatesynonymmap.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "2f40294de994b98bfecbb1b11fe55ad7";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .put(`/synonymmaps('my-azure-synonymmap-3')`, {"name":"my-azure-synonymmap-3","format":"solr","synonyms":"United States, United States of America => USA\nWashington, Wash. => WA"})
  .query(true)
  .reply(201, {"@odata.context":"https://endpoint/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D98244E39969E1\"","name":"my-azure-synonymmap-3","format":"solr","synonyms":"United States, United States of America => USA\nWashington, Wash. => WA","encryptionKey":null}, [
  'Cache-Control',
  'no-cache',
  'Pragma',
  'no-cache',
  'Content-Type',
  'application/json; odata.metadata=minimal',
  'Expires',
  '-1',
  'ETag',
  'W/"0x8D98244E39969E1"',
  'Location',
  "https://endpoint/synonymmaps('my-azure-synonymmap-3')?api-version=2020-06-30-Preview",
  'request-id',
  '5c1a4efd-d583-4a11-ab43-689f2762ebd6',
  'elapsed-time',
  '22',
  'OData-Version',
  '4.0',
  'Preference-Applied',
  'odata.include-annotations="*"',
  'Strict-Transport-Security',
  'max-age=15724800; includeSubDomains',
  'Date',
  'Tue, 28 Sep 2021 05:57:43 GMT',
  'Content-Length',
  '284'
]);

nock('https://endpoint:443', {"encodedQueryParams":true})
  .get(`/synonymmaps('my-azure-synonymmap-3')`)
  .query(true)
  .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195efff1e67a592daf178b6cd5dcfdddf2655bb4d71f8d0c6c6a7441807fdf8f76de1d3c7d78b0b7bf7f7aefe1c34f1f9eeefebe1f51ab65b6c8e9ebc5f576f683759d6f3b58dbf7e8ebf3aa5e6440aca9ca9afed6af1bfae4ab65d1e6b3f4759b11b2a334f833adced3e3455e17d32cfdec28fdeaf5f1efbbfc6ed6cc8be5455b2d47297e1fe39bef1e13d07c39adaf576d512d7faffcfaa347cb7559fe92ff07018c23871c010000"], [
  'Cache-Control',
  'no-cache',
  'Pragma',
  'no-cache',
  'Content-Type',
  'application/json; odata.metadata=minimal',
  'Content-Encoding',
  'gzip',
  'Expires',
  '-1',
  'ETag',
  'W/"0x8D98244E39969E1"',
  'Vary',
  'Accept-Encoding',
  'request-id',
  'f47470e2-64a4-4ddc-bb9c-22d3b212321f',
  'elapsed-time',
  '7',
  'OData-Version',
  '4.0',
  'Preference-Applied',
  'odata.include-annotations="*"',
  'Strict-Transport-Security',
  'max-age=15724800; includeSubDomains',
  'Date',
  'Tue, 28 Sep 2021 05:57:43 GMT',
  'Content-Length',
  '334'
]);

nock('https://endpoint:443', {"encodedQueryParams":true})
  .delete(`/synonymmaps('my-azure-synonymmap-3')`)
  .query(true)
  .reply(204, "", [
  'Cache-Control',
  'no-cache',
  'Pragma',
  'no-cache',
  'Expires',
  '-1',
  'request-id',
  '63016087-5280-473e-9716-3e85998dba74',
  'elapsed-time',
  '11',
  'Strict-Transport-Security',
  'max-age=15724800; includeSubDomains',
  'Date',
  'Tue, 28 Sep 2021 05:57:43 GMT'
]);


<|start_filename|>sdk/formrecognizer/ai-form-recognizer/samples/v4/javascript/analyzeInvoice.js<|end_filename|>
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

/**
 * This sample shows how to extract elements of an invoice from a URL to a file using the prebuilt invoice model.
 *
 * The prebuilt invoice model can return several fields. For a detailed list of the fields supported by the invoice
 * model, see the `Invoice` type in the documentation, or refer to the following link:
 *
 * https://aka.ms/azsdk/formrecognizer/invoicefieldschema
 *
 * @summary extract data from an invoice document
 */

const {
  AzureKeyCredential,
  DocumentAnalysisClient,
  PrebuiltModels
} = require("@azure/ai-form-recognizer");

const dotenv = require("dotenv");
dotenv.config();

async function main() {
  const endpoint = process.env.FORM_RECOGNIZER_ENDPOINT ?? "<endpoint>";
  const credential = new AzureKeyCredential(process.env.FORM_RECOGNIZER_API_KEY ?? "<api key>");

  const client = new DocumentAnalysisClient(endpoint, credential);

  const poller = await client.beginAnalyzeDocuments(
    PrebuiltModels.Invoice,
    // The form recognizer service will access the following URL to an invoice image and extract data from it
    "https://raw.githubusercontent.com/Azure/azure-sdk-for-js/main/sdk/formrecognizer/ai-form-recognizer/assets/invoice/sample_invoice.jpg"
  );

  const {
    documents: [result]
  } = await poller.pollUntilDone();

  // Use of PrebuiltModels.Receipt above (rather than the raw model ID), adds strong typing of the model's output
  if (result) {
    const invoice = result.fields;

    // The invoice model has many fields, and we will only show some of them for the sake of the example
    console.log("Vendor Name:", invoice.vendorName?.value);
    console.log("Customer Name:", invoice.customerName?.value);
    console.log("Invoice Date:", invoice.invoiceDate?.value);
    console.log("Due Date:", invoice.dueDate?.value);

    console.log("Items:");
    for (const { properties: item } of invoice.items?.values ?? []) {
      console.log("-", item.productCode?.value ?? "<no product code>");
      console.log("  Description:", item.description?.value);
      console.log("  Quantity:", item.quantity?.value);
      console.log("  Date:", item.date?.value);
      console.log("  Unit:", item.unit?.value);
      console.log("  Unit Price:", item.unitPrice?.value);
      console.log("  Tax:", item.tax?.value);
      console.log("  Amount:", item.amount?.value);
    }

    console.log("Subtotal:", invoice.subTotal?.value);
    console.log("Previous Unpaid Balance:", invoice.previousUnpaidBalance?.value);
    console.log("Tax:", invoice.totalTax?.value);
    console.log("Amount Due:", invoice.amountDue?.value);
  } else {
    throw new Error("Expected at least one receipt in the result.");
  }
}

main().catch((error) => {
  console.error("An error occurred:", error);
  process.exit(1);
});


<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/node/datasourcecredential_datasource_credential_crud_operations/recording_creates_service_principal_credential.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "2e4fa53335bfc4a276c6308e83b59eb2";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .post('/metricsadvisor/v1.0/credentials', {"dataSourceCredentialType":"ServicePrincipal","dataSourceCredentialName":"js-test-servicePrincipalCred-163702281643106518","dataSourceCredentialDescription":"used for testing purposes only","parameters":{"clientId":"client-id","clientSecret":"client-secret","tenantId":"tenant-id"}})
  .reply(201, "", [
  'Content-Length',
  '0',
  'Location',
  'https://endpoint/metricsadvisor/v1.0/credentials/d92566c8-6a08-4ddc-917f-120139250878',
  'x-request-id',
  'd7b68223-916f-47db-a868-9bfe11e16f08',
  'x-envoy-upstream-service-time',
  '465',
  'apim-request-id',
  'd7b68223-916f-47db-a868-9bfe11e16f08',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:33:38 GMT'
]);

nock('https://endpoint:443', {"encodedQueryParams":true})
  .get('/metricsadvisor/v1.0/credentials/d92566c8-6a08-4ddc-917f-120139250878')
  .reply(200, {"dataSourceCredentialId":"d92566c8-6a08-4ddc-917f-120139250878","dataSourceCredentialName":"js-test-servicePrincipalCred-163702281643106518","dataSourceCredentialDescription":"used for testing purposes only","dataSourceCredentialType":"ServicePrincipal","parameters":{"clientId":"client-id","tenantId":"tenant-id"}}, [
  'Content-Length',
  '316',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  '2f7c8286-6d82-430f-8935-eecafc3ea566',
  'x-envoy-upstream-service-time',
  '108',
  'apim-request-id',
  '2f7c8286-6d82-430f-8935-eecafc3ea566',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:33:38 GMT'
]);


<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/node/apikey_textanalyticsclient_lros_analyze/recording_unique_multiple_actions_per_type_are_allowed.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "5eb1f48c0b2ff864b7682bef634467f1";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint', {"encodedQueryParams":true})
  .post('/text/analytics/v3.2-preview.2/analyze', {"analysisInput":{"documents":[{"id":"1","text":"I will go to the park."}]},"tasks":{"entityRecognitionPiiTasks":[{"parameters":{"model-version":"latest","stringIndexType":"Utf16CodeUnit"},"taskName":"action1"},{"parameters":{"model-version":"latest","stringIndexType":"Utf16CodeUnit"},"taskName":"action2"}]}})
  .reply(202, "", [
  'Transfer-Encoding',
  'chunked',
  'operation-location',
  'https://endpoint/text/analytics/v3.2-preview.2/analyze/jobs/7e900bc7-2c19-432c-b23f-34b2cbb23dd8',
  'x-envoy-upstream-service-time',
  '170',
  'apim-request-id',
  '8ea77591-e2c2-4dba-93e3-2692e359b96d',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Thu, 28 Oct 2021 02:46:53 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/7e900bc7-2c19-432c-b23f-34b2cbb23dd8')
  .query(true)
  .reply(200, {"jobId":"7e900bc7-2c19-432c-b23f-34b2cbb23dd8","lastUpdateDateTime":"2021-10-28T02:46:53Z","createdDateTime":"2021-10-28T02:46:53Z","expirationDateTime":"2021-10-29T02:46:53Z","status":"notStarted","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '31',
  'apim-request-id',
  '8da5cba7-bdcf-47ac-ae43-e9f472e2b8d4',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Thu, 28 Oct 2021 02:46:53 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/7e900bc7-2c19-432c-b23f-34b2cbb23dd8')
  .query(true)
  .reply(200, {"jobId":"7e900bc7-2c19-432c-b23f-34b2cbb23dd8","lastUpdateDateTime":"2021-10-28T02:46:53Z","createdDateTime":"2021-10-28T02:46:53Z","expirationDateTime":"2021-10-29T02:46:53Z","status":"notStarted","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '27',
  'apim-request-id',
  'cabc24a9-9ba5-49b5-85fb-214a6aab6a23',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Thu, 28 Oct 2021 02:46:53 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/7e900bc7-2c19-432c-b23f-34b2cbb23dd8')
  .query(true)
  .reply(200, {"jobId":"7e900bc7-2c19-432c-b23f-34b2cbb23dd8","lastUpdateDateTime":"2021-10-28T02:46:53Z","createdDateTime":"2021-10-28T02:46:53Z","expirationDateTime":"2021-10-29T02:46:53Z","status":"running","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '8',
  'apim-request-id',
  '2ff34ab7-8312-4799-a87c-8c2b27e0cb4f',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Thu, 28 Oct 2021 02:46:55 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/7e900bc7-2c19-432c-b23f-34b2cbb23dd8')
  .query(true)
  .reply(200, {"jobId":"7e900bc7-2c19-432c-b23f-34b2cbb23dd8","lastUpdateDateTime":"2021-10-28T02:46:53Z","createdDateTime":"2021-10-28T02:46:53Z","expirationDateTime":"2021-10-29T02:46:53Z","status":"running","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '14',
  'apim-request-id',
  '5db68b86-fa84-4f27-9821-0b7621c4ed05',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Thu, 28 Oct 2021 02:46:57 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/7e900bc7-2c19-432c-b23f-34b2cbb23dd8')
  .query(true)
  .reply(200, {"jobId":"7e900bc7-2c19-432c-b23f-34b2cbb23dd8","lastUpdateDateTime":"2021-10-28T02:46:53Z","createdDateTime":"2021-10-28T02:46:53Z","expirationDateTime":"2021-10-29T02:46:53Z","status":"running","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":2,"total":2}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '8',
  'apim-request-id',
  'f731bd0e-9e5f-4f89-910d-367f105617d7',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Thu, 28 Oct 2021 02:46:59 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/7e900bc7-2c19-432c-b23f-34b2cbb23dd8')
  .query(true)
  .reply(200, {"jobId":"7e900bc7-2c19-432c-b23f-34b2cbb23dd8","lastUpdateDateTime":"2021-10-28T02:47:01Z","createdDateTime":"2021-10-28T02:46:53Z","expirationDateTime":"2021-10-29T02:46:53Z","status":"running","errors":[],"tasks":{"completed":1,"failed":0,"inProgress":1,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-28T02:47:01.4399609Z","taskName":"action1","state":"succeeded","results":{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '56',
  'apim-request-id',
  '0c60e344-8f99-448d-ad8b-83b277e463f1',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Thu, 28 Oct 2021 02:47:01 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/7e900bc7-2c19-432c-b23f-34b2cbb23dd8')
  .query(true)
  .reply(200, {"jobId":"7e900bc7-2c19-432c-b23f-34b2cbb23dd8","lastUpdateDateTime":"2021-10-28T02:47:01Z","createdDateTime":"2021-10-28T02:46:53Z","expirationDateTime":"2021-10-29T02:46:53Z","status":"succeeded","errors":[],"tasks":{"completed":2,"failed":0,"inProgress":0,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-28T02:47:01.4399609Z","taskName":"action1","state":"succeeded","results":{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}},{"lastUpdateDateTime":"2021-10-28T02:47:01.8640821Z","taskName":"action2","state":"succeeded","results":{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '72',
  'apim-request-id',
  '24905b2b-9769-4128-a4f2-0a532859b201',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Thu, 28 Oct 2021 02:47:03 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/7e900bc7-2c19-432c-b23f-34b2cbb23dd8')
  .query(true)
  .reply(200, {"jobId":"7e900bc7-2c19-432c-b23f-34b2cbb23dd8","lastUpdateDateTime":"2021-10-28T02:47:01Z","createdDateTime":"2021-10-28T02:46:53Z","expirationDateTime":"2021-10-29T02:46:53Z","status":"succeeded","errors":[],"tasks":{"completed":2,"failed":0,"inProgress":0,"total":2,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-28T02:47:01.4399609Z","taskName":"action1","state":"succeeded","results":{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}},{"lastUpdateDateTime":"2021-10-28T02:47:01.8640821Z","taskName":"action2","state":"succeeded","results":{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '79',
  'apim-request-id',
  '2654baa7-a5ab-43ed-a0b0-8d902dafa618',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Thu, 28 Oct 2021 02:47:03 GMT'
]);


<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/browsers/apikey_textanalyticsclient_fast_tests_analyzesentiment/recording_client_gets_positive_mined_assessments.json<|end_filename|>
{
 "recordings": [
  {
   "method": "POST",
   "url": "https://endpoint/text/analytics/v3.2-preview.2/sentiment",
   "query": {
    "stringIndexType": "Utf16CodeUnit",
    "opinionMining": "true"
   },
   "requestBody": "{\"documents\":[{\"id\":\"0\",\"text\":\"It has a sleek premium aluminum design that makes it beautiful to look at.\",\"language\":\"en\"}]}",
   "status": 200,
   "response": "{\"documents\":[{\"id\":\"0\",\"sentiment\":\"positive\",\"confidenceScores\":{\"positive\":0.98,\"neutral\":0.02,\"negative\":0.0},\"sentences\":[{\"sentiment\":\"positive\",\"confidenceScores\":{\"positive\":0.98,\"neutral\":0.02,\"negative\":0.0},\"offset\":0,\"length\":74,\"text\":\"It has a sleek premium aluminum design that makes it beautiful to look at.\",\"targets\":[{\"sentiment\":\"positive\",\"confidenceScores\":{\"positive\":1.0,\"negative\":0.0},\"offset\":32,\"length\":6,\"text\":\"design\",\"relations\":[{\"relationType\":\"assessment\",\"ref\":\"#/documents/0/sentences/0/assessments/0\"},{\"relationType\":\"assessment\",\"ref\":\"#/documents/0/sentences/0/assessments/1\"}]}],\"assessments\":[{\"sentiment\":\"positive\",\"confidenceScores\":{\"positive\":1.0,\"negative\":0.0},\"offset\":9,\"length\":5,\"text\":\"sleek\",\"isNegated\":false},{\"sentiment\":\"positive\",\"confidenceScores\":{\"positive\":1.0,\"negative\":0.0},\"offset\":15,\"length\":7,\"text\":\"premium\",\"isNegated\":false}]}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-04-01\"}",
   "responseHeaders": {
    "apim-request-id": "5938bb20-a2ad-412f-a780-c6fd11982709",
    "content-type": "application/json; charset=utf-8",
    "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1",
    "date": "Sat, 23 Oct 2021 00:50:08 GMT",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "x-content-type-options": "nosniff",
    "x-envoy-upstream-service-time": "101"
   }
  }
 ],
 "uniqueTestInfo": {
  "uniqueName": {},
  "newDate": {}
 },
 "hash": "aec5e48e164c2a8b36c1b91efb4e6a75"
}

<|start_filename|>sdk/search/search-documents/recordings/node/searchclient/recording_autocomplete_returns_zero_results_for_invalid_query.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "e6415b3db59c27c8d41f5b8e72174f7d";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .post(`/indexes('hotel-live-test1')/docs/search.post.autocomplete`, {"search":"garbxyz","suggesterName":"sg"})
  .query(true)
  .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bdefff92ff0742ea40440c000000"], [
  'Cache-Control',
  'no-cache',
  'Pragma',
  'no-cache',
  'Content-Type',
  'application/json; odata.metadata=none',
  'Content-Encoding',
  'gzip',
  'Expires',
  '-1',
  'Vary',
  'Accept-Encoding',
  'request-id',
  '967111f7-2859-4a44-9a63-800a6b2b08c5',
  'elapsed-time',
  '13',
  'OData-Version',
  '4.0',
  'Preference-Applied',
  'odata.include-annotations="*"',
  'Strict-Transport-Security',
  'max-age=15724800; includeSubDomains',
  'Date',
  'Tue, 28 Sep 2021 05:51:42 GMT',
  'Content-Length',
  '133'
]);


<|start_filename|>sdk/formrecognizer/ai-form-recognizer/recordings/node/api_key_formrecognizerclient_nodejs_only_identitydocuments/recording_invalid_locale_throws.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "3ddb433971e37a745b11c463a86f33fa";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .post('/formrecognizer/documentModels/prebuilt-idDocument:analyze', {"urlSource":"https://storageaccount/testingdata/license.jpg?sastoken"})
  .query(true)
  .reply(400, {"error":{"code":"InvalidArgument","message":"Invalid argument.","innererror":{"code":"InvalidParameter","message":"The parameter Locale is invalid: The language code is invalid or not supported."}}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '90',
  'apim-request-id',
  '8dfe34cf-2427-4fe1-b096-c61ac2f6421e',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Mon, 04 Oct 2021 18:23:50 GMT'
]);


<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/node/api_key_metricsadvisorclient_hooks/recording_creates_email_hook.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "6376e4be60f1e0ab33154cc794cd4a79";

module.exports.testInfo = {"uniqueName":{"js-test-emailHook-":"js-test-emailHook-163702282957003574","js-test-webHook-":"js-test-webHook-163702282957004992"},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .post('/metricsadvisor/v1.0/hooks', {"hookType":"Email","hookName":"js-test-emailHook-163702282957003574","description":"description","hookParameter":{"toList":["<EMAIL>"]}})
  .reply(201, "", [
  'Content-Length',
  '0',
  'Location',
  'https://endpoint/metricsadvisor/v1.0/hooks/7ba3c3b1-f3d3-4598-ae87-ac584020c641',
  'x-request-id',
  'f16f8b91-d49b-42c7-814b-bc2bb6da6675',
  'x-envoy-upstream-service-time',
  '381',
  'apim-request-id',
  'f16f8b91-d49b-42c7-814b-bc2bb6da6675',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:33:49 GMT'
]);

nock('https://endpoint:443', {"encodedQueryParams":true})
  .get('/metricsadvisor/v1.0/hooks/7ba3c3b1-f3d3-4598-ae87-ac584020c641')
  .reply(200, {"hookId":"7ba3c3b1-f3d3-4598-ae87-ac584020c641","hookName":"js-test-emailHook-163702282957003574","hookType":"Email","externalLink":"","description":"description","admins":["<EMAIL>"],"hookParameter":{"toList":["<EMAIL>"]}}, [
  'Content-Length',
  '247',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  'f6527f2b-1790-4c8b-8776-b3e478ce6818',
  'x-envoy-upstream-service-time',
  '162',
  'apim-request-id',
  'f6527f2b-1790-4c8b-8776-b3e478ce6818',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:33:49 GMT'
]);


<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/node/apikey_textanalyticsclient_lros_health/recording_cancelled.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "046726cf9dbc05307b6526966952ecfa";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint', {"encodedQueryParams":true})
  .post('/text/analytics/v3.2-preview.2/entities/health/jobs', {"documents":[{"id":"1","text":"Patient does not suffer from high blood pressure.","language":"en"},{"id":"2","text":"Prescribed 100mg ibuprofen, taken twice daily.","language":"en"}]})
  .query(true)
  .reply(202, "", [
  'Transfer-Encoding',
  'chunked',
  'operation-location',
  'https://endpoint/text/analytics/v3.2-preview.1/entities/health/jobs/9bb2aa4b-5abd-4364-925f-3dff9988eedc',
  'x-envoy-upstream-service-time',
  '178',
  'apim-request-id',
  '9923a5de-0f3d-494a-bb27-7ca6bd0a16aa',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:43:02 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/9bb2aa4b-5abd-4364-925f-3dff9988eedc')
  .query(true)
  .reply(200, {"jobId":"9bb2aa4b-5abd-4364-925f-3dff9988eedc","lastUpdateDateTime":"2021-10-23T00:43:03Z","createdDateTime":"2021-10-23T00:43:02Z","expirationDateTime":"2021-10-24T00:43:02Z","status":"notStarted","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '7',
  'apim-request-id',
  'eff0bf47-3f71-463d-98e0-e8e12914f291',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:43:02 GMT'
]);


<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/api_key_metricsadvisoradministrationclient_detection_and_alert_configs_crud_operations/recording_creates_an_alert_configuration.json<|end_filename|>
{
 "recordings": [
  {
   "method": "POST",
   "url": "https://endpoint/metricsadvisor/v1.0/alert/anomaly/configurations",
   "query": {},
   "requestBody": "{\"name\":\"js-alert-config-163702806035805058\",\"description\":\"alerting config description\",\"crossMetricsOperator\":\"AND\",\"splitAlertByDimensions\":[],\"hookIds\":[],\"metricAlertingConfigurations\":[{\"anomalyDetectionConfigurationId\":\"ed1e4cba-5c2e-41b9-80d2-fecd1db3f00d\",\"anomalyScopeType\":\"All\"},{\"anomalyDetectionConfigurationId\":\"ed1e4cba-5c2e-41b9-80d2-fecd1db3f00d\",\"anomalyScopeType\":\"All\"}]}",
   "status": 201,
   "response": "",
   "responseHeaders": {
    "apim-request-id": "92986445-9d05-4ba5-bed9-cf4777f47652",
    "content-length": "0",
    "date": "Tue, 16 Nov 2021 02:01:00 GMT",
    "location": "https://endpoint/metricsadvisor/v1.0/alert/anomaly/configurations/0dd6084a-a870-4ca3-80a0-e4447756e9c7",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "x-content-type-options": "nosniff",
    "x-envoy-upstream-service-time": "148",
    "x-request-id": "92986445-9d05-4ba5-bed9-cf4777f47652"
   }
  },
  {
   "method": "GET",
   "url": "https://endpoint/metricsadvisor/v1.0/alert/anomaly/configurations/0dd6084a-a870-4ca3-80a0-e4447756e9c7",
   "query": {},
   "requestBody": null,
   "status": 200,
   "response": "{\"anomalyAlertingConfigurationId\":\"0dd6084a-a870-4ca3-80a0-e4447756e9c7\",\"name\":\"js-alert-config-163702806035805058\",\"description\":\"alerting config description\",\"crossMetricsOperator\":\"AND\",\"splitAlertByDimensions\":[],\"hookIds\":[],\"metricAlertingConfigurations\":[{\"anomalyDetectionConfigurationId\":\"ed1e4cba-5c2e-41b9-80d2-fecd1db3f00d\",\"anomalyScopeType\":\"All\",\"negationOperation\":false},{\"anomalyDetectionConfigurationId\":\"ed1e4cba-5c2e-41b9-80d2-fecd1db3f00d\",\"anomalyScopeType\":\"All\",\"negationOperation\":false}]}",
   "responseHeaders": {
    "apim-request-id": "62becc63-df22-41f6-ba67-38d725974a2f",
    "content-length": "516",
    "content-type": "application/json; charset=utf-8",
    "date": "Tue, 16 Nov 2021 02:01:00 GMT",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "x-content-type-options": "nosniff",
    "x-envoy-upstream-service-time": "120",
    "x-request-id": "62becc63-df22-41f6-ba67-38d725974a2f"
   }
  }
 ],
 "uniqueTestInfo": {
  "uniqueName": {
   "js-alert-config-": "js-alert-config-163702806035805058"
  },
  "newDate": {}
 },
 "hash": "fdb13e9cba7d8a0c4e6b4b30f0584779"
}

<|start_filename|>sdk/formrecognizer/ai-form-recognizer/samples/v4/javascript/listModels.js<|end_filename|>
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

/**
 * This sample shows how to iterate over the models in a resource. This will include both custom and prebuilt models.
 *
 * @summary iterate over the models in a resource
 */

const {
  AzureKeyCredential,
  DocumentModelAdministrationClient
} = require("@azure/ai-form-recognizer");

const dotenv = require("dotenv");
dotenv.config();

async function main() {
  const endpoint = process.env.FORM_RECOGNIZER_ENDPOINT ?? "<endpoint>";
  const credential = new AzureKeyCredential(process.env.FORM_RECOGNIZER_API_KEY ?? "<api key>");

  const client = new DocumentModelAdministrationClient(endpoint, credential);

  for await (const modelSummary of client.listModels()) {
    console.log("- ID", modelSummary.modelId);
    console.log("  Created:", modelSummary.createdDateTime);
    console.log("  Description: ", modelSummary.description ?? "<none>");

    // The model summary does not include `docTypes`, so we must additionally call `getModel` to retrieve them
    const { docTypes } = await client.getModel(modelSummary.modelId);

    console.log("  Document Types:");
    for (const docType of Object.keys(docTypes ?? {})) {
      console.log("  -", docType);
    }
  }
}

main().catch((error) => {
  console.error("An error occurred:", error);
  process.exit(1);
});


<|start_filename|>sdk/tables/data-tables/recordings/node/tableserviceclient_sasconnectionstring_listtables/recording_should_list_a_specific_page_with_continuationtoken.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "e362ada74cb298d39243b965b65024cc";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .get('/Tables')
  .query(true)
  .reply(200, {"odata.metadata":"https://fakeaccount.table.core.windows.net/$metadata#Tables","value":[{"TableName":"byPageTest"},{"TableName":"CreateSimpleEntityBatchPerf"}]}, [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json;odata=minimalmetadata;streaming=true;charset=utf-8',
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '1030341d-8002-0001-6243-c58042000000',
  'x-ms-client-request-id',
  '560a9fd3-fb61-4d25-ab42-05b357959905',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'x-ms-continuation-NextTableName',
  '1!44!Y3JlYXRldGFibGVuZXcBMDFkNzY2YmM1MmE5N2JhMA--',
  'Access-Control-Expose-Headers',
  'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,x-ms-continuation-NextTableName,Content-Type,Content-Length,Date,Transfer-Encoding',
  'Access-Control-Allow-Origin',
  '*',
  'Date',
  'Tue, 19 Oct 2021 23:46:02 GMT'
]);

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .get('/Tables')
  .query(true)
  .reply(200, {"odata.metadata":"https://fakeaccount.table.core.windows.net/$metadata#Tables","value":[{"TableName":"createTableNew"},{"TableName":"createTableNew2"}]}, [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json;odata=minimalmetadata;streaming=true;charset=utf-8',
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '10303423-8002-0001-6843-c58042000000',
  'x-ms-client-request-id',
  'd76bb7f6-f16f-402f-8936-c75a0389d456',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'x-ms-continuation-NextTableName',
  '1!44!Y3JlYXRldGFibGVvbGQBMDFkNzY2YmQ2ZWMzODZlYQ--',
  'Access-Control-Expose-Headers',
  'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,x-ms-continuation-NextTableName,Content-Type,Content-Length,Date,Transfer-Encoding',
  'Access-Control-Allow-Origin',
  '*',
  'Date',
  'Tue, 19 Oct 2021 23:46:02 GMT'
]);

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .get('/Tables')
  .query(true)
  .reply(200, {"odata.metadata":"https://fakeaccount.table.core.windows.net/$metadata#Tables","value":[{"TableName":"createTableOld"},{"TableName":"doublesTest"}]}, [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json;odata=minimalmetadata;streaming=true;charset=utf-8',
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '1030342b-8002-0001-7043-c58042000000',
  'x-ms-client-request-id',
  '572aa7b7-7f26-4fd7-9a58-fd387e9bc90b',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'x-ms-continuation-NextTableName',
  '1!72!bGlzdHRhYmxldGVzdHNhc2Nvbm5lY3Rpb25zdHJpbmdub2RlMAEwMWQ3YzU0Mzc5NWYxYTE4',
  'Access-Control-Expose-Headers',
  'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,x-ms-continuation-NextTableName,Content-Type,Content-Length,Date,Transfer-Encoding',
  'Access-Control-Allow-Origin',
  '*',
  'Date',
  'Tue, 19 Oct 2021 23:46:02 GMT'
]);

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .get('/Tables')
  .query(true)
  .reply(200, {"odata.metadata":"https://fakeaccount.table.core.windows.net/$metadata#Tables","value":[{"TableName":"ListTableTestSASConnectionStringnode0"},{"TableName":"ListTableTestSASConnectionStringnode1"}]}, [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json;odata=minimalmetadata;streaming=true;charset=utf-8',
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '1030343e-8002-0001-0243-c58042000000',
  'x-ms-client-request-id',
  'e9d96fa6-4f17-4307-a68a-c78e8bc88b4a',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'x-ms-continuation-NextTableName',
  '1!76!bGlzdHRhYmxldGVzdHNhc2Nvbm5lY3Rpb25zdHJpbmdub2RlMTABMDFkN2M1NDM3OTlhNThkOA--',
  'Access-Control-Expose-Headers',
  'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,x-ms-continuation-NextTableName,Content-Type,Content-Length,Date,Transfer-Encoding',
  'Access-Control-Allow-Origin',
  '*',
  'Date',
  'Tue, 19 Oct 2021 23:46:02 GMT'
]);

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .get('/Tables')
  .query(true)
  .reply(200, {"odata.metadata":"https://fakeaccount.table.core.windows.net/$metadata#Tables","value":[{"TableName":"ListTableTestSASConnectionStringnode10"},{"TableName":"ListTableTestSASConnectionStringnode11"}]}, [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json;odata=minimalmetadata;streaming=true;charset=utf-8',
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '1030344d-8002-0001-1143-c58042000000',
  'x-ms-client-request-id',
  '5bad2345-6bde-47e0-a9e4-860c3b6d26c4',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'x-ms-continuation-NextTableName',
  '1!76!bGlzdHRhYmxldGVzdHNhc2Nvbm5lY3Rpb25zdHJpbmdub2RlMTIBMDFkN2M1NDM3OWE2NjhlMQ--',
  'Access-Control-Expose-Headers',
  'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,x-ms-continuation-NextTableName,Content-Type,Content-Length,Date,Transfer-Encoding',
  'Access-Control-Allow-Origin',
  '*',
  'Date',
  'Tue, 19 Oct 2021 23:46:03 GMT'
]);

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .get('/Tables')
  .query(true)
  .reply(200, {"odata.metadata":"https://fakeaccount.table.core.windows.net/$metadata#Tables","value":[{"TableName":"ListTableTestSASConnectionStringnode12"},{"TableName":"ListTableTestSASConnectionStringnode13"}]}, [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json;odata=minimalmetadata;streaming=true;charset=utf-8',
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '10303456-8002-0001-1a43-c58042000000',
  'x-ms-client-request-id',
  '54ffe0a8-71e3-4f7d-a0fc-ca14652da82b',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'x-ms-continuation-NextTableName',
  '1!76!bGlzdHRhYmxldGVzdHNhc2Nvbm5lY3Rpb25zdHJpbmdub2RlMTQBMDFkN2M1NDM3OWIxMTkyYQ--',
  'Access-Control-Expose-Headers',
  'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,x-ms-continuation-NextTableName,Content-Type,Content-Length,Date,Transfer-Encoding',
  'Access-Control-Allow-Origin',
  '*',
  'Date',
  'Tue, 19 Oct 2021 23:46:03 GMT'
]);

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .get('/Tables')
  .query(true)
  .reply(200, {"odata.metadata":"https://fakeaccount.table.core.windows.net/$metadata#Tables","value":[{"TableName":"ListTableTestSASConnectionStringnode14"},{"TableName":"ListTableTestSASConnectionStringnode15"}]}, [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json;odata=minimalmetadata;streaming=true;charset=utf-8',
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '10303462-8002-0001-2543-c58042000000',
  'x-ms-client-request-id',
  'bd0b55a4-485e-4f58-af00-fed920ed838e',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'x-ms-continuation-NextTableName',
  '1!76!bGlzdHRhYmxldGVzdHNhc2Nvbm5lY3Rpb25zdHJpbmdub2RlMTYBMDFkN2M1NDM3OWJjM2ViNw--',
  'Access-Control-Expose-Headers',
  'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,x-ms-continuation-NextTableName,Content-Type,Content-Length,Date,Transfer-Encoding',
  'Access-Control-Allow-Origin',
  '*',
  'Date',
  'Tue, 19 Oct 2021 23:46:03 GMT'
]);

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .get('/Tables')
  .query(true)
  .reply(200, {"odata.metadata":"https://fakeaccount.table.core.windows.net/$metadata#Tables","value":[{"TableName":"ListTableTestSASConnectionStringnode16"},{"TableName":"ListTableTestSASConnectionStringnode17"}]}, [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json;odata=minimalmetadata;streaming=true;charset=utf-8',
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '10303470-8002-0001-3343-c58042000000',
  'x-ms-client-request-id',
  '68179e8b-25ae-4a50-85e3-a0a85fba0ab2',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'x-ms-continuation-NextTableName',
  '1!76!bGlzdHRhYmxldGVzdHNhc2Nvbm5lY3Rpb25zdHJpbmdub2RlMTgBMDFkN2M1NDM3OWM2ZWVmZg--',
  'Access-Control-Expose-Headers',
  'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,x-ms-continuation-NextTableName,Content-Type,Content-Length,Date,Transfer-Encoding',
  'Access-Control-Allow-Origin',
  '*',
  'Date',
  'Tue, 19 Oct 2021 23:46:03 GMT'
]);

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .get('/Tables')
  .query(true)
  .reply(200, {"odata.metadata":"https://fakeaccount.table.core.windows.net/$metadata#Tables","value":[{"TableName":"ListTableTestSASConnectionStringnode18"},{"TableName":"ListTableTestSASConnectionStringnode19"}]}, [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json;odata=minimalmetadata;streaming=true;charset=utf-8',
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '10303485-8002-0001-4343-c58042000000',
  'x-ms-client-request-id',
  'c8ef179b-7985-425c-bcb5-9345ad978510',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'x-ms-continuation-NextTableName',
  '1!72!bGlzdHRhYmxldGVzdHNhc2Nvbm5lY3Rpb25zdHJpbmdub2RlMgEwMWQ3YzU0Mzc5NmIyYTJi',
  'Access-Control-Expose-Headers',
  'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,x-ms-continuation-NextTableName,Content-Type,Content-Length,Date,Transfer-Encoding',
  'Access-Control-Allow-Origin',
  '*',
  'Date',
  'Tue, 19 Oct 2021 23:46:03 GMT'
]);

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .get('/Tables')
  .query(true)
  .reply(200, {"odata.metadata":"https://fakeaccount.table.core.windows.net/$metadata#Tables","value":[{"TableName":"ListTableTestSASConnectionStringnode2"},{"TableName":"ListTableTestSASConnectionStringnode3"}]}, [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json;odata=minimalmetadata;streaming=true;charset=utf-8',
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '1030348e-8002-0001-4c43-c58042000000',
  'x-ms-client-request-id',
  '781c904f-72ae-43ab-bc58-5e174fb9f905',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'x-ms-continuation-NextTableName',
  '1!72!bGlzdHRhYmxldGVzdHNhc2Nvbm5lY3Rpb25zdHJpbmdub2RlNAEwMWQ3YzU0Mzc5NzViMzU4',
  'Access-Control-Expose-Headers',
  'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,x-ms-continuation-NextTableName,Content-Type,Content-Length,Date,Transfer-Encoding',
  'Access-Control-Allow-Origin',
  '*',
  'Date',
  'Tue, 19 Oct 2021 23:46:03 GMT'
]);

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .get('/Tables')
  .query(true)
  .reply(200, {"odata.metadata":"https://fakeaccount.table.core.windows.net/$metadata#Tables","value":[{"TableName":"ListTableTestSASConnectionStringnode4"},{"TableName":"ListTableTestSASConnectionStringnode5"}]}, [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json;odata=minimalmetadata;streaming=true;charset=utf-8',
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '10303496-8002-0001-5443-c58042000000',
  'x-ms-client-request-id',
  'd927b604-8e63-47de-a2c1-e4ff7003fd2f',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'x-ms-continuation-NextTableName',
  '1!72!bGlzdHRhYmxldGVzdHNhc2Nvbm5lY3Rpb25zdHJpbmdub2RlNgEwMWQ3YzU0Mzc5ODBkOGU1',
  'Access-Control-Expose-Headers',
  'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,x-ms-continuation-NextTableName,Content-Type,Content-Length,Date,Transfer-Encoding',
  'Access-Control-Allow-Origin',
  '*',
  'Date',
  'Tue, 19 Oct 2021 23:46:03 GMT'
]);

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .get('/Tables')
  .query(true)
  .reply(200, {"odata.metadata":"https://fakeaccount.table.core.windows.net/$metadata#Tables","value":[{"TableName":"ListTableTestSASConnectionStringnode6"},{"TableName":"ListTableTestSASConnectionStringnode7"}]}, [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json;odata=minimalmetadata;streaming=true;charset=utf-8',
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '1030349e-8002-0001-5c43-c58042000000',
  'x-ms-client-request-id',
  '266ff38d-6cfd-409d-9586-2ae0ec0a9074',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'x-ms-continuation-NextTableName',
  '1!72!bGlzdHRhYmxldGVzdHNhc2Nvbm5lY3Rpb25zdHJpbmdub2RlOAEwMWQ3YzU0Mzc5OGU0OGM1',
  'Access-Control-Expose-Headers',
  'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,x-ms-continuation-NextTableName,Content-Type,Content-Length,Date,Transfer-Encoding',
  'Access-Control-Allow-Origin',
  '*',
  'Date',
  'Tue, 19 Oct 2021 23:46:03 GMT'
]);

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .get('/Tables')
  .query(true)
  .reply(200, {"odata.metadata":"https://fakeaccount.table.core.windows.net/$metadata#Tables","value":[{"TableName":"ListTableTestSASConnectionStringnode8"},{"TableName":"ListTableTestSASConnectionStringnode9"}]}, [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json;odata=minimalmetadata;streaming=true;charset=utf-8',
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '103034a6-8002-0001-6343-c58042000000',
  'x-ms-client-request-id',
  '0eb415b9-e9a4-4d49-930d-4785577f854a',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'x-ms-continuation-NextTableName',
  '1!64!bGlzdHRhYmxldGVzdHNhc3Rva2VuYnJvd3NlcjABMDFkN2M1NDM2NjZkOGYzMw--',
  'Access-Control-Expose-Headers',
  'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,x-ms-continuation-NextTableName,Content-Type,Content-Length,Date,Transfer-Encoding',
  'Access-Control-Allow-Origin',
  '*',
  'Date',
  'Tue, 19 Oct 2021 23:46:03 GMT'
]);

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .get('/Tables')
  .query(true)
  .reply(200, {"odata.metadata":"https://fakeaccount.table.core.windows.net/$metadata#Tables","value":[{"TableName":"TestChars"},{"TableName":"TestChars2"}]}, [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json;odata=minimalmetadata;streaming=true;charset=utf-8',
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '103034ae-8002-0001-6b43-c58042000000',
  'x-ms-client-request-id',
  '368d19b6-7a5b-457e-86c5-34396f2d2ba5',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'x-ms-continuation-NextTableName',
  '1!36!dGVzdGNoYXJzMwEwMWQ3YThkYWYwYjJiYjlj',
  'Access-Control-Expose-Headers',
  'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,x-ms-continuation-NextTableName,Content-Type,Content-Length,Date,Transfer-Encoding',
  'Access-Control-Allow-Origin',
  '*',
  'Date',
  'Tue, 19 Oct 2021 23:46:03 GMT'
]);

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .get('/Tables')
  .query(true)
  .reply(200, {"odata.metadata":"https://fakeaccount.table.core.windows.net/$metadata#Tables","value":[{"TableName":"TestChars3"},{"TableName":"testTable"}]}, [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json;odata=minimalmetadata;streaming=true;charset=utf-8',
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '103034b6-8002-0001-7243-c58042000000',
  'x-ms-client-request-id',
  'b3905a51-3f9b-4c4e-9d9c-de7a39d58ddc',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'x-ms-continuation-NextTableName',
  '1!68!dGVzdHRhYmxlc2FzY29ubmVjdGlvbnN0cmluZ25vZGUBMDFkN2M1NDM3OTRmMTFiNw--',
  'Access-Control-Expose-Headers',
  'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,x-ms-continuation-NextTableName,Content-Type,Content-Length,Date,Transfer-Encoding',
  'Access-Control-Allow-Origin',
  '*',
  'Date',
  'Tue, 19 Oct 2021 23:46:03 GMT'
]);

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .get('/Tables')
  .query(true)
  .reply(200, {"odata.metadata":"https://fakeaccount.table.core.windows.net/$metadata#Tables","value":[{"TableName":"TestTestTest"}]}, [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json;odata=minimalmetadata;streaming=true;charset=utf-8',
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '103034be-8002-0001-7a43-c58042000000',
  'x-ms-client-request-id',
  'f5497646-3e9c-479c-b678-7a290cf7298f',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'Access-Control-Expose-Headers',
  'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,Content-Type,Content-Length,Date,Transfer-Encoding',
  'Access-Control-Allow-Origin',
  '*',
  'Date',
  'Tue, 19 Oct 2021 23:46:03 GMT'
]);

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .get('/Tables')
  .query(true)
  .reply(200, {"odata.metadata":"https://fakeaccount.table.core.windows.net/$metadata#Tables","value":[{"TableName":"TestTestTest"}]}, [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json;odata=minimalmetadata;streaming=true;charset=utf-8',
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '103034c6-8002-0001-0143-c58042000000',
  'x-ms-client-request-id',
  '31d2d514-8206-4107-8819-9314549b72d8',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'Access-Control-Expose-Headers',
  'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,Content-Type,Content-Length,Date,Transfer-Encoding',
  'Access-Control-Allow-Origin',
  '*',
  'Date',
  'Tue, 19 Oct 2021 23:46:03 GMT'
]);


<|start_filename|>sdk/cosmosdb/cosmos/src/tsconfig.strict.json<|end_filename|>
{
  "extends": "../tsconfig.json",
  "compilerOptions": {
    "composite": false,
    "noEmit": true,
    "strict": false
  },
  "exclude": [
    "documents/DatabaseAccount.ts",
    "documents/IndexingPolicy.ts",
    "plugins/Plugin.ts",
    "common/helper.ts",
    "common/uriFactory.ts",
    "client/Conflict/Conflict.ts",
    "client/Conflict/ConflictDefinition.ts",
    "client/Conflict/ConflictResponse.ts",
    "client/Conflict/Conflicts.ts",
    "client/Container/Container.ts",
    "client/Container/ContainerDefinition.ts",
    "client/Container/ContainerRequest.ts",
    "client/Container/ContainerResponse.ts",
    "client/Container/Containers.ts",
    "client/Database/Database.ts",
    "client/Database/DatabaseResponse.ts",
    "client/Database/Databases.ts",
    "client/Item/Item.ts",
    "client/Item/ItemResponse.ts",
    "client/Item/Items.ts",
    "client/Offer/Offer.ts",
    "client/Offer/OfferResponse.ts",
    "client/Offer/Offers.ts",
    "client/Permission/Permission.ts",
    "client/Permission/PermissionDefinition.ts",
    "client/Permission/PermissionResponse.ts",
    "client/Permission/Permissions.ts",
    "client/Script/Scripts.ts",
    "client/StoredProcedure/StoredProcedure.ts",
    "client/StoredProcedure/StoredProcedureResponse.ts",
    "client/StoredProcedure/StoredProcedures.ts",
    "client/Trigger/Trigger.ts",
    "client/Trigger/TriggerDefinition.ts",
    "client/Trigger/TriggerResponse.ts",
    "client/Trigger/Triggers.ts",
    "client/User/User.ts",
    "client/User/UserResponse.ts",
    "client/User/Users.ts",
    "client/UserDefinedFunction/UserDefinedFunction.ts",
    "client/UserDefinedFunction/UserDefinedFunctionResponse.ts",
    "client/UserDefinedFunction/UserDefinedFunctions.ts",
    "queryExecutionContext/Aggregators/AverageAggregator.ts",
    "queryExecutionContext/Aggregators/MaxAggregator.ts",
    "queryExecutionContext/Aggregators/MinAggregator.ts",
    "queryExecutionContext/Aggregators/SumAggregator.ts",
    "queryExecutionContext/EndpointComponent/GroupByEndpointComponent.ts",
    "queryExecutionContext/EndpointComponent/GroupByValueEndpointComponent.ts",
    "queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.ts",
    "queryExecutionContext/EndpointComponent/OrderByEndpointComponent.ts",
    "queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.ts",
    "queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.ts",
    "queryExecutionContext/defaultQueryExecutionContext.ts",
    "queryExecutionContext/documentProducer.ts",
    "queryExecutionContext/ExecutionContext.ts",
    "queryExecutionContext/headerUtils.ts",
    "queryExecutionContext/orderByDocumentProducerComparator.ts",
    "queryExecutionContext/orderByQueryExecutionContext.ts",
    "queryExecutionContext/parallelQueryExecutionContext.ts",
    "queryExecutionContext/parallelQueryExecutionContextBase.ts",
    "queryExecutionContext/pipelinedQueryExecutionContext.ts",
    "request/ErrorResponse.ts",
    "request/FeedOptions.ts",
    "request/FeedResponse.ts",
    "request/request.ts",
    "request/RequestContext.ts",
    "request/RequestHandler.ts",
    "request/RequestOptions.ts",
    "request/ResourceResponse.ts",
    "request/Response.ts",
    "request/SharedOptions.ts",
    "retry/defaultRetryPolicy.ts",
    "retry/endpointDiscoveryRetryPolicy.ts",
    "retry/resourceThrottleRetryPolicy.ts",
    "retry/RetryPolicy.ts",
    "retry/retryUtility.ts",
    "retry/sessionRetryPolicy.ts",
    "routing/CollectionRoutingMapFactory.ts",
    "routing/inMemoryCollectionRoutingMap.ts",
    "routing/partitionKeyRangeCache.ts",
    "routing/QueryRange.ts",
    "routing/smartRoutingMapProvider.ts",
    "session/sessionContainer.ts",
    "session/SessionContext.ts",
    "utils/batch.ts",
    "utils/headers.ts",
    "utils/offers.ts",
    "auth.ts",
    "ChangeFeedIterator.ts",
    "ChangeFeedResponse.ts",
    "ClientContext.ts",
    "CosmosClient.ts",
    "CosmosClientOptions.ts",
    "extractPartitionKey.ts",
    "globalEndpointManager.ts",
    "queryIterator.ts",
    "client/User/index.ts",
    "client/Item/index.ts",
    "client/StoredProcedure/index.ts",
    "client/Trigger/index.ts",
    "client/Offer/index.ts",
    "client/Permission/index.ts",
    "client/index.ts",
    "client/UserDefinedFunction/index.ts",
    "client/Conflict/index.ts",
    "client/Container/index.ts",
    "client/Database/index.ts",
    "documents/index.ts",
    "request/index.ts",
    "index.ts",
    "retry/index.ts",
    "queryExecutionContext/Aggregators/index.ts",
    "queryExecutionContext/index.ts",
    "common/index.ts",
    "routing/index.ts",
    "utils/SasToken.ts",
    "client/SasToken/SasTokenProperties.ts",
    "client/SasToken/PermissionScopeValues.ts"
  ]
}


<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/browsers/apikey_textanalyticsclient_fast_tests_analyzesentiment/recording_client_gets_no_mined_assessments.json<|end_filename|>
{
 "recordings": [
  {
   "method": "POST",
   "url": "https://endpoint/text/analytics/v3.2-preview.2/sentiment",
   "query": {
    "stringIndexType": "Utf16CodeUnit",
    "opinionMining": "true"
   },
   "requestBody": "{\"documents\":[{\"id\":\"0\",\"text\":\"today is a hot day\",\"language\":\"en\"}]}",
   "status": 200,
   "response": "{\"documents\":[{\"id\":\"0\",\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.1,\"neutral\":0.88,\"negative\":0.02},\"sentences\":[{\"sentiment\":\"neutral\",\"confidenceScores\":{\"positive\":0.1,\"neutral\":0.88,\"negative\":0.02},\"offset\":0,\"length\":18,\"text\":\"today is a hot day\",\"targets\":[],\"assessments\":[]}],\"warnings\":[]}],\"errors\":[],\"modelVersion\":\"2020-04-01\"}",
   "responseHeaders": {
    "apim-request-id": "3734937e-8c60-4501-ad12-0bc4c6cf37ce",
    "content-type": "application/json; charset=utf-8",
    "csp-billing-usage": "CognitiveServices.TextAnalytics.BatchScoring=1,CognitiveServices.TextAnalytics.TextRecords=1",
    "date": "Sat, 23 Oct 2021 00:50:08 GMT",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "x-content-type-options": "nosniff",
    "x-envoy-upstream-service-time": "106"
   }
  }
 ],
 "uniqueTestInfo": {
  "uniqueName": {},
  "newDate": {}
 },
 "hash": "4a32b51201e582791f5a784bb39eb256"
}

<|start_filename|>sdk/formrecognizer/ai-form-recognizer/recordings/node/api_key_model_management_model_build_custom_model_from_trainingdatav3/recording_getmodel_verification.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "2388f39d01a731a937867257861becf1";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .get('/formrecognizer/documentModels/modelName163337188938006462')
  .query(true)
  .reply(200, {"docTypes":{"modelName163337188938006462":{"fieldSchema":{"Merchant":{"type":"string"},"PhoneNumber":{"type":"string"},"Website":{"type":"string"},"Email":{"type":"string"},"PurchaseOrderNumber":{"type":"string"},"DatedAs":{"type":"string"},"VendorName":{"type":"string"},"CompanyName":{"type":"string"},"CompanyAddress":{"type":"string"},"CompanyPhoneNumber":{"type":"string"},"Subtotal":{"type":"string"},"Tax":{"type":"string"},"Total":{"type":"string"},"Signature":{"type":"string"},"Quantity":{"type":"number"}},"fieldConfidence":{"CompanyAddress":0.8,"CompanyName":0.95,"CompanyPhoneNumber":0.95,"DatedAs":0.95,"Email":0.8,"Merchant":0.95,"PhoneNumber":0.95,"PurchaseOrderNumber":0.95,"Quantity":0.95,"Signature":0.6,"Subtotal":0.95,"Tax":0.95,"Total":0.95,"VendorName":0.95,"Website":0.95}}},"modelId":"modelName163337188938006462","createdDateTime":"2021-10-04T18:24:51Z"}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '35',
  'apim-request-id',
  '1dacede1-5ff5-45c1-86a7-446d1ab4a414',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Mon, 04 Oct 2021 18:24:56 GMT'
]);


<|start_filename|>sdk/tables/data-tables/recordings/browsers/tableclient_tokencredential_createentity_getentity_and_delete/recording_should_create_binary_entities_without_automatic_type_conversion.json<|end_filename|>
{
 "recordings": [
  {
   "method": "POST",
   "url": "https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token",
   "query": {},
   "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F",
   "status": 200,
   "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}",
   "responseHeaders": {
    "cache-control": "no-store, no-cache",
    "content-length": "1318",
    "content-type": "application/json; charset=utf-8",
    "date": "Mon, 18 Oct 2021 20:22:05 GMT",
    "expires": "-1",
    "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}",
    "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"",
    "pragma": "no-cache",
    "referrer-policy": "strict-origin-when-cross-origin",
    "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+est\"}]}",
    "strict-transport-security": "max-age=31536000; includeSubDomains",
    "x-content-type-options": "nosniff",
    "x-ms-ests-server": "2.1.12158.6 - WUS2 ProdSlices",
    "x-ms-request-id": "5e1ff52c-d610-4de3-9dc9-68dc3a6aa500"
   }
  },
  {
   "method": "POST",
   "url": "https://fakeaccount.table.core.windows.net/tableClientTestTokenCredentialbrowser",
   "query": {},
   "requestBody": "{\"PartitionKey\":\"CreateBinary_TokenCredentialbrowser\",\"RowKey\":\"second_TokenCredentialbrowser\",\"binary\":\"QmFy\",\"binary<EMAIL>\":\"Edm.Binary\",\"binaryMetadata\":\"QmFy\",\"binary<EMAIL>\":\"Edm.Binary\"}",
   "status": 204,
   "response": "",
   "responseHeaders": {
    "cache-control": "no-cache",
    "content-length": "0",
    "dataserviceid": "https://fakeaccount.table.core.windows.net/tableClientTestTokenCredentialbrowser(PartitionKey='CreateBinary_TokenCredentialbrowser',RowKey='second_TokenCredentialbrowser')",
    "date": "Mon, 18 Oct 2021 20:22:06 GMT",
    "etag": "W/\"datetime'2021-10-18T20%3A22%3A06.0696935Z'\"",
    "location": "https://fakeaccount.table.core.windows.net/tableClientTestTokenCredentialbrowser(PartitionKey='CreateBinary_TokenCredentialbrowser',RowKey='second_TokenCredentialbrowser')",
    "preference-applied": "return-no-content",
    "server": "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0",
    "x-content-type-options": "nosniff",
    "x-ms-client-request-id": "fda2fcf2-8357-4906-a755-a5cc0b8f0549",
    "x-ms-request-id": "fd977bf0-3002-0135-2f5d-c469bf000000",
    "x-ms-version": "2019-02-02"
   }
  },
  {
   "method": "GET",
   "url": "https://fakeaccount.table.core.windows.net/tableClientTestTokenCredentialbrowser(PartitionKey='CreateBinary_TokenCredentialbrowser',RowKey='second_TokenCredentialbrowser')",
   "query": {},
   "requestBody": null,
   "status": 200,
   "response": "{\"odata.metadata\":\"https://fakeaccount.table.core.windows.net/$metadata#tableClientTestTokenCredentialbrowser/@Element\",\"odata.etag\":\"W/\\\"datetime'2021-10-18T20%3A22%3A06.0696935Z'\\\"\",\"PartitionKey\":\"CreateBinary_TokenCredentialbrowser\",\"RowKey\":\"second_TokenCredentialbrowser\",\"Timestamp\":\"2021-10-18T20:22:06.0696935Z\",\"<EMAIL>\":\"Edm.Binary\",\"binary\":\"QmFy\",\"<EMAIL>\":\"Edm.Binary\",\"binaryMetadata\":\"QmFy\"}",
   "responseHeaders": {
    "access-control-allow-origin": "*",
    "access-control-expose-headers": "x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,ETag,Content-Type,Content-Length,Date,Transfer-Encoding",
    "cache-control": "no-cache",
    "content-type": "application/json;odata=minimalmetadata;streaming=true;charset=utf-8",
    "date": "Mon, 18 Oct 2021 20:22:06 GMT",
    "etag": "W/\"datetime'2021-10-18T20%3A22%3A06.0696935Z'\"",
    "server": "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0",
    "transfer-encoding": "chunked",
    "x-content-type-options": "nosniff",
    "x-ms-client-request-id": "3e51d583-3855-46ad-94be-3ec5ff011010",
    "x-ms-request-id": "fd977bf8-3002-0135-375d-c469bf000000",
    "x-ms-version": "2019-02-02"
   }
  }
 ],
 "uniqueTestInfo": {
  "uniqueName": {},
  "newDate": {}
 },
 "hash": "cc515de6566de9b77d0471c50da32cd5"
}


<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/node/datasourcecredential_datasource_credential_crud_operations/recording_updates_sql_server_connection_string_credential.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "fa3c76bf9f6192b425e9fdeaa7d98062";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .patch('/metricsadvisor/v1.0/credentials/44d64215-151e-<PASSWORD>-44477a71f5c6', {"dataSourceCredentialType":"AzureSQLConnectionString","dataSourceCredentialName":"js-test-sqlServerCred-163702281643106715","dataSourceCredentialDescription":"updated description","parameters":{"connectionString":"updated-string"}})
  .reply(200, {"dataSourceCredentialId":"<PASSWORD>","dataSourceCredentialName":"js-test-sqlServerCred-163702281643106715","dataSourceCredentialDescription":"updated description","dataSourceCredentialType":"AzureSQLConnectionString","parameters":{}}, [
  'Content-Length',
  '261',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  'cea0c529-f5bf-40bf-b165-24d4594d6b21',
  'x-envoy-upstream-service-time',
  '446',
  'apim-request-id',
  'cea0c529-f5bf-40bf-b165-24d4594d6b21',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:33:36 GMT'
]);


<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/node/apikey_textanalyticsclient_lros_health/recording_whole_batch_with_multiple_languages.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "98dc178ac1375fa26068fd73bbef6e47";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint', {"encodedQueryParams":true})
  .post('/text/analytics/v3.2-preview.2/entities/health/jobs', {"documents":[{"id":"1","text":"I should take my cat to the veterinarian."},{"id":"2","text":"Este es un document escrito en Español."},{"id":"3","text":"猫は幸せ"}]})
  .query(true)
  .reply(202, "", [
  'Transfer-Encoding',
  'chunked',
  'operation-location',
  'https://endpoint/text/analytics/v3.2-preview.1/entities/health/jobs/65ed680f-76ad-4828-a77e-2c6b3e80fd45',
  'x-envoy-upstream-service-time',
  '798',
  'apim-request-id',
  '502e4204-8591-4678-a40e-02d6554ca698',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:51 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/65ed680f-76ad-4828-a77e-2c6b3e80fd45')
  .query(true)
  .reply(200, {"jobId":"65ed680f-76ad-4828-a77e-2c6b3e80fd45","lastUpdateDateTime":"2021-10-23T00:42:52Z","createdDateTime":"2021-10-23T00:42:51Z","expirationDateTime":"2021-10-24T00:42:51Z","status":"notStarted","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '8',
  'apim-request-id',
  '1b34f523-acee-4c21-8400-b313bb818c76',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:51 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/65ed680f-76ad-4828-a77e-2c6b3e80fd45')
  .query(true)
  .reply(200, {"jobId":"65ed680f-76ad-4828-a77e-2c6b3e80fd45","lastUpdateDateTime":"2021-10-23T00:42:52Z","createdDateTime":"2021-10-23T00:42:51Z","expirationDateTime":"2021-10-24T00:42:51Z","status":"notStarted","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '8',
  'apim-request-id',
  '7b45b102-f39c-4379-aa47-9123e127cc64',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:51 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/65ed680f-76ad-4828-a77e-2c6b3e80fd45')
  .query(true)
  .reply(200, {"jobId":"65ed680f-76ad-4828-a77e-2c6b3e80fd45","lastUpdateDateTime":"2021-10-23T00:42:53Z","createdDateTime":"2021-10-23T00:42:51Z","expirationDateTime":"2021-10-24T00:42:51Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"1","entities":[{"offset":28,"length":12,"text":"veterinarian","category":"HealthcareProfession","confidenceScore":0.98}],"relations":[],"warnings":[]},{"id":"2","entities":[],"relations":[],"warnings":[]},{"id":"3","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '99',
  'apim-request-id',
  'f630cc81-1880-46c6-afe1-eafbae0bc08a',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:54 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/65ed680f-76ad-4828-a77e-2c6b3e80fd45')
  .query(true)
  .reply(200, {"jobId":"65ed680f-76ad-4828-a77e-2c6b3e80fd45","lastUpdateDateTime":"2021-10-23T00:42:53Z","createdDateTime":"2021-10-23T00:42:51Z","expirationDateTime":"2021-10-24T00:42:51Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"1","entities":[{"offset":28,"length":12,"text":"veterinarian","category":"HealthcareProfession","confidenceScore":0.98}],"relations":[],"warnings":[]},{"id":"2","entities":[],"relations":[],"warnings":[]},{"id":"3","entities":[],"relations":[],"warnings":[]}],"errors":[],"modelVersion":"2021-05-15"}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '139',
  'apim-request-id',
  '31939960-9073-47ce-85f2-0e3fc931e7cc',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:54 GMT'
]);


<|start_filename|>sdk/monitor/monitor-query/recordings/browsers/logsqueryclient_live_tests/recording_query_with_types.json<|end_filename|>
{
 "recordings": [
  {
   "method": "POST",
   "url": "https://login.microsoftonline.com/98123456-7614-3456-5678-789980112547/oauth2/v2.0/token",
   "query": {},
   "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F",
   "status": 200,
   "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}",
   "responseHeaders": {
    "cache-control": "no-store, no-cache",
    "content-length": "1321",
    "content-type": "application/json; charset=utf-8",
    "date": "Wed, 29 Sep 2021 01:11:37 GMT",
    "expires": "-1",
    "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}",
    "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"",
    "pragma": "no-cache",
    "referrer-policy": "strict-origin-when-cross-origin",
    "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}",
    "strict-transport-security": "max-age=31536000; includeSubDomains",
    "x-content-type-options": "nosniff",
    "x-ms-ests-server": "2.1.12071.16 - SCUS ProdSlices",
    "x-ms-request-id": "c9206bf2-61e5-4b48-9010-292422d0dc00"
   }
  },
  {
   "method": "POST",
   "url": "https://api.loganalytics.io/v1/workspaces/workspace-id/query",
   "query": {},
   "requestBody": "{\"query\":\"print \\\"hello\\\", true, make_datetime(\\\"2000-01-02 03:04:05Z\\\"), toint(100), long(101), 102.1, dynamic({ \\\"hello\\\": \\\"world\\\" })\\n      | project \\n          stringcolumn=print_0, \\n          boolcolumn=print_1,\\n          datecolumn=print_2,\\n          intcolumn=print_3,\\n          longcolumn=print_4,\\n          realcolumn=print_5,\\n          dynamiccolumn=print_6\\n      \",\"timespan\":\"PT5M\"}",
   "status": 200,
   "response": "{\"tables\":[{\"name\":\"PrimaryResult\",\"columns\":[{\"name\":\"stringcolumn\",\"type\":\"string\"},{\"name\":\"boolcolumn\",\"type\":\"bool\"},{\"name\":\"datecolumn\",\"type\":\"datetime\"},{\"name\":\"intcolumn\",\"type\":\"int\"},{\"name\":\"longcolumn\",\"type\":\"long\"},{\"name\":\"realcolumn\",\"type\":\"real\"},{\"name\":\"dynamiccolumn\",\"type\":\"dynamic\"}],\"rows\":[[\"hello\",true,\"2000-01-02T03:04:05Z\",100,101,102.1,\"{\\\"hello\\\":\\\"world\\\"}\"]]}]}",
   "responseHeaders": {
    "access-control-allow-origin": "*",
    "access-control-expose-headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location",
    "age": "108",
    "content-encoding": "gzip",
    "content-type": "application/json; charset=utf-8",
    "date": "Wed, 29 Sep 2021 01:11:37 GMT",
    "strict-transport-security": "max-age=15724800; includeSubDomains",
    "vary": "Accept-Encoding, Accept-Encoding",
    "via": "1.1 draft-oms-65975698db-5pndz",
    "x-content-type-options": "nosniff"
   }
  }
 ],
 "uniqueTestInfo": {
  "uniqueName": {},
  "newDate": {}
 },
 "hash": "1476629c4a9388af26c32270ebb24e5c"
}

<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/node/datasourcecredential_datasource_credential_crud_operations/recording_creates_service_principal_in_keyvault_credential.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "790bf13118df991b0e5282bac10fadec";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .post('/metricsadvisor/v1.0/credentials', {"dataSourceCredentialType":"ServicePrincipalInKV","dataSourceCredentialName":"js-test-servicePrincipalInKVCred-163702281643108508","dataSourceCredentialDescription":"used for testing purposes only","parameters":{"keyVaultEndpoint":"keyvault-endpoint","keyVaultClientId":"keyvault-client-id","keyVaultClientSecret":"keyvault-client-secret","servicePrincipalIdNameInKV":"service-principal-in-kv","servicePrincipalSecretNameInKV":"service-principal-secret-name-in-kv","tenantId":"tenant-id"}})
  .reply(201, "", [
  'Content-Length',
  '0',
  'Location',
  'https://endpoint/metricsadvisor/v1.0/credentials/f08830ff-ef02-481d-a697-8cc1b8610ee2',
  'x-request-id',
  '08261421-d5dc-49af-aa34-fd7345289d4e',
  'x-envoy-upstream-service-time',
  '310',
  'apim-request-id',
  '08261421-d5dc-49af-aa34-fd7345289d4e',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:33:39 GMT'
]);

nock('https://endpoint:443', {"encodedQueryParams":true})
  .get('/metricsadvisor/v1.0/credentials/f08830ff-ef<PASSWORD>')
  .reply(200, {"dataSourceCredentialId":"<PASSWORD>","dataSourceCredentialName":"js-test-servicePrincipalInKVCred-163702281643108508","dataSourceCredentialDescription":"used for testing purposes only","dataSourceCredentialType":"ServicePrincipalInKV","parameters":{"servicePrincipalSecretNameInKV":"service-principal-secret-name-in-kv","servicePrincipalIdNameInKV":"service-principal-in-kv","tenantId":"tenant-id","keyVaultClientId":"keyvault-client-id","keyVaultEndpoint":"keyvault-endpoint"}}, [
  'Content-Length',
  '506',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  '478ead94-e69e-4842-b3da-78b44f3ad8bc',
  'x-envoy-upstream-service-time',
  '100',
  'apim-request-id',
  '478ead94-e69e-4842-b3da-78b44f3ad8bc',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:33:39 GMT'
]);


<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/node/api_key_metricsadvisorclient_feedback/recording_lists_anomaly_feedbacks_by_page.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "133b8cb43d2437b7b9c92a4af35721dd";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .post('/metricsadvisor/v1.0/feedback/metric/query', {"metricId":"189ff959-d9f4-45c7-a1e0-f87c9c7ca80f"})
  .query(true)
  .reply(200, {"value":[{"feedbackId":"c83abf5a-ea7e-438b-8ddf-1f2a08766499","createdTime":"2021-11-16T00:32:48.566Z","userPrincipal":"<EMAIL>","metricId":"189ff959-d9f4-45c7-a1e0-f87c9c7ca80f","dimensionFilter":{"dimension":{"region":"Cairo","category":"Home & Garden"}},"feedbackType":"Anomaly","startTime":"2021-08-05T00:00:00Z","endTime":"2021-08-07T00:00:00Z","value":{"anomalyValue":"NotAnomaly"}},{"feedbackId":"f29c7d01-ff06-4548-9199-be5a7ff7c755","createdTime":"2021-11-16T00:32:50.465Z","userPrincipal":"<EMAIL>","metricId":"189ff959-d9f4-45c7-a1e0-f87c9c7ca80f","dimensionFilter":{"dimension":{"region":"Cairo","category":"Home & Garden"}},"feedbackType":"Comment","value":{"commentValue":"This is a comment"}}],"@nextLink":"https://endpoint:443/metricsadvisor/v1.0/feedback/metric/query?$maxpagesize=2&$skip=2"}, [
  'Content-Length',
  '876',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  '3fce531b-cd44-480e-bc51-b952b5e987d9',
  'x-envoy-upstream-service-time',
  '127',
  'apim-request-id',
  '3fce531b-cd44-480e-bc51-b952b5e987d9',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:32:51 GMT'
]);

nock('https://endpoint:443', {"encodedQueryParams":true})
  .post('/metricsadvisor/v1.0/feedback/metric/query', {"metricId":"189ff959-d9f4-45c7-a1e0-f87c9c7ca80f"})
  .query(true)
  .reply(200, {"value":[{"feedbackId":"38d7a5fa-3ed9-4254-97b2-d0d346b533ed","createdTime":"2021-11-16T00:32:49.952Z","userPrincipal":"<EMAIL>","metricId":"189ff959-d9f4-45c7-a1e0-f87c9c7ca80f","dimensionFilter":{"dimension":{"region":"Cairo","category":"Home & Garden"}},"feedbackType":"Period","value":{"periodType":"AutoDetect","periodValue":4}},{"feedbackId":"daf91f82-1824-4e18-9a4f-ea7448c4c115","createdTime":"2021-11-16T00:32:49.26Z","userPrincipal":"<EMAIL>","metricId":"189ff959-d9f4-45c7-a1e0-f87c9c7ca80f","dimensionFilter":{"dimension":{"region":"Cairo","category":"Home & Garden"}},"feedbackType":"ChangePoint","startTime":"2021-08-05T00:00:00Z","endTime":"2021-08-05T00:00:00Z","value":{"changePointValue":"ChangePoint"}}],"@nextLink":"https://endpoint:443/metricsadvisor/v1.0/feedback/metric/query?$maxpagesize=2&$skip=4"}, [
  'Content-Length',
  '890',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  '38cb3fa5-6359-4905-bfdc-17fc7fc0dfd9',
  'x-envoy-upstream-service-time',
  '99',
  'apim-request-id',
  '38cb3fa5-6359-4905-bfdc-17fc7fc0dfd9',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:32:51 GMT'
]);


<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/browsers/aad_textanalyticsclient_lros_health/recording_cancelled.json<|end_filename|>
{
 "recordings": [
  {
   "method": "POST",
   "url": "https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token",
   "query": {},
   "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F",
   "status": 200,
   "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}",
   "responseHeaders": {
    "cache-control": "no-store, no-cache",
    "content-length": "1331",
    "content-type": "application/json; charset=utf-8",
    "date": "Sat, 23 Oct 2021 01:02:52 GMT",
    "expires": "-1",
    "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}",
    "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"",
    "pragma": "no-cache",
    "referrer-policy": "strict-origin-when-cross-origin",
    "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}",
    "strict-transport-security": "max-age=31536000; includeSubDomains",
    "x-content-type-options": "nosniff",
    "x-ms-ests-server": "2.1.12171.14 - EUS ProdSlices",
    "x-ms-request-id": "6a905e00-80ee-49db-8ae6-c4c853be0400"
   }
  },
  {
   "method": "POST",
   "url": "https://endpoint/text/analytics/v3.2-preview.2/entities/health/jobs",
   "query": {
    "stringIndexType": "Utf16CodeUnit"
   },
   "requestBody": "{\"documents\":[{\"id\":\"1\",\"text\":\"Patient does not suffer from high blood pressure.\",\"language\":\"en\"},{\"id\":\"2\",\"text\":\"Prescribed 100mg ibuprofen, taken twice daily.\",\"language\":\"en\"}]}",
   "status": 202,
   "response": "",
   "responseHeaders": {
    "apim-request-id": "17aab684-473c-4ba3-86fa-fd14548227e6",
    "date": "Sat, 23 Oct 2021 01:02:53 GMT",
    "operation-location": "https://endpoint/text/analytics/v3.2-preview.1/entities/health/jobs/40479a43-c780-4609-b276-7d300fa4c4d8",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "x-content-type-options": "nosniff",
    "x-envoy-upstream-service-time": "264"
   }
  },
  {
   "method": "GET",
   "url": "https://endpoint/text/analytics/v3.2-preview.1/entities/health/jobs/40479a43-c780-4609-b276-7d300fa4c4d8",
   "query": {
    "$top": "20",
    "$skip": "0"
   },
   "requestBody": null,
   "status": 200,
   "response": "{\"jobId\":\"40479a43-c780-4609-b276-7d300fa4c4d8\",\"lastUpdateDateTime\":\"2021-10-23T01:02:53Z\",\"createdDateTime\":\"2021-10-23T01:02:53Z\",\"expirationDateTime\":\"2021-10-24T01:02:53Z\",\"status\":\"notStarted\",\"errors\":[]}",
   "responseHeaders": {
    "apim-request-id": "883bcef5-cef4-49ae-bb7f-6e127de4d1b5",
    "content-type": "application/json; charset=utf-8",
    "date": "Sat, 23 Oct 2021 01:02:53 GMT",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "x-content-type-options": "nosniff",
    "x-envoy-upstream-service-time": "10"
   }
  }
 ],
 "uniqueTestInfo": {
  "uniqueName": {},
  "newDate": {}
 },
 "hash": "22188dd88cd7873245aff997830b38f3"
}

<|start_filename|>sdk/monitor/monitor-query/recordings/browsers/logsqueryclient_live_tests__server_timeout/recording_servertimeoutinseconds.json<|end_filename|>
{
 "recordings": [
  {
   "method": "POST",
   "url": "https://login.microsoftonline.com/98123456-7614-3456-5678-789980112547/oauth2/v2.0/token",
   "query": {},
   "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F",
   "status": 200,
   "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}",
   "responseHeaders": {
    "cache-control": "no-store, no-cache",
    "content-length": "1321",
    "content-type": "application/json; charset=utf-8",
    "date": "Wed, 29 Sep 2021 01:15:34 GMT",
    "expires": "-1",
    "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}",
    "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"",
    "pragma": "no-cache",
    "referrer-policy": "strict-origin-when-cross-origin",
    "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+est\"}]}",
    "strict-transport-security": "max-age=31536000; includeSubDomains",
    "x-content-type-options": "nosniff",
    "x-ms-ests-server": "2.1.12071.16 - EUS ProdSlices",
    "x-ms-request-id": "4b70a089-36a1-447b-9e22-27353b74d900"
   }
  },
  {
   "method": "POST",
   "url": "https://api.loganalytics.io/v1/workspaces/workspace-id/query",
   "query": {},
   "requestBody": "{\"query\":\"range x from 1 to 10000000000 step 1 | count\",\"timespan\":\"P1D\"}",
   "status": 504,
   "response": "{\"error\":{\"message\":\"Gateway timeout\",\"code\":\"GatewayTimeout\",\"correlationId\":\"5b0916dc-db1e-4ea0-bc08-11cc9d45aa95\",\"innererror\":{\"code\":\"GatewayTimeout\",\"message\":\"Kusto query timed out\"}}}",
   "responseHeaders": {
    "access-control-allow-origin": "*",
    "access-control-expose-headers": "Retry-After,Age,WWW-Authenticate,x-resource-identities,x-ms-status-location",
    "content-length": "191",
    "content-type": "application/json; charset=utf-8",
    "date": "Wed, 29 Sep 2021 01:15:53 GMT",
    "preference-applied": "wait=1",
    "strict-transport-security": "max-age=15724800; includeSubDomains",
    "vary": "Accept-Encoding",
    "via": "1.1 draft-oms-7d47d4b4cd-5kggs",
    "x-content-type-options": "nosniff"
   }
  }
 ],
 "uniqueTestInfo": {
  "uniqueName": {},
  "newDate": {}
 },
 "hash": "f7f46b3463438dc0f1148cb2be69104f"
}

<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/node/api_key_metricsadvisorclient_hooks/recording_lists_hooks_by_page.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "d775b4b529b46a7c162abc14ac2974b9";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .get('/metricsadvisor/v1.0/hooks')
  .query(true)
  .reply(200, {"value":[{"hookId":"103a479c-ca6d-400e-a7f8-a9a868361b47","hookName":"js-test-emailHook-163615467799506131","hookType":"Email","externalLink":"","description":"description","admins":["<EMAIL>"],"hookParameter":{"toList":["<EMAIL>"]}},{"hookId":"57721e92-20ac-49c3-a3bc-567794d173b5","hookName":"js-test-emailHook-163615469910009534","hookType":"Email","externalLink":"","description":"description","admins":["<EMAIL>"],"hookParameter":{"toList":["<EMAIL>"]}}],"@nextLink":"https://endpoint:443/metricsadvisor/v1.0/hooks?hookName=js-test&$maxpagesize=2&$skip=2"}, [
  'Content-Length',
  '646',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  'bbf79546-9abf-49cb-a1e0-6a36a825862d',
  'x-envoy-upstream-service-time',
  '110',
  'apim-request-id',
  'bbf79546-9abf-49cb-a1e0-6a36a825862d',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:33:52 GMT'
]);

nock('https://endpoint:443', {"encodedQueryParams":true})
  .get('/metricsadvisor/v1.0/hooks')
  .query(true)
  .reply(200, {"value":[{"hookId":"79223f60-bb88-424f-8942-6df8d659e5c8","hookName":"js-test-emailHook-163667848285101340","hookType":"Email","externalLink":"","description":"description","admins":["<EMAIL>"],"hookParameter":{"toList":["<EMAIL>"]}},{"hookId":"e2f4abd6-fb50-4ccb-8d6b-55e00e68aee5","hookName":"js-test-emailHook-163667870367305614","hookType":"Email","externalLink":"","description":"description","admins":["<EMAIL>"],"hookParameter":{"toList":["<EMAIL>"]}}],"@nextLink":"https://endpoint:443/metricsadvisor/v1.0/hooks?hookName=js-test&$maxpagesize=2&$skip=4"}, [
  'Content-Length',
  '646',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  '58870ac9-3db5-4bdb-848b-971e7d5e2ffa',
  'x-envoy-upstream-service-time',
  '103',
  'apim-request-id',
  '58870ac9-3db5-4bdb-848b-971e7d5e2ffa',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:33:52 GMT'
]);


<|start_filename|>sdk/tables/data-tables/recordings/node/batch_operations_sasconnectionstring/recording_should_support_empty_partition_and_row_keys.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "1aa68a918ecb32fa9fcc4e9eda4f3f45";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .post('/Tables', {"TableName":"batchTableTestSASConnectionStringnode"})
  .query(true)
  .reply(201, {"odata.metadata":"https://fakeaccount.table.core.windows.net/$metadata#Tables/@Element","TableName":"batchTableTestSASConnectionStringnode"}, [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json;odata=minimalmetadata;streaming=true;charset=utf-8',
  'Location',
  "https://fakeaccount.table.core.windows.net/Tables('batchTableTestSASConnectionStringnode')",
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '58e1c53d-9002-0133-6c0b-d59ec7000000',
  'x-ms-client-request-id',
  '4084d65e-ae4d-4c90-ad5f-31eece0a18b9',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'Date',
  'Tue, 09 Nov 2021 01:43:40 GMT'
]);

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .post('/$batch', "--batch_fakeId\r\ncontent-type: multipart/mixed; boundary=changeset_fakeId\r\n\r\n\r\n--changeset_fakeId\r\ncontent-type: application/http\r\ncontent-transfer-encoding: binary\r\n\r\nPOST https://fakeaccount.table.core.windows.net/batchTableTestSASConnectionStringnode HTTP/1.1\r\nContent-Type: application/json;odata=nometadata\r\nAccept: application/json;odata=minimalmetadata\r\nDataServiceVersion: 3.0\r\nPrefer: return-no-content\r\n\r\n\r\n{\"PartitionKey\":\"\",\"RowKey\":\"\",\"value\":\"\"}\r\n--changeset_fakeId--\r\n--batch_fakeId--\r\n")
  .query(true)
  .reply(202, "--batchresponse_371d892f-7b5e-4b82-9cfa-f75276cc91ac\r\nContent-Type: multipart/mixed; boundary=changesetresponse_3fc01029-ca4e-4125-b602-5dbe2fdb4ddd\r\n\r\n--changesetresponse_3fc01029-ca4e-4125-b602-5dbe2fdb4ddd\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204 No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nPreference-Applied: return-no-content\r\nDataServiceVersion: 3.0;\r\nLocation: https://fakeaccount.table.core.windows.net/batchTableTestSASConnectionStringnode(PartitionKey='',RowKey='')\r\nDataServiceId: https://fakeaccount.table.core.windows.net/batchTableTestSASConnectionStringnode(PartitionKey='',RowKey='')\r\nETag: W/\"datetime'2021-11-09T01%3A43%3A40.8051516Z'\"\r\n\r\n\r\n--changesetresponse_3fc01029-ca4e-4125-b602-5dbe2fdb4ddd--\r\n--batchresponse_371d892f-7b5e-4b82-9cfa-f75276cc91ac--\r\n", [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'multipart/mixed; boundary=batchresponse_371d892f-7b5e-4b82-9cfa-f75276cc91ac',
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '58e1c560-9002-0133-0c0b-d59ec7000000',
  'x-ms-client-request-id',
  '081dd516-30c0-4367-aa1a-ff9606bb8277',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'Date',
  'Tue, 09 Nov 2021 01:43:40 GMT'
]);

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .post('/$batch', "--batch_fakeId\r\ncontent-type: multipart/mixed; boundary=changeset_fakeId\r\n\r\n\r\n--changeset_fakeId\r\ncontent-type: application/http\r\ncontent-transfer-encoding: binary\r\n\r\nPATCH https://fakeaccount.table.core.windows.net/batchTableTestSASConnectionStringnode(PartitionKey='',RowKey='') HTTP/1.1\r\nContent-Type: application/json\r\nDataServiceVersion: 3.0\r\nAccept: application/json\r\nIf-Match: *\r\n\r\n\r\n{\"PartitionKey\":\"\",\"RowKey\":\"\",\"value\":\"updated\"}\r\n--changeset_fakeId--\r\n--batch_fakeId--\r\n")
  .query(true)
  .reply(202, "--batchresponse_07ec33a5-6718-4402-bc42-551e9dfe8660\r\nContent-Type: multipart/mixed; boundary=changesetresponse_7d5b7ade-0150-411c-bfd3-40e0699bb2fe\r\n\r\n--changesetresponse_7d5b7ade-0150-411c-bfd3-40e0699bb2fe\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204 No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion: 1.0;\r\nETag: W/\"datetime'2021-11-09T01%3A43%3A40.8413527Z'\"\r\n\r\n\r\n--changesetresponse_7d5b7ade-0150-411c-bfd3-40e0699bb2fe--\r\n--batchresponse_07ec33a5-6718-4402-bc42-551e9dfe8660--\r\n", [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'multipart/mixed; boundary=batchresponse_07ec33a5-6718-4402-bc42-551e9dfe8660',
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '58e1c576-9002-0133-210b-d59ec7000000',
  'x-ms-client-request-id',
  'e8457e6a-7459-41fb-8c68-2ab304f532c0',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'Date',
  'Tue, 09 Nov 2021 01:43:40 GMT'
]);

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .get(`/batchTableTestSASConnectionStringnode(PartitionKey='',RowKey='')`)
  .query(true)
  .reply(200, {"odata.metadata":"https://fakeaccount.table.core.windows.net/$metadata#batchTableTestSASConnectionStringnode/@Element","odata.etag":"W/\"datetime'2021-11-09T01%3A43%3A40.8413527Z'\"","PartitionKey":"","RowKey":"","Timestamp":"2021-11-09T01:43:40.8413527Z","value":"updated"}, [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json;odata=minimalmetadata;streaming=true;charset=utf-8',
  'ETag',
  `W/"datetime'2021-11-09T01%3A43%3A40.8413527Z'"`,
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '58e1c587-9002-0133-320b-d59ec7000000',
  'x-ms-client-request-id',
  'c1662e8c-bb6d-4181-8a2c-3c49c28f191c',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'Access-Control-Expose-Headers',
  'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,ETag,Content-Type,Content-Length,Date,Transfer-Encoding',
  'Access-Control-Allow-Origin',
  '*',
  'Date',
  'Tue, 09 Nov 2021 01:43:40 GMT'
]);

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .post('/$batch', "--batch_fakeId\r\ncontent-type: multipart/mixed; boundary=changeset_fakeId\r\n\r\n\r\n--changeset_fakeId\r\ncontent-type: application/http\r\ncontent-transfer-encoding: binary\r\n\r\nPATCH https://fakeaccount.table.core.windows.net/batchTableTestSASConnectionStringnode(PartitionKey='',RowKey='') HTTP/1.1\r\nContent-Type: application/json\r\nDataServiceVersion: 3.0\r\nAccept: application/json\r\n\r\n\r\n{\"PartitionKey\":\"\",\"RowKey\":\"\",\"value\":\"upserted\"}\r\n--changeset_fakeId--\r\n--batch_fakeId--\r\n")
  .query(true)
  .reply(202, "--batchresponse_941691c7-93bd-4b80-b624-0d50b1d2ad8f\r\nContent-Type: multipart/mixed; boundary=changesetresponse_28a45cab-7502-424c-8c15-e7dc4212f588\r\n\r\n--changesetresponse_28a45cab-7502-424c-8c15-e7dc4212f588\r\nContent-Type: application/http\r\nContent-Transfer-Encoding: binary\r\n\r\nHTTP/1.1 204 No Content\r\nX-Content-Type-Options: nosniff\r\nCache-Control: no-cache\r\nDataServiceVersion: 1.0;\r\nETag: W/\"datetime'2021-11-09T01%3A43%3A40.9153114Z'\"\r\n\r\n\r\n--changesetresponse_28a45cab-7502-424c-8c15-e7dc4212f588--\r\n--batchresponse_941691c7-93bd-4b80-b624-0d50b1d2ad8f--\r\n", [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'multipart/mixed; boundary=batchresponse_941691c7-93bd-4b80-b624-0d50b1d2ad8f',
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '58e1c59c-9002-0133-450b-d59ec7000000',
  'x-ms-client-request-id',
  'f61d90bd-8d63-4ee5-a9c8-18f6afcd0458',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'Date',
  'Tue, 09 Nov 2021 01:43:40 GMT'
]);

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .get(`/batchTableTestSASConnectionStringnode(PartitionKey='',RowKey='')`)
  .query(true)
  .reply(200, {"odata.metadata":"https://fakeaccount.table.core.windows.net/$metadata#batchTableTestSASConnectionStringnode/@Element","odata.etag":"W/\"datetime'2021-11-09T01%3A43%3A40.9153114Z'\"","PartitionKey":"","RowKey":"","Timestamp":"2021-11-09T01:43:40.9153114Z","value":"upserted"}, [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json;odata=minimalmetadata;streaming=true;charset=utf-8',
  'ETag',
  `W/"datetime'2021-11-09T01%3A43%3A40.9153114Z'"`,
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '58e1c5b2-9002-0133-590b-d59ec7000000',
  'x-ms-client-request-id',
  '0a92f140-ab46-49e9-9b87-6d47d1466183',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'Access-Control-Expose-Headers',
  'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,ETag,Content-Type,Content-Length,Date,Transfer-Encoding',
  'Access-Control-Allow-Origin',
  '*',
  'Date',
  'Tue, 09 Nov 2021 01:43:40 GMT'
]);


<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/node/apikey_textanalyticsclient_lros_health/recording_output_has_the_same_order_as_input_with_out_of_order_ids.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "4234bf615139a007710624ac07ffab34";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint', {"encodedQueryParams":true})
  .post('/text/analytics/v3.2-preview.2/entities/health/jobs', {"documents":[{"id":"56","text":":)"},{"id":"0","text":":("},{"id":"22","text":""},{"id":"19","text":":P"},{"id":"1","text":":D"}]})
  .query(true)
  .reply(202, "", [
  'Transfer-Encoding',
  'chunked',
  'operation-location',
  'https://endpoint/text/analytics/v3.2-preview.1/entities/health/jobs/3499d49b-6523-4664-85b0-f1ab3103ce2d',
  'x-envoy-upstream-service-time',
  '243',
  'apim-request-id',
  '49cfda48-fb89-4ad4-a509-2ab470b24e7c',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:37 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/3499d49b-6523-4664-85b0-f1ab3103ce2d')
  .query(true)
  .reply(200, {"jobId":"3499d49b-6523-4664-85b0-f1ab3103ce2d","lastUpdateDateTime":"2021-10-23T00:42:38Z","createdDateTime":"2021-10-23T00:42:38Z","expirationDateTime":"2021-10-24T00:42:38Z","status":"notStarted","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '8',
  'apim-request-id',
  '772ff8a8-8aa8-4b20-95f6-9d0e9c33aaa8',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:37 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/3499d49b-6523-4664-85b0-f1ab3103ce2d')
  .query(true)
  .reply(200, {"jobId":"3499d49b-6523-4664-85b0-f1ab3103ce2d","lastUpdateDateTime":"2021-10-23T00:42:38Z","createdDateTime":"2021-10-23T00:42:38Z","expirationDateTime":"2021-10-24T00:42:38Z","status":"notStarted","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '7',
  'apim-request-id',
  'f2279368-305a-4e2e-8e70-3f81219fec28',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:37 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/3499d49b-6523-4664-85b0-f1ab3103ce2d')
  .query(true)
  .reply(200, {"jobId":"3499d49b-6523-4664-85b0-f1ab3103ce2d","lastUpdateDateTime":"2021-10-23T00:42:39Z","createdDateTime":"2021-10-23T00:42:38Z","expirationDateTime":"2021-10-24T00:42:38Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"56","entities":[],"relations":[],"warnings":[]},{"id":"0","entities":[],"relations":[],"warnings":[]},{"id":"19","entities":[],"relations":[],"warnings":[]},{"id":"1","entities":[],"relations":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-05-15"}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '98',
  'apim-request-id',
  '102b07f1-2211-45ad-8cca-45f3de98c7dd',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:40 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/3499d49b-6523-4664-85b0-f1ab3103ce2d')
  .query(true)
  .reply(200, {"jobId":"3499d49b-6523-4664-85b0-f1ab3103ce2d","lastUpdateDateTime":"2021-10-23T00:42:39Z","createdDateTime":"2021-10-23T00:42:38Z","expirationDateTime":"2021-10-24T00:42:38Z","status":"succeeded","errors":[],"results":{"documents":[{"id":"56","entities":[],"relations":[],"warnings":[]},{"id":"0","entities":[],"relations":[],"warnings":[]},{"id":"19","entities":[],"relations":[],"warnings":[]},{"id":"1","entities":[],"relations":[],"warnings":[]}],"errors":[{"id":"22","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-05-15"}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '112',
  'apim-request-id',
  'b9e4cc70-64ab-4775-aee8-33f6a70fbdce',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:40 GMT'
]);


<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/node/api_key_metricsadvisoradministrationclient_detection_and_alert_configs_crud_operations/recording_creates_an_alert_configuration.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "5259dd1945f72341676b3c0de1514ada";

module.exports.testInfo = {"uniqueName":{"js-alert-config-":"js-alert-config-163702273436603397"},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .post('/metricsadvisor/v1.0/alert/anomaly/configurations', {"name":"js-alert-config-163702273436603397","description":"alerting config description","crossMetricsOperator":"AND","splitAlertByDimensions":[],"hookIds":[],"metricAlertingConfigurations":[{"anomalyDetectionConfigurationId":"52eba2dd-87a2-44d7-b4f2-3510e7df5647","anomalyScopeType":"All"},{"anomalyDetectionConfigurationId":"52eba2dd-87a2-44d7-b4f2-3510e7df5647","anomalyScopeType":"All"}]})
  .reply(201, "", [
  'Content-Length',
  '0',
  'Location',
  'https://endpoint/metricsadvisor/v1.0/alert/anomaly/configurations/dc77a835-8161-416a-bd73-035d5e49b69d',
  'x-request-id',
  '948980c1-70ba-4388-9ade-5745dd6b9a5c',
  'x-envoy-upstream-service-time',
  '149',
  'apim-request-id',
  '948980c1-70ba-4388-9ade-5745dd6b9a5c',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:32:13 GMT'
]);

nock('https://endpoint:443', {"encodedQueryParams":true})
  .get('/metricsadvisor/v1.0/alert/anomaly/configurations/dc77a835-8161-416a-bd73-035d5e49b69d')
  .reply(200, {"anomalyAlertingConfigurationId":"dc77a835-8161-416a-bd73-035d5e49b69d","name":"js-alert-config-163702273436603397","description":"alerting config description","crossMetricsOperator":"AND","splitAlertByDimensions":[],"hookIds":[],"metricAlertingConfigurations":[{"anomalyDetectionConfigurationId":"52eba2dd-87a2-44d7-b4f2-3510e7df5647","anomalyScopeType":"All","negationOperation":false},{"anomalyDetectionConfigurationId":"52eba2dd-87a2-44d7-b4f2-3510e7df5647","anomalyScopeType":"All","negationOperation":false}]}, [
  'Content-Length',
  '516',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  '956b5fb5-5c81-48f3-87d1-84ad3292bed4',
  'x-envoy-upstream-service-time',
  '100',
  'apim-request-id',
  '956b5fb5-5c81-48f3-87d1-84ad3292bed4',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:32:14 GMT'
]);


<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/api_key_metricsadvisoradministrationclient_datafeed_datafeed/recording_updates_an_azure_blob_datafeed.json<|end_filename|>
{
 "recordings": [
  {
   "method": "PATCH",
   "url": "https://endpoint/metricsadvisor/v1.0/dataFeeds/6277f1ea-f8a5-4648-917c-9c9b38caa291",
   "query": {},
   "requestBody": "{\"dataSourceType\":\"AzureBlob\",\"dataFeedName\":\"Updated-Azure-Blob-data-feed-163702811643004325\",\"dataFeedDescription\":\"Updated Azure Blob description\",\"timestampColumn\":\"UpdatedTimestampeColumn\",\"dataStartFrom\":\"2020-10-30T00:00:00.000Z\",\"startOffsetInSeconds\":2,\"maxConcurrency\":3,\"minRetryIntervalInSeconds\":64,\"stopRetryAfterInSeconds\":65,\"needRollup\":\"AlreadyRollup\",\"allUpIdentification\":\"__Existing__\",\"fillMissingPointType\":\"PreviousValue\",\"viewMode\":\"Public\",\"viewers\":[\"<EMAIL>\"],\"actionLinkTemplate\":\"Updated Azure Blob action link template\",\"authenticationType\":\"ManagedIdentity\",\"dataSourceParameter\":{\"connectionString\":\"Updated Azure Blob connection string\",\"container\":\"Updated Azure Blob container\",\"blobTemplate\":\"Updated Azure Blob template\"}}",
   "status": 200,
   "response": "{\"dataFeedId\":\"6277f1ea-f8a5-4648-917c-9c9b38caa291\",\"dataFeedName\":\"Updated-Azure-Blob-data-feed-163702811643004325\",\"metrics\":[{\"metricId\":\"2cf20fdf-78c9-4f75-b3a6-9d1d8f2ec4d0\",\"metricName\":\"cost\",\"metricDisplayName\":\"cost\",\"metricDescription\":\"\"},{\"metricId\":\"27c6a0a2-070c-4512-b496-3d2823ee5670\",\"metricName\":\"revenue\",\"metricDisplayName\":\"revenue\",\"metricDescription\":\"\"}],\"dimension\":[{\"dimensionName\":\"category\",\"dimensionDisplayName\":\"category\"},{\"dimensionName\":\"city\",\"dimensionDisplayName\":\"city\"}],\"dataStartFrom\":\"2020-10-30T00:00:00Z\",\"dataSourceType\":\"AzureBlob\",\"timestampColumn\":\"UpdatedTimestampeColumn\",\"startOffsetInSeconds\":2,\"maxQueryPerMinute\":30.0,\"granularityName\":\"Daily\",\"allUpIdentification\":\"__Existing__\",\"needRollup\":\"AlreadyRollup\",\"fillMissingPointType\":\"PreviousValue\",\"fillMissingPointValue\":555.0,\"rollUpMethod\":\"Sum\",\"dataFeedDescription\":\"Updated Azure Blob description\",\"stopRetryAfterInSeconds\":65,\"minRetryIntervalInSeconds\":64,\"maxConcurrency\":3,\"viewMode\":\"Public\",\"admins\":[\"<EMAIL>\"],\"viewers\":[\"<EMAIL>\"],\"creator\":\"<EMAIL>\",\"status\":\"Active\",\"createdTime\":\"2021-11-16T02:01:55Z\",\"isAdmin\":true,\"actionLinkTemplate\":\"Updated Azure Blob action link template\",\"dataSourceParameter\":{\"container\":\"Updated Azure Blob container\",\"blobTemplate\":\"Updated Azure Blob template\"},\"authenticationType\":\"ManagedIdentity\"}",
   "responseHeaders": {
    "apim-request-id": "97b908df-da2a-4575-aa3e-e0bc514566bc",
    "content-length": "1397",
    "content-type": "application/json; charset=utf-8",
    "date": "Tue, 16 Nov 2021 02:01:56 GMT",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "x-content-type-options": "nosniff",
    "x-envoy-upstream-service-time": "808",
    "x-request-id": "97b908df-da2a-4575-aa3e-e0bc514566bc"
   }
  }
 ],
 "uniqueTestInfo": {
  "uniqueName": {
   "Updated-Azure-Blob-data-feed-": "Updated-Azure-Blob-data-feed-163702811643004325"
  },
  "newDate": {}
 },
 "hash": "be0a4e910a67a906cc949ecdee89a162"
}

<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/node/apikey_textanalyticsclient_lros_health/recording_invalid_language_hint.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "4fe6d983363e697807ee4c3c068d2783";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint', {"encodedQueryParams":true})
  .post('/text/analytics/v3.2-preview.2/entities/health/jobs', {"documents":[{"id":"0","text":"This should fail because we're passing in an invalid language hint","language":"notalanguage"}]})
  .query(true)
  .reply(202, "", [
  'Transfer-Encoding',
  'chunked',
  'operation-location',
  'https://endpoint/text/analytics/v3.2-preview.1/entities/health/jobs/b8ba8dd9-187d-4d07-bf58-8fde3875f200',
  'x-envoy-upstream-service-time',
  '182',
  'apim-request-id',
  'acc20f5c-829c-4a18-bcd5-55dcc9779606',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:54 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/b8ba8dd9-187d-4d07-bf58-8fde3875f200')
  .query(true)
  .reply(200, {"jobId":"b8ba8dd9-187d-4d07-bf58-8fde3875f200","lastUpdateDateTime":"2021-10-23T00:42:54Z","createdDateTime":"2021-10-23T00:42:54Z","expirationDateTime":"2021-10-24T00:42:54Z","status":"running","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '8',
  'apim-request-id',
  'f2938db2-20f9-4c79-81ef-81b5363c3880',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:54 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/b8ba8dd9-187d-4d07-bf58-8fde3875f200')
  .query(true)
  .reply(200, {"jobId":"b8ba8dd9-187d-4d07-bf58-8fde3875f200","lastUpdateDateTime":"2021-10-23T00:42:54Z","createdDateTime":"2021-10-23T00:42:54Z","expirationDateTime":"2021-10-24T00:42:54Z","status":"running","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '8',
  'apim-request-id',
  'c04fab3d-6651-4ef2-b241-f88461a10be5',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:54 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/b8ba8dd9-187d-4d07-bf58-8fde3875f200')
  .query(true)
  .reply(200, {"jobId":"b8ba8dd9-187d-4d07-bf58-8fde3875f200","lastUpdateDateTime":"2021-10-23T00:42:55Z","createdDateTime":"2021-10-23T00:42:54Z","expirationDateTime":"2021-10-24T00:42:54Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-05-15"}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '154',
  'apim-request-id',
  '3ee7dca4-eac7-4e0f-b7c8-2bf468a0029a',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:56 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/b8ba8dd9-187d-4d07-bf58-8fde3875f200')
  .query(true)
  .reply(200, {"jobId":"b8ba8dd9-187d-4d07-bf58-8fde3875f200","lastUpdateDateTime":"2021-10-23T00:42:55Z","createdDateTime":"2021-10-23T00:42:54Z","expirationDateTime":"2021-10-24T00:42:54Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}}],"modelVersion":"2021-05-15"}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '90',
  'apim-request-id',
  'de1656a8-248c-428b-b303-53fb4ae7d97b',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:56 GMT'
]);


<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/node/api_key_metricsadvisoradministrationclient_detection_and_alert_configs_crud_operations/recording_deletes_an_alert_configuration.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "536383fbbe259a2e561915c459a152c3";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .delete('/metricsadvisor/v1.0/alert/anomaly/configurations/dc77a835-8161-416a-bd73-035d5e49b69d')
  .reply(204, "", [
  'Content-Length',
  '0',
  'x-request-id',
  '1be9d8d6-4646-4248-b591-8773a9b8bec6',
  'x-envoy-upstream-service-time',
  '142',
  'apim-request-id',
  '1be9d8d6-4646-4248-b591-8773a9b8bec6',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:32:15 GMT'
]);

nock('https://endpoint:443', {"encodedQueryParams":true})
  .get('/metricsadvisor/v1.0/alert/anomaly/configurations/dc77a835-8161-416a-bd73-035d5e49b69d')
  .reply(404, {"code":"Not Found","message":"Not found this AnomalyAlertingConfiguration. TraceId: 0344fbeb-4ed0-4662-9b09-1673f5e4bd52"}, [
  'Content-Length',
  '123',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  '0344fbeb-4ed0-4662-9b09-1673f5e4bd52',
  'x-envoy-upstream-service-time',
  '85',
  'apim-request-id',
  '0344fbeb-4ed0-4662-9b09-1673f5e4bd52',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:32:15 GMT'
]);


<|start_filename|>sdk/formrecognizer/ai-form-recognizer/samples/v4/javascript/analyzeReceipt.js<|end_filename|>
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

/**
 * This sample shows how to extract elements of a receipt from a URL to a file using the prebuilt receipt model.
 *
 * The prebuilt receipt model can return several fields. For a detailed list of the fields supported by the receipt
 * model, see the `Receipt` type in the documentation, or refer to the following link:
 *
 * https://aka.ms/azsdk/formrecognizer/receiptfieldschema
 *
 * @summary extract data from a receipt document
 */

const {
  AzureKeyCredential,
  DocumentAnalysisClient,
  PrebuiltModels
} = require("@azure/ai-form-recognizer");

const dotenv = require("dotenv");
dotenv.config();

async function main() {
  const endpoint = process.env.FORM_RECOGNIZER_ENDPOINT ?? "<endpoint>";
  const credential = new AzureKeyCredential(process.env.FORM_RECOGNIZER_API_KEY ?? "<api key>");

  const client = new DocumentAnalysisClient(endpoint, credential);

  const poller = await client.beginAnalyzeDocuments(
    PrebuiltModels.Receipt,
    // The form recognizer service will access the following URL to a receipt image and extract data from it
    "https://raw.githubusercontent.com/Azure/azure-sdk-for-js/main/sdk/formrecognizer/ai-form-recognizer/assets/receipt/contoso-receipt.png"
  );

  const {
    documents: [result]
  } = await poller.pollUntilDone();

  // Use of PrebuiltModels.Receipt above (rather than the raw model ID), adds strong typing of the model's output
  if (result) {
    const receipt = result.fields;
    console.log("=== Receipt Information ===");
    console.log("Type:", receipt.receiptType?.value);
    console.log("Merchant:", receipt.merchantName?.value);

    console.log("Items:");
    for (const { properties: item } of receipt.items?.values ?? []) {
      console.log("-", item.name?.value);
      console.log("  Price:", item?.price?.value);
      console.log("  Total Price:", item.totalPrice?.value);
    }
  } else {
    throw new Error("Expected at least one receipt in the result.");
  }
}

main().catch((error) => {
  console.error("An error occurred:", error);
  process.exit(1);
});


<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/node/apikey_textanalyticsclient_lros_analyze/recording_single_key_phrases_action.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "61c6632849c9566300af4ee3c143eac6";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint', {"encodedQueryParams":true})
  .post('/text/analytics/v3.2-preview.2/analyze', {"analysisInput":{"documents":[{"id":"1","text":"Microsoft was founded by <NAME> and <NAME>","language":"en"},{"id":"2","text":"Microsoft fue fundado por <NAME> y <NAME>","language":"es"}]},"tasks":{"keyPhraseExtractionTasks":[{"parameters":{"model-version":"latest"}}]}})
  .reply(202, "", [
  'Transfer-Encoding',
  'chunked',
  'operation-location',
  'https://endpoint/text/analytics/v3.2-preview.2/analyze/jobs/c0454e00-e103-413c-ad90-f090e68086c4',
  'x-envoy-upstream-service-time',
  '226',
  'apim-request-id',
  '18411384-a36f-4f2f-a185-cd7c680f953f',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:37:17 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/c0454e00-e103-413c-ad90-f090e68086c4')
  .query(true)
  .reply(200, {"jobId":"c0454e00-e103-413c-ad90-f090e68086c4","lastUpdateDateTime":"2021-10-23T00:37:17Z","createdDateTime":"2021-10-23T00:37:17Z","expirationDateTime":"2021-10-24T00:37:17Z","status":"notStarted","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '8',
  'apim-request-id',
  '381ec100-b7f7-4323-a144-a80ecb107da2',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:37:17 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/c0454e00-e103-413c-ad90-f090e68086c4')
  .query(true)
  .reply(200, {"jobId":"c0454e00-e103-413c-ad90-f090e68086c4","lastUpdateDateTime":"2021-10-23T00:37:17Z","createdDateTime":"2021-10-23T00:37:17Z","expirationDateTime":"2021-10-24T00:37:17Z","status":"running","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '21',
  'apim-request-id',
  '7a3f905a-caba-48fd-8021-eeb48183aa1b',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:37:17 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/c0454e00-e103-413c-ad90-f090e68086c4')
  .query(true)
  .reply(200, {"jobId":"c0454e00-e103-413c-ad90-f090e68086c4","lastUpdateDateTime":"2021-10-23T00:37:17Z","createdDateTime":"2021-10-23T00:37:17Z","expirationDateTime":"2021-10-24T00:37:17Z","status":"running","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '13',
  'apim-request-id',
  '546274ab-29c1-4c72-a440-936b63a937ff',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:37:19 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/c0454e00-e103-413c-ad90-f090e68086c4')
  .query(true)
  .reply(200, {"jobId":"c0454e00-e103-413c-ad90-f090e68086c4","lastUpdateDateTime":"2021-10-23T00:37:17Z","createdDateTime":"2021-10-23T00:37:17Z","expirationDateTime":"2021-10-24T00:37:17Z","status":"running","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '59',
  'apim-request-id',
  '2cb82066-5e2e-4126-b316-d1977ce74ab1',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:37:21 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/c0454e00-e103-413c-ad90-f090e68086c4')
  .query(true)
  .reply(200, {"jobId":"c0454e00-e103-413c-ad90-f090e68086c4","lastUpdateDateTime":"2021-10-23T00:37:17Z","createdDateTime":"2021-10-23T00:37:17Z","expirationDateTime":"2021-10-24T00:37:17Z","status":"running","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '10',
  'apim-request-id',
  'ee1fb2c9-18ad-4710-a7bb-a1d032710805',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:37:23 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/c0454e00-e103-413c-ad90-f090e68086c4')
  .query(true)
  .reply(200, {"jobId":"c0454e00-e103-413c-ad90-f090e68086c4","lastUpdateDateTime":"2021-10-23T00:37:17Z","createdDateTime":"2021-10-23T00:37:17Z","expirationDateTime":"2021-10-24T00:37:17Z","status":"running","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '14',
  'apim-request-id',
  '044ba624-c68d-4746-94eb-ef52aa3fec4e',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:37:25 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/c0454e00-e103-413c-ad90-f090e68086c4')
  .query(true)
  .reply(200, {"jobId":"c0454e00-e103-413c-ad90-f090e68086c4","lastUpdateDateTime":"2021-10-23T00:37:17Z","createdDateTime":"2021-10-23T00:37:17Z","expirationDateTime":"2021-10-24T00:37:17Z","status":"running","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '9',
  'apim-request-id',
  'ece992d6-d3af-4c07-ac3c-a110a65c4a42',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:37:28 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/c0454e00-e103-413c-ad90-f090e68086c4')
  .query(true)
  .reply(200, {"jobId":"c0454e00-e103-413c-ad90-f090e68086c4","lastUpdateDateTime":"2021-10-23T00:37:29Z","createdDateTime":"2021-10-23T00:37:17Z","expirationDateTime":"2021-10-24T00:37:17Z","status":"succeeded","errors":[],"tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-23T00:37:29.3783566Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":["<NAME>","<NAME>","Microsoft"],"warnings":[]},{"id":"2","keyPhrases":["<NAME>","<NAME>","Microsoft"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '75',
  'apim-request-id',
  '313e7dee-bb82-4613-8229-f594f6d19b60',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:37:30 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/c0454e00-e103-413c-ad90-f090e68086c4')
  .query(true)
  .reply(200, {"jobId":"c0454e00-e103-413c-ad90-f090e68086c4","lastUpdateDateTime":"2021-10-23T00:37:29Z","createdDateTime":"2021-10-23T00:37:17Z","expirationDateTime":"2021-10-24T00:37:17Z","status":"succeeded","errors":[],"tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"keyPhraseExtractionTasks":[{"lastUpdateDateTime":"2021-10-23T00:37:29.3783566Z","state":"succeeded","results":{"documents":[{"id":"1","keyPhrases":["<NAME>","<NAME>","Microsoft"],"warnings":[]},{"id":"2","keyPhrases":["<NAME>","<NAME>","Microsoft"],"warnings":[]}],"errors":[],"modelVersion":"2021-06-01"}}]}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '81',
  'apim-request-id',
  '3fe79ab0-29e0-4c9d-8008-c48b971cfb9c',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:37:30 GMT'
]);


<|start_filename|>sdk/formrecognizer/ai-form-recognizer/samples/v4/javascript/extractLayout.js<|end_filename|>
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

/**
 * This sample shows how to extract only the basic layout information from a document using the `beginExtractLayout`
 * method. Layout information consists of the arrangement of basic OCR elements, such as pages (including their contents
 * such as lines, words, and selection marks), tables, and text font styles.
 *
 * @summary use the prebuilt layout model to extract basic document elements only
 */

const { AzureKeyCredential, DocumentAnalysisClient } = require("@azure/ai-form-recognizer");

const dotenv = require("dotenv");
dotenv.config();

async function main() {
  const endpoint = process.env.FORM_RECOGNIZER_ENDPOINT ?? "<endpoint>";
  const credential = new AzureKeyCredential(process.env.FORM_RECOGNIZER_API_KEY ?? "<api key>");

  const client = new DocumentAnalysisClient(endpoint, credential);

  const poller = await client.beginExtractLayout(
    // The form recognizer service will access the following URL to a receipt image and extract data from it
    "https://raw.githubusercontent.com/Azure/azure-sdk-for-js/main/sdk/formrecognizer/ai-form-recognizer/assets/forms/Invoice_1.pdf"
  );

  // Generic Document extraction produces all data from the Layout operation as well as the additional key-value pairs
  // (associations between elements, such as labeled elements), and document entities.
  const { pages, tables } = await poller.pollUntilDone();

  if (pages.length <= 0) {
    console.log("No pages were extracted from the document.");
  } else {
    console.log("Pages:");
    for (const page of pages) {
      console.log("- Page", page.pageNumber, `(unit: ${page.unit})`);
      console.log(`  ${page.width}x${page.height}, angle: ${page.angle}`);
      console.log(`  ${page.lines.length} lines, ${page.words.length} words`);

      if (page.lines.length > 0) {
        console.log("  Lines:");

        for (const line of page.lines) {
          console.log(`  - "${line.content}"`);

          // The words of the line can also be iterated independently. The words are computed based on their
          // corresponding spans.
          for (const word of line.words()) {
            console.log(`    - "${word.content}"`);
          }
        }
      }
    }
  }

  if (tables.length <= 0) {
    console.log("No tables were extracted from the document.");
  } else {
    console.log("Tables:");
    for (const table of tables) {
      console.log(
        `- Extracted table: ${table.columnCount} columns, ${table.rowCount} rows (${table.cells.length} cells)`
      );
    }
  }
}

main().catch((error) => {
  console.error("An error occurred:", error);
  process.exit(1);
});


<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/node/api_key_metricsadvisoradministrationclient_ingestion/recording_refreshes_ingesetion_status.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "481a1703db08a541b8a31c330d57373f";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .post('/metricsadvisor/v1.0/dataFeeds/52b0c20c-cb7c-43f0-9507-2a33170342db/ingestionStatus/query', {"startTime":"2020-10-30T00:00:00.000Z","endTime":"2020-11-01T00:00:00.000Z"})
  .reply(200, {"value":[{"timestamp":"2020-10-31T00:00:00Z","status":"Running","message":""},{"timestamp":"2020-10-30T00:00:00Z","status":"Running","message":""}]}, [
  'Content-Length',
  '149',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  '06f7d416-cca3-4c5e-9e55-10e031f60679',
  'x-envoy-upstream-service-time',
  '235',
  'apim-request-id',
  '06f7d416-cca3-4c5e-9e55-10e031f60679',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:32:12 GMT'
]);


<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/node/apikey_textanalyticsclient_lros_analyze/recording_single_pii_entities_recognition_action_with_categories_filtered.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "c669728e0d1db74e6165e8ee080b20d0";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint', {"encodedQueryParams":true})
  .post('/text/analytics/v3.2-preview.2/analyze', {"analysisInput":{"documents":[{"id":"1","text":"My SSN is 859-98-0987 and your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check."},{"id":"2","text":"Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check."}]},"tasks":{"entityRecognitionPiiTasks":[{"parameters":{"model-version":"latest","piiCategories":["USSocialSecurityNumber"],"stringIndexType":"Utf16CodeUnit"}}]}})
  .reply(202, "", [
  'Transfer-Encoding',
  'chunked',
  'operation-location',
  'https://endpoint/text/analytics/v3.2-preview.2/analyze/jobs/4f79b146-c44b-47ca-bad2-a4b4efdcb26a',
  'x-envoy-upstream-service-time',
  '244',
  'apim-request-id',
  '50d58be9-8b35-400f-b93f-a1a7b7c54e86',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:37:51 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/4f79b146-c44b-47ca-bad2-a4b4efdcb26a')
  .query(true)
  .reply(200, {"jobId":"4f79b146-c44b-47ca-bad2-a4b4efdcb26a","lastUpdateDateTime":"2021-10-23T00:37:51Z","createdDateTime":"2021-10-23T00:37:51Z","expirationDateTime":"2021-10-24T00:37:51Z","status":"notStarted","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '8',
  'apim-request-id',
  '2c0f5269-2199-4caf-b677-d2afd6f8ff31',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:37:51 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/4f79b146-c44b-47ca-bad2-a4b4efdcb26a')
  .query(true)
  .reply(200, {"jobId":"4f79b146-c44b-47ca-bad2-a4b4efdcb26a","lastUpdateDateTime":"2021-10-23T00:37:51Z","createdDateTime":"2021-10-23T00:37:51Z","expirationDateTime":"2021-10-24T00:37:51Z","status":"notStarted","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '9',
  'apim-request-id',
  '75c42f38-daea-48e2-a391-64fc2dc66e71',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:37:51 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/4f79b146-c44b-47ca-bad2-a4b4efdcb26a')
  .query(true)
  .reply(200, {"jobId":"4f79b146-c44b-47ca-bad2-a4b4efdcb26a","lastUpdateDateTime":"2021-10-23T00:37:51Z","createdDateTime":"2021-10-23T00:37:51Z","expirationDateTime":"2021-10-24T00:37:51Z","status":"running","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '8',
  'apim-request-id',
  'd4dbe6f3-df89-4f5f-90b9-90f0467a56f4',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:37:53 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/4f79b146-c44b-47ca-bad2-a4b4efdcb26a')
  .query(true)
  .reply(200, {"jobId":"4f79b146-c44b-47ca-bad2-a4b4efdcb26a","lastUpdateDateTime":"2021-10-23T00:37:51Z","createdDateTime":"2021-10-23T00:37:51Z","expirationDateTime":"2021-10-24T00:37:51Z","status":"running","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '7',
  'apim-request-id',
  '69008647-0fa9-4cf5-8e4d-19b808df2dd1',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:37:55 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/4f79b146-c44b-47ca-bad2-a4b4efdcb26a')
  .query(true)
  .reply(200, {"jobId":"4f79b146-c44b-47ca-bad2-a4b4efdcb26a","lastUpdateDateTime":"2021-10-23T00:37:51Z","createdDateTime":"2021-10-23T00:37:51Z","expirationDateTime":"2021-10-24T00:37:51Z","status":"running","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '9',
  'apim-request-id',
  'f1be1aaa-55bb-409d-ba41-c718fad81a55',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:37:57 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/4f79b146-c44b-47ca-bad2-a4b4efdcb26a')
  .query(true)
  .reply(200, {"jobId":"4f79b146-c44b-47ca-bad2-a4b4efdcb26a","lastUpdateDateTime":"2021-10-23T00:38:00Z","createdDateTime":"2021-10-23T00:37:51Z","expirationDateTime":"2021-10-24T00:37:51Z","status":"succeeded","errors":[],"tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-23T00:38:00.1142045Z","state":"succeeded","results":{"documents":[{"redactedText":"My SSN is *********** and your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check.","id":"1","entities":[{"text":"859-98-0987","category":"USSocialSecurityNumber","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check.","id":"2","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '127',
  'apim-request-id',
  'bf3e2d46-9c13-464d-a254-44d31aeb4052',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:37:59 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/4f79b146-c44b-47ca-bad2-a4b4efdcb26a')
  .query(true)
  .reply(200, {"jobId":"4f79b146-c44b-47ca-bad2-a4b4efdcb26a","lastUpdateDateTime":"2021-10-23T00:38:00Z","createdDateTime":"2021-10-23T00:37:51Z","expirationDateTime":"2021-10-24T00:37:51Z","status":"succeeded","errors":[],"tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-23T00:38:00.1142045Z","state":"succeeded","results":{"documents":[{"redactedText":"My SSN is *********** and your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check.","id":"1","entities":[{"text":"859-98-0987","category":"USSocialSecurityNumber","offset":10,"length":11,"confidenceScore":0.65}],"warnings":[]},{"redactedText":"Your ABA number - 111000025 - is the first 9 digits in the lower left hand corner of your personal check.","id":"2","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '157',
  'apim-request-id',
  'ba10975d-8f68-42c9-b554-73c05144f5c0',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:38:00 GMT'
]);


<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/node/api_key_metricsadvisorclient_hooks/recording_updates_email_hook.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "e89845354bda9fbabaf9179fbd12fbc3";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .patch('/metricsadvisor/v1.0/hooks/7ba3c3b1-f3d3-4598-ae87-ac584020c641', {"hookType":"Email","hookParameter":{"toList":["<EMAIL>","<EMAIL>"]}})
  .reply(200, {"hookId":"7ba3c3b1-f3d3-4598-ae87-ac584020c641","hookName":"js-test-emailHook-163702282957003574","hookType":"Email","externalLink":"","description":"description","admins":["<EMAIL>"],"hookParameter":{"toList":["<EMAIL>","<EMAIL>"]}}, [
  'Content-Length',
  '268',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  '41536fbd-dbe8-4552-8e1a-80fb52c4d163',
  'x-envoy-upstream-service-time',
  '606',
  'apim-request-id',
  '41536fbd-dbe8-4552-8e1a-80fb52c4d163',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:33:50 GMT'
]);


<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/api_key_metricsadvisorclient_hooks/recording_lists_hooks.json<|end_filename|>
{
 "recordings": [
  {
   "method": "GET",
   "url": "https://endpoint/metricsadvisor/v1.0/hooks",
   "query": {
    "hookName": "js-test"
   },
   "requestBody": null,
   "status": 200,
   "response": "{\"value\":[{\"hookId\":\"103a479c-ca6d-400e-a7f8-a9a868361b47\",\"hookName\":\"js-test-emailHook-163615467799506131\",\"hookType\":\"Email\",\"externalLink\":\"\",\"description\":\"description\",\"admins\":[\"<EMAIL>\"],\"hookParameter\":{\"toList\":[\"<EMAIL>\"]}},{\"hookId\":\"57721e92-20ac-49c3-a3bc-567794d173b5\",\"hookName\":\"js-test-emailHook-163615469910009534\",\"hookType\":\"Email\",\"externalLink\":\"\",\"description\":\"description\",\"admins\":[\"<EMAIL>\"],\"hookParameter\":{\"toList\":[\"<EMAIL>\"]}},{\"hookId\":\"79223f60-bb88-424f-8942-6df8d659e5c8\",\"hookName\":\"js-test-emailHook-163667848285101340\",\"hookType\":\"Email\",\"externalLink\":\"\",\"description\":\"description\",\"admins\":[\"<EMAIL>\"],\"hookParameter\":{\"toList\":[\"<EMAIL>\"]}},{\"hookId\":\"e2f4abd6-fb50-4ccb-8d6b-55e00e68aee5\",\"hookName\":\"js-test-emailHook-163667870367305614\",\"hookType\":\"Email\",\"externalLink\":\"\",\"description\":\"description\",\"admins\":[\"<EMAIL>\"],\"hookParameter\":{\"toList\":[\"<EMAIL>\"]}},{\"hookId\":\"db2a415f-37a6-4cec-b6ee-f5e8daf053b3\",\"hookName\":\"js-test-emailHook-163702814497709646\",\"hookType\":\"Email\",\"externalLink\":\"\",\"description\":\"description\",\"admins\":[\"<EMAIL>\"],\"hookParameter\":{\"toList\":[\"<EMAIL>\",\"<EMAIL>\"]}},{\"hookId\":\"ca984835-d2c8-4496-957c-0f2721f14220\",\"hookName\":\"js-test-webHook-163702814497707066\",\"hookType\":\"Webhook\",\"externalLink\":\"\",\"description\":\"description\",\"admins\":[\"<EMAIL>\"],\"hookParameter\":{\"endpoint\":\"https://httpbin.org/post\",\"username\":\"user1\",\"password\":\"<PASSWORD>\"}}]}",
   "responseHeaders": {
    "apim-request-id": "9533df54-2381-4eb9-8f5f-d4e38396b4a8",
    "content-length": "1578",
    "content-type": "application/json; charset=utf-8",
    "date": "Tue, 16 Nov 2021 02:02:28 GMT",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "x-content-type-options": "nosniff",
    "x-envoy-upstream-service-time": "108",
    "x-request-id": "9533df54-2381-4eb9-8f5f-d4e38396b4a8"
   }
  }
 ],
 "uniqueTestInfo": {
  "uniqueName": {},
  "newDate": {}
 },
 "hash": "fdc9bff2290b63c6a1801bde872425de"
}

<|start_filename|>sdk/formrecognizer/ai-form-recognizer/recordings/browsers/api_key_model_management_model_build_account_properties/recording_has_trained_models_and_limits.json<|end_filename|>
{
 "recordings": [
  {
   "method": "GET",
   "url": "https://endpoint/formrecognizer/info",
   "query": {
    "api-version": "2021-09-30-preview"
   },
   "requestBody": null,
   "status": 200,
   "response": "{\n  \"customDocumentModels\": {\n    \"count\": 92,\n    \"limit\": 20000\n  }\n}",
   "responseHeaders": {
    "apim-request-id": "02ccb64b-80be-4874-a85d-f98e380e8f9d",
    "content-type": "application/json; charset=utf-8",
    "date": "Tue, 21 Sep 2021 21:35:53 GMT",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "x-content-type-options": "nosniff",
    "x-envoy-upstream-service-time": "65"
   }
  }
 ],
 "uniqueTestInfo": {
  "uniqueName": {},
  "newDate": {}
 },
 "hash": "f9b988cd2c88eaf3bda64d60f90b3e8a"
}

<|start_filename|>sdk/formrecognizer/ai-form-recognizer/samples/v4/javascript/analyzeDocumentByModelId.js<|end_filename|>
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

/**
 * This sample shows how to analyze a document using a model with a given ID. The model ID may refer to any model,
 * whether custom, prebuilt, composed, etc.
 *
 * @summary analyze a document using a model by ID
 */

const { AzureKeyCredential, DocumentAnalysisClient } = require("@azure/ai-form-recognizer");

const dotenv = require("dotenv");
dotenv.config();

async function main() {
  const endpoint = process.env.FORM_RECOGNIZER_ENDPOINT ?? "<endpoint>";
  const credential = new AzureKeyCredential(process.env.FORM_RECOGNIZER_API_KEY ?? "<api key>");
  const client = new DocumentAnalysisClient(endpoint, credential);

  const modelId = process.env.FORM_RECOGNIZER_CUSTOM_MODEL_ID ?? "<custom model ID>";

  const poller = await client.beginAnalyzeDocuments(
    modelId,
    "https://raw.githubusercontent.com/Azure/azure-sdk-for-js/main/sdk/formrecognizer/ai-form-recognizer/assets/receipt/contoso-receipt.png"
  );

  const {
    documents: [document]
  } = await poller.pollUntilDone();

  if (!document) {
    throw new Error("Expected at least one document in the result.");
  }

  console.log(
    "Extracted document:",
    document.docType,
    `(confidence: ${document.confidence ?? "<undefined>"})`
  );
  console.log("Fields:", document.fields);
}

main().catch((error) => {
  console.error("An error occurred:", error);
  process.exit(1);
});


<|start_filename|>sdk/tables/data-tables/recordings/browsers/tableclient_sasconnectionstring_createentity_getentity_and_delete/recording_should_create_binary_entities_without_automatic_type_conversion.json<|end_filename|>
{
 "recordings": [
  {
   "method": "POST",
   "url": "https://fakeaccount.table.core.windows.net/tableClientTestSASConnectionStringbrowser",
   "query": {},
   "requestBody": "{\"PartitionKey\":\"CreateBinary_SASConnectionStringbrowser\",\"RowKey\":\"second_SASConnectionStringbrowser\",\"binary\":\"QmFy\",\"binary<EMAIL>\":\"Edm.Binary\",\"binaryMetadata\":\"QmFy\",\"binaryMetadata<EMAIL>\":\"Edm.Binary\"}",
   "status": 204,
   "response": "",
   "responseHeaders": {
    "cache-control": "no-cache",
    "content-length": "0",
    "dataserviceid": "https://fakeaccount.table.core.windows.net/tableClientTestSASConnectionStringbrowser(PartitionKey='CreateBinary_SASConnectionStringbrowser',RowKey='second_SASConnectionStringbrowser')",
    "date": "Mon, 18 Oct 2021 20:22:06 GMT",
    "etag": "W/\"datetime'2021-10-18T20%3A22%3A06.2988577Z'\"",
    "location": "https://fakeaccount.table.core.windows.net/tableClientTestSASConnectionStringbrowser(PartitionKey='CreateBinary_SASConnectionStringbrowser',RowKey='second_SASConnectionStringbrowser')",
    "preference-applied": "return-no-content",
    "server": "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0",
    "x-content-type-options": "nosniff",
    "x-ms-client-request-id": "10cbf332-2eb3-4512-9d32-d386b27ef8af",
    "x-ms-request-id": "fd977c27-3002-0135-635d-c469bf000000",
    "x-ms-version": "2019-02-02"
   }
  },
  {
   "method": "GET",
   "url": "https://fakeaccount.table.core.windows.net/tableClientTestSASConnectionStringbrowser(PartitionKey='CreateBinary_SASConnectionStringbrowser',RowKey='second_SASConnectionStringbrowser')",
   "query": {},
   "requestBody": null,
   "status": 200,
   "response": "{\"odata.metadata\":\"https://fakeaccount.table.core.windows.net/$metadata#tableClientTestSASConnectionStringbrowser/@Element\",\"odata.etag\":\"W/\\\"datetime'2021-10-18T20%3A22%3A06.2988577Z'\\\"\",\"PartitionKey\":\"CreateBinary_SASConnectionStringbrowser\",\"RowKey\":\"second_SASConnectionStringbrowser\",\"Timestamp\":\"2021-10-18T20:22:06.2988577Z\",\"<EMAIL>\":\"Edm.Binary\",\"binary\":\"QmFy\",\"<EMAIL>\":\"Edm.Binary\",\"binaryMetadata\":\"QmFy\"}",
   "responseHeaders": {
    "access-control-allow-origin": "*",
    "access-control-expose-headers": "x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,ETag,Content-Type,Content-Length,Date,Transfer-Encoding",
    "cache-control": "no-cache",
    "content-type": "application/json;odata=minimalmetadata;streaming=true;charset=utf-8",
    "date": "Mon, 18 Oct 2021 20:22:06 GMT",
    "etag": "W/\"datetime'2021-10-18T20%3A22%3A06.2988577Z'\"",
    "server": "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0",
    "transfer-encoding": "chunked",
    "x-content-type-options": "nosniff",
    "x-ms-client-request-id": "9c9189b6-9082-4f4c-acc8-89ed8180c6c0",
    "x-ms-request-id": "fd977c31-3002-0135-6d5d-c469bf000000",
    "x-ms-version": "2019-02-02"
   }
  }
 ],
 "uniqueTestInfo": {
  "uniqueName": {},
  "newDate": {}
 },
 "hash": "cc515de6566de9b77d0471c50da32cd5"
}

<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/node/api_key_metricsadvisorclient/recording_listanomaliesfordetectionconfiguration_by_page.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "30aa1c20df7a83e5962e7a8e0c310ffc";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .post('/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/26ece682-80a6-4415-89a2-05903dd9a640/anomalies/query', {"startTime":"2021-05-05T00:00:00.000Z","endTime":"2021-11-01T00:00:00.000Z"})
  .query(true)
  .reply(200, {"value":[{"timestamp":"2021-10-31T00:00:00Z","dimension":{"region":"Tianjin","category":"Electronics (Consumer)"},"property":{"anomalySeverity":"Low","value":8.2,"expectedValue":0.08059720961202357}},{"timestamp":"2021-10-31T00:00:00Z","dimension":{"region":"__SUM__","category":"Electronics (Accessories)"},"property":{"anomalySeverity":"Low","value":12.6,"expectedValue":114.17942348386997}}],"@nextLink":"https://endpoint:443/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/26ece682-80a6-4415-89a2-05903dd9a640/anomalies/query?$maxpagesize=2&$skip=2"}, [
  'Content-Length',
  '608',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  '29914547-36b2-4d89-bff7-9bf5f6411ddc',
  'x-envoy-upstream-service-time',
  '114',
  'apim-request-id',
  '29914547-36b2-4d89-bff7-9bf5f6411ddc',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:32:38 GMT'
]);

nock('https://endpoint:443', {"encodedQueryParams":true})
  .post('/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/26ece682-80a6-4415-89a2-05903dd9a640/anomalies/query', {"startTime":"2021-05-05T00:00:00.000Z","endTime":"2021-11-01T00:00:00.000Z"})
  .query(true)
  .reply(200, {"value":[{"timestamp":"2021-10-31T00:00:00Z","dimension":{"region":"Karachi","category":"Electronics (Consumer)"},"property":{"anomalySeverity":"Medium","value":3799.2,"expectedValue":292.12803420060055}},{"timestamp":"2021-10-31T00:00:00Z","dimension":{"region":"Cairo","category":"Electronics (Consumer)"},"property":{"anomalySeverity":"Low","value":133.6,"expectedValue":0.00039042653963033904}}],"@nextLink":"https://endpoint:443/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/26ece682-80a6-4415-89a2-05903dd9a640/anomalies/query?$maxpagesize=2&$skip=4"}, [
  'Content-Length',
  '613',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  '2a449f30-0b96-4333-8120-9c062787a999',
  'x-envoy-upstream-service-time',
  '115',
  'apim-request-id',
  '2a449f30-0b96-4333-8120-9c062787a999',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:32:40 GMT'
]);


<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/node/api_key_metricsadvisorclient_hooks/recording_creates_web_hook.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "6f0858a8a1c852a2b58efd48a1c63d3e";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .post('/metricsadvisor/v1.0/hooks', {"hookType":"Webhook","hookName":"js-test-webHook-163702282957004992","description":"description","hookParameter":{"endpoint":"https://httpbin.org/post","username":"user","password":"<PASSWORD>"}})
  .reply(201, "", [
  'Content-Length',
  '0',
  'Location',
  'https://endpoint/metricsadvisor/v1.0/hooks/e86dd6fb-ec6a-4b29-98f5-172a91f3db69',
  'x-request-id',
  '893abd6d-7c7c-4453-9860-e181de82b7e6',
  'x-envoy-upstream-service-time',
  '515',
  'apim-request-id',
  '893abd6d-7c7c-4453-9860-e181de82b7e6',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:33:49 GMT'
]);

nock('https://endpoint:443', {"encodedQueryParams":true})
  .get('/metricsadvisor/v1.0/hooks/e86dd6fb-ec6a-4b29-98f5-172a91f3db69')
  .reply(200, {"hookId":"e86dd6fb-ec6a-4b29-98f5-172a91f3db69","hookName":"js-test-webHook-163702282957004992","hookType":"Webhook","externalLink":"","description":"description","admins":["<EMAIL>"],"hookParameter":{"endpoint":"https://httpbin.org/post","username":"user","password":"<PASSWORD>"}}, [
  'Content-Length',
  '291',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  '7f34a03b-4974-4b45-a87a-8178bfaeb6e9',
  'x-envoy-upstream-service-time',
  '152',
  'apim-request-id',
  '7f34a03b-4974-4b45-a87a-8178bfaeb6e9',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:33:49 GMT'
]);


<|start_filename|>sdk/formrecognizer/ai-form-recognizer/recordings/node/api_key_model_management_model_build_model_information/recording_delete_models_from_the_account.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "7b6ab81851eb58d7d3f44dec3a2ccf39";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .delete('/formrecognizer/documentModels/modelName163337188938006462')
  .query(true)
  .reply(204, "", [
  'Content-Length',
  '0',
  'x-envoy-upstream-service-time',
  '32',
  'apim-request-id',
  '609f8d3e-5cb4-4dc6-acfd-7644826064e6',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Mon, 04 Oct 2021 18:25:02 GMT'
]);

nock('https://endpoint:443', {"encodedQueryParams":true})
  .get('/formrecognizer/documentModels/modelName163337188938006462')
  .query(true)
  .reply(404, {"error":{"code":"NotFound","message":"Resource not found.","innererror":{"code":"ModelNotFound","message":"The requested model was not found."}}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json',
  'x-envoy-upstream-service-time',
  '21',
  'apim-request-id',
  '0e6fb559-cd54-464a-9a59-a570b0832b0c',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Mon, 04 Oct 2021 18:25:02 GMT'
]);


<|start_filename|>sdk/tables/data-tables/recordings/node/tableclient_sasconnectionstring_createentity_getentity_and_delete/recording_should_create_binary_entities_without_automatic_type_conversion.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "80cf87fdd21f28e690711cf1fa09c675";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .post('/tableClientTestSASConnectionStringnode', {"PartitionKey":"CreateBinary_SASConnectionStringnode","RowKey":"second_SASConnectionStringnode","binary":"QmFy","<EMAIL>":"Edm.Binary","binaryMetadata":"QmFy","<EMAIL>":"Edm.Binary"})
  .query(true)
  .reply(204, "", [
  'Cache-Control',
  'no-cache',
  'Content-Length',
  '0',
  'ETag',
  `W/"datetime'2021-10-18T20%3A22%3A00.7019109Z'"`,
  'Location',
  "https://fakeaccount.table.core.windows.net/tableClientTestSASConnectionStringnode(PartitionKey='CreateBinary_SASConnectionStringnode',RowKey='second_SASConnectionStringnode')",
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '483254cb-c002-0060-3e5d-c4c49d000000',
  'x-ms-client-request-id',
  '255ea98e-d667-4d8a-98ef-3964258aa8db',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'Preference-Applied',
  'return-no-content',
  'DataServiceId',
  "https://fakeaccount.table.core.windows.net/tableClientTestSASConnectionStringnode(PartitionKey='CreateBinary_SASConnectionStringnode',RowKey='second_SASConnectionStringnode')",
  'Date',
  'Mon, 18 Oct 2021 20:22:00 GMT'
]);

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .get(`/tableClientTestSASConnectionStringnode(PartitionKey='CreateBinary_SASConnectionStringnode',RowKey='second_SASConnectionStringnode')`)
  .query(true)
  .reply(200, {"odata.metadata":"https://fakeaccount.table.core.windows.net/$metadata#tableClientTestSASConnectionStringnode/@Element","odata.etag":"W/\"datetime'2021-10-18T20%3A22%3A00.7019109Z'\"","PartitionKey":"CreateBinary_SASConnectionStringnode","RowKey":"second_SASConnectionStringnode","Timestamp":"2021-10-18T20:22:00.7019109Z","<EMAIL>":"Edm.<EMAIL>","binary":"QmFy","<EMAIL>":"Edm.Binary","binaryMetadata":"QmFy"}, [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json;odata=minimalmetadata;streaming=true;charset=utf-8',
  'ETag',
  `W/"datetime'2021-10-18T20%3A22%3A00.7019109Z'"`,
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '483254d6-c002-0060-495d-c4c49d000000',
  'x-ms-client-request-id',
  '88a144a1-b98c-4e52-b472-a5b3afd87084',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'Access-Control-Expose-Headers',
  'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,ETag,Content-Type,Content-Length,Date,Transfer-Encoding',
  'Access-Control-Allow-Origin',
  '*',
  'Date',
  'Mon, 18 Oct 2021 20:22:00 GMT'
]);


<|start_filename|>sdk/formrecognizer/ai-form-recognizer/samples/v4-beta/javascript/copyModel.js<|end_filename|>
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

/**
 * This sample shows how to copy a model from one resource to another. The model is created with a new model ID (and
 * optionally a new description) in the destination resource, but will have the same document types as the source model.
 *
 * @summary copy a model from one resource to another
 */

const {
  AzureKeyCredential,
  DocumentModelAdministrationClient
} = require("@azure/ai-form-recognizer");

async function main() {
  const endpoint = process.env.FORM_RECOGNIZER_ENDPOINT ?? "<endpoint>";
  const credential = new AzureKeyCredential(process.env.FORM_RECOGNIZER_API_KEY ?? "<api key>");

  const random = Date.now().toString();
  const destinationModelId =
    (process.env.CUSTOM_MODEL_ID ?? "<model id>") + random.substring(random.length - 6);

  // The authorization must be created by the destination resource.
  const destinationClient = new DocumentModelAdministrationClient(endpoint, credential);
  const authorization = await destinationClient.getCopyAuthorization(destinationModelId);

  const sourceEndpoint = process.env.FORM_RECOGNIZER_SOURCE_ENDPOINT ?? "<source endpoint>";
  const sourceCredential = new AzureKeyCredential(
    process.env.FORM_RECOGNIZER_SOURCE_API_KEY ?? "<source api key>"
  );
  const sourceModelId = process.env.COPY_SOURCE_MODEL_ID ?? "<source model id>";

  // Then, the source resource can initiate the copy operation.
  const sourceClient = new DocumentModelAdministrationClient(sourceEndpoint, sourceCredential);

  const copyPoller = await sourceClient.beginCopyModel(sourceModelId, authorization);
  const model = await copyPoller.pollUntilDone();

  console.log("Model ID:", model.modelId);
  console.log("Description:", model.description);
  console.log("Created:", model.createdDateTime);
}

main().catch((error) => {
  console.error("An error occurred:", error);
  process.exit(1);
});


<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/node/apikey_textanalyticsclient_lros_analyze/recording_single_custom_document_single_category_classification_action.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "20e51d103d3129d724daa3fee868df01";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint', {"encodedQueryParams":true})
  .post('/text/analytics/v3.2-preview.2/analyze', {"analysisInput":{"documents":[{"id":"1","text":"A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal lands over the past six years has stretched the staff of the BLM to a point that it has been unable to meet its environmental protection responsibilities.","language":"en"}]},"tasks":{"customSingleClassificationTasks":[{"parameters":{"project-name":"project_name","deployment-name":"deployment_name"}}]}})
  .reply(202, "", [
  'Transfer-Encoding',
  'chunked',
  'operation-location',
  'https://endpoint/text/analytics/v3.2-preview.2/analyze/jobs/5a8ee9a0-4896-43a8-996a-afba5f73f440',
  'x-envoy-upstream-service-time',
  '547',
  'apim-request-id',
  'eca94f99-a546-4614-9bb4-fe13b960f76a',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:36:47 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/5a8ee9a0-4896-43a8-996a-afba5f73f440')
  .query(true)
  .reply(200, {"jobId":"5a8ee9a0-4896-43a8-996a-afba5f73f440","lastUpdateDateTime":"2021-10-23T00:36:47Z","createdDateTime":"2021-10-23T00:36:47Z","expirationDateTime":"2021-10-24T00:36:47Z","status":"notStarted","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '6',
  'apim-request-id',
  '6cb72423-02eb-4635-8e56-44595428a4ab',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:36:47 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/5a8ee9a0-4896-43a8-996a-afba5f73f440')
  .query(true)
  .reply(200, {"jobId":"5a8ee9a0-4896-43a8-996a-afba5f73f440","lastUpdateDateTime":"2021-10-23T00:36:47Z","createdDateTime":"2021-10-23T00:36:47Z","expirationDateTime":"2021-10-24T00:36:47Z","status":"notStarted","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '19',
  'apim-request-id',
  '8072d42e-14cc-407a-9854-261c9c881525',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:36:47 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/5a8ee9a0-4896-43a8-996a-afba5f73f440')
  .query(true)
  .reply(200, {"jobId":"5a8ee9a0-4896-43a8-996a-afba5f73f440","lastUpdateDateTime":"2021-10-23T00:36:48Z","createdDateTime":"2021-10-23T00:36:47Z","expirationDateTime":"2021-10-24T00:36:47Z","status":"succeeded","errors":[],"tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-23T00:36:48.8121263Z","state":"succeeded","results":{"documents":[{"id":"1","classification":{"category":"RateBook","confidenceScore":0.76},"warnings":[]}],"errors":[],"projectName":"project_name","deploymentName":"deployment_name"}}]}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '72',
  'apim-request-id',
  '6b2983c0-92a2-41a8-b3fe-653a72b5af1c',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:36:50 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/5a8ee9a0-4896-43a8-996a-afba5f73f440')
  .query(true)
  .reply(200, {"jobId":"5a8ee9a0-4896-43a8-996a-afba5f73f440","lastUpdateDateTime":"2021-10-23T00:36:48Z","createdDateTime":"2021-10-23T00:36:47Z","expirationDateTime":"2021-10-24T00:36:47Z","status":"succeeded","errors":[],"tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"customSingleClassificationTasks":[{"lastUpdateDateTime":"2021-10-23T00:36:48.8121263Z","state":"succeeded","results":{"documents":[{"id":"1","classification":{"category":"RateBook","confidenceScore":0.76},"warnings":[]}],"errors":[],"projectName":"project_name","deploymentName":"deployment_name"}}]}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '56',
  'apim-request-id',
  '3087ae25-6909-4f59-801c-458d387e6adf',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:36:50 GMT'
]);


<|start_filename|>sdk/purview/purview-administration-rest/recordings/browsers/get_account_info/recording_should_get_the_account_info.json<|end_filename|>
{
 "recordings": [
  {
   "method": "POST",
   "url": "https://login.microsoftonline.com/88888888-8888-8888-8888-888888888888/oauth2/v2.0/token",
   "query": {},
   "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F",
   "status": 200,
   "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}",
   "responseHeaders": {
    "cache-control": "no-store, no-cache",
    "content-length": "1318",
    "content-type": "application/json; charset=utf-8",
    "date": "Thu, 04 Nov 2021 15:45:03 GMT",
    "expires": "-1",
    "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}",
    "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"",
    "pragma": "no-cache",
    "referrer-policy": "strict-origin-when-cross-origin",
    "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+est\"}]}",
    "strict-transport-security": "max-age=31536000; includeSubDomains",
    "x-content-type-options": "nosniff",
    "x-ms-ests-server": "2.1.12197.4 - NCUS ProdSlices",
    "x-ms-request-id": "03b2ffa4-a5be-4725-9d84-fb04a6e21500"
   }
  },
  {
   "method": "GET",
   "url": "https://endpoint/",
   "query": {
    "api-version": "2019-11-01-preview"
   },
   "requestBody": null,
   "status": 200,
   "response": "{\"sku\":{\"name\":\"Standard\",\"capacity\":1},\"properties\":{\"cloudConnectors\":{\"awsExternalId\":\"ec2bff3a-3cba-4be0-a9ca-6d6b0a5cc268\"},\"friendlyName\":\"joheredipv\",\"createdBy\":\"<EMAIL>\",\"createdByObjectId\":\"35ac9d32-a8ca-4324-9393-d4000746f07c\",\"createdAt\":\"2021-08-10T17:25:46.5991716Z\",\"endpoints\":{\"catalog\":\"https://endpoint/catalog\",\"scan\":\"https://endpoint/scan\",\"guardian\":\"https://endpoint/guardian\"},\"provisioningState\":\"Succeeded\",\"privateEndpointConnections\":[],\"managedResources\":{\"resourceGroup\":\"/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/managed-rg-joheredipv\",\"storageAccount\":\"/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/managed-rg-joheredipv/providers/Microsoft.Storage/storageAccounts/scaneastusgiaeeoh\",\"eventHubNamespace\":\"/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/managed-rg-joheredipv/providers/Microsoft.EventHub/namespaces/Atlas-9fe2f965-5f93-4bdf-a811-7221a78e2fdb\"},\"publicNetworkAccess\":\"Enabled\",\"managedResourceGroupName\":\"managed-rg-joheredipv\"},\"id\":\"/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/joheredi-test/providers/Microsoft.Purview/accounts/joheredipv\",\"name\":\"joheredipv\",\"type\":\"Microsoft.Purview/accounts\",\"location\":\"eastus\",\"identity\":{\"type\":\"SystemAssigned\",\"principalId\":\"dab894e8-208b-4092-9ddc-71dbb9447e9d\",\"tenantId\":\"88888888-8888-8888-8888-888888888888\"},\"tags\":{},\"systemData\":{\"createdBy\":\"<EMAIL>\",\"createdByType\":\"User\",\"createdAt\":\"2021-08-10T17:25:46.5991716Z\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2021-09-15T23:38:59.768035Z\"}}",
   "responseHeaders": {
    "content-type": "application/json; charset=utf-8",
    "date": "Thu, 04 Nov 2021 15:45:04 GMT",
    "server": "Kestrel",
    "strict-transport-security": "max-age=31536000; includeSubDomains",
    "x-ms-account-status": "Succeeded",
    "x-ms-correlation-request-id": "6cafae68-4d47-4aea-a171-39f750f693d6"
   }
  }
 ],
 "uniqueTestInfo": {
  "uniqueName": {},
  "newDate": {}
 },
 "hash": "03d082a1f2749c5f4c764dde8022fba8"
}


<|start_filename|>sdk/tables/data-tables/recordings/node/tableclient_sasconnectionstring_createentity_getentity_and_delete/recording_should_createentity_empty_partition_and_row_keys.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "bc232e4b36253a7a7c22fa8a40d13ad3";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .post('/tableClientTestSASConnectionStringnode', {"PartitionKey":"","RowKey":"","testField":"testEntity"})
  .query(true)
  .reply(204, "", [
  'Cache-Control',
  'no-cache',
  'Content-Length',
  '0',
  'ETag',
  `W/"datetime'2021-11-09T00%3A41%3A25.3706118Z'"`,
  'Location',
  "https://fakeaccount.table.core.windows.net/tableClientTestSASConnectionStringnode(PartitionKey='',RowKey='')",
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '72974220-f002-0086-5c02-d5d56d000000',
  'x-ms-client-request-id',
  '345e610b-7dac-4909-8988-eb816e634f77',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'Preference-Applied',
  'return-no-content',
  'DataServiceId',
  "https://fakeaccount.table.core.windows.net/tableClientTestSASConnectionStringnode(PartitionKey='',RowKey='')",
  'Date',
  'Tue, 09 Nov 2021 00:41:24 GMT'
]);

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .get(`/tableClientTestSASConnectionStringnode(PartitionKey='',RowKey='')`)
  .query(true)
  .reply(200, {"odata.metadata":"https://fakeaccount.table.core.windows.net/$metadata#tableClientTestSASConnectionStringnode/@Element","odata.etag":"W/\"datetime'2021-11-09T00%3A41%3A25.3706118Z'\"","PartitionKey":"","RowKey":"","Timestamp":"2021-11-09T00:41:25.3706118Z","testField":"testEntity"}, [
  'Cache-Control',
  'no-cache',
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json;odata=minimalmetadata;streaming=true;charset=utf-8',
  'ETag',
  `W/"datetime'2021-11-09T00%3A41%3A25.3706118Z'"`,
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '7297422f-f002-0086-6b02-d5d56d000000',
  'x-ms-client-request-id',
  '234119a2-f5f9-4396-9a3c-9d325f868677',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'Access-Control-Expose-Headers',
  'x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,ETag,Content-Type,Content-Length,Date,Transfer-Encoding',
  'Access-Control-Allow-Origin',
  '*',
  'Date',
  'Tue, 09 Nov 2021 00:41:24 GMT'
]);

nock('https://fakeaccount.table.core.windows.net:443', {"encodedQueryParams":true})
  .delete(`/tableClientTestSASConnectionStringnode(PartitionKey='',RowKey='')`)
  .query(true)
  .reply(204, "", [
  'Cache-Control',
  'no-cache',
  'Content-Length',
  '0',
  'Server',
  'Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0',
  'x-ms-request-id',
  '7297423a-f002-0086-7602-d5d56d000000',
  'x-ms-client-request-id',
  '71d40580-09d9-4f3c-b5fe-81a3b6fd9441',
  'x-ms-version',
  '2019-02-02',
  'X-Content-Type-Options',
  'nosniff',
  'Date',
  'Tue, 09 Nov 2021 00:41:24 GMT'
]);


<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/node/apikey_textanalyticsclient_fast_tests_recognizelinkedentities/recording_service_errors_on_unsupported_language.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "fad55cf856722b5497b225d29f822c2b";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint', {"encodedQueryParams":true})
  .post('/text/analytics/v3.2-preview.2/entities/linking', {"documents":[{"id":"0","text":"This is some text, but it doesn't matter.","language":"notalanguage"}]})
  .query(true)
  .reply(200, {"documents":[],"errors":[{"id":"0","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en,es. For additional details see https://aka.ms/text-analytics/language-support?tabs=named-entity-recognition"}}}],"modelVersion":"2021-06-01"}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '3',
  'apim-request-id',
  '34ae435b-6523-42b4-aa50-4c14a13064c6',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:36:41 GMT'
]);


<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/node/api_key_metricsadvisoradministrationclient_detection_and_alert_configs_crud_operations/recording_lists_alert_configurations_one_by_one_and_by_pages.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "8e11f10139199a6e1c9a18956ada78c6";

module.exports.testInfo = {"uniqueName":{"js-alert-config2-":"js-alert-config2-163702273510508689"},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .post('/metricsadvisor/v1.0/alert/anomaly/configurations', {"name":"js-alert-config2-163702273510508689","crossMetricsOperator":"OR","hookIds":[],"metricAlertingConfigurations":[{"anomalyDetectionConfigurationId":"52eba2dd-87a2-44d7-b4f2-3510e7df5647","anomalyScopeType":"All"}]})
  .reply(201, "", [
  'Content-Length',
  '0',
  'Location',
  'https://endpoint/metricsadvisor/v1.0/alert/anomaly/configurations/7ea843e0-3516-4188-bd14-a60d123bff17',
  'x-request-id',
  'fc5f2f5b-c763-4a40-997c-98649bfac792',
  'x-envoy-upstream-service-time',
  '128',
  'apim-request-id',
  'fc5f2f5b-c763-4a40-997c-98649bfac792',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:32:14 GMT'
]);

nock('https://endpoint:443', {"encodedQueryParams":true})
  .get('/metricsadvisor/v1.0/alert/anomaly/configurations/7ea843e0-3516-4188-bd14-a60d123bff17')
  .reply(200, {"anomalyAlertingConfigurationId":"7ea843e0-3516-4188-bd14-a60d123bff17","name":"js-alert-config2-163702273510508689","description":"","splitAlertByDimensions":[],"hookIds":[],"metricAlertingConfigurations":[{"anomalyDetectionConfigurationId":"52eba2dd-87a2-44d7-b4f2-3510e7df5647","anomalyScopeType":"All","negationOperation":false}]}, [
  'Content-Length',
  '335',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  '6cf6b0f5-4871-49c0-95d6-7fb4706c803c',
  'x-envoy-upstream-service-time',
  '99',
  'apim-request-id',
  '6cf6b0f5-4871-49c0-95d6-7fb4706c803c',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:32:14 GMT'
]);

nock('https://endpoint:443', {"encodedQueryParams":true})
  .get('/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/52eba2dd-87a2-44d7-b4f2-3510e7df5647/alert/anomaly/configurations')
  .reply(200, {"value":[{"anomalyAlertingConfigurationId":"7ea843e0-3516-4188-bd14-a60d123bff17","name":"js-alert-config2-163702273510508689","description":"","splitAlertByDimensions":[],"hookIds":[],"metricAlertingConfigurations":[{"anomalyDetectionConfigurationId":"52eba2dd-87a2-44d7-b4f2-3510e7df5647","anomalyScopeType":"All","negationOperation":false}]},{"anomalyAlertingConfigurationId":"dc77a835-8161-416a-bd73-035d5e49b69d","name":"new alert config name","description":"new alert config description","crossMetricsOperator":"OR","splitAlertByDimensions":[],"hookIds":[],"metricAlertingConfigurations":[{"anomalyDetectionConfigurationId":"52eba2dd-87a2-44d7-b4f2-3510e7df5647","anomalyScopeType":"TopN","negationOperation":false,"topNAnomalyScope":{"top":3,"period":4,"minTopCount":2}},{"anomalyDetectionConfigurationId":"52eba2dd-87a2-44d7-b4f2-3510e7df5647","anomalyScopeType":"TopN","negationOperation":false,"topNAnomalyScope":{"top":3,"period":4,"minTopCount":2}}]}]}, [
  'Content-Length',
  '965',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  'eb2e7e66-b452-4e95-bd04-9dadd8f5ea53',
  'x-envoy-upstream-service-time',
  '129',
  'apim-request-id',
  'eb2e7e66-b452-4e95-bd04-9dadd8f5ea53',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:32:14 GMT'
]);

nock('https://endpoint:443', {"encodedQueryParams":true})
  .get('/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/52eba2dd-87a2-44d7-b4f2-3510e7df5647/alert/anomaly/configurations')
  .reply(200, {"value":[{"anomalyAlertingConfigurationId":"7ea843e0-3516-4188-bd14-a60d123bff17","name":"js-alert-config2-163702273510508689","description":"","splitAlertByDimensions":[],"hookIds":[],"metricAlertingConfigurations":[{"anomalyDetectionConfigurationId":"52eba2dd-87a2-44d7-b4f2-3510e7df5647","anomalyScopeType":"All","negationOperation":false}]},{"anomalyAlertingConfigurationId":"dc77a835-8161-416a-bd73-035d5e49b69d","name":"new alert config name","description":"new alert config description","crossMetricsOperator":"OR","splitAlertByDimensions":[],"hookIds":[],"metricAlertingConfigurations":[{"anomalyDetectionConfigurationId":"52eba2dd-87a2-44d7-b4f2-3510e7df5647","anomalyScopeType":"TopN","negationOperation":false,"topNAnomalyScope":{"top":3,"period":4,"minTopCount":2}},{"anomalyDetectionConfigurationId":"52eba2dd-87a2-44d7-b4f2-3510e7df5647","anomalyScopeType":"TopN","negationOperation":false,"topNAnomalyScope":{"top":3,"period":4,"minTopCount":2}}]}]}, [
  'Content-Length',
  '965',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  '5049c564-b8fe-47ae-9f3e-0a6b10a3bb12',
  'x-envoy-upstream-service-time',
  '117',
  'apim-request-id',
  '5049c564-b8fe-47ae-9f3e-0a6b10a3bb12',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:32:15 GMT'
]);

nock('https://endpoint:443', {"encodedQueryParams":true})
  .delete('/metricsadvisor/v1.0/alert/anomaly/configurations/7ea843e0-3516-4188-bd14-a60d123bff17')
  .reply(204, "", [
  'Content-Length',
  '0',
  'x-request-id',
  '925f27b1-f386-4a97-8342-2329ee46888b',
  'x-envoy-upstream-service-time',
  '130',
  'apim-request-id',
  '925f27b1-f386-4a97-8342-2329ee46888b',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:32:15 GMT'
]);


<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/browsers/apikey_textanalyticsclient_lros_analyze/recording_duplicate_actions_of_the_same_type_are_disallowed.json<|end_filename|>
{
 "recordings": [
  {
   "method": "POST",
   "url": "https://endpoint/text/analytics/v3.2-preview.2/analyze",
   "query": {},
   "requestBody": "{\"analysisInput\":{\"documents\":[{\"id\":\"1\",\"text\":\"I will go to the park.\"}]},\"tasks\":{\"entityRecognitionPiiTasks\":[{\"parameters\":{\"model-version\":\"latest\",\"stringIndexType\":\"Utf16CodeUnit\"}},{\"parameters\":{\"model-version\":\"latest\",\"stringIndexType\":\"Utf16CodeUnit\"}}]}}",
   "status": 400,
   "response": "{\"error\":{\"code\":\"InvalidRequest\",\"message\":\"InvalidTask in AnalyzeInput\",\"innererror\":{\"code\":\"InvalidRequestBodyFormat\",\"message\":\"Duplicate task name  for task type PersonallyIdentifiableInformation. Make sure each task under a task type has a unique name\"}}}",
   "responseHeaders": {
    "apim-request-id": "745c4a58-ca4a-443a-bacc-e1d5c0cc7463",
    "content-type": "application/json; charset=utf-8",
    "date": "Thu, 28 Oct 2021 02:06:36 GMT",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "x-content-type-options": "nosniff",
    "x-envoy-upstream-service-time": "7"
   }
  }
 ],
 "uniqueTestInfo": {
  "uniqueName": {},
  "newDate": {}
 },
 "hash": "b622bb90bc1506f299109d6581856a55"
}

<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/api_key_metricsadvisorclient/recording_listincidentsfordetectionconfiguration_by_page.json<|end_filename|>
{
 "recordings": [
  {
   "method": "POST",
   "url": "https://endpoint/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/26ece682-80a6-4415-89a2-05903dd9a640/incidents/query",
   "query": {
    "$maxpagesize": "2"
   },
   "requestBody": "{\"startTime\":\"2021-05-05T00:00:00.000Z\",\"endTime\":\"2021-11-01T00:00:00.000Z\",\"filter\":{}}",
   "status": 200,
   "response": "{\"value\":[{\"incidentId\":\"9eacfa65b7c794522d388fcf5bf0a463-17cd3a55400\",\"startTime\":\"2021-10-29T00:00:00Z\",\"lastTime\":\"2021-10-31T00:00:00Z\",\"rootNode\":{\"dimension\":{\"region\":\"__SUM__\",\"category\":\"Electronics (Consumer)\"}},\"property\":{\"maxSeverity\":\"Medium\",\"incidentStatus\":\"Active\",\"valueOfRootNode\":4329.599999999999,\"expectedValueOfRootNode\":1016.1747790393504}},{\"incidentId\":\"55e8821f21cb799db557b0e7c9eb7dd9-17cd3a55400\",\"startTime\":\"2021-10-31T00:00:00Z\",\"lastTime\":\"2021-10-31T00:00:00Z\",\"rootNode\":{\"dimension\":{\"region\":\"__SUM__\",\"category\":\"Electronics (Accessories)\"}},\"property\":{\"maxSeverity\":\"Low\",\"incidentStatus\":\"Active\",\"valueOfRootNode\":12.6,\"expectedValueOfRootNode\":114.17942348386997}}],\"@nextLink\":\"https://endpoint:443/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/26ece682-80a6-4415-89a2-05903dd9a640/incidents/query?$maxpagesize=2&$token=<KEY>}",
   "responseHeaders": {
    "apim-request-id": "03850580-5e29-4571-85b4-e86e180d447c",
    "content-length": "1302",
    "content-type": "application/json; charset=utf-8",
    "date": "Tue, 16 Nov 2021 02:01:22 GMT",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "x-content-type-options": "nosniff",
    "x-envoy-upstream-service-time": "303",
    "x-request-id": "03850580-5e29-4571-85b4-e86e180d447c"
   }
  },
  {
   "method": "GET",
   "url": "https://endpoint:443/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/26ece682-80a6-4415-89a2-05903dd9a640/incidents/query",
   "query": {
    "$maxpagesize": "2",
    "$token": "<KEY>"
   },
   "requestBody": null,
   "status": 200,
   "response": "{\"value\":[{\"incidentId\":\"0100436ffc1318780ffaff7008d0b5df-17cce7ef800\",\"startTime\":\"2021-10-29T00:00:00Z\",\"lastTime\":\"2021-10-30T00:00:00Z\",\"rootNode\":{\"dimension\":{\"region\":\"__SUM__\",\"category\":\"Shoes Handbags & Sunglasses\"}},\"property\":{\"maxSeverity\":\"High\",\"incidentStatus\":\"Active\",\"valueOfRootNode\":31964628.800000004,\"expectedValueOfRootNode\":41483996.57269485}},{\"incidentId\":\"36536d07873a17badf11ee986edcb63a-17cce7ef800\",\"startTime\":\"2021-10-27T00:00:00Z\",\"lastTime\":\"2021-10-30T00:00:00Z\",\"rootNode\":{\"dimension\":{\"region\":\"Cairo\",\"category\":\"Electronics (Accessories)\"}},\"property\":{\"maxSeverity\":\"Low\",\"incidentStatus\":\"Active\",\"valueOfRootNode\":0.6,\"expectedValueOfRootNode\":9.242478885844319}}],\"@nextLink\":\"https://endpoint:443/metricsadvisor/v1.0/enrichment/anomalyDetection/configurations/26ece682-80a6-4415-89a2-05903dd9a640/incidents/query?$maxpagesize=2&$token=<KEY>\"}",
   "responseHeaders": {
    "apim-request-id": "9382289a-e794-4002-bb6b-a4c541a40c64",
    "content-length": "1301",
    "content-type": "application/json; charset=utf-8",
    "date": "Tue, 16 Nov 2021 02:01:22 GMT",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "x-content-type-options": "nosniff",
    "x-envoy-upstream-service-time": "259",
    "x-request-id": "9382289a-e794-4002-bb6b-a4c541a40c64"
   }
  }
 ],
 "uniqueTestInfo": {
  "uniqueName": {},
  "newDate": {}
 },
 "hash": "9831ee06c35a818f5bbcd2cc825ed364"
}

<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/node/apikey_textanalyticsclient_lros_analyze/recording_single_custom_document_multiple_category_classification_action.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "e625fabec349c46bd68f70745afca86b";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint', {"encodedQueryParams":true})
  .post('/text/analytics/v3.2-preview.2/analyze', {"analysisInput":{"documents":[{"id":"1","text":"A recent report by the Government Accountability Office (GAO) found that the dramatic increase in oil and natural gas development on federal lands over the past six years has stretched the staff of the BLM to a point that it has been unable to meet its environmental protection responsibilities.","language":"en"}]},"tasks":{"customMultiClassificationTasks":[{"parameters":{"project-name":"project_name","deployment-name":"deployment_name"}}]}})
  .reply(202, "", [
  'Transfer-Encoding',
  'chunked',
  'operation-location',
  'https://endpoint/text/analytics/v3.2-preview.2/analyze/jobs/d2b3ff34-6d74-441e-8e1e-c9c295e388aa',
  'x-envoy-upstream-service-time',
  '420',
  'apim-request-id',
  '4f84b569-7f07-4085-ba6c-8082fb7822fa',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:36:50 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/d2b3ff34-6d74-441e-8e1e-c9c295e388aa')
  .query(true)
  .reply(200, {"jobId":"d2b3ff34-6d74-441e-8e1e-c9c295e388aa","lastUpdateDateTime":"2021-10-23T00:36:50Z","createdDateTime":"2021-10-23T00:36:50Z","expirationDateTime":"2021-10-24T00:36:50Z","status":"notStarted","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '13',
  'apim-request-id',
  '00db0829-22b5-46f3-8616-f7c29960fd72',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:36:50 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/d2b3ff34-6d74-441e-8e1e-c9c295e388aa')
  .query(true)
  .reply(200, {"jobId":"d2b3ff34-6d74-441e-8e1e-c9c295e388aa","lastUpdateDateTime":"2021-10-23T00:36:50Z","createdDateTime":"2021-10-23T00:36:50Z","expirationDateTime":"2021-10-24T00:36:50Z","status":"notStarted","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '7',
  'apim-request-id',
  '4539cc13-bb67-4319-a08a-126cc7d1283c',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:36:50 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/d2b3ff34-6d74-441e-8e1e-c9c295e388aa')
  .query(true)
  .reply(200, {"jobId":"d2b3ff34-6d74-441e-8e1e-c9c295e388aa","lastUpdateDateTime":"2021-10-23T00:36:51Z","createdDateTime":"2021-10-23T00:36:50Z","expirationDateTime":"2021-10-24T00:36:50Z","status":"succeeded","errors":[],"tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-23T00:36:51.4254923Z","state":"succeeded","results":{"documents":[{"id":"1","classifications":[],"warnings":[]}],"errors":[],"projectName":"project_name","deploymentName":"deployment_name"}}]}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '168',
  'apim-request-id',
  '7425470d-4764-4782-be72-9decb418d7ef',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:36:52 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/d2b3ff34-6d74-441e-8e1e-c9c295e388aa')
  .query(true)
  .reply(200, {"jobId":"d2b3ff34-6d74-441e-8e1e-c9c295e388aa","lastUpdateDateTime":"2021-10-23T00:36:51Z","createdDateTime":"2021-10-23T00:36:50Z","expirationDateTime":"2021-10-24T00:36:50Z","status":"succeeded","errors":[],"tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"customMultiClassificationTasks":[{"lastUpdateDateTime":"2021-10-23T00:36:51.4254923Z","state":"succeeded","results":{"documents":[{"id":"1","classifications":[],"warnings":[]}],"errors":[],"projectName":"project_name","deploymentName":"deployment_name"}}]}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '89',
  'apim-request-id',
  '428d31e8-f59e-4410-aa38-55cab6ff0068',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:36:52 GMT'
]);


<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/node/apikey_textanalyticsclient_lros_health/recording_all_inputs_with_errors.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "0c018911d7b8c915100686d9373b4af8";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint', {"encodedQueryParams":true})
  .post('/text/analytics/v3.2-preview.2/entities/health/jobs', {"documents":[{"id":"1","text":"","language":"en"},{"id":"2","text":"Patient does not suffer from high blood pressure.","language":"english"},{"id":"3","text":"","language":"en"}]})
  .query(true)
  .reply(202, "", [
  'Transfer-Encoding',
  'chunked',
  'operation-location',
  'https://endpoint/text/analytics/v3.2-preview.1/entities/health/jobs/60cef572-37cb-4927-8926-fd057d90ab0e',
  'x-envoy-upstream-service-time',
  '203',
  'apim-request-id',
  'f2cab5b5-1d7a-4d39-a312-a1b7b30257b5',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:03 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/60cef572-37cb-4927-8926-fd057d90ab0e')
  .query(true)
  .reply(200, {"jobId":"60cef572-37cb-4927-8926-fd057d90ab0e","lastUpdateDateTime":"2021-10-23T00:42:03Z","createdDateTime":"2021-10-23T00:42:03Z","expirationDateTime":"2021-10-24T00:42:03Z","status":"notStarted","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '24',
  'apim-request-id',
  '5090e588-02ed-4683-aa55-2116ef3663b2',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:03 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/60cef572-37cb-4927-8926-fd057d90ab0e')
  .query(true)
  .reply(200, {"jobId":"60cef572-37cb-4927-8926-fd057d90ab0e","lastUpdateDateTime":"2021-10-23T00:42:03Z","createdDateTime":"2021-10-23T00:42:03Z","expirationDateTime":"2021-10-24T00:42:03Z","status":"notStarted","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '10',
  'apim-request-id',
  'a44a74c1-c973-46d2-943c-77460fe6b8f0',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:03 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/60cef572-37cb-4927-8926-fd057d90ab0e')
  .query(true)
  .reply(200, {"jobId":"60cef572-37cb-4927-8926-fd057d90ab0e","lastUpdateDateTime":"2021-10-23T00:42:03Z","createdDateTime":"2021-10-23T00:42:03Z","expirationDateTime":"2021-10-24T00:42:03Z","status":"notStarted","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '153',
  'apim-request-id',
  'd1986363-1466-422e-bd7e-109712ae5029',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:06 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/60cef572-37cb-4927-8926-fd057d90ab0e')
  .query(true)
  .reply(200, {"jobId":"60cef572-37cb-4927-8926-fd057d90ab0e","lastUpdateDateTime":"2021-10-23T00:42:03Z","createdDateTime":"2021-10-23T00:42:03Z","expirationDateTime":"2021-10-24T00:42:03Z","status":"notStarted","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '8',
  'apim-request-id',
  '7abcc114-1f52-4217-b47a-c304b7607aec',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:08 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/60cef572-37cb-4927-8926-fd057d90ab0e')
  .query(true)
  .reply(200, {"jobId":"60cef572-37cb-4927-8926-fd057d90ab0e","lastUpdateDateTime":"2021-10-23T00:42:03Z","createdDateTime":"2021-10-23T00:42:03Z","expirationDateTime":"2021-10-24T00:42:03Z","status":"notStarted","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '11',
  'apim-request-id',
  '2f30d96a-c260-43ab-ab47-a30582251e9d',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:10 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/60cef572-37cb-4927-8926-fd057d90ab0e')
  .query(true)
  .reply(200, {"jobId":"60cef572-37cb-4927-8926-fd057d90ab0e","lastUpdateDateTime":"2021-10-23T00:42:03Z","createdDateTime":"2021-10-23T00:42:03Z","expirationDateTime":"2021-10-24T00:42:03Z","status":"notStarted","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '9',
  'apim-request-id',
  '657f85d7-ef76-4dd5-a62d-0adb212bbe3d',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:12 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/60cef572-37cb-4927-8926-fd057d90ab0e')
  .query(true)
  .reply(200, {"jobId":"60cef572-37cb-4927-8926-fd057d90ab0e","lastUpdateDateTime":"2021-10-23T00:42:03Z","createdDateTime":"2021-10-23T00:42:03Z","expirationDateTime":"2021-10-24T00:42:03Z","status":"notStarted","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '8',
  'apim-request-id',
  'ff6e16fb-540f-412a-9e8e-af1547b04e06',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:14 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/60cef572-37cb-4927-8926-fd057d90ab0e')
  .query(true)
  .reply(200, {"jobId":"60cef572-37cb-4927-8926-fd057d90ab0e","lastUpdateDateTime":"2021-10-23T00:42:03Z","createdDateTime":"2021-10-23T00:42:03Z","expirationDateTime":"2021-10-24T00:42:03Z","status":"notStarted","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '9',
  'apim-request-id',
  '75013ddf-2a7d-4879-99f0-7fba60147554',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:16 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/60cef572-37cb-4927-8926-fd057d90ab0e')
  .query(true)
  .reply(200, {"jobId":"60cef572-37cb-4927-8926-fd057d90ab0e","lastUpdateDateTime":"2021-10-23T00:42:16Z","createdDateTime":"2021-10-23T00:42:03Z","expirationDateTime":"2021-10-24T00:42:03Z","status":"running","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '13',
  'apim-request-id',
  '65f4e138-9a46-4f8c-baeb-27fbe6b33a73',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:18 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/60cef572-37cb-4927-8926-fd057d90ab0e')
  .query(true)
  .reply(200, {"jobId":"60cef572-37cb-4927-8926-fd057d90ab0e","lastUpdateDateTime":"2021-10-23T00:42:16Z","createdDateTime":"2021-10-23T00:42:03Z","expirationDateTime":"2021-10-24T00:42:03Z","status":"running","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '10',
  'apim-request-id',
  'bc9314b8-61fe-4a16-909c-5bafe7456853',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:19 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/60cef572-37cb-4927-8926-fd057d90ab0e')
  .query(true)
  .reply(200, {"jobId":"60cef572-37cb-4927-8926-fd057d90ab0e","lastUpdateDateTime":"2021-10-23T00:42:16Z","createdDateTime":"2021-10-23T00:42:03Z","expirationDateTime":"2021-10-24T00:42:03Z","status":"running","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '10',
  'apim-request-id',
  'c033ecbb-3e58-4687-97f4-506957f46dfc',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:21 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/60cef572-37cb-4927-8926-fd057d90ab0e')
  .query(true)
  .reply(200, {"jobId":"60cef572-37cb-4927-8926-fd057d90ab0e","lastUpdateDateTime":"2021-10-23T00:42:16Z","createdDateTime":"2021-10-23T00:42:03Z","expirationDateTime":"2021-10-24T00:42:03Z","status":"running","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '11',
  'apim-request-id',
  'ab85adbf-790b-430e-b332-894f3123680a',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:23 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/60cef572-37cb-4927-8926-fd057d90ab0e')
  .query(true)
  .reply(200, {"jobId":"60cef572-37cb-4927-8926-fd057d90ab0e","lastUpdateDateTime":"2021-10-23T00:42:16Z","createdDateTime":"2021-10-23T00:42:03Z","expirationDateTime":"2021-10-24T00:42:03Z","status":"running","errors":[]}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '23',
  'apim-request-id',
  'a1b3dd57-3525-4016-94ab-beba8835e110',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:26 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/60cef572-37cb-4927-8926-fd057d90ab0e')
  .query(true)
  .reply(200, {"jobId":"60cef572-37cb-4927-8926-fd057d90ab0e","lastUpdateDateTime":"2021-10-23T00:42:27Z","createdDateTime":"2021-10-23T00:42:03Z","expirationDateTime":"2021-10-24T00:42:03Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}},{"id":"2","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}},{"id":"3","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-05-15"}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '133',
  'apim-request-id',
  'a7ae5b96-6521-4f7c-97ed-2f3a8c3065d4',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:28 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.1/entities/health/jobs/60cef572-37cb-4927-8926-fd057d90ab0e')
  .query(true)
  .reply(200, {"jobId":"60cef572-37cb-4927-8926-fd057d90ab0e","lastUpdateDateTime":"2021-10-23T00:42:27Z","createdDateTime":"2021-10-23T00:42:03Z","expirationDateTime":"2021-10-24T00:42:03Z","status":"succeeded","errors":[],"results":{"documents":[],"errors":[{"id":"1","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}},{"id":"2","error":{"code":"InvalidArgument","message":"Invalid Language Code.","innererror":{"code":"UnsupportedLanguageCode","message":"Invalid language code. Supported languages: en. For additional details see https://aka.ms/text-analytics/language-support"}}},{"id":"3","error":{"code":"InvalidArgument","message":"Invalid document in request.","innererror":{"code":"InvalidDocument","message":"Document text is empty."}}}],"modelVersion":"2021-05-15"}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '140',
  'apim-request-id',
  'd6cd431e-a6d5-402f-8319-c2457198acad',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:42:28 GMT'
]);


<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/api_key_metricsadvisorclient_hooks/recording_lists_hooks_by_page.json<|end_filename|>
{
 "recordings": [
  {
   "method": "GET",
   "url": "https://endpoint/metricsadvisor/v1.0/hooks",
   "query": {
    "$maxpagesize": "2",
    "hookName": "js-test"
   },
   "requestBody": null,
   "status": 200,
   "response": "{\"value\":[{\"hookId\":\"103a479c-ca6d-400e-a7f8-a9a868361b47\",\"hookName\":\"js-test-emailHook-163615467799506131\",\"hookType\":\"Email\",\"externalLink\":\"\",\"description\":\"description\",\"admins\":[\"<EMAIL>\"],\"hookParameter\":{\"toList\":[\"<EMAIL>\"]}},{\"hookId\":\"57721e92-20ac-49c3-a3bc-567794d173b5\",\"hookName\":\"js-test-emailHook-163615469910009534\",\"hookType\":\"Email\",\"externalLink\":\"\",\"description\":\"description\",\"admins\":[\"<EMAIL>\"],\"hookParameter\":{\"toList\":[\"<EMAIL>\"]}}],\"@nextLink\":\"https://endpoint:443/metricsadvisor/v1.0/hooks?hookName=js-test&$maxpagesize=2&$skip=2\"}",
   "responseHeaders": {
    "apim-request-id": "554604bb-d70f-4fdf-9f7e-2bb869aec890",
    "content-length": "646",
    "content-type": "application/json; charset=utf-8",
    "date": "Tue, 16 Nov 2021 02:02:28 GMT",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "x-content-type-options": "nosniff",
    "x-envoy-upstream-service-time": "101",
    "x-request-id": "554604bb-d70f-4fdf-9f7e-2bb869aec890"
   }
  },
  {
   "method": "GET",
   "url": "https://endpoint:443/metricsadvisor/v1.0/hooks",
   "query": {
    "hookName": "js-test",
    "$maxpagesize": "2",
    "$skip": "2"
   },
   "requestBody": null,
   "status": 200,
   "response": "{\"value\":[{\"hookId\":\"79223f60-bb88-424f-8942-6df8d659e5c8\",\"hookName\":\"js-test-emailHook-163667848285101340\",\"hookType\":\"Email\",\"externalLink\":\"\",\"description\":\"description\",\"admins\":[\"<EMAIL>\"],\"hookParameter\":{\"toList\":[\"<EMAIL>\"]}},{\"hookId\":\"e2f4abd6-fb50-4ccb-8d6b-55e00e68aee5\",\"hookName\":\"js-test-emailHook-163667870367305614\",\"hookType\":\"Email\",\"externalLink\":\"\",\"description\":\"description\",\"admins\":[\"<EMAIL>\"],\"hookParameter\":{\"toList\":[\"<EMAIL>\"]}}],\"@nextLink\":\"https://endpoint:443/metricsadvisor/v1.0/hooks?hookName=js-test&$maxpagesize=2&$skip=4\"}",
   "responseHeaders": {
    "apim-request-id": "49eb4f46-9bd6-4552-bc80-fe7e6fc7adcd",
    "content-length": "646",
    "content-type": "application/json; charset=utf-8",
    "date": "Tue, 16 Nov 2021 02:02:29 GMT",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "x-content-type-options": "nosniff",
    "x-envoy-upstream-service-time": "95",
    "x-request-id": "49eb4f46-9bd6-4552-bc80-fe7e6fc7adcd"
   }
  }
 ],
 "uniqueTestInfo": {
  "uniqueName": {},
  "newDate": {}
 },
 "hash": "ff4933f58773ce09ad8c684d55e307a8"
}

<|start_filename|>sdk/tables/data-tables/recordings/browsers/tableclient_sasconnectionstring_createentity_getentity_and_delete/recording_should_create_binary_entities_as_primitive_and_metadata.json<|end_filename|>
{
 "recordings": [
  {
   "method": "POST",
   "url": "https://fakeaccount.table.core.windows.net/tableClientTestSASConnectionStringbrowser",
   "query": {},
   "requestBody": "{\"PartitionKey\":\"CreateBinary_SASConnectionStringbrowser\",\"RowKey\":\"first_SASConnectionStringbrowser\",\"binary\":\"QmFy\",\"binary<EMAIL>\":\"Edm.Binary\",\"binaryMetadata\":\"QmFy\",\"binaryMetadata<EMAIL>\":\"Edm.Binary\"}",
   "status": 204,
   "response": "",
   "responseHeaders": {
    "cache-control": "no-cache",
    "content-length": "0",
    "dataserviceid": "https://fakeaccount.table.core.windows.net/tableClientTestSASConnectionStringbrowser(PartitionKey='CreateBinary_SASConnectionStringbrowser',RowKey='first_SASConnectionStringbrowser')",
    "date": "Mon, 18 Oct 2021 19:42:47 GMT",
    "etag": "W/\"datetime'2021-10-18T19%3A42%3A48.6976103Z'\"",
    "location": "https://fakeaccount.table.core.windows.net/tableClientTestSASConnectionStringbrowser(PartitionKey='CreateBinary_SASConnectionStringbrowser',RowKey='first_SASConnectionStringbrowser')",
    "preference-applied": "return-no-content",
    "server": "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0",
    "x-content-type-options": "nosniff",
    "x-ms-client-request-id": "281c5f32-9d6f-47db-90a8-c6e8565fa3d8",
    "x-ms-request-id": "b251709a-9002-00d2-1658-c43fe7000000",
    "x-ms-version": "2019-02-02"
   }
  },
  {
   "method": "GET",
   "url": "https://fakeaccount.table.core.windows.net/tableClientTestSASConnectionStringbrowser(PartitionKey='CreateBinary_SASConnectionStringbrowser',RowKey='first_SASConnectionStringbrowser')",
   "query": {},
   "requestBody": null,
   "status": 200,
   "response": "{\"odata.metadata\":\"https://fakeaccount.table.core.windows.net/$metadata#tableClientTestSASConnectionStringbrowser/@Element\",\"odata.etag\":\"W/\\\"datetime'2021-10-18T19%3A42%3A48.6976103Z'\\\"\",\"PartitionKey\":\"CreateBinary_SASConnectionStringbrowser\",\"RowKey\":\"first_SASConnectionStringbrowser\",\"Timestamp\":\"2021-10-18T19:42:48.6976103Z\",\"<EMAIL>\":\"Edm.<EMAIL>\",\"binary\":\"QmFy\",\"<EMAIL>\":\"Edm.Binary\",\"binaryMetadata\":\"QmFy\"}",
   "responseHeaders": {
    "access-control-allow-origin": "*",
    "access-control-expose-headers": "x-ms-request-id,x-ms-client-request-id,Server,x-ms-version,X-Content-Type-Options,Cache-Control,ETag,Content-Type,Content-Length,Date,Transfer-Encoding",
    "cache-control": "no-cache",
    "content-type": "application/json;odata=minimalmetadata;streaming=true;charset=utf-8",
    "date": "Mon, 18 Oct 2021 19:42:47 GMT",
    "etag": "W/\"datetime'2021-10-18T19%3A42%3A48.6976103Z'\"",
    "server": "Windows-Azure-Table/1.0 Microsoft-HTTPAPI/2.0",
    "transfer-encoding": "chunked",
    "x-content-type-options": "nosniff",
    "x-ms-client-request-id": "794e5705-24d5-4bd2-966f-8c7cb63761e7",
    "x-ms-request-id": "b25170b4-9002-00d2-3058-c43fe7000000",
    "x-ms-version": "2019-02-02"
   }
  }
 ],
 "uniqueTestInfo": {
  "uniqueName": {},
  "newDate": {}
 },
 "hash": "6c66c901eab0aa18458c18ba221ee58f"
}

<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/node/apikey_textanalyticsclient_fast_tests_recognizepiientities/recording_client_throws_on_empty_list.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "ab91690f5ef35c8898e38f3c835cbc21";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint', {"encodedQueryParams":true})
  .post('/text/analytics/v3.2-preview.2/entities/recognition/pii', {"documents":[]})
  .query(true)
  .reply(400, {"error":{"code":"InvalidRequest","message":"Invalid Request.","innererror":{"code":"MissingInputRecords","message":"Missing input records."}}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '5',
  'apim-request-id',
  'fcacd39c-1876-4b8d-8c5d-0764ab245f52',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:36:40 GMT'
]);


<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/node/apikey_textanalyticsclient_lros_analyze/recording_pii_redacted_test_is_not_empty.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "782a96cbf88cb2448cd7eb594e95d410";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint', {"encodedQueryParams":true})
  .post('/text/analytics/v3.2-preview.2/analyze', {"analysisInput":{"documents":[{"id":"1","text":"I will go to the park."},{"id":"2","text":"Este es un document escrito en Español."},{"id":"3","text":"猫は幸せ"}]},"tasks":{"entityRecognitionPiiTasks":[{"parameters":{"model-version":"latest","stringIndexType":"Utf16CodeUnit"}}]}})
  .reply(202, "", [
  'Transfer-Encoding',
  'chunked',
  'operation-location',
  'https://endpoint/text/analytics/v3.2-preview.2/analyze/jobs/315806d9-6def-4e2b-ae44-719c9c7207f2',
  'x-envoy-upstream-service-time',
  '362',
  'apim-request-id',
  'ddce8a2d-31df-4be2-b600-aac443d2f3b2',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:40:54 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/315806d9-6def-4e2b-ae44-719c9c7207f2')
  .query(true)
  .reply(200, {"jobId":"315806d9-6def-4e2b-ae44-719c9c7207f2","lastUpdateDateTime":"2021-10-23T00:40:54Z","createdDateTime":"2021-10-23T00:40:54Z","expirationDateTime":"2021-10-24T00:40:54Z","status":"notStarted","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '9',
  'apim-request-id',
  '15dd2452-4b85-4f95-b5be-84de0ed11aed',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:40:54 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/315806d9-6def-4e2b-ae44-719c9c7207f2')
  .query(true)
  .reply(200, {"jobId":"315806d9-6def-4e2b-ae44-719c9c7207f2","lastUpdateDateTime":"2021-10-23T00:40:54Z","createdDateTime":"2021-10-23T00:40:54Z","expirationDateTime":"2021-10-24T00:40:54Z","status":"notStarted","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '126',
  'apim-request-id',
  '00fd09e3-4abf-4972-902e-49bbdd69490c',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:40:54 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/315806d9-6def-4e2b-ae44-719c9c7207f2')
  .query(true)
  .reply(200, {"jobId":"315806d9-6def-4e2b-ae44-719c9c7207f2","lastUpdateDateTime":"2021-10-23T00:40:55Z","createdDateTime":"2021-10-23T00:40:54Z","expirationDateTime":"2021-10-24T00:40:54Z","status":"running","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '10',
  'apim-request-id',
  'a5fb01eb-7123-4667-8d19-9f9726542f93',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:40:56 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/315806d9-6def-4e2b-ae44-719c9c7207f2')
  .query(true)
  .reply(200, {"jobId":"315806d9-6def-4e2b-ae44-719c9c7207f2","lastUpdateDateTime":"2021-10-23T00:40:55Z","createdDateTime":"2021-10-23T00:40:54Z","expirationDateTime":"2021-10-24T00:40:54Z","status":"running","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '8',
  'apim-request-id',
  'da4e3eb4-2bbd-4e3f-ae62-489859024923',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:40:58 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/315806d9-6def-4e2b-ae44-719c9c7207f2')
  .query(true)
  .reply(200, {"jobId":"315806d9-6def-4e2b-ae44-719c9c7207f2","lastUpdateDateTime":"2021-10-23T00:40:55Z","createdDateTime":"2021-10-23T00:40:54Z","expirationDateTime":"2021-10-24T00:40:54Z","status":"running","errors":[],"tasks":{"completed":0,"failed":0,"inProgress":1,"total":1}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '8',
  'apim-request-id',
  '9ae72e9f-caa8-456e-9924-a0a3c4e2d40b',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:41:00 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/315806d9-6def-4e2b-ae44-719c9c7207f2')
  .query(true)
  .reply(200, {"jobId":"315806d9-6def-4e2b-ae44-719c9c7207f2","lastUpdateDateTime":"2021-10-23T00:41:02Z","createdDateTime":"2021-10-23T00:40:54Z","expirationDateTime":"2021-10-24T00:40:54Z","status":"succeeded","errors":[],"tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-23T00:41:02.0526629Z","state":"succeeded","results":{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"Este es un document escrito en Español.","id":"2","entities":[],"warnings":[]},{"redactedText":"猫は幸せ","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '69',
  'apim-request-id',
  'c5116e72-9ea5-41ae-ae6f-f4bd0093a730',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:41:03 GMT'
]);

nock('https://endpoint', {"encodedQueryParams":true})
  .get('/text/analytics/v3.2-preview.2/analyze/jobs/315806d9-6def-4e2b-ae44-719c9c7207f2')
  .query(true)
  .reply(200, {"jobId":"315806d9-6def-4e2b-ae44-719c9c7207f2","lastUpdateDateTime":"2021-10-23T00:41:02Z","createdDateTime":"2021-10-23T00:40:54Z","expirationDateTime":"2021-10-24T00:40:54Z","status":"succeeded","errors":[],"tasks":{"completed":1,"failed":0,"inProgress":0,"total":1,"entityRecognitionPiiTasks":[{"lastUpdateDateTime":"2021-10-23T00:41:02.0526629Z","state":"succeeded","results":{"documents":[{"redactedText":"I will go to the park.","id":"1","entities":[],"warnings":[]},{"redactedText":"Este es un document escrito en Español.","id":"2","entities":[],"warnings":[]},{"redactedText":"猫は幸せ","id":"3","entities":[],"warnings":[]}],"errors":[],"modelVersion":"2021-01-15"}}]}}, [
  'Transfer-Encoding',
  'chunked',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-envoy-upstream-service-time',
  '83',
  'apim-request-id',
  'e7cabfd9-d95d-4037-a1a5-542b3ade1319',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Sat, 23 Oct 2021 00:41:03 GMT'
]);


<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/browsers/api_key_metricsadvisorclient_hooks/recording_updates_email_hook.json<|end_filename|>
{
 "recordings": [
  {
   "method": "PATCH",
   "url": "https://endpoint/metricsadvisor/v1.0/hooks/db2a415f-37a6-4cec-b6ee-f5e8daf053b3",
   "query": {},
   "requestBody": "{\"hookType\":\"Email\",\"hookParameter\":{\"toList\":[\"<EMAIL>\",\"<EMAIL>\"]}}",
   "status": 200,
   "response": "{\"hookId\":\"db2a415f-37a6-4cec-b6ee-f5e8daf053b3\",\"hookName\":\"js-test-emailHook-163702814497709646\",\"hookType\":\"Email\",\"externalLink\":\"\",\"description\":\"description\",\"admins\":[\"<EMAIL>\"],\"hookParameter\":{\"toList\":[\"<EMAIL>\",\"<EMAIL>\"]}}",
   "responseHeaders": {
    "apim-request-id": "194d5b5f-fdc5-46db-b4a3-d5e74d35e8ee",
    "content-length": "268",
    "content-type": "application/json; charset=utf-8",
    "date": "Tue, 16 Nov 2021 02:02:27 GMT",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "x-content-type-options": "nosniff",
    "x-envoy-upstream-service-time": "528",
    "x-request-id": "194d5b5f-fdc5-46db-b4a3-d5e74d35e8ee"
   }
  }
 ],
 "uniqueTestInfo": {
  "uniqueName": {},
  "newDate": {}
 },
 "hash": "c93b89937f28444f13594cd397cff72c"
}

<|start_filename|>sdk/metricsadvisor/ai-metrics-advisor/recordings/node/api_key_metricsadvisorclient_feedback/recording_creates_period_feedback.js<|end_filename|>
let nock = require('nock');

module.exports.hash = "2b7c84b7bfa80508336971ea7f82d3b2";

module.exports.testInfo = {"uniqueName":{},"newDate":{}}

nock('https://endpoint:443', {"encodedQueryParams":true})
  .post('/metricsadvisor/v1.0/feedback/metric', {"feedbackType":"Period","metricId":"189ff959-d9f4-45c7-a1e0-f87c9c7ca80f","dimensionFilter":{"dimension":{"category":"Home & Garden","region":"Cairo"}},"value":{"periodType":"AutoDetect","periodValue":4}})
  .reply(201, "", [
  'Content-Length',
  '0',
  'Location',
  'https://endpoint/metricsadvisor/v1.0/feedback/metric/38d7a5fa-3ed9-4254-97b2-d0d346b533ed',
  'x-request-id',
  'd79b1ec6-b28d-4663-b299-b09b1bb7f0d3',
  'x-envoy-upstream-service-time',
  '484',
  'apim-request-id',
  'd79b1ec6-b28d-4663-b299-b09b1bb7f0d3',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:32:49 GMT'
]);

nock('https://endpoint:443', {"encodedQueryParams":true})
  .get('/metricsadvisor/v1.0/feedback/metric/38d7a5fa-3ed9-4254-97b2-d0d346b533ed')
  .reply(200, {"feedbackId":"38d7a5fa-3ed9-4254-97b2-d0d346b533ed","createdTime":"2021-11-16T00:32:49.952Z","userPrincipal":"<EMAIL>","metricId":"189ff959-d9f4-45c7-a1e0-f87c9c7ca80f","dimensionFilter":{"dimension":{"region":"Cairo","category":"Home & Garden"}},"feedbackType":"Period","value":{"periodType":"AutoDetect","periodValue":4}}, [
  'Content-Length',
  '338',
  'Content-Type',
  'application/json; charset=utf-8',
  'x-request-id',
  'ef1e12a4-6e8c-41bc-8355-d4c8ce05067d',
  'x-envoy-upstream-service-time',
  '113',
  'apim-request-id',
  'ef1e12a4-6e8c-41bc-8355-d4c8ce05067d',
  'Strict-Transport-Security',
  'max-age=31536000; includeSubDomains; preload',
  'x-content-type-options',
  'nosniff',
  'Date',
  'Tue, 16 Nov 2021 00:32:50 GMT'
]);


<|start_filename|>sdk/textanalytics/ai-text-analytics/recordings/browsers/apikey_textanalyticsclient_lros_health/recording_cancelled.json<|end_filename|>
{
 "recordings": [
  {
   "method": "POST",
   "url": "https://endpoint/text/analytics/v3.2-preview.2/entities/health/jobs",
   "query": {
    "stringIndexType": "Utf16CodeUnit"
   },
   "requestBody": "{\"documents\":[{\"id\":\"1\",\"text\":\"Patient does not suffer from high blood pressure.\",\"language\":\"en\"},{\"id\":\"2\",\"text\":\"Prescribed 100mg ibuprofen, taken twice daily.\",\"language\":\"en\"}]}",
   "status": 202,
   "response": "",
   "responseHeaders": {
    "apim-request-id": "90679c22-822a-4f82-9415-5410fdd7c3ce",
    "date": "Sat, 23 Oct 2021 00:56:18 GMT",
    "operation-location": "https://endpoint/text/analytics/v3.2-preview.1/entities/health/jobs/c13668e6-6270-4e6a-b746-8a6e756f724b",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "x-content-type-options": "nosniff",
    "x-envoy-upstream-service-time": "172"
   }
  },
  {
   "method": "GET",
   "url": "https://endpoint/text/analytics/v3.2-preview.1/entities/health/jobs/c13668e6-6270-4e6a-b746-8a6e756f724b",
   "query": {
    "$top": "20",
    "$skip": "0"
   },
   "requestBody": null,
   "status": 200,
   "response": "{\"jobId\":\"c13668e6-6270-4e6a-b746-8a6e756f724b\",\"lastUpdateDateTime\":\"2021-10-23T00:56:19Z\",\"createdDateTime\":\"2021-10-23T00:56:19Z\",\"expirationDateTime\":\"2021-10-24T00:56:19Z\",\"status\":\"notStarted\",\"errors\":[]}",
   "responseHeaders": {
    "apim-request-id": "b24aa2bb-b4a2-43b9-b997-9c57cfc989e5",
    "content-type": "application/json; charset=utf-8",
    "date": "Sat, 23 Oct 2021 00:56:18 GMT",
    "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
    "x-content-type-options": "nosniff",
    "x-envoy-upstream-service-time": "7"
   }
  }
 ],
 "uniqueTestInfo": {
  "uniqueName": {},
  "newDate": {}
 },
 "hash": "22188dd88cd7873245aff997830b38f3"
}

<|start_filename|>sdk/formrecognizer/ai-form-recognizer/samples/v4-beta/javascript/analyzeReceiptByModelId.js<|end_filename|>
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

/**
 * This sample shows how to extract elements of a receipt from a URL to a file using the prebuilt receipt model. Rather
 * than using the `PrebuiltModels.Receipt` document model, this sample shows the use of the prebuilt model by ID,
 * resulting in a weaker type that exactly mirrors the model's field schema at runtime.
 *
 * The prebuilt receipt model can return several fields. For a detailed list of the fields supported by the
 * receipt model, see the `Receipt` type in the documentation, or refer to the following link:
 *
 * https://aka.ms/azsdk/formrecognizer/receiptfieldschema
 *
 * @summary use the "prebuilt-receipt" model ID to extract data from a receipt document (weakly-typed)
 */

const { AzureKeyCredential, DocumentAnalysisClient } = require("@azure/ai-form-recognizer");

const dotenv = require("dotenv");
dotenv.config();

async function main() {
  const endpoint = process.env.FORM_RECOGNIZER_ENDPOINT ?? "<endpoint>";
  const credential = new AzureKeyCredential(process.env.FORM_RECOGNIZER_API_KEY ?? "<api key>");

  const client = new DocumentAnalysisClient(endpoint, credential);

  const poller = await client.beginAnalyzeDocuments(
    "prebuilt-receipt",
    // The form recognizer service will access the following URL to a receipt image and extract data from it
    "https://raw.githubusercontent.com/Azure/azure-sdk-for-js/main/sdk/formrecognizer/ai-form-recognizer/assets/receipt/contoso-receipt.png"
  );
  poller.onProgress((state) => console.log(state.operationId, state.status));

  const {
    documents: [result]
  } = await poller.pollUntilDone();

  if (result) {
    const receipt = result.fields;
    console.log("=== Receipt Information ===");
    console.log("Type:", receipt["ReceiptType"].value);
    console.log("Merchant:", receipt["MerchantName"].value);
    console.log("Items:");
    for (const { properties: item } of receipt["Items"].values ?? []) {
      console.log("-", item["Name"].value ?? "<undefined>");
      //console.log("  Price:", item?.price);
      console.log("  Total Price:", item["TotalPrice"].value);
    }
  } else {
    throw new Error("Expected at least one receipt in the result.");
  }
}

main().catch((error) => {
  console.error("An error occurred:", error);
  process.exit(1);
});
