@azure/arm-appinsights 5.0.0-beta.1 → 5.0.0-beta.4
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/CHANGELOG.md +2 -2
- package/README.md +11 -0
- package/dist/index.js +558 -488
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/applicationInsightsManagementClient.d.ts +1 -2
- package/dist-esm/src/applicationInsightsManagementClient.d.ts.map +1 -1
- package/dist-esm/src/applicationInsightsManagementClient.js +21 -4
- package/dist-esm/src/applicationInsightsManagementClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +92 -53
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +10 -6
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +5 -3
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +168 -94
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -1
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +14 -14
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/components.js +33 -5
- package/dist-esm/src/operations/components.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +0 -1
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +0 -1
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/liveToken.js +1 -1
- package/dist-esm/src/operations/workbooks.d.ts +10 -10
- package/dist-esm/src/operations/workbooks.js +11 -11
- package/dist-esm/src/operations/workbooks.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +0 -1
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/workbooks.d.ts +7 -7
- package/dist-esm/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +32 -18
- package/review/arm-appinsights.api.md +38 -33
- package/rollup.config.js +6 -72
- package/src/applicationInsightsManagementClient.ts +27 -6
- package/src/models/index.ts +101 -61
- package/src/models/mappers.ts +179 -97
- package/src/models/parameters.ts +15 -15
- package/src/operations/components.ts +33 -5
- package/src/operations/index.ts +0 -1
- package/src/operations/liveToken.ts +1 -1
- package/src/operations/workbooks.ts +11 -11
- package/src/operationsInterfaces/index.ts +0 -1
- package/src/operationsInterfaces/workbooks.ts +7 -7
- package/tsconfig.json +12 -4
- package/types/arm-appinsights.d.ts +83 -54
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/src/operations/operations.d.ts +0 -32
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js +0 -116
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.d.ts +0 -11
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js +0 -9
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/src/operations/operations.ts +0 -133
- package/src/operationsInterfaces/operations.ts +0 -22
package/package.json
CHANGED
|
@@ -3,43 +3,57 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for ApplicationInsightsManagementClient.",
|
|
6
|
-
"version": "5.0.0-beta.
|
|
7
|
-
"engines": {
|
|
6
|
+
"version": "5.0.0-beta.4",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=12.0.0"
|
|
9
|
+
},
|
|
8
10
|
"dependencies": {
|
|
9
11
|
"@azure/core-paging": "^1.2.0",
|
|
10
|
-
"@azure/core-client": "^1.
|
|
12
|
+
"@azure/core-client": "^1.5.0",
|
|
11
13
|
"@azure/core-auth": "^1.3.0",
|
|
12
|
-
"@azure/core-rest-pipeline": "^1.
|
|
14
|
+
"@azure/core-rest-pipeline": "^1.8.0",
|
|
13
15
|
"tslib": "^2.2.0"
|
|
14
16
|
},
|
|
15
|
-
"keywords": [
|
|
17
|
+
"keywords": [
|
|
18
|
+
"node",
|
|
19
|
+
"azure",
|
|
20
|
+
"typescript",
|
|
21
|
+
"browser",
|
|
22
|
+
"isomorphic"
|
|
23
|
+
],
|
|
16
24
|
"license": "MIT",
|
|
17
25
|
"main": "./dist/index.js",
|
|
18
26
|
"module": "./dist-esm/src/index.js",
|
|
19
27
|
"types": "./types/arm-appinsights.d.ts",
|
|
20
28
|
"devDependencies": {
|
|
21
|
-
"@microsoft/api-extractor": "
|
|
22
|
-
"@rollup/plugin-commonjs": "
|
|
23
|
-
"@rollup/plugin-json": "^4.
|
|
24
|
-
"@rollup/plugin-multi-entry": "^
|
|
25
|
-
"@rollup/plugin-node-resolve": "^
|
|
29
|
+
"@microsoft/api-extractor": "7.18.11",
|
|
30
|
+
"@rollup/plugin-commonjs": "^21.0.1",
|
|
31
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
32
|
+
"@rollup/plugin-multi-entry": "^4.1.0",
|
|
33
|
+
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
26
34
|
"mkdirp": "^1.0.4",
|
|
27
|
-
"rollup": "^
|
|
28
|
-
"rollup-plugin-sourcemaps": "^0.
|
|
35
|
+
"rollup": "^2.66.1",
|
|
36
|
+
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
29
37
|
"typescript": "~4.2.0",
|
|
30
38
|
"uglify-js": "^3.4.9",
|
|
31
39
|
"rimraf": "^3.0.0",
|
|
32
40
|
"@azure/identity": "^2.0.1",
|
|
33
|
-
"@azure-tools/test-recorder": "^
|
|
41
|
+
"@azure-tools/test-recorder": "^2.0.0",
|
|
42
|
+
"@azure-tools/test-credential": "^1.0.0",
|
|
34
43
|
"mocha": "^7.1.1",
|
|
35
|
-
"
|
|
44
|
+
"@types/chai": "^4.2.8",
|
|
45
|
+
"chai": "^4.2.0",
|
|
46
|
+
"cross-env": "^7.0.2",
|
|
47
|
+
"@azure/dev-tool": "^1.0.0"
|
|
36
48
|
},
|
|
37
49
|
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/applicationinsights/arm-appinsights",
|
|
38
50
|
"repository": {
|
|
39
51
|
"type": "git",
|
|
40
52
|
"url": "https://github.com/Azure/azure-sdk-for-js.git"
|
|
41
53
|
},
|
|
42
|
-
"bugs": {
|
|
54
|
+
"bugs": {
|
|
55
|
+
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
|
56
|
+
},
|
|
43
57
|
"files": [
|
|
44
58
|
"dist/**/*.js",
|
|
45
59
|
"dist/**/*.js.map",
|
|
@@ -81,7 +95,7 @@
|
|
|
81
95
|
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
|
|
82
96
|
"unit-test:browser": "echo skipped",
|
|
83
97
|
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
84
|
-
"integration-test:node": "
|
|
98
|
+
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
|
|
85
99
|
"integration-test:browser": "echo skipped",
|
|
86
100
|
"docs": "echo skipped"
|
|
87
101
|
},
|
|
@@ -89,10 +103,10 @@
|
|
|
89
103
|
"//metadata": {
|
|
90
104
|
"constantPaths": [
|
|
91
105
|
{
|
|
92
|
-
"path": "src/
|
|
106
|
+
"path": "src/applicationInsightsManagementClient.ts",
|
|
93
107
|
"prefix": "packageDetails"
|
|
94
108
|
}
|
|
95
109
|
]
|
|
96
110
|
},
|
|
97
111
|
"autoPublish": true
|
|
98
|
-
}
|
|
112
|
+
}
|
|
@@ -150,8 +150,10 @@ export type APIKeysListResponse = ApplicationInsightsComponentAPIKeyListResult;
|
|
|
150
150
|
// @public
|
|
151
151
|
export type ApplicationInsightsComponent = ComponentsResource & {
|
|
152
152
|
kind: string;
|
|
153
|
+
etag?: string;
|
|
153
154
|
readonly applicationId?: string;
|
|
154
155
|
readonly appId?: string;
|
|
156
|
+
readonly namePropertiesName?: string;
|
|
155
157
|
applicationType?: ApplicationType;
|
|
156
158
|
flowType?: FlowType;
|
|
157
159
|
requestSource?: RequestSource;
|
|
@@ -166,10 +168,14 @@ export type ApplicationInsightsComponent = ComponentsResource & {
|
|
|
166
168
|
retentionInDays?: number;
|
|
167
169
|
disableIpMasking?: boolean;
|
|
168
170
|
immediatePurgeDataOn30Days?: boolean;
|
|
171
|
+
workspaceResourceId?: string;
|
|
172
|
+
readonly laMigrationDate?: Date;
|
|
169
173
|
readonly privateLinkScopedResources?: PrivateLinkScopedResource[];
|
|
170
174
|
publicNetworkAccessForIngestion?: PublicNetworkAccessType;
|
|
171
175
|
publicNetworkAccessForQuery?: PublicNetworkAccessType;
|
|
172
176
|
ingestionMode?: IngestionMode;
|
|
177
|
+
disableLocalAuth?: boolean;
|
|
178
|
+
forceCustomerStorageForProfiler?: boolean;
|
|
173
179
|
};
|
|
174
180
|
|
|
175
181
|
// @public
|
|
@@ -393,8 +399,6 @@ export class ApplicationInsightsManagementClient extends coreClient.ServiceClien
|
|
|
393
399
|
// (undocumented)
|
|
394
400
|
myWorkbooks: MyWorkbooks;
|
|
395
401
|
// (undocumented)
|
|
396
|
-
operations: Operations;
|
|
397
|
-
// (undocumented)
|
|
398
402
|
proactiveDetectionConfigurations: ProactiveDetectionConfigurations;
|
|
399
403
|
// (undocumented)
|
|
400
404
|
subscriptionId: string;
|
|
@@ -656,6 +660,17 @@ export interface ErrorResponse {
|
|
|
656
660
|
message?: string;
|
|
657
661
|
}
|
|
658
662
|
|
|
663
|
+
// @public (undocumented)
|
|
664
|
+
export interface ErrorResponseComponents {
|
|
665
|
+
error?: ErrorResponseComponentsError;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
// @public
|
|
669
|
+
export interface ErrorResponseComponentsError {
|
|
670
|
+
readonly code?: string;
|
|
671
|
+
readonly message?: string;
|
|
672
|
+
}
|
|
673
|
+
|
|
659
674
|
// @public (undocumented)
|
|
660
675
|
export interface ErrorResponseLinkedStorage {
|
|
661
676
|
error?: ErrorResponseLinkedStorageError;
|
|
@@ -953,17 +968,21 @@ export enum KnownRequestSource {
|
|
|
953
968
|
}
|
|
954
969
|
|
|
955
970
|
// @public
|
|
956
|
-
export enum
|
|
971
|
+
export enum KnownStorageType {
|
|
957
972
|
// (undocumented)
|
|
958
|
-
|
|
973
|
+
ServiceProfiler = "ServiceProfiler"
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
// @public
|
|
977
|
+
export enum KnownWorkbookSharedTypeKind {
|
|
959
978
|
// (undocumented)
|
|
960
|
-
|
|
979
|
+
Shared = "shared"
|
|
961
980
|
}
|
|
962
981
|
|
|
963
982
|
// @public
|
|
964
|
-
export enum
|
|
983
|
+
export enum KnownWorkbookUpdateSharedTypeKind {
|
|
965
984
|
// (undocumented)
|
|
966
|
-
|
|
985
|
+
Shared = "shared"
|
|
967
986
|
}
|
|
968
987
|
|
|
969
988
|
// @public
|
|
@@ -1158,30 +1177,12 @@ export interface OperationListResult {
|
|
|
1158
1177
|
// @public
|
|
1159
1178
|
export interface OperationLive {
|
|
1160
1179
|
display?: OperationInfo;
|
|
1180
|
+
isDataAction?: boolean;
|
|
1161
1181
|
name?: string;
|
|
1162
1182
|
origin?: string;
|
|
1163
1183
|
properties?: Record<string, unknown>;
|
|
1164
1184
|
}
|
|
1165
1185
|
|
|
1166
|
-
// @public
|
|
1167
|
-
export interface Operations {
|
|
1168
|
-
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<OperationLive>;
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
// @public
|
|
1172
|
-
export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
|
-
// @public
|
|
1176
|
-
export type OperationsListNextResponse = OperationsListResult;
|
|
1177
|
-
|
|
1178
|
-
// @public
|
|
1179
|
-
export interface OperationsListOptionalParams extends coreClient.OperationOptions {
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
// @public
|
|
1183
|
-
export type OperationsListResponse = OperationsListResult;
|
|
1184
|
-
|
|
1185
1186
|
// @public
|
|
1186
1187
|
export interface OperationsListResult {
|
|
1187
1188
|
nextLink?: string;
|
|
@@ -1223,7 +1224,7 @@ export interface ProactiveDetectionConfigurationsUpdateOptionalParams extends co
|
|
|
1223
1224
|
export type ProactiveDetectionConfigurationsUpdateResponse = ApplicationInsightsComponentProactiveDetectionConfiguration;
|
|
1224
1225
|
|
|
1225
1226
|
// @public
|
|
1226
|
-
export type ProxyResource = Resource
|
|
1227
|
+
export type ProxyResource = Resource;
|
|
1227
1228
|
|
|
1228
1229
|
// @public
|
|
1229
1230
|
export type PublicNetworkAccessType = string;
|
|
@@ -1241,9 +1242,6 @@ export interface Resource {
|
|
|
1241
1242
|
readonly type?: string;
|
|
1242
1243
|
}
|
|
1243
1244
|
|
|
1244
|
-
// @public
|
|
1245
|
-
export type SharedTypeKind = string;
|
|
1246
|
-
|
|
1247
1245
|
// @public
|
|
1248
1246
|
export type StorageType = string;
|
|
1249
1247
|
|
|
@@ -1450,12 +1448,12 @@ export interface WorkbookInnerErrorTrace {
|
|
|
1450
1448
|
// @public
|
|
1451
1449
|
export type WorkbookResource = TrackedResource & {
|
|
1452
1450
|
identity?: WorkbookResourceIdentity;
|
|
1453
|
-
kind?:
|
|
1451
|
+
kind?: WorkbookSharedTypeKind;
|
|
1454
1452
|
etag?: string;
|
|
1455
1453
|
};
|
|
1456
1454
|
|
|
1457
1455
|
// @public
|
|
1458
|
-
export type WorkbookResourceIdentity = ManagedServiceIdentity
|
|
1456
|
+
export type WorkbookResourceIdentity = ManagedServiceIdentity;
|
|
1459
1457
|
|
|
1460
1458
|
// @public
|
|
1461
1459
|
export interface Workbooks {
|
|
@@ -1483,11 +1481,15 @@ export interface WorkbooksDeleteOptionalParams extends coreClient.OperationOptio
|
|
|
1483
1481
|
|
|
1484
1482
|
// @public
|
|
1485
1483
|
export interface WorkbooksGetOptionalParams extends coreClient.OperationOptions {
|
|
1484
|
+
canFetchContent?: boolean;
|
|
1486
1485
|
}
|
|
1487
1486
|
|
|
1488
1487
|
// @public
|
|
1489
1488
|
export type WorkbooksGetResponse = Workbook;
|
|
1490
1489
|
|
|
1490
|
+
// @public
|
|
1491
|
+
export type WorkbookSharedTypeKind = string;
|
|
1492
|
+
|
|
1491
1493
|
// @public
|
|
1492
1494
|
export interface WorkbooksListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
|
|
1493
1495
|
canFetchContent?: boolean;
|
|
@@ -1685,7 +1687,7 @@ export interface WorkbookUpdateParameters {
|
|
|
1685
1687
|
category?: string;
|
|
1686
1688
|
description?: string;
|
|
1687
1689
|
displayName?: string;
|
|
1688
|
-
kind?:
|
|
1690
|
+
kind?: WorkbookUpdateSharedTypeKind;
|
|
1689
1691
|
revision?: string;
|
|
1690
1692
|
serializedData?: string;
|
|
1691
1693
|
tags?: {
|
|
@@ -1694,6 +1696,9 @@ export interface WorkbookUpdateParameters {
|
|
|
1694
1696
|
tagsPropertiesTags?: string[];
|
|
1695
1697
|
}
|
|
1696
1698
|
|
|
1699
|
+
// @public
|
|
1700
|
+
export type WorkbookUpdateSharedTypeKind = string;
|
|
1701
|
+
|
|
1697
1702
|
// @public
|
|
1698
1703
|
export interface WorkItemConfiguration {
|
|
1699
1704
|
configDisplayName?: string;
|
package/rollup.config.js
CHANGED
|
@@ -14,62 +14,14 @@ import json from "@rollup/plugin-json";
|
|
|
14
14
|
|
|
15
15
|
import nodeBuiltins from "builtin-modules";
|
|
16
16
|
|
|
17
|
-
/**
|
|
18
|
-
* Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
|
|
19
|
-
*
|
|
20
|
-
* NOTE: this manual configuration is only needed because OpenTelemetry uses an
|
|
21
|
-
* __exportStar downleveled helper function to declare its exports which confuses
|
|
22
|
-
* rollup's automatic discovery mechanism.
|
|
23
|
-
*
|
|
24
|
-
* @returns an object reference that can be `...`'d into your cjs() configuration.
|
|
25
|
-
*/
|
|
26
|
-
export function openTelemetryCommonJs() {
|
|
27
|
-
const namedExports = {};
|
|
28
|
-
|
|
29
|
-
for (const key of [
|
|
30
|
-
"@opentelemetry/api",
|
|
31
|
-
"@azure/core-tracing/node_modules/@opentelemetry/api"
|
|
32
|
-
]) {
|
|
33
|
-
namedExports[key] = [
|
|
34
|
-
"SpanKind",
|
|
35
|
-
"TraceFlags",
|
|
36
|
-
"getSpan",
|
|
37
|
-
"setSpan",
|
|
38
|
-
"SpanStatusCode",
|
|
39
|
-
"getSpanContext",
|
|
40
|
-
"setSpanContext"
|
|
41
|
-
];
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
|
|
45
|
-
|
|
46
|
-
for (const version of releasedOpenTelemetryVersions) {
|
|
47
|
-
namedExports[
|
|
48
|
-
// working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
|
|
49
|
-
`../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
|
|
50
|
-
] = [
|
|
51
|
-
"SpanKind",
|
|
52
|
-
"TraceFlags",
|
|
53
|
-
"getSpan",
|
|
54
|
-
"setSpan",
|
|
55
|
-
"StatusCode",
|
|
56
|
-
"CanonicalCode",
|
|
57
|
-
"getSpanContext",
|
|
58
|
-
"setSpanContext"
|
|
59
|
-
];
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
return namedExports;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
17
|
// #region Warning Handler
|
|
66
18
|
|
|
67
19
|
/**
|
|
68
|
-
* A function that can determine whether a
|
|
20
|
+
* A function that can determine whether a rollup warning should be ignored. If
|
|
69
21
|
* the function returns `true`, then the warning will not be displayed.
|
|
70
22
|
*/
|
|
71
23
|
|
|
72
|
-
function
|
|
24
|
+
function ignoreNiseSinonEval(warning) {
|
|
73
25
|
return (
|
|
74
26
|
warning.code === "EVAL" &&
|
|
75
27
|
warning.id &&
|
|
@@ -78,17 +30,14 @@ function ignoreNiseSinonEvalWarnings(warning) {
|
|
|
78
30
|
);
|
|
79
31
|
}
|
|
80
32
|
|
|
81
|
-
function
|
|
33
|
+
function ignoreChaiCircularDependency(warning) {
|
|
82
34
|
return (
|
|
83
35
|
warning.code === "CIRCULAR_DEPENDENCY" &&
|
|
84
36
|
warning.importer && warning.importer.includes("node_modules/chai") === true
|
|
85
37
|
);
|
|
86
38
|
}
|
|
87
39
|
|
|
88
|
-
const warningInhibitors = [
|
|
89
|
-
ignoreChaiCircularDependencyWarnings,
|
|
90
|
-
ignoreNiseSinonEvalWarnings
|
|
91
|
-
];
|
|
40
|
+
const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
|
|
92
41
|
|
|
93
42
|
/**
|
|
94
43
|
* Construct a warning handler for the shared rollup configuration
|
|
@@ -122,22 +71,7 @@ function makeBrowserTestConfig() {
|
|
|
122
71
|
nodeResolve({
|
|
123
72
|
mainFields: ["module", "browser"]
|
|
124
73
|
}),
|
|
125
|
-
cjs(
|
|
126
|
-
namedExports: {
|
|
127
|
-
// Chai's strange internal architecture makes it impossible to statically
|
|
128
|
-
// analyze its exports.
|
|
129
|
-
chai: [
|
|
130
|
-
"version",
|
|
131
|
-
"use",
|
|
132
|
-
"util",
|
|
133
|
-
"config",
|
|
134
|
-
"expect",
|
|
135
|
-
"should",
|
|
136
|
-
"assert"
|
|
137
|
-
],
|
|
138
|
-
...openTelemetryCommonJs()
|
|
139
|
-
}
|
|
140
|
-
}),
|
|
74
|
+
cjs(),
|
|
141
75
|
json(),
|
|
142
76
|
sourcemaps()
|
|
143
77
|
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
|
|
@@ -173,7 +107,7 @@ export function makeConfig(pkg, options) {
|
|
|
173
107
|
],
|
|
174
108
|
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
|
|
175
109
|
preserveSymlinks: false,
|
|
176
|
-
plugins: [sourcemaps(), nodeResolve()
|
|
110
|
+
plugins: [sourcemaps(), nodeResolve()]
|
|
177
111
|
};
|
|
178
112
|
|
|
179
113
|
const config = [baseConfig];
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
11
|
import * as coreAuth from "@azure/core-auth";
|
|
11
12
|
import {
|
|
12
13
|
AnnotationsImpl,
|
|
@@ -27,7 +28,6 @@ import {
|
|
|
27
28
|
WorkbooksImpl,
|
|
28
29
|
ComponentsImpl,
|
|
29
30
|
ComponentLinkedStorageAccountsOperationsImpl,
|
|
30
|
-
OperationsImpl,
|
|
31
31
|
LiveTokenImpl
|
|
32
32
|
} from "./operations";
|
|
33
33
|
import {
|
|
@@ -49,7 +49,6 @@ import {
|
|
|
49
49
|
Workbooks,
|
|
50
50
|
Components,
|
|
51
51
|
ComponentLinkedStorageAccountsOperations,
|
|
52
|
-
Operations,
|
|
53
52
|
LiveToken
|
|
54
53
|
} from "./operationsInterfaces";
|
|
55
54
|
import { ApplicationInsightsManagementClientOptionalParams } from "./models";
|
|
@@ -85,7 +84,7 @@ export class ApplicationInsightsManagementClient extends coreClient.ServiceClien
|
|
|
85
84
|
credential: credentials
|
|
86
85
|
};
|
|
87
86
|
|
|
88
|
-
const packageDetails = `azsdk-js-arm-appinsights/5.0.0-beta.
|
|
87
|
+
const packageDetails = `azsdk-js-arm-appinsights/5.0.0-beta.4`;
|
|
89
88
|
const userAgentPrefix =
|
|
90
89
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
91
90
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -100,9 +99,33 @@ export class ApplicationInsightsManagementClient extends coreClient.ServiceClien
|
|
|
100
99
|
userAgentOptions: {
|
|
101
100
|
userAgentPrefix
|
|
102
101
|
},
|
|
103
|
-
baseUri:
|
|
102
|
+
baseUri:
|
|
103
|
+
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
104
104
|
};
|
|
105
105
|
super(optionsWithDefaults);
|
|
106
|
+
|
|
107
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
108
|
+
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
|
|
109
|
+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
110
|
+
(pipelinePolicy) =>
|
|
111
|
+
pipelinePolicy.name ===
|
|
112
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
113
|
+
);
|
|
114
|
+
if (!bearerTokenAuthenticationPolicyFound) {
|
|
115
|
+
this.pipeline.removePolicy({
|
|
116
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
117
|
+
});
|
|
118
|
+
this.pipeline.addPolicy(
|
|
119
|
+
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
120
|
+
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
|
121
|
+
challengeCallbacks: {
|
|
122
|
+
authorizeRequestOnChallenge:
|
|
123
|
+
coreClient.authorizeRequestOnClaimChallenge
|
|
124
|
+
}
|
|
125
|
+
})
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
106
129
|
// Parameter assignments
|
|
107
130
|
this.subscriptionId = subscriptionId;
|
|
108
131
|
|
|
@@ -134,7 +157,6 @@ export class ApplicationInsightsManagementClient extends coreClient.ServiceClien
|
|
|
134
157
|
this.componentLinkedStorageAccountsOperations = new ComponentLinkedStorageAccountsOperationsImpl(
|
|
135
158
|
this
|
|
136
159
|
);
|
|
137
|
-
this.operations = new OperationsImpl(this);
|
|
138
160
|
this.liveToken = new LiveTokenImpl(this);
|
|
139
161
|
}
|
|
140
162
|
|
|
@@ -156,6 +178,5 @@ export class ApplicationInsightsManagementClient extends coreClient.ServiceClien
|
|
|
156
178
|
workbooks: Workbooks;
|
|
157
179
|
components: Components;
|
|
158
180
|
componentLinkedStorageAccountsOperations: ComponentLinkedStorageAccountsOperations;
|
|
159
|
-
operations: Operations;
|
|
160
181
|
liveToken: LiveToken;
|
|
161
182
|
}
|