@azure-rest/purview-datamap 1.0.0-alpha.20240304.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,91 @@
1
+ # Azure PurviewDataMap REST client library for JavaScript
2
+
3
+ Microsoft Purview Data Map provides the foundation for data discovery and data governance. Microsoft Purview Data Map is a cloud native PaaS service that captures metadata about enterprise data present in analytics and operation systems on-premises and cloud. Azure PurviewDataMap client provides a set of APIs in Purview Data Map Data Plane. For a full list of APIs, please refer to [Data Map API](https://learn.microsoft.com/rest/api/purview/datamapdataplane/operation-groups?view=rest-purview-datamapdataplane-2023-09-01).
4
+
5
+ **Please rely heavily on our [REST client docs](https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/rest-clients.md) to use this library**
6
+
7
+ Key links:
8
+
9
+ - [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/purview/purview-datamap-rest)
10
+ - [Package (NPM)](https://www.npmjs.com/package/@azure-rest/purview-datamap)
11
+ - [API reference documentation](https://docs.microsoft.com/javascript/api/@azure-rest/purview-datamap?view=azure-node-preview)
12
+ - [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/purview/purview-datamap-rest/samples)
13
+
14
+ ## Getting started
15
+
16
+ ### Currently supported environments
17
+
18
+ - LTS versions of Node.js
19
+
20
+ ### Prerequisites
21
+
22
+ - You must have an [Azure subscription](https://azure.microsoft.com/free/) to use this package.
23
+
24
+ ### Install the `@azure-rest/purview-datamap` package
25
+
26
+ Install the Azure PurviewDataMap REST client REST client library for JavaScript with `npm`:
27
+
28
+ ```bash
29
+ npm install @azure-rest/purview-datamap
30
+ ```
31
+
32
+ ### Create and authenticate a `PurviewDataMapClient`
33
+
34
+ To use an [Azure Active Directory (AAD) token credential](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token),
35
+ provide an instance of the desired credential type obtained from the
36
+ [@azure/identity](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#credentials) library.
37
+
38
+ To authenticate with AAD, you must first `npm` install [`@azure/identity`](https://www.npmjs.com/package/@azure/identity)
39
+
40
+ After setup, you can choose which type of [credential](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#credentials) from `@azure/identity` to use.
41
+ As an example, [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential)
42
+ can be used to authenticate the client.
43
+
44
+ Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables:
45
+ AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET
46
+
47
+ ## Examples
48
+
49
+ The following sections provide several code snippets covering some of the most common Purview DataMap scenarios, including:
50
+
51
+ - [Get All Type Definitions](#get-all-type-definitions)
52
+
53
+ ### Get All Type Definitions
54
+
55
+ ```typescript
56
+ import PurviewDataMap from "@azure-rest/purview-datamap";
57
+ import { DefaultAzureCredential } from "@azure/identity";
58
+ import dotenv from "dotenv";
59
+ import { isUnexpected } from "@azure-rest/purview-datamap";
60
+
61
+ dotenv.config();
62
+
63
+ const endpoint = process.env["ENDPOINT"] || "";
64
+
65
+ async function main() {
66
+ console.log("== List entity typedefs sample ==");
67
+ const client = PurviewDataMap(endpoint, new DefaultAzureCredential());
68
+
69
+ const result = await client.path("/atlas/v2/types/typedefs").get();
70
+
71
+ if (isUnexpected(result)) {
72
+ throw result;
73
+ }
74
+ }
75
+
76
+ main().catch(console.error);
77
+ ```
78
+
79
+ ## Troubleshooting
80
+
81
+ ### Logging
82
+
83
+ Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
84
+
85
+ ```javascript
86
+ const { setLogLevel } = require("@azure/logger");
87
+
88
+ setLogLevel("info");
89
+ ```
90
+
91
+ For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
package/dist/index.js ADDED
@@ -0,0 +1,234 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var coreClient = require('@azure-rest/core-client');
6
+ var logger$1 = require('@azure/logger');
7
+ var coreRestPipeline = require('@azure/core-rest-pipeline');
8
+
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT license.
11
+ const logger = logger$1.createClientLogger("purview-datamap");
12
+
13
+ // Copyright (c) Microsoft Corporation.
14
+ // Licensed under the MIT license.
15
+ /**
16
+ * Initialize a new instance of `PurviewDataMapClient`
17
+ * @param endpoint - A sequence of textual characters.
18
+ * @param credentials - uniquely identify client credential
19
+ * @param options - the parameter for all optional parameters
20
+ */
21
+ function createClient(endpoint, credentials, options = {}) {
22
+ var _a, _b, _c, _d, _e, _f;
23
+ const baseUrl = (_a = options.baseUrl) !== null && _a !== void 0 ? _a : `${endpoint}/datamap/api`;
24
+ options.apiVersion = (_b = options.apiVersion) !== null && _b !== void 0 ? _b : "2023-09-01";
25
+ const userAgentInfo = `azsdk-js-purview-datamap-rest/1.0.0-beta.1`;
26
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
27
+ ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`
28
+ : `${userAgentInfo}`;
29
+ options = Object.assign(Object.assign({}, options), { userAgentOptions: {
30
+ userAgentPrefix,
31
+ }, loggingOptions: {
32
+ logger: (_d = (_c = options.loggingOptions) === null || _c === void 0 ? void 0 : _c.logger) !== null && _d !== void 0 ? _d : logger.info,
33
+ }, credentials: {
34
+ scopes: (_f = (_e = options.credentials) === null || _e === void 0 ? void 0 : _e.scopes) !== null && _f !== void 0 ? _f : ["https://purview.azure.net/.default"],
35
+ } });
36
+ const client = coreClient.getClient(baseUrl, credentials, options);
37
+ return client;
38
+ }
39
+
40
+ // Copyright (c) Microsoft Corporation.
41
+ // Licensed under the MIT license.
42
+ const responseMap = {
43
+ "POST /atlas/v2/entity": ["200"],
44
+ "GET /atlas/v2/entity/bulk": ["200"],
45
+ "POST /atlas/v2/entity/bulk": ["200"],
46
+ "DELETE /atlas/v2/entity/bulk": ["200"],
47
+ "POST /atlas/v2/entity/bulk/classification": ["204"],
48
+ "GET /atlas/v2/entity/guid/{guid}": ["200"],
49
+ "PUT /atlas/v2/entity/guid/{guid}": ["200"],
50
+ "DELETE /atlas/v2/entity/guid/{guid}": ["200"],
51
+ "GET /atlas/v2/entity/guid/{guid}/classification/{classificationName}": ["200"],
52
+ "DELETE /atlas/v2/entity/guid/{guid}/classification/{classificationName}": ["204"],
53
+ "GET /atlas/v2/entity/guid/{guid}/classifications": ["200"],
54
+ "POST /atlas/v2/entity/guid/{guid}/classifications": ["204"],
55
+ "PUT /atlas/v2/entity/guid/{guid}/classifications": ["204"],
56
+ "GET /atlas/v2/entity/uniqueAttribute/type/{typeName}": ["200"],
57
+ "PUT /atlas/v2/entity/uniqueAttribute/type/{typeName}": ["200"],
58
+ "DELETE /atlas/v2/entity/uniqueAttribute/type/{typeName}": ["200"],
59
+ "DELETE /atlas/v2/entity/uniqueAttribute/type/{typeName}/classification/{classificationName}": [
60
+ "204",
61
+ ],
62
+ "POST /atlas/v2/entity/uniqueAttribute/type/{typeName}/classifications": ["204"],
63
+ "PUT /atlas/v2/entity/uniqueAttribute/type/{typeName}/classifications": ["204"],
64
+ "POST /atlas/v2/entity/bulk/setClassifications": ["200"],
65
+ "GET /atlas/v2/entity/bulk/uniqueAttribute/type/{typeName}": ["200"],
66
+ "GET /atlas/v2/entity/guid/{guid}/header": ["200"],
67
+ "DELETE /atlas/v2/entity/guid/{guid}/businessmetadata": ["204"],
68
+ "POST /atlas/v2/entity/guid/{guid}/businessmetadata": ["204"],
69
+ "DELETE /atlas/v2/entity/guid/{guid}/businessmetadata/{businessMetadataName}": ["204"],
70
+ "POST /atlas/v2/entity/guid/{guid}/businessmetadata/{businessMetadataName}": ["204"],
71
+ "GET /atlas/v2/entity/businessmetadata/import/template": ["200"],
72
+ "POST /atlas/v2/entity/businessmetadata/import": ["200"],
73
+ "DELETE /atlas/v2/entity/guid/{guid}/labels": ["204"],
74
+ "POST /atlas/v2/entity/guid/{guid}/labels": ["204"],
75
+ "PUT /atlas/v2/entity/guid/{guid}/labels": ["204"],
76
+ "DELETE /atlas/v2/entity/uniqueAttribute/type/{typeName}/labels": ["204"],
77
+ "POST /atlas/v2/entity/uniqueAttribute/type/{typeName}/labels": ["204"],
78
+ "PUT /atlas/v2/entity/uniqueAttribute/type/{typeName}/labels": ["204"],
79
+ "POST /entity/moveTo": ["200"],
80
+ "GET /atlas/v2/glossary": ["200"],
81
+ "POST /atlas/v2/glossary": ["200"],
82
+ "POST /atlas/v2/glossary/categories": ["200"],
83
+ "POST /atlas/v2/glossary/category": ["200"],
84
+ "GET /atlas/v2/glossary/category/{categoryId}": ["200"],
85
+ "PUT /atlas/v2/glossary/category/{categoryId}": ["200"],
86
+ "DELETE /atlas/v2/glossary/category/{categoryId}": ["204"],
87
+ "PUT /atlas/v2/glossary/category/{categoryId}/partial": ["200"],
88
+ "GET /atlas/v2/glossary/category/{categoryId}/related": ["200"],
89
+ "GET /atlas/v2/glossary/category/{categoryId}/terms": ["200"],
90
+ "POST /atlas/v2/glossary/term": ["200"],
91
+ "GET /atlas/v2/glossary/term/{termId}": ["200"],
92
+ "PUT /atlas/v2/glossary/term/{termId}": ["200"],
93
+ "DELETE /atlas/v2/glossary/term/{termId}": ["204"],
94
+ "PUT /atlas/v2/glossary/term/{termId}/partial": ["200"],
95
+ "POST /atlas/v2/glossary/terms": ["200"],
96
+ "GET /atlas/v2/glossary/terms/{termId}/assignedEntities": ["200"],
97
+ "POST /atlas/v2/glossary/terms/{termId}/assignedEntities": ["204"],
98
+ "DELETE /atlas/v2/glossary/terms/{termId}/assignedEntities": ["204"],
99
+ "GET /atlas/v2/glossary/terms/{termId}/related": ["200"],
100
+ "GET /atlas/v2/glossary/{glossaryId}": ["200"],
101
+ "PUT /atlas/v2/glossary/{glossaryId}": ["200"],
102
+ "DELETE /atlas/v2/glossary/{glossaryId}": ["204"],
103
+ "GET /atlas/v2/glossary/{glossaryId}/categories": ["200"],
104
+ "GET /atlas/v2/glossary/{glossaryId}/categories/headers": ["200"],
105
+ "GET /atlas/v2/glossary/{glossaryId}/detailed": ["200"],
106
+ "PUT /atlas/v2/glossary/{glossaryId}/partial": ["200"],
107
+ "GET /atlas/v2/glossary/{glossaryId}/terms": ["200"],
108
+ "GET /atlas/v2/glossary/{glossaryId}/terms/headers": ["200"],
109
+ "POST /search/query": ["200"],
110
+ "POST /search/suggest": ["200"],
111
+ "POST /search/autocomplete": ["200"],
112
+ "GET /atlas/v2/lineage/{guid}": ["200"],
113
+ "GET /lineage/{guid}/next": ["200"],
114
+ "GET /atlas/v2/lineage/uniqueAttribute/type/{typeName}": ["200"],
115
+ "POST /atlas/v2/relationship": ["200"],
116
+ "PUT /atlas/v2/relationship": ["200"],
117
+ "GET /atlas/v2/relationship/guid/{guid}": ["200"],
118
+ "DELETE /atlas/v2/relationship/guid/{guid}": ["204"],
119
+ "GET /atlas/v2/types/businessmetadatadef/guid/{guid}": ["200"],
120
+ "GET /atlas/v2/types/businessmetadatadef/name/{name}": ["200"],
121
+ "GET /atlas/v2/types/classificationdef/guid/{guid}": ["200"],
122
+ "GET /atlas/v2/types/classificationdef/name/{name}": ["200"],
123
+ "GET /atlas/v2/types/entitydef/guid/{guid}": ["200"],
124
+ "GET /atlas/v2/types/entitydef/name/{name}": ["200"],
125
+ "GET /atlas/v2/types/enumdef/guid/{guid}": ["200"],
126
+ "GET /atlas/v2/types/enumdef/name/{name}": ["200"],
127
+ "GET /atlas/v2/types/relationshipdef/guid/{guid}": ["200"],
128
+ "GET /atlas/v2/types/relationshipdef/name/{name}": ["200"],
129
+ "GET /atlas/v2/types/structdef/guid/{guid}": ["200"],
130
+ "GET /atlas/v2/types/structdef/name/{name}": ["200"],
131
+ "GET /atlas/v2/types/typedef/guid/{guid}": ["200"],
132
+ "GET /atlas/v2/types/typedef/name/{name}": ["200"],
133
+ "DELETE /atlas/v2/types/typedef/name/{name}": ["204"],
134
+ "GET /atlas/v2/types/typedefs": ["200"],
135
+ "POST /atlas/v2/types/typedefs": ["200"],
136
+ "PUT /atlas/v2/types/typedefs": ["200"],
137
+ "DELETE /atlas/v2/types/typedefs": ["204"],
138
+ "GET /atlas/v2/types/typedefs/headers": ["200"],
139
+ "GET /types/termtemplatedef/guid/{guid}": ["200"],
140
+ "GET /types/termtemplatedef/name/{name}": ["200"],
141
+ };
142
+ function isUnexpected(response) {
143
+ const lroOriginal = response.headers["x-ms-original-url"];
144
+ const url = new URL(lroOriginal !== null && lroOriginal !== void 0 ? lroOriginal : response.request.url);
145
+ const method = response.request.method;
146
+ let pathDetails = responseMap[`${method} ${url.pathname}`];
147
+ if (!pathDetails) {
148
+ pathDetails = getParametrizedPathSuccess(method, url.pathname);
149
+ }
150
+ return !pathDetails.includes(response.status);
151
+ }
152
+ function getParametrizedPathSuccess(method, path) {
153
+ var _a, _b, _c, _d;
154
+ const pathParts = path.split("/");
155
+ // Traverse list to match the longest candidate
156
+ // matchedLen: the length of candidate path
157
+ // matchedValue: the matched status code array
158
+ let matchedLen = -1, matchedValue = [];
159
+ // Iterate the responseMap to find a match
160
+ for (const [key, value] of Object.entries(responseMap)) {
161
+ // Extracting the path from the map key which is in format
162
+ // GET /path/foo
163
+ if (!key.startsWith(method)) {
164
+ continue;
165
+ }
166
+ const candidatePath = getPathFromMapKey(key);
167
+ // Get each part of the url path
168
+ const candidateParts = candidatePath.split("/");
169
+ // track if we have found a match to return the values found.
170
+ let found = true;
171
+ for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
172
+ if (((_a = candidateParts[i]) === null || _a === void 0 ? void 0 : _a.startsWith("{")) && ((_b = candidateParts[i]) === null || _b === void 0 ? void 0 : _b.indexOf("}")) !== -1) {
173
+ const start = candidateParts[i].indexOf("}") + 1, end = (_c = candidateParts[i]) === null || _c === void 0 ? void 0 : _c.length;
174
+ // If the current part of the candidate is a "template" part
175
+ // Try to use the suffix of pattern to match the path
176
+ // {guid} ==> $
177
+ // {guid}:export ==> :export$
178
+ const isMatched = new RegExp(`${(_d = candidateParts[i]) === null || _d === void 0 ? void 0 : _d.slice(start, end)}`).test(pathParts[j] || "");
179
+ if (!isMatched) {
180
+ found = false;
181
+ break;
182
+ }
183
+ continue;
184
+ }
185
+ // If the candidate part is not a template and
186
+ // the parts don't match mark the candidate as not found
187
+ // to move on with the next candidate path.
188
+ if (candidateParts[i] !== pathParts[j]) {
189
+ found = false;
190
+ break;
191
+ }
192
+ }
193
+ // We finished evaluating the current candidate parts
194
+ // Update the matched value if and only if we found the longer pattern
195
+ if (found && candidatePath.length > matchedLen) {
196
+ matchedLen = candidatePath.length;
197
+ matchedValue = value;
198
+ }
199
+ }
200
+ return matchedValue;
201
+ }
202
+ function getPathFromMapKey(mapKey) {
203
+ const pathStart = mapKey.indexOf("/");
204
+ return mapKey.slice(pathStart);
205
+ }
206
+
207
+ // Copyright (c) Microsoft Corporation.
208
+ // Licensed under the MIT license.
209
+ function buildMultiCollection(items, parameterName) {
210
+ return items
211
+ .map((item, index) => {
212
+ if (index === 0) {
213
+ return item;
214
+ }
215
+ return `${parameterName}=${item}`;
216
+ })
217
+ .join("&");
218
+ }
219
+
220
+ // Copyright (c) Microsoft Corporation.
221
+ // Licensed under the MIT license.
222
+
223
+ Object.defineProperty(exports, "createFile", {
224
+ enumerable: true,
225
+ get: function () { return coreRestPipeline.createFile; }
226
+ });
227
+ Object.defineProperty(exports, "createFileFromStream", {
228
+ enumerable: true,
229
+ get: function () { return coreRestPipeline.createFileFromStream; }
230
+ });
231
+ exports.buildMultiCollection = buildMultiCollection;
232
+ exports.default = createClient;
233
+ exports.isUnexpected = isUnexpected;
234
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/logger.ts","../src/purviewDataMapClient.ts","../src/isUnexpected.ts","../src/serializeHelper.ts","../src/index.ts"],"sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { createClientLogger } from \"@azure/logger\";\nexport const logger = createClientLogger(\"purview-datamap\");\n","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { getClient, ClientOptions } from \"@azure-rest/core-client\";\nimport { logger } from \"./logger\";\nimport { TokenCredential } from \"@azure/core-auth\";\nimport { PurviewDataMapClient } from \"./clientDefinitions\";\n\n/**\n * Initialize a new instance of `PurviewDataMapClient`\n * @param endpoint - A sequence of textual characters.\n * @param credentials - uniquely identify client credential\n * @param options - the parameter for all optional parameters\n */\nexport default function createClient(\n endpoint: string,\n credentials: TokenCredential,\n options: ClientOptions = {},\n): PurviewDataMapClient {\n const baseUrl = options.baseUrl ?? `${endpoint}/datamap/api`;\n options.apiVersion = options.apiVersion ?? \"2023-09-01\";\n const userAgentInfo = `azsdk-js-purview-datamap-rest/1.0.0-beta.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${userAgentInfo}`\n : `${userAgentInfo}`;\n options = {\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n loggingOptions: {\n logger: options.loggingOptions?.logger ?? logger.info,\n },\n credentials: {\n scopes: options.credentials?.scopes ?? [\"https://purview.azure.net/.default\"],\n },\n };\n\n const client = getClient(baseUrl, credentials, options) as PurviewDataMapClient;\n\n return client;\n}\n","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n EntityCreateOrUpdate200Response,\n EntityCreateOrUpdateDefaultResponse,\n EntityListByGuids200Response,\n EntityListByGuidsDefaultResponse,\n EntityBulkCreateOrUpdate200Response,\n EntityBulkCreateOrUpdateDefaultResponse,\n EntityBulkDelete200Response,\n EntityBulkDeleteDefaultResponse,\n EntityAddClassification204Response,\n EntityAddClassificationDefaultResponse,\n EntityGet200Response,\n EntityGetDefaultResponse,\n EntityPartialUpdateAttributeByGuid200Response,\n EntityPartialUpdateAttributeByGuidDefaultResponse,\n EntityDeleteOperation200Response,\n EntityDeleteOperationDefaultResponse,\n EntityGetClassification200Response,\n EntityGetClassificationDefaultResponse,\n EntityRemoveClassification204Response,\n EntityRemoveClassificationDefaultResponse,\n EntityGetClassifications200Response,\n EntityGetClassificationsDefaultResponse,\n EntityAddClassifications204Response,\n EntityAddClassificationsDefaultResponse,\n EntityUpdateClassifications204Response,\n EntityUpdateClassificationsDefaultResponse,\n EntityGetByUniqueAttributes200Response,\n EntityGetByUniqueAttributesDefaultResponse,\n EntityPartialUpdateByUniqueAttributes200Response,\n EntityPartialUpdateByUniqueAttributesDefaultResponse,\n EntityDeleteByUniqueAttribute200Response,\n EntityDeleteByUniqueAttributeDefaultResponse,\n EntityRemoveClassificationByUniqueAttribute204Response,\n EntityRemoveClassificationByUniqueAttributeDefaultResponse,\n EntityAddClassificationsByUniqueAttribute204Response,\n EntityAddClassificationsByUniqueAttributeDefaultResponse,\n EntityUpdateClassificationsByUniqueAttribute204Response,\n EntityUpdateClassificationsByUniqueAttributeDefaultResponse,\n EntityBulkSetClassifications200Response,\n EntityBulkSetClassificationsDefaultResponse,\n EntityListByUniqueAttributes200Response,\n EntityListByUniqueAttributesDefaultResponse,\n EntityGetHeader200Response,\n EntityGetHeaderDefaultResponse,\n EntityRemoveBusinessMetadata204Response,\n EntityRemoveBusinessMetadataDefaultResponse,\n EntityAddOrUpdateBusinessMetadata204Response,\n EntityAddOrUpdateBusinessMetadataDefaultResponse,\n EntityRemoveBusinessMetadataAttributes204Response,\n EntityRemoveBusinessMetadataAttributesDefaultResponse,\n EntityAddOrUpdateBusinessMetadataAttributes204Response,\n EntityAddOrUpdateBusinessMetadataAttributesDefaultResponse,\n EntityGetSampleBusinessMetadataTemplate200Response,\n EntityGetSampleBusinessMetadataTemplateDefaultResponse,\n EntityImportBusinessMetadata200Response,\n EntityImportBusinessMetadataDefaultResponse,\n EntityRemoveLabels204Response,\n EntityRemoveLabelsDefaultResponse,\n EntitySetLabels204Response,\n EntitySetLabelsDefaultResponse,\n EntityAddLabel204Response,\n EntityAddLabelDefaultResponse,\n EntityRemoveLabelsByUniqueAttribute204Response,\n EntityRemoveLabelsByUniqueAttributeDefaultResponse,\n EntitySetLabelsByUniqueAttribute204Response,\n EntitySetLabelsByUniqueAttributeDefaultResponse,\n EntityAddLabelsByUniqueAttribute204Response,\n EntityAddLabelsByUniqueAttributeDefaultResponse,\n EntityMoveEntitiesToCollection200Response,\n EntityMoveEntitiesToCollectionDefaultResponse,\n GlossaryList200Response,\n GlossaryListDefaultResponse,\n GlossaryCreate200Response,\n GlossaryCreateDefaultResponse,\n GlossaryCreateCategories200Response,\n GlossaryCreateCategoriesDefaultResponse,\n GlossaryCreateCategory200Response,\n GlossaryCreateCategoryDefaultResponse,\n GlossaryGetCategory200Response,\n GlossaryGetCategoryDefaultResponse,\n GlossaryUpdateCategory200Response,\n GlossaryUpdateCategoryDefaultResponse,\n GlossaryDeleteCategory204Response,\n GlossaryDeleteCategoryDefaultResponse,\n GlossaryPartialUpdateCategory200Response,\n GlossaryPartialUpdateCategoryDefaultResponse,\n GlossaryListRelatedCategories200Response,\n GlossaryListRelatedCategoriesDefaultResponse,\n GlossaryListCategoryTerms200Response,\n GlossaryListCategoryTermsDefaultResponse,\n GlossaryCreateTerm200Response,\n GlossaryCreateTermDefaultResponse,\n GlossaryGetTerm200Response,\n GlossaryGetTermDefaultResponse,\n GlossaryUpdateTerm200Response,\n GlossaryUpdateTermDefaultResponse,\n GlossaryDeleteTerm204Response,\n GlossaryDeleteTermDefaultResponse,\n GlossaryPartialUpdateTerm200Response,\n GlossaryPartialUpdateTermDefaultResponse,\n GlossaryCreateTerms200Response,\n GlossaryCreateTermsDefaultResponse,\n GlossaryListEntitiesAssignedWithTerm200Response,\n GlossaryListEntitiesAssignedWithTermDefaultResponse,\n GlossaryAssignTermToEntities204Response,\n GlossaryAssignTermToEntitiesDefaultResponse,\n GlossaryDeleteTermAssignmentFromEntities204Response,\n GlossaryDeleteTermAssignmentFromEntitiesDefaultResponse,\n GlossaryListRelatedTerms200Response,\n GlossaryListRelatedTermsDefaultResponse,\n GlossaryGet200Response,\n GlossaryGetDefaultResponse,\n GlossaryUpdate200Response,\n GlossaryUpdateDefaultResponse,\n GlossaryDeleteOperation204Response,\n GlossaryDeleteOperationDefaultResponse,\n GlossaryListCategories200Response,\n GlossaryListCategoriesDefaultResponse,\n GlossaryListCategoriesHeaders200Response,\n GlossaryListCategoriesHeadersDefaultResponse,\n GlossaryGetDetailed200Response,\n GlossaryGetDetailedDefaultResponse,\n GlossaryPartialUpdate200Response,\n GlossaryPartialUpdateDefaultResponse,\n GlossaryListTerms200Response,\n GlossaryListTermsDefaultResponse,\n GlossaryListTermHeaders200Response,\n GlossaryListTermHeadersDefaultResponse,\n DiscoveryQuery200Response,\n DiscoveryQueryDefaultResponse,\n DiscoverySuggest200Response,\n DiscoverySuggestDefaultResponse,\n DiscoveryAutoComplete200Response,\n DiscoveryAutoCompleteDefaultResponse,\n LineageGet200Response,\n LineageGetDefaultResponse,\n LineageGetNextPage200Response,\n LineageGetNextPageDefaultResponse,\n LineageGetByUniqueAttribute200Response,\n LineageGetByUniqueAttributeDefaultResponse,\n RelationshipCreate200Response,\n RelationshipCreateDefaultResponse,\n RelationshipUpdate200Response,\n RelationshipUpdateDefaultResponse,\n RelationshipGet200Response,\n RelationshipGetDefaultResponse,\n RelationshipDeleteOperation204Response,\n RelationshipDeleteOperationDefaultResponse,\n TypeGetBusinessMetadataDefByGuid200Response,\n TypeGetBusinessMetadataDefByGuidDefaultResponse,\n TypeGetBusinessMetadataDefByName200Response,\n TypeGetBusinessMetadataDefByNameDefaultResponse,\n TypeGetClassificationDefByGuid200Response,\n TypeGetClassificationDefByGuidDefaultResponse,\n TypeGetClassificationDefByName200Response,\n TypeGetClassificationDefByNameDefaultResponse,\n TypeGetEntityDefByGuid200Response,\n TypeGetEntityDefByGuidDefaultResponse,\n TypeGetEntityDefByName200Response,\n TypeGetEntityDefByNameDefaultResponse,\n TypeGetEnumDefByGuid200Response,\n TypeGetEnumDefByGuidDefaultResponse,\n TypeGetEnumDefByName200Response,\n TypeGetEnumDefByNameDefaultResponse,\n TypeGetRelationshipDefByGuid200Response,\n TypeGetRelationshipDefByGuidDefaultResponse,\n TypeGetRelationshipDefByName200Response,\n TypeGetRelationshipDefByNameDefaultResponse,\n TypeGetStructDefByGuid200Response,\n TypeGetStructDefByGuidDefaultResponse,\n TypeGetStructDefByName200Response,\n TypeGetStructDefByNameDefaultResponse,\n TypeGetByGuid200Response,\n TypeGetByGuidDefaultResponse,\n TypeGetByName200Response,\n TypeGetByNameDefaultResponse,\n TypeDeleteOperation204Response,\n TypeDeleteOperationDefaultResponse,\n TypeList200Response,\n TypeListDefaultResponse,\n TypeBulkCreate200Response,\n TypeBulkCreateDefaultResponse,\n TypeBulkUpdate200Response,\n TypeBulkUpdateDefaultResponse,\n TypeBulkDelete204Response,\n TypeBulkDeleteDefaultResponse,\n TypeListHeaders200Response,\n TypeListHeadersDefaultResponse,\n TypeGetTermTemplateDefByGuid200Response,\n TypeGetTermTemplateDefByGuidDefaultResponse,\n TypeGetTermTemplateDefByName200Response,\n TypeGetTermTemplateDefByNameDefaultResponse,\n} from \"./responses\";\n\nconst responseMap: Record<string, string[]> = {\n \"POST /atlas/v2/entity\": [\"200\"],\n \"GET /atlas/v2/entity/bulk\": [\"200\"],\n \"POST /atlas/v2/entity/bulk\": [\"200\"],\n \"DELETE /atlas/v2/entity/bulk\": [\"200\"],\n \"POST /atlas/v2/entity/bulk/classification\": [\"204\"],\n \"GET /atlas/v2/entity/guid/{guid}\": [\"200\"],\n \"PUT /atlas/v2/entity/guid/{guid}\": [\"200\"],\n \"DELETE /atlas/v2/entity/guid/{guid}\": [\"200\"],\n \"GET /atlas/v2/entity/guid/{guid}/classification/{classificationName}\": [\"200\"],\n \"DELETE /atlas/v2/entity/guid/{guid}/classification/{classificationName}\": [\"204\"],\n \"GET /atlas/v2/entity/guid/{guid}/classifications\": [\"200\"],\n \"POST /atlas/v2/entity/guid/{guid}/classifications\": [\"204\"],\n \"PUT /atlas/v2/entity/guid/{guid}/classifications\": [\"204\"],\n \"GET /atlas/v2/entity/uniqueAttribute/type/{typeName}\": [\"200\"],\n \"PUT /atlas/v2/entity/uniqueAttribute/type/{typeName}\": [\"200\"],\n \"DELETE /atlas/v2/entity/uniqueAttribute/type/{typeName}\": [\"200\"],\n \"DELETE /atlas/v2/entity/uniqueAttribute/type/{typeName}/classification/{classificationName}\": [\n \"204\",\n ],\n \"POST /atlas/v2/entity/uniqueAttribute/type/{typeName}/classifications\": [\"204\"],\n \"PUT /atlas/v2/entity/uniqueAttribute/type/{typeName}/classifications\": [\"204\"],\n \"POST /atlas/v2/entity/bulk/setClassifications\": [\"200\"],\n \"GET /atlas/v2/entity/bulk/uniqueAttribute/type/{typeName}\": [\"200\"],\n \"GET /atlas/v2/entity/guid/{guid}/header\": [\"200\"],\n \"DELETE /atlas/v2/entity/guid/{guid}/businessmetadata\": [\"204\"],\n \"POST /atlas/v2/entity/guid/{guid}/businessmetadata\": [\"204\"],\n \"DELETE /atlas/v2/entity/guid/{guid}/businessmetadata/{businessMetadataName}\": [\"204\"],\n \"POST /atlas/v2/entity/guid/{guid}/businessmetadata/{businessMetadataName}\": [\"204\"],\n \"GET /atlas/v2/entity/businessmetadata/import/template\": [\"200\"],\n \"POST /atlas/v2/entity/businessmetadata/import\": [\"200\"],\n \"DELETE /atlas/v2/entity/guid/{guid}/labels\": [\"204\"],\n \"POST /atlas/v2/entity/guid/{guid}/labels\": [\"204\"],\n \"PUT /atlas/v2/entity/guid/{guid}/labels\": [\"204\"],\n \"DELETE /atlas/v2/entity/uniqueAttribute/type/{typeName}/labels\": [\"204\"],\n \"POST /atlas/v2/entity/uniqueAttribute/type/{typeName}/labels\": [\"204\"],\n \"PUT /atlas/v2/entity/uniqueAttribute/type/{typeName}/labels\": [\"204\"],\n \"POST /entity/moveTo\": [\"200\"],\n \"GET /atlas/v2/glossary\": [\"200\"],\n \"POST /atlas/v2/glossary\": [\"200\"],\n \"POST /atlas/v2/glossary/categories\": [\"200\"],\n \"POST /atlas/v2/glossary/category\": [\"200\"],\n \"GET /atlas/v2/glossary/category/{categoryId}\": [\"200\"],\n \"PUT /atlas/v2/glossary/category/{categoryId}\": [\"200\"],\n \"DELETE /atlas/v2/glossary/category/{categoryId}\": [\"204\"],\n \"PUT /atlas/v2/glossary/category/{categoryId}/partial\": [\"200\"],\n \"GET /atlas/v2/glossary/category/{categoryId}/related\": [\"200\"],\n \"GET /atlas/v2/glossary/category/{categoryId}/terms\": [\"200\"],\n \"POST /atlas/v2/glossary/term\": [\"200\"],\n \"GET /atlas/v2/glossary/term/{termId}\": [\"200\"],\n \"PUT /atlas/v2/glossary/term/{termId}\": [\"200\"],\n \"DELETE /atlas/v2/glossary/term/{termId}\": [\"204\"],\n \"PUT /atlas/v2/glossary/term/{termId}/partial\": [\"200\"],\n \"POST /atlas/v2/glossary/terms\": [\"200\"],\n \"GET /atlas/v2/glossary/terms/{termId}/assignedEntities\": [\"200\"],\n \"POST /atlas/v2/glossary/terms/{termId}/assignedEntities\": [\"204\"],\n \"DELETE /atlas/v2/glossary/terms/{termId}/assignedEntities\": [\"204\"],\n \"GET /atlas/v2/glossary/terms/{termId}/related\": [\"200\"],\n \"GET /atlas/v2/glossary/{glossaryId}\": [\"200\"],\n \"PUT /atlas/v2/glossary/{glossaryId}\": [\"200\"],\n \"DELETE /atlas/v2/glossary/{glossaryId}\": [\"204\"],\n \"GET /atlas/v2/glossary/{glossaryId}/categories\": [\"200\"],\n \"GET /atlas/v2/glossary/{glossaryId}/categories/headers\": [\"200\"],\n \"GET /atlas/v2/glossary/{glossaryId}/detailed\": [\"200\"],\n \"PUT /atlas/v2/glossary/{glossaryId}/partial\": [\"200\"],\n \"GET /atlas/v2/glossary/{glossaryId}/terms\": [\"200\"],\n \"GET /atlas/v2/glossary/{glossaryId}/terms/headers\": [\"200\"],\n \"POST /search/query\": [\"200\"],\n \"POST /search/suggest\": [\"200\"],\n \"POST /search/autocomplete\": [\"200\"],\n \"GET /atlas/v2/lineage/{guid}\": [\"200\"],\n \"GET /lineage/{guid}/next\": [\"200\"],\n \"GET /atlas/v2/lineage/uniqueAttribute/type/{typeName}\": [\"200\"],\n \"POST /atlas/v2/relationship\": [\"200\"],\n \"PUT /atlas/v2/relationship\": [\"200\"],\n \"GET /atlas/v2/relationship/guid/{guid}\": [\"200\"],\n \"DELETE /atlas/v2/relationship/guid/{guid}\": [\"204\"],\n \"GET /atlas/v2/types/businessmetadatadef/guid/{guid}\": [\"200\"],\n \"GET /atlas/v2/types/businessmetadatadef/name/{name}\": [\"200\"],\n \"GET /atlas/v2/types/classificationdef/guid/{guid}\": [\"200\"],\n \"GET /atlas/v2/types/classificationdef/name/{name}\": [\"200\"],\n \"GET /atlas/v2/types/entitydef/guid/{guid}\": [\"200\"],\n \"GET /atlas/v2/types/entitydef/name/{name}\": [\"200\"],\n \"GET /atlas/v2/types/enumdef/guid/{guid}\": [\"200\"],\n \"GET /atlas/v2/types/enumdef/name/{name}\": [\"200\"],\n \"GET /atlas/v2/types/relationshipdef/guid/{guid}\": [\"200\"],\n \"GET /atlas/v2/types/relationshipdef/name/{name}\": [\"200\"],\n \"GET /atlas/v2/types/structdef/guid/{guid}\": [\"200\"],\n \"GET /atlas/v2/types/structdef/name/{name}\": [\"200\"],\n \"GET /atlas/v2/types/typedef/guid/{guid}\": [\"200\"],\n \"GET /atlas/v2/types/typedef/name/{name}\": [\"200\"],\n \"DELETE /atlas/v2/types/typedef/name/{name}\": [\"204\"],\n \"GET /atlas/v2/types/typedefs\": [\"200\"],\n \"POST /atlas/v2/types/typedefs\": [\"200\"],\n \"PUT /atlas/v2/types/typedefs\": [\"200\"],\n \"DELETE /atlas/v2/types/typedefs\": [\"204\"],\n \"GET /atlas/v2/types/typedefs/headers\": [\"200\"],\n \"GET /types/termtemplatedef/guid/{guid}\": [\"200\"],\n \"GET /types/termtemplatedef/name/{name}\": [\"200\"],\n};\n\nexport function isUnexpected(\n response: EntityCreateOrUpdate200Response | EntityCreateOrUpdateDefaultResponse,\n): response is EntityCreateOrUpdateDefaultResponse;\nexport function isUnexpected(\n response: EntityListByGuids200Response | EntityListByGuidsDefaultResponse,\n): response is EntityListByGuidsDefaultResponse;\nexport function isUnexpected(\n response: EntityBulkCreateOrUpdate200Response | EntityBulkCreateOrUpdateDefaultResponse,\n): response is EntityBulkCreateOrUpdateDefaultResponse;\nexport function isUnexpected(\n response: EntityBulkDelete200Response | EntityBulkDeleteDefaultResponse,\n): response is EntityBulkDeleteDefaultResponse;\nexport function isUnexpected(\n response: EntityAddClassification204Response | EntityAddClassificationDefaultResponse,\n): response is EntityAddClassificationDefaultResponse;\nexport function isUnexpected(\n response: EntityGet200Response | EntityGetDefaultResponse,\n): response is EntityGetDefaultResponse;\nexport function isUnexpected(\n response:\n | EntityPartialUpdateAttributeByGuid200Response\n | EntityPartialUpdateAttributeByGuidDefaultResponse,\n): response is EntityPartialUpdateAttributeByGuidDefaultResponse;\nexport function isUnexpected(\n response: EntityDeleteOperation200Response | EntityDeleteOperationDefaultResponse,\n): response is EntityDeleteOperationDefaultResponse;\nexport function isUnexpected(\n response: EntityGetClassification200Response | EntityGetClassificationDefaultResponse,\n): response is EntityGetClassificationDefaultResponse;\nexport function isUnexpected(\n response: EntityRemoveClassification204Response | EntityRemoveClassificationDefaultResponse,\n): response is EntityRemoveClassificationDefaultResponse;\nexport function isUnexpected(\n response: EntityGetClassifications200Response | EntityGetClassificationsDefaultResponse,\n): response is EntityGetClassificationsDefaultResponse;\nexport function isUnexpected(\n response: EntityAddClassifications204Response | EntityAddClassificationsDefaultResponse,\n): response is EntityAddClassificationsDefaultResponse;\nexport function isUnexpected(\n response: EntityUpdateClassifications204Response | EntityUpdateClassificationsDefaultResponse,\n): response is EntityUpdateClassificationsDefaultResponse;\nexport function isUnexpected(\n response: EntityGetByUniqueAttributes200Response | EntityGetByUniqueAttributesDefaultResponse,\n): response is EntityGetByUniqueAttributesDefaultResponse;\nexport function isUnexpected(\n response:\n | EntityPartialUpdateByUniqueAttributes200Response\n | EntityPartialUpdateByUniqueAttributesDefaultResponse,\n): response is EntityPartialUpdateByUniqueAttributesDefaultResponse;\nexport function isUnexpected(\n response: EntityDeleteByUniqueAttribute200Response | EntityDeleteByUniqueAttributeDefaultResponse,\n): response is EntityDeleteByUniqueAttributeDefaultResponse;\nexport function isUnexpected(\n response:\n | EntityRemoveClassificationByUniqueAttribute204Response\n | EntityRemoveClassificationByUniqueAttributeDefaultResponse,\n): response is EntityRemoveClassificationByUniqueAttributeDefaultResponse;\nexport function isUnexpected(\n response:\n | EntityAddClassificationsByUniqueAttribute204Response\n | EntityAddClassificationsByUniqueAttributeDefaultResponse,\n): response is EntityAddClassificationsByUniqueAttributeDefaultResponse;\nexport function isUnexpected(\n response:\n | EntityUpdateClassificationsByUniqueAttribute204Response\n | EntityUpdateClassificationsByUniqueAttributeDefaultResponse,\n): response is EntityUpdateClassificationsByUniqueAttributeDefaultResponse;\nexport function isUnexpected(\n response: EntityBulkSetClassifications200Response | EntityBulkSetClassificationsDefaultResponse,\n): response is EntityBulkSetClassificationsDefaultResponse;\nexport function isUnexpected(\n response: EntityListByUniqueAttributes200Response | EntityListByUniqueAttributesDefaultResponse,\n): response is EntityListByUniqueAttributesDefaultResponse;\nexport function isUnexpected(\n response: EntityGetHeader200Response | EntityGetHeaderDefaultResponse,\n): response is EntityGetHeaderDefaultResponse;\nexport function isUnexpected(\n response: EntityRemoveBusinessMetadata204Response | EntityRemoveBusinessMetadataDefaultResponse,\n): response is EntityRemoveBusinessMetadataDefaultResponse;\nexport function isUnexpected(\n response:\n | EntityAddOrUpdateBusinessMetadata204Response\n | EntityAddOrUpdateBusinessMetadataDefaultResponse,\n): response is EntityAddOrUpdateBusinessMetadataDefaultResponse;\nexport function isUnexpected(\n response:\n | EntityRemoveBusinessMetadataAttributes204Response\n | EntityRemoveBusinessMetadataAttributesDefaultResponse,\n): response is EntityRemoveBusinessMetadataAttributesDefaultResponse;\nexport function isUnexpected(\n response:\n | EntityAddOrUpdateBusinessMetadataAttributes204Response\n | EntityAddOrUpdateBusinessMetadataAttributesDefaultResponse,\n): response is EntityAddOrUpdateBusinessMetadataAttributesDefaultResponse;\nexport function isUnexpected(\n response:\n | EntityGetSampleBusinessMetadataTemplate200Response\n | EntityGetSampleBusinessMetadataTemplateDefaultResponse,\n): response is EntityGetSampleBusinessMetadataTemplateDefaultResponse;\nexport function isUnexpected(\n response: EntityImportBusinessMetadata200Response | EntityImportBusinessMetadataDefaultResponse,\n): response is EntityImportBusinessMetadataDefaultResponse;\nexport function isUnexpected(\n response: EntityRemoveLabels204Response | EntityRemoveLabelsDefaultResponse,\n): response is EntityRemoveLabelsDefaultResponse;\nexport function isUnexpected(\n response: EntitySetLabels204Response | EntitySetLabelsDefaultResponse,\n): response is EntitySetLabelsDefaultResponse;\nexport function isUnexpected(\n response: EntityAddLabel204Response | EntityAddLabelDefaultResponse,\n): response is EntityAddLabelDefaultResponse;\nexport function isUnexpected(\n response:\n | EntityRemoveLabelsByUniqueAttribute204Response\n | EntityRemoveLabelsByUniqueAttributeDefaultResponse,\n): response is EntityRemoveLabelsByUniqueAttributeDefaultResponse;\nexport function isUnexpected(\n response:\n | EntitySetLabelsByUniqueAttribute204Response\n | EntitySetLabelsByUniqueAttributeDefaultResponse,\n): response is EntitySetLabelsByUniqueAttributeDefaultResponse;\nexport function isUnexpected(\n response:\n | EntityAddLabelsByUniqueAttribute204Response\n | EntityAddLabelsByUniqueAttributeDefaultResponse,\n): response is EntityAddLabelsByUniqueAttributeDefaultResponse;\nexport function isUnexpected(\n response:\n | EntityMoveEntitiesToCollection200Response\n | EntityMoveEntitiesToCollectionDefaultResponse,\n): response is EntityMoveEntitiesToCollectionDefaultResponse;\nexport function isUnexpected(\n response: GlossaryList200Response | GlossaryListDefaultResponse,\n): response is GlossaryListDefaultResponse;\nexport function isUnexpected(\n response: GlossaryCreate200Response | GlossaryCreateDefaultResponse,\n): response is GlossaryCreateDefaultResponse;\nexport function isUnexpected(\n response: GlossaryCreateCategories200Response | GlossaryCreateCategoriesDefaultResponse,\n): response is GlossaryCreateCategoriesDefaultResponse;\nexport function isUnexpected(\n response: GlossaryCreateCategory200Response | GlossaryCreateCategoryDefaultResponse,\n): response is GlossaryCreateCategoryDefaultResponse;\nexport function isUnexpected(\n response: GlossaryGetCategory200Response | GlossaryGetCategoryDefaultResponse,\n): response is GlossaryGetCategoryDefaultResponse;\nexport function isUnexpected(\n response: GlossaryUpdateCategory200Response | GlossaryUpdateCategoryDefaultResponse,\n): response is GlossaryUpdateCategoryDefaultResponse;\nexport function isUnexpected(\n response: GlossaryDeleteCategory204Response | GlossaryDeleteCategoryDefaultResponse,\n): response is GlossaryDeleteCategoryDefaultResponse;\nexport function isUnexpected(\n response: GlossaryPartialUpdateCategory200Response | GlossaryPartialUpdateCategoryDefaultResponse,\n): response is GlossaryPartialUpdateCategoryDefaultResponse;\nexport function isUnexpected(\n response: GlossaryListRelatedCategories200Response | GlossaryListRelatedCategoriesDefaultResponse,\n): response is GlossaryListRelatedCategoriesDefaultResponse;\nexport function isUnexpected(\n response: GlossaryListCategoryTerms200Response | GlossaryListCategoryTermsDefaultResponse,\n): response is GlossaryListCategoryTermsDefaultResponse;\nexport function isUnexpected(\n response: GlossaryCreateTerm200Response | GlossaryCreateTermDefaultResponse,\n): response is GlossaryCreateTermDefaultResponse;\nexport function isUnexpected(\n response: GlossaryGetTerm200Response | GlossaryGetTermDefaultResponse,\n): response is GlossaryGetTermDefaultResponse;\nexport function isUnexpected(\n response: GlossaryUpdateTerm200Response | GlossaryUpdateTermDefaultResponse,\n): response is GlossaryUpdateTermDefaultResponse;\nexport function isUnexpected(\n response: GlossaryDeleteTerm204Response | GlossaryDeleteTermDefaultResponse,\n): response is GlossaryDeleteTermDefaultResponse;\nexport function isUnexpected(\n response: GlossaryPartialUpdateTerm200Response | GlossaryPartialUpdateTermDefaultResponse,\n): response is GlossaryPartialUpdateTermDefaultResponse;\nexport function isUnexpected(\n response: GlossaryCreateTerms200Response | GlossaryCreateTermsDefaultResponse,\n): response is GlossaryCreateTermsDefaultResponse;\nexport function isUnexpected(\n response:\n | GlossaryListEntitiesAssignedWithTerm200Response\n | GlossaryListEntitiesAssignedWithTermDefaultResponse,\n): response is GlossaryListEntitiesAssignedWithTermDefaultResponse;\nexport function isUnexpected(\n response: GlossaryAssignTermToEntities204Response | GlossaryAssignTermToEntitiesDefaultResponse,\n): response is GlossaryAssignTermToEntitiesDefaultResponse;\nexport function isUnexpected(\n response:\n | GlossaryDeleteTermAssignmentFromEntities204Response\n | GlossaryDeleteTermAssignmentFromEntitiesDefaultResponse,\n): response is GlossaryDeleteTermAssignmentFromEntitiesDefaultResponse;\nexport function isUnexpected(\n response: GlossaryListRelatedTerms200Response | GlossaryListRelatedTermsDefaultResponse,\n): response is GlossaryListRelatedTermsDefaultResponse;\nexport function isUnexpected(\n response: GlossaryGet200Response | GlossaryGetDefaultResponse,\n): response is GlossaryGetDefaultResponse;\nexport function isUnexpected(\n response: GlossaryUpdate200Response | GlossaryUpdateDefaultResponse,\n): response is GlossaryUpdateDefaultResponse;\nexport function isUnexpected(\n response: GlossaryDeleteOperation204Response | GlossaryDeleteOperationDefaultResponse,\n): response is GlossaryDeleteOperationDefaultResponse;\nexport function isUnexpected(\n response: GlossaryListCategories200Response | GlossaryListCategoriesDefaultResponse,\n): response is GlossaryListCategoriesDefaultResponse;\nexport function isUnexpected(\n response: GlossaryListCategoriesHeaders200Response | GlossaryListCategoriesHeadersDefaultResponse,\n): response is GlossaryListCategoriesHeadersDefaultResponse;\nexport function isUnexpected(\n response: GlossaryGetDetailed200Response | GlossaryGetDetailedDefaultResponse,\n): response is GlossaryGetDetailedDefaultResponse;\nexport function isUnexpected(\n response: GlossaryPartialUpdate200Response | GlossaryPartialUpdateDefaultResponse,\n): response is GlossaryPartialUpdateDefaultResponse;\nexport function isUnexpected(\n response: GlossaryListTerms200Response | GlossaryListTermsDefaultResponse,\n): response is GlossaryListTermsDefaultResponse;\nexport function isUnexpected(\n response: GlossaryListTermHeaders200Response | GlossaryListTermHeadersDefaultResponse,\n): response is GlossaryListTermHeadersDefaultResponse;\nexport function isUnexpected(\n response: DiscoveryQuery200Response | DiscoveryQueryDefaultResponse,\n): response is DiscoveryQueryDefaultResponse;\nexport function isUnexpected(\n response: DiscoverySuggest200Response | DiscoverySuggestDefaultResponse,\n): response is DiscoverySuggestDefaultResponse;\nexport function isUnexpected(\n response: DiscoveryAutoComplete200Response | DiscoveryAutoCompleteDefaultResponse,\n): response is DiscoveryAutoCompleteDefaultResponse;\nexport function isUnexpected(\n response: LineageGet200Response | LineageGetDefaultResponse,\n): response is LineageGetDefaultResponse;\nexport function isUnexpected(\n response: LineageGetNextPage200Response | LineageGetNextPageDefaultResponse,\n): response is LineageGetNextPageDefaultResponse;\nexport function isUnexpected(\n response: LineageGetByUniqueAttribute200Response | LineageGetByUniqueAttributeDefaultResponse,\n): response is LineageGetByUniqueAttributeDefaultResponse;\nexport function isUnexpected(\n response: RelationshipCreate200Response | RelationshipCreateDefaultResponse,\n): response is RelationshipCreateDefaultResponse;\nexport function isUnexpected(\n response: RelationshipUpdate200Response | RelationshipUpdateDefaultResponse,\n): response is RelationshipUpdateDefaultResponse;\nexport function isUnexpected(\n response: RelationshipGet200Response | RelationshipGetDefaultResponse,\n): response is RelationshipGetDefaultResponse;\nexport function isUnexpected(\n response: RelationshipDeleteOperation204Response | RelationshipDeleteOperationDefaultResponse,\n): response is RelationshipDeleteOperationDefaultResponse;\nexport function isUnexpected(\n response:\n | TypeGetBusinessMetadataDefByGuid200Response\n | TypeGetBusinessMetadataDefByGuidDefaultResponse,\n): response is TypeGetBusinessMetadataDefByGuidDefaultResponse;\nexport function isUnexpected(\n response:\n | TypeGetBusinessMetadataDefByName200Response\n | TypeGetBusinessMetadataDefByNameDefaultResponse,\n): response is TypeGetBusinessMetadataDefByNameDefaultResponse;\nexport function isUnexpected(\n response:\n | TypeGetClassificationDefByGuid200Response\n | TypeGetClassificationDefByGuidDefaultResponse,\n): response is TypeGetClassificationDefByGuidDefaultResponse;\nexport function isUnexpected(\n response:\n | TypeGetClassificationDefByName200Response\n | TypeGetClassificationDefByNameDefaultResponse,\n): response is TypeGetClassificationDefByNameDefaultResponse;\nexport function isUnexpected(\n response: TypeGetEntityDefByGuid200Response | TypeGetEntityDefByGuidDefaultResponse,\n): response is TypeGetEntityDefByGuidDefaultResponse;\nexport function isUnexpected(\n response: TypeGetEntityDefByName200Response | TypeGetEntityDefByNameDefaultResponse,\n): response is TypeGetEntityDefByNameDefaultResponse;\nexport function isUnexpected(\n response: TypeGetEnumDefByGuid200Response | TypeGetEnumDefByGuidDefaultResponse,\n): response is TypeGetEnumDefByGuidDefaultResponse;\nexport function isUnexpected(\n response: TypeGetEnumDefByName200Response | TypeGetEnumDefByNameDefaultResponse,\n): response is TypeGetEnumDefByNameDefaultResponse;\nexport function isUnexpected(\n response: TypeGetRelationshipDefByGuid200Response | TypeGetRelationshipDefByGuidDefaultResponse,\n): response is TypeGetRelationshipDefByGuidDefaultResponse;\nexport function isUnexpected(\n response: TypeGetRelationshipDefByName200Response | TypeGetRelationshipDefByNameDefaultResponse,\n): response is TypeGetRelationshipDefByNameDefaultResponse;\nexport function isUnexpected(\n response: TypeGetStructDefByGuid200Response | TypeGetStructDefByGuidDefaultResponse,\n): response is TypeGetStructDefByGuidDefaultResponse;\nexport function isUnexpected(\n response: TypeGetStructDefByName200Response | TypeGetStructDefByNameDefaultResponse,\n): response is TypeGetStructDefByNameDefaultResponse;\nexport function isUnexpected(\n response: TypeGetByGuid200Response | TypeGetByGuidDefaultResponse,\n): response is TypeGetByGuidDefaultResponse;\nexport function isUnexpected(\n response: TypeGetByName200Response | TypeGetByNameDefaultResponse,\n): response is TypeGetByNameDefaultResponse;\nexport function isUnexpected(\n response: TypeDeleteOperation204Response | TypeDeleteOperationDefaultResponse,\n): response is TypeDeleteOperationDefaultResponse;\nexport function isUnexpected(\n response: TypeList200Response | TypeListDefaultResponse,\n): response is TypeListDefaultResponse;\nexport function isUnexpected(\n response: TypeBulkCreate200Response | TypeBulkCreateDefaultResponse,\n): response is TypeBulkCreateDefaultResponse;\nexport function isUnexpected(\n response: TypeBulkUpdate200Response | TypeBulkUpdateDefaultResponse,\n): response is TypeBulkUpdateDefaultResponse;\nexport function isUnexpected(\n response: TypeBulkDelete204Response | TypeBulkDeleteDefaultResponse,\n): response is TypeBulkDeleteDefaultResponse;\nexport function isUnexpected(\n response: TypeListHeaders200Response | TypeListHeadersDefaultResponse,\n): response is TypeListHeadersDefaultResponse;\nexport function isUnexpected(\n response: TypeGetTermTemplateDefByGuid200Response | TypeGetTermTemplateDefByGuidDefaultResponse,\n): response is TypeGetTermTemplateDefByGuidDefaultResponse;\nexport function isUnexpected(\n response: TypeGetTermTemplateDefByName200Response | TypeGetTermTemplateDefByNameDefaultResponse,\n): response is TypeGetTermTemplateDefByNameDefaultResponse;\nexport function isUnexpected(\n response:\n | EntityCreateOrUpdate200Response\n | EntityCreateOrUpdateDefaultResponse\n | EntityListByGuids200Response\n | EntityListByGuidsDefaultResponse\n | EntityBulkCreateOrUpdate200Response\n | EntityBulkCreateOrUpdateDefaultResponse\n | EntityBulkDelete200Response\n | EntityBulkDeleteDefaultResponse\n | EntityAddClassification204Response\n | EntityAddClassificationDefaultResponse\n | EntityGet200Response\n | EntityGetDefaultResponse\n | EntityPartialUpdateAttributeByGuid200Response\n | EntityPartialUpdateAttributeByGuidDefaultResponse\n | EntityDeleteOperation200Response\n | EntityDeleteOperationDefaultResponse\n | EntityGetClassification200Response\n | EntityGetClassificationDefaultResponse\n | EntityRemoveClassification204Response\n | EntityRemoveClassificationDefaultResponse\n | EntityGetClassifications200Response\n | EntityGetClassificationsDefaultResponse\n | EntityAddClassifications204Response\n | EntityAddClassificationsDefaultResponse\n | EntityUpdateClassifications204Response\n | EntityUpdateClassificationsDefaultResponse\n | EntityGetByUniqueAttributes200Response\n | EntityGetByUniqueAttributesDefaultResponse\n | EntityPartialUpdateByUniqueAttributes200Response\n | EntityPartialUpdateByUniqueAttributesDefaultResponse\n | EntityDeleteByUniqueAttribute200Response\n | EntityDeleteByUniqueAttributeDefaultResponse\n | EntityRemoveClassificationByUniqueAttribute204Response\n | EntityRemoveClassificationByUniqueAttributeDefaultResponse\n | EntityAddClassificationsByUniqueAttribute204Response\n | EntityAddClassificationsByUniqueAttributeDefaultResponse\n | EntityUpdateClassificationsByUniqueAttribute204Response\n | EntityUpdateClassificationsByUniqueAttributeDefaultResponse\n | EntityBulkSetClassifications200Response\n | EntityBulkSetClassificationsDefaultResponse\n | EntityListByUniqueAttributes200Response\n | EntityListByUniqueAttributesDefaultResponse\n | EntityGetHeader200Response\n | EntityGetHeaderDefaultResponse\n | EntityRemoveBusinessMetadata204Response\n | EntityRemoveBusinessMetadataDefaultResponse\n | EntityAddOrUpdateBusinessMetadata204Response\n | EntityAddOrUpdateBusinessMetadataDefaultResponse\n | EntityRemoveBusinessMetadataAttributes204Response\n | EntityRemoveBusinessMetadataAttributesDefaultResponse\n | EntityAddOrUpdateBusinessMetadataAttributes204Response\n | EntityAddOrUpdateBusinessMetadataAttributesDefaultResponse\n | EntityGetSampleBusinessMetadataTemplate200Response\n | EntityGetSampleBusinessMetadataTemplateDefaultResponse\n | EntityImportBusinessMetadata200Response\n | EntityImportBusinessMetadataDefaultResponse\n | EntityRemoveLabels204Response\n | EntityRemoveLabelsDefaultResponse\n | EntitySetLabels204Response\n | EntitySetLabelsDefaultResponse\n | EntityAddLabel204Response\n | EntityAddLabelDefaultResponse\n | EntityRemoveLabelsByUniqueAttribute204Response\n | EntityRemoveLabelsByUniqueAttributeDefaultResponse\n | EntitySetLabelsByUniqueAttribute204Response\n | EntitySetLabelsByUniqueAttributeDefaultResponse\n | EntityAddLabelsByUniqueAttribute204Response\n | EntityAddLabelsByUniqueAttributeDefaultResponse\n | EntityMoveEntitiesToCollection200Response\n | EntityMoveEntitiesToCollectionDefaultResponse\n | GlossaryList200Response\n | GlossaryListDefaultResponse\n | GlossaryCreate200Response\n | GlossaryCreateDefaultResponse\n | GlossaryCreateCategories200Response\n | GlossaryCreateCategoriesDefaultResponse\n | GlossaryCreateCategory200Response\n | GlossaryCreateCategoryDefaultResponse\n | GlossaryGetCategory200Response\n | GlossaryGetCategoryDefaultResponse\n | GlossaryUpdateCategory200Response\n | GlossaryUpdateCategoryDefaultResponse\n | GlossaryDeleteCategory204Response\n | GlossaryDeleteCategoryDefaultResponse\n | GlossaryPartialUpdateCategory200Response\n | GlossaryPartialUpdateCategoryDefaultResponse\n | GlossaryListRelatedCategories200Response\n | GlossaryListRelatedCategoriesDefaultResponse\n | GlossaryListCategoryTerms200Response\n | GlossaryListCategoryTermsDefaultResponse\n | GlossaryCreateTerm200Response\n | GlossaryCreateTermDefaultResponse\n | GlossaryGetTerm200Response\n | GlossaryGetTermDefaultResponse\n | GlossaryUpdateTerm200Response\n | GlossaryUpdateTermDefaultResponse\n | GlossaryDeleteTerm204Response\n | GlossaryDeleteTermDefaultResponse\n | GlossaryPartialUpdateTerm200Response\n | GlossaryPartialUpdateTermDefaultResponse\n | GlossaryCreateTerms200Response\n | GlossaryCreateTermsDefaultResponse\n | GlossaryListEntitiesAssignedWithTerm200Response\n | GlossaryListEntitiesAssignedWithTermDefaultResponse\n | GlossaryAssignTermToEntities204Response\n | GlossaryAssignTermToEntitiesDefaultResponse\n | GlossaryDeleteTermAssignmentFromEntities204Response\n | GlossaryDeleteTermAssignmentFromEntitiesDefaultResponse\n | GlossaryListRelatedTerms200Response\n | GlossaryListRelatedTermsDefaultResponse\n | GlossaryGet200Response\n | GlossaryGetDefaultResponse\n | GlossaryUpdate200Response\n | GlossaryUpdateDefaultResponse\n | GlossaryDeleteOperation204Response\n | GlossaryDeleteOperationDefaultResponse\n | GlossaryListCategories200Response\n | GlossaryListCategoriesDefaultResponse\n | GlossaryListCategoriesHeaders200Response\n | GlossaryListCategoriesHeadersDefaultResponse\n | GlossaryGetDetailed200Response\n | GlossaryGetDetailedDefaultResponse\n | GlossaryPartialUpdate200Response\n | GlossaryPartialUpdateDefaultResponse\n | GlossaryListTerms200Response\n | GlossaryListTermsDefaultResponse\n | GlossaryListTermHeaders200Response\n | GlossaryListTermHeadersDefaultResponse\n | DiscoveryQuery200Response\n | DiscoveryQueryDefaultResponse\n | DiscoverySuggest200Response\n | DiscoverySuggestDefaultResponse\n | DiscoveryAutoComplete200Response\n | DiscoveryAutoCompleteDefaultResponse\n | LineageGet200Response\n | LineageGetDefaultResponse\n | LineageGetNextPage200Response\n | LineageGetNextPageDefaultResponse\n | LineageGetByUniqueAttribute200Response\n | LineageGetByUniqueAttributeDefaultResponse\n | RelationshipCreate200Response\n | RelationshipCreateDefaultResponse\n | RelationshipUpdate200Response\n | RelationshipUpdateDefaultResponse\n | RelationshipGet200Response\n | RelationshipGetDefaultResponse\n | RelationshipDeleteOperation204Response\n | RelationshipDeleteOperationDefaultResponse\n | TypeGetBusinessMetadataDefByGuid200Response\n | TypeGetBusinessMetadataDefByGuidDefaultResponse\n | TypeGetBusinessMetadataDefByName200Response\n | TypeGetBusinessMetadataDefByNameDefaultResponse\n | TypeGetClassificationDefByGuid200Response\n | TypeGetClassificationDefByGuidDefaultResponse\n | TypeGetClassificationDefByName200Response\n | TypeGetClassificationDefByNameDefaultResponse\n | TypeGetEntityDefByGuid200Response\n | TypeGetEntityDefByGuidDefaultResponse\n | TypeGetEntityDefByName200Response\n | TypeGetEntityDefByNameDefaultResponse\n | TypeGetEnumDefByGuid200Response\n | TypeGetEnumDefByGuidDefaultResponse\n | TypeGetEnumDefByName200Response\n | TypeGetEnumDefByNameDefaultResponse\n | TypeGetRelationshipDefByGuid200Response\n | TypeGetRelationshipDefByGuidDefaultResponse\n | TypeGetRelationshipDefByName200Response\n | TypeGetRelationshipDefByNameDefaultResponse\n | TypeGetStructDefByGuid200Response\n | TypeGetStructDefByGuidDefaultResponse\n | TypeGetStructDefByName200Response\n | TypeGetStructDefByNameDefaultResponse\n | TypeGetByGuid200Response\n | TypeGetByGuidDefaultResponse\n | TypeGetByName200Response\n | TypeGetByNameDefaultResponse\n | TypeDeleteOperation204Response\n | TypeDeleteOperationDefaultResponse\n | TypeList200Response\n | TypeListDefaultResponse\n | TypeBulkCreate200Response\n | TypeBulkCreateDefaultResponse\n | TypeBulkUpdate200Response\n | TypeBulkUpdateDefaultResponse\n | TypeBulkDelete204Response\n | TypeBulkDeleteDefaultResponse\n | TypeListHeaders200Response\n | TypeListHeadersDefaultResponse\n | TypeGetTermTemplateDefByGuid200Response\n | TypeGetTermTemplateDefByGuidDefaultResponse\n | TypeGetTermTemplateDefByName200Response\n | TypeGetTermTemplateDefByNameDefaultResponse,\n): response is\n | EntityCreateOrUpdateDefaultResponse\n | EntityListByGuidsDefaultResponse\n | EntityBulkCreateOrUpdateDefaultResponse\n | EntityBulkDeleteDefaultResponse\n | EntityAddClassificationDefaultResponse\n | EntityGetDefaultResponse\n | EntityPartialUpdateAttributeByGuidDefaultResponse\n | EntityDeleteOperationDefaultResponse\n | EntityGetClassificationDefaultResponse\n | EntityRemoveClassificationDefaultResponse\n | EntityGetClassificationsDefaultResponse\n | EntityAddClassificationsDefaultResponse\n | EntityUpdateClassificationsDefaultResponse\n | EntityGetByUniqueAttributesDefaultResponse\n | EntityPartialUpdateByUniqueAttributesDefaultResponse\n | EntityDeleteByUniqueAttributeDefaultResponse\n | EntityRemoveClassificationByUniqueAttributeDefaultResponse\n | EntityAddClassificationsByUniqueAttributeDefaultResponse\n | EntityUpdateClassificationsByUniqueAttributeDefaultResponse\n | EntityBulkSetClassificationsDefaultResponse\n | EntityListByUniqueAttributesDefaultResponse\n | EntityGetHeaderDefaultResponse\n | EntityRemoveBusinessMetadataDefaultResponse\n | EntityAddOrUpdateBusinessMetadataDefaultResponse\n | EntityRemoveBusinessMetadataAttributesDefaultResponse\n | EntityAddOrUpdateBusinessMetadataAttributesDefaultResponse\n | EntityGetSampleBusinessMetadataTemplateDefaultResponse\n | EntityImportBusinessMetadataDefaultResponse\n | EntityRemoveLabelsDefaultResponse\n | EntitySetLabelsDefaultResponse\n | EntityAddLabelDefaultResponse\n | EntityRemoveLabelsByUniqueAttributeDefaultResponse\n | EntitySetLabelsByUniqueAttributeDefaultResponse\n | EntityAddLabelsByUniqueAttributeDefaultResponse\n | EntityMoveEntitiesToCollectionDefaultResponse\n | GlossaryListDefaultResponse\n | GlossaryCreateDefaultResponse\n | GlossaryCreateCategoriesDefaultResponse\n | GlossaryCreateCategoryDefaultResponse\n | GlossaryGetCategoryDefaultResponse\n | GlossaryUpdateCategoryDefaultResponse\n | GlossaryDeleteCategoryDefaultResponse\n | GlossaryPartialUpdateCategoryDefaultResponse\n | GlossaryListRelatedCategoriesDefaultResponse\n | GlossaryListCategoryTermsDefaultResponse\n | GlossaryCreateTermDefaultResponse\n | GlossaryGetTermDefaultResponse\n | GlossaryUpdateTermDefaultResponse\n | GlossaryDeleteTermDefaultResponse\n | GlossaryPartialUpdateTermDefaultResponse\n | GlossaryCreateTermsDefaultResponse\n | GlossaryListEntitiesAssignedWithTermDefaultResponse\n | GlossaryAssignTermToEntitiesDefaultResponse\n | GlossaryDeleteTermAssignmentFromEntitiesDefaultResponse\n | GlossaryListRelatedTermsDefaultResponse\n | GlossaryGetDefaultResponse\n | GlossaryUpdateDefaultResponse\n | GlossaryDeleteOperationDefaultResponse\n | GlossaryListCategoriesDefaultResponse\n | GlossaryListCategoriesHeadersDefaultResponse\n | GlossaryGetDetailedDefaultResponse\n | GlossaryPartialUpdateDefaultResponse\n | GlossaryListTermsDefaultResponse\n | GlossaryListTermHeadersDefaultResponse\n | DiscoveryQueryDefaultResponse\n | DiscoverySuggestDefaultResponse\n | DiscoveryAutoCompleteDefaultResponse\n | LineageGetDefaultResponse\n | LineageGetNextPageDefaultResponse\n | LineageGetByUniqueAttributeDefaultResponse\n | RelationshipCreateDefaultResponse\n | RelationshipUpdateDefaultResponse\n | RelationshipGetDefaultResponse\n | RelationshipDeleteOperationDefaultResponse\n | TypeGetBusinessMetadataDefByGuidDefaultResponse\n | TypeGetBusinessMetadataDefByNameDefaultResponse\n | TypeGetClassificationDefByGuidDefaultResponse\n | TypeGetClassificationDefByNameDefaultResponse\n | TypeGetEntityDefByGuidDefaultResponse\n | TypeGetEntityDefByNameDefaultResponse\n | TypeGetEnumDefByGuidDefaultResponse\n | TypeGetEnumDefByNameDefaultResponse\n | TypeGetRelationshipDefByGuidDefaultResponse\n | TypeGetRelationshipDefByNameDefaultResponse\n | TypeGetStructDefByGuidDefaultResponse\n | TypeGetStructDefByNameDefaultResponse\n | TypeGetByGuidDefaultResponse\n | TypeGetByNameDefaultResponse\n | TypeDeleteOperationDefaultResponse\n | TypeListDefaultResponse\n | TypeBulkCreateDefaultResponse\n | TypeBulkUpdateDefaultResponse\n | TypeBulkDeleteDefaultResponse\n | TypeListHeadersDefaultResponse\n | TypeGetTermTemplateDefByGuidDefaultResponse\n | TypeGetTermTemplateDefByNameDefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = getParametrizedPathSuccess(method, url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction getParametrizedPathSuccess(method: string, path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: string[] = [];\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport function buildMultiCollection(items: string[], parameterName: string): string {\n return items\n .map((item, index) => {\n if (index === 0) {\n return item;\n }\n return `${parameterName}=${item}`;\n })\n .join(\"&\");\n}\n","// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport PurviewDataMapClient from \"./purviewDataMapClient\";\n\nexport * from \"./purviewDataMapClient\";\nexport * from \"./parameters\";\nexport * from \"./responses\";\nexport * from \"./clientDefinitions\";\nexport * from \"./isUnexpected\";\nexport * from \"./models\";\nexport * from \"./outputModels\";\nexport * from \"./serializeHelper\";\nexport {\n createFile,\n createFileFromStream,\n type CreateFileOptions,\n type CreateFileFromStreamOptions,\n} from \"@azure/core-rest-pipeline\";\n\nexport default PurviewDataMapClient;\n"],"names":["createClientLogger","getClient"],"mapp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;;;"}
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT license.
3
+ export {};
4
+ //# sourceMappingURL=clientDefinitions.js.map