@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.
Files changed (65) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/README.md +11 -0
  3. package/dist/index.js +558 -488
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/src/applicationInsightsManagementClient.d.ts +1 -2
  8. package/dist-esm/src/applicationInsightsManagementClient.d.ts.map +1 -1
  9. package/dist-esm/src/applicationInsightsManagementClient.js +21 -4
  10. package/dist-esm/src/applicationInsightsManagementClient.js.map +1 -1
  11. package/dist-esm/src/models/index.d.ts +92 -53
  12. package/dist-esm/src/models/index.d.ts.map +1 -1
  13. package/dist-esm/src/models/index.js +10 -6
  14. package/dist-esm/src/models/index.js.map +1 -1
  15. package/dist-esm/src/models/mappers.d.ts +5 -3
  16. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  17. package/dist-esm/src/models/mappers.js +168 -94
  18. package/dist-esm/src/models/mappers.js.map +1 -1
  19. package/dist-esm/src/models/parameters.d.ts +1 -1
  20. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  21. package/dist-esm/src/models/parameters.js +14 -14
  22. package/dist-esm/src/models/parameters.js.map +1 -1
  23. package/dist-esm/src/operations/components.js +33 -5
  24. package/dist-esm/src/operations/components.js.map +1 -1
  25. package/dist-esm/src/operations/index.d.ts +0 -1
  26. package/dist-esm/src/operations/index.d.ts.map +1 -1
  27. package/dist-esm/src/operations/index.js +0 -1
  28. package/dist-esm/src/operations/index.js.map +1 -1
  29. package/dist-esm/src/operations/liveToken.js +1 -1
  30. package/dist-esm/src/operations/workbooks.d.ts +10 -10
  31. package/dist-esm/src/operations/workbooks.js +11 -11
  32. package/dist-esm/src/operations/workbooks.js.map +1 -1
  33. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -1
  34. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  35. package/dist-esm/src/operationsInterfaces/index.js +0 -1
  36. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  37. package/dist-esm/src/operationsInterfaces/workbooks.d.ts +7 -7
  38. package/dist-esm/test/sampleTest.js +11 -13
  39. package/dist-esm/test/sampleTest.js.map +1 -1
  40. package/package.json +32 -18
  41. package/review/arm-appinsights.api.md +38 -33
  42. package/rollup.config.js +6 -72
  43. package/src/applicationInsightsManagementClient.ts +27 -6
  44. package/src/models/index.ts +101 -61
  45. package/src/models/mappers.ts +179 -97
  46. package/src/models/parameters.ts +15 -15
  47. package/src/operations/components.ts +33 -5
  48. package/src/operations/index.ts +0 -1
  49. package/src/operations/liveToken.ts +1 -1
  50. package/src/operations/workbooks.ts +11 -11
  51. package/src/operationsInterfaces/index.ts +0 -1
  52. package/src/operationsInterfaces/workbooks.ts +7 -7
  53. package/tsconfig.json +12 -4
  54. package/types/arm-appinsights.d.ts +83 -54
  55. package/types/tsdoc-metadata.json +1 -1
  56. package/dist-esm/src/operations/operations.d.ts +0 -32
  57. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  58. package/dist-esm/src/operations/operations.js +0 -116
  59. package/dist-esm/src/operations/operations.js.map +0 -1
  60. package/dist-esm/src/operationsInterfaces/operations.d.ts +0 -11
  61. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +0 -1
  62. package/dist-esm/src/operationsInterfaces/operations.js +0 -9
  63. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  64. package/src/operations/operations.ts +0 -133
  65. package/src/operationsInterfaces/operations.ts +0 -22
package/dist/index.js CHANGED
@@ -3,8 +3,30 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var coreClient = require('@azure/core-client');
6
+ var coreRestPipeline = require('@azure/core-rest-pipeline');
6
7
  var tslib = require('tslib');
7
8
 
9
+ function _interopNamespace(e) {
10
+ if (e && e.__esModule) return e;
11
+ var n = Object.create(null);
12
+ if (e) {
13
+ Object.keys(e).forEach(function (k) {
14
+ if (k !== 'default') {
15
+ var d = Object.getOwnPropertyDescriptor(e, k);
16
+ Object.defineProperty(n, k, d.get ? d : {
17
+ enumerable: true,
18
+ get: function () { return e[k]; }
19
+ });
20
+ }
21
+ });
22
+ }
23
+ n["default"] = e;
24
+ return Object.freeze(n);
25
+ }
26
+
27
+ var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
28
+ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
29
+
8
30
  /*
9
31
  * Copyright (c) Microsoft Corporation.
10
32
  * Licensed under the MIT License.
@@ -12,6 +34,8 @@ var tslib = require('tslib');
12
34
  * Code generated by Microsoft (R) AutoRest Code Generator.
13
35
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
14
36
  */
37
+ /** Known values of {@link FavoriteSourceType} that the service accepts. */
38
+ exports.KnownFavoriteSourceType = void 0;
15
39
  (function (KnownFavoriteSourceType) {
16
40
  KnownFavoriteSourceType["Retention"] = "retention";
17
41
  KnownFavoriteSourceType["Notebook"] = "notebook";
@@ -22,14 +46,20 @@ var tslib = require('tslib');
22
46
  KnownFavoriteSourceType["Impact"] = "impact";
23
47
  KnownFavoriteSourceType["Segmentation"] = "segmentation";
24
48
  })(exports.KnownFavoriteSourceType || (exports.KnownFavoriteSourceType = {}));
49
+ /** Known values of {@link ItemScopePath} that the service accepts. */
50
+ exports.KnownItemScopePath = void 0;
25
51
  (function (KnownItemScopePath) {
26
52
  KnownItemScopePath["AnalyticsItems"] = "analyticsItems";
27
53
  KnownItemScopePath["MyanalyticsItems"] = "myanalyticsItems";
28
54
  })(exports.KnownItemScopePath || (exports.KnownItemScopePath = {}));
55
+ /** Known values of {@link ItemScope} that the service accepts. */
56
+ exports.KnownItemScope = void 0;
29
57
  (function (KnownItemScope) {
30
58
  KnownItemScope["Shared"] = "shared";
31
59
  KnownItemScope["User"] = "user";
32
60
  })(exports.KnownItemScope || (exports.KnownItemScope = {}));
61
+ /** Known values of {@link ItemTypeParameter} that the service accepts. */
62
+ exports.KnownItemTypeParameter = void 0;
33
63
  (function (KnownItemTypeParameter) {
34
64
  KnownItemTypeParameter["None"] = "none";
35
65
  KnownItemTypeParameter["Query"] = "query";
@@ -37,67 +67,99 @@ var tslib = require('tslib');
37
67
  KnownItemTypeParameter["Folder"] = "folder";
38
68
  KnownItemTypeParameter["Recent"] = "recent";
39
69
  })(exports.KnownItemTypeParameter || (exports.KnownItemTypeParameter = {}));
70
+ /** Known values of {@link ItemType} that the service accepts. */
71
+ exports.KnownItemType = void 0;
40
72
  (function (KnownItemType) {
41
73
  KnownItemType["None"] = "none";
42
74
  KnownItemType["Query"] = "query";
43
75
  KnownItemType["Recent"] = "recent";
44
76
  KnownItemType["Function"] = "function";
45
77
  })(exports.KnownItemType || (exports.KnownItemType = {}));
78
+ /** Known values of {@link CategoryType} that the service accepts. */
79
+ exports.KnownCategoryType = void 0;
46
80
  (function (KnownCategoryType) {
47
81
  KnownCategoryType["Workbook"] = "workbook";
48
82
  KnownCategoryType["TSG"] = "TSG";
49
83
  KnownCategoryType["Performance"] = "performance";
50
84
  KnownCategoryType["Retention"] = "retention";
51
85
  })(exports.KnownCategoryType || (exports.KnownCategoryType = {}));
86
+ /** Known values of {@link Kind} that the service accepts. */
87
+ exports.KnownKind = void 0;
52
88
  (function (KnownKind) {
53
89
  KnownKind["User"] = "user";
54
90
  KnownKind["Shared"] = "shared";
55
91
  })(exports.KnownKind || (exports.KnownKind = {}));
92
+ /** Known values of {@link CreatedByType} that the service accepts. */
93
+ exports.KnownCreatedByType = void 0;
56
94
  (function (KnownCreatedByType) {
57
95
  KnownCreatedByType["User"] = "User";
58
96
  KnownCreatedByType["Application"] = "Application";
59
97
  KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
60
98
  KnownCreatedByType["Key"] = "Key";
61
99
  })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
100
+ /** Known values of {@link MyWorkbookManagedIdentityType} that the service accepts. */
101
+ exports.KnownMyWorkbookManagedIdentityType = void 0;
62
102
  (function (KnownMyWorkbookManagedIdentityType) {
63
103
  KnownMyWorkbookManagedIdentityType["UserAssigned"] = "UserAssigned";
64
104
  KnownMyWorkbookManagedIdentityType["None"] = "None";
65
105
  })(exports.KnownMyWorkbookManagedIdentityType || (exports.KnownMyWorkbookManagedIdentityType = {}));
106
+ /** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
107
+ exports.KnownManagedServiceIdentityType = void 0;
66
108
  (function (KnownManagedServiceIdentityType) {
67
109
  KnownManagedServiceIdentityType["None"] = "None";
68
110
  KnownManagedServiceIdentityType["SystemAssigned"] = "SystemAssigned";
69
111
  KnownManagedServiceIdentityType["UserAssigned"] = "UserAssigned";
70
112
  KnownManagedServiceIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned,UserAssigned";
71
113
  })(exports.KnownManagedServiceIdentityType || (exports.KnownManagedServiceIdentityType = {}));
72
- (function (KnownSharedTypeKind) {
73
- KnownSharedTypeKind["User"] = "user";
74
- KnownSharedTypeKind["Shared"] = "shared";
75
- })(exports.KnownSharedTypeKind || (exports.KnownSharedTypeKind = {}));
114
+ /** Known values of {@link WorkbookSharedTypeKind} that the service accepts. */
115
+ exports.KnownWorkbookSharedTypeKind = void 0;
116
+ (function (KnownWorkbookSharedTypeKind) {
117
+ KnownWorkbookSharedTypeKind["Shared"] = "shared";
118
+ })(exports.KnownWorkbookSharedTypeKind || (exports.KnownWorkbookSharedTypeKind = {}));
119
+ /** Known values of {@link WorkbookUpdateSharedTypeKind} that the service accepts. */
120
+ exports.KnownWorkbookUpdateSharedTypeKind = void 0;
121
+ (function (KnownWorkbookUpdateSharedTypeKind) {
122
+ KnownWorkbookUpdateSharedTypeKind["Shared"] = "shared";
123
+ })(exports.KnownWorkbookUpdateSharedTypeKind || (exports.KnownWorkbookUpdateSharedTypeKind = {}));
124
+ /** Known values of {@link ApplicationType} that the service accepts. */
125
+ exports.KnownApplicationType = void 0;
76
126
  (function (KnownApplicationType) {
77
127
  KnownApplicationType["Web"] = "web";
78
128
  KnownApplicationType["Other"] = "other";
79
129
  })(exports.KnownApplicationType || (exports.KnownApplicationType = {}));
130
+ /** Known values of {@link FlowType} that the service accepts. */
131
+ exports.KnownFlowType = void 0;
80
132
  (function (KnownFlowType) {
81
133
  KnownFlowType["Bluefield"] = "Bluefield";
82
134
  })(exports.KnownFlowType || (exports.KnownFlowType = {}));
135
+ /** Known values of {@link RequestSource} that the service accepts. */
136
+ exports.KnownRequestSource = void 0;
83
137
  (function (KnownRequestSource) {
84
138
  KnownRequestSource["Rest"] = "rest";
85
139
  })(exports.KnownRequestSource || (exports.KnownRequestSource = {}));
140
+ /** Known values of {@link PublicNetworkAccessType} that the service accepts. */
141
+ exports.KnownPublicNetworkAccessType = void 0;
86
142
  (function (KnownPublicNetworkAccessType) {
87
143
  /** Enables connectivity to Application Insights through public DNS. */
88
144
  KnownPublicNetworkAccessType["Enabled"] = "Enabled";
89
145
  /** Disables public connectivity to Application Insights through public DNS. */
90
146
  KnownPublicNetworkAccessType["Disabled"] = "Disabled";
91
147
  })(exports.KnownPublicNetworkAccessType || (exports.KnownPublicNetworkAccessType = {}));
148
+ /** Known values of {@link IngestionMode} that the service accepts. */
149
+ exports.KnownIngestionMode = void 0;
92
150
  (function (KnownIngestionMode) {
93
151
  KnownIngestionMode["ApplicationInsights"] = "ApplicationInsights";
94
152
  KnownIngestionMode["ApplicationInsightsWithDiagnosticSettings"] = "ApplicationInsightsWithDiagnosticSettings";
95
153
  KnownIngestionMode["LogAnalytics"] = "LogAnalytics";
96
154
  })(exports.KnownIngestionMode || (exports.KnownIngestionMode = {}));
155
+ /** Known values of {@link PurgeState} that the service accepts. */
156
+ exports.KnownPurgeState = void 0;
97
157
  (function (KnownPurgeState) {
98
158
  KnownPurgeState["Pending"] = "pending";
99
159
  KnownPurgeState["Completed"] = "completed";
100
160
  })(exports.KnownPurgeState || (exports.KnownPurgeState = {}));
161
+ /** Known values of {@link StorageType} that the service accepts. */
162
+ exports.KnownStorageType = void 0;
101
163
  (function (KnownStorageType) {
102
164
  KnownStorageType["ServiceProfiler"] = "ServiceProfiler";
103
165
  })(exports.KnownStorageType || (exports.KnownStorageType = {}));
@@ -2238,6 +2300,43 @@ const ComponentsResource = {
2238
2300
  }
2239
2301
  }
2240
2302
  };
2303
+ const ErrorResponseComponents = {
2304
+ type: {
2305
+ name: "Composite",
2306
+ className: "ErrorResponseComponents",
2307
+ modelProperties: {
2308
+ error: {
2309
+ serializedName: "error",
2310
+ type: {
2311
+ name: "Composite",
2312
+ className: "ErrorResponseComponentsError"
2313
+ }
2314
+ }
2315
+ }
2316
+ }
2317
+ };
2318
+ const ErrorResponseComponentsError = {
2319
+ type: {
2320
+ name: "Composite",
2321
+ className: "ErrorResponseComponentsError",
2322
+ modelProperties: {
2323
+ code: {
2324
+ serializedName: "code",
2325
+ readOnly: true,
2326
+ type: {
2327
+ name: "String"
2328
+ }
2329
+ },
2330
+ message: {
2331
+ serializedName: "message",
2332
+ readOnly: true,
2333
+ type: {
2334
+ name: "String"
2335
+ }
2336
+ }
2337
+ }
2338
+ }
2339
+ };
2241
2340
  const ComponentPurgeBody = {
2242
2341
  type: {
2243
2342
  name: "Composite",
@@ -2379,98 +2478,6 @@ const ComponentLinkedStorageAccountsPatch = {
2379
2478
  }
2380
2479
  }
2381
2480
  };
2382
- const OperationsListResult = {
2383
- type: {
2384
- name: "Composite",
2385
- className: "OperationsListResult",
2386
- modelProperties: {
2387
- value: {
2388
- serializedName: "value",
2389
- type: {
2390
- name: "Sequence",
2391
- element: {
2392
- type: {
2393
- name: "Composite",
2394
- className: "OperationLive"
2395
- }
2396
- }
2397
- }
2398
- },
2399
- nextLink: {
2400
- serializedName: "nextLink",
2401
- type: {
2402
- name: "String"
2403
- }
2404
- }
2405
- }
2406
- }
2407
- };
2408
- const OperationLive = {
2409
- type: {
2410
- name: "Composite",
2411
- className: "OperationLive",
2412
- modelProperties: {
2413
- name: {
2414
- serializedName: "name",
2415
- type: {
2416
- name: "String"
2417
- }
2418
- },
2419
- display: {
2420
- serializedName: "display",
2421
- type: {
2422
- name: "Composite",
2423
- className: "OperationInfo"
2424
- }
2425
- },
2426
- origin: {
2427
- serializedName: "origin",
2428
- type: {
2429
- name: "String"
2430
- }
2431
- },
2432
- properties: {
2433
- serializedName: "properties",
2434
- type: {
2435
- name: "Dictionary",
2436
- value: { type: { name: "any" } }
2437
- }
2438
- }
2439
- }
2440
- }
2441
- };
2442
- const OperationInfo = {
2443
- type: {
2444
- name: "Composite",
2445
- className: "OperationInfo",
2446
- modelProperties: {
2447
- provider: {
2448
- serializedName: "provider",
2449
- type: {
2450
- name: "String"
2451
- }
2452
- },
2453
- resource: {
2454
- serializedName: "resource",
2455
- type: {
2456
- name: "String"
2457
- }
2458
- },
2459
- operation: {
2460
- serializedName: "operation",
2461
- type: {
2462
- name: "String"
2463
- }
2464
- },
2465
- description: {
2466
- serializedName: "description",
2467
- type: {
2468
- name: "String"
2469
- }
2470
- }
2471
- }
2472
- }
2473
- };
2474
2481
  const LiveTokenResponse = {
2475
2482
  type: {
2476
2483
  name: "Composite",
@@ -2619,6 +2626,104 @@ const WorkbookInnerErrorTrace = {
2619
2626
  }
2620
2627
  }
2621
2628
  };
2629
+ const OperationsListResult = {
2630
+ type: {
2631
+ name: "Composite",
2632
+ className: "OperationsListResult",
2633
+ modelProperties: {
2634
+ value: {
2635
+ serializedName: "value",
2636
+ type: {
2637
+ name: "Sequence",
2638
+ element: {
2639
+ type: {
2640
+ name: "Composite",
2641
+ className: "OperationLive"
2642
+ }
2643
+ }
2644
+ }
2645
+ },
2646
+ nextLink: {
2647
+ serializedName: "nextLink",
2648
+ type: {
2649
+ name: "String"
2650
+ }
2651
+ }
2652
+ }
2653
+ }
2654
+ };
2655
+ const OperationLive = {
2656
+ type: {
2657
+ name: "Composite",
2658
+ className: "OperationLive",
2659
+ modelProperties: {
2660
+ name: {
2661
+ serializedName: "name",
2662
+ type: {
2663
+ name: "String"
2664
+ }
2665
+ },
2666
+ isDataAction: {
2667
+ serializedName: "isDataAction",
2668
+ type: {
2669
+ name: "Boolean"
2670
+ }
2671
+ },
2672
+ display: {
2673
+ serializedName: "display",
2674
+ type: {
2675
+ name: "Composite",
2676
+ className: "OperationInfo"
2677
+ }
2678
+ },
2679
+ origin: {
2680
+ serializedName: "origin",
2681
+ type: {
2682
+ name: "String"
2683
+ }
2684
+ },
2685
+ properties: {
2686
+ serializedName: "properties",
2687
+ type: {
2688
+ name: "Dictionary",
2689
+ value: { type: { name: "any" } }
2690
+ }
2691
+ }
2692
+ }
2693
+ }
2694
+ };
2695
+ const OperationInfo = {
2696
+ type: {
2697
+ name: "Composite",
2698
+ className: "OperationInfo",
2699
+ modelProperties: {
2700
+ provider: {
2701
+ serializedName: "provider",
2702
+ type: {
2703
+ name: "String"
2704
+ }
2705
+ },
2706
+ resource: {
2707
+ serializedName: "resource",
2708
+ type: {
2709
+ name: "String"
2710
+ }
2711
+ },
2712
+ operation: {
2713
+ serializedName: "operation",
2714
+ type: {
2715
+ name: "String"
2716
+ }
2717
+ },
2718
+ description: {
2719
+ serializedName: "description",
2720
+ type: {
2721
+ name: "String"
2722
+ }
2723
+ }
2724
+ }
2725
+ }
2726
+ };
2622
2727
  const WebTest = {
2623
2728
  type: {
2624
2729
  name: "Composite",
@@ -2863,6 +2968,11 @@ const ApplicationInsightsComponent = {
2863
2968
  type: {
2864
2969
  name: "String"
2865
2970
  }
2971
+ }, etag: {
2972
+ serializedName: "etag",
2973
+ type: {
2974
+ name: "String"
2975
+ }
2866
2976
  }, applicationId: {
2867
2977
  serializedName: "properties.ApplicationId",
2868
2978
  readOnly: true,
@@ -2875,6 +2985,12 @@ const ApplicationInsightsComponent = {
2875
2985
  type: {
2876
2986
  name: "String"
2877
2987
  }
2988
+ }, namePropertiesName: {
2989
+ serializedName: "properties.Name",
2990
+ readOnly: true,
2991
+ type: {
2992
+ name: "String"
2993
+ }
2878
2994
  }, applicationType: {
2879
2995
  defaultValue: "web",
2880
2996
  serializedName: "properties.Application_Type",
@@ -2940,7 +3056,6 @@ const ApplicationInsightsComponent = {
2940
3056
  name: "String"
2941
3057
  }
2942
3058
  }, retentionInDays: {
2943
- defaultValue: 90,
2944
3059
  serializedName: "properties.RetentionInDays",
2945
3060
  type: {
2946
3061
  name: "Number"
@@ -2955,6 +3070,17 @@ const ApplicationInsightsComponent = {
2955
3070
  type: {
2956
3071
  name: "Boolean"
2957
3072
  }
3073
+ }, workspaceResourceId: {
3074
+ serializedName: "properties.WorkspaceResourceId",
3075
+ type: {
3076
+ name: "String"
3077
+ }
3078
+ }, laMigrationDate: {
3079
+ serializedName: "properties.LaMigrationDate",
3080
+ readOnly: true,
3081
+ type: {
3082
+ name: "DateTime"
3083
+ }
2958
3084
  }, privateLinkScopedResources: {
2959
3085
  serializedName: "properties.PrivateLinkScopedResources",
2960
3086
  readOnly: true,
@@ -2980,11 +3106,21 @@ const ApplicationInsightsComponent = {
2980
3106
  name: "String"
2981
3107
  }
2982
3108
  }, ingestionMode: {
2983
- defaultValue: "ApplicationInsights",
3109
+ defaultValue: "LogAnalytics",
2984
3110
  serializedName: "properties.IngestionMode",
2985
3111
  type: {
2986
3112
  name: "String"
2987
3113
  }
3114
+ }, disableLocalAuth: {
3115
+ serializedName: "properties.DisableLocalAuth",
3116
+ type: {
3117
+ name: "Boolean"
3118
+ }
3119
+ }, forceCustomerStorageForProfiler: {
3120
+ serializedName: "properties.ForceCustomerStorageForProfiler",
3121
+ type: {
3122
+ name: "Boolean"
3123
+ }
2988
3124
  } })
2989
3125
  }
2990
3126
  };
@@ -3163,6 +3299,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
3163
3299
  ApplicationInsightsComponentListResult: ApplicationInsightsComponentListResult,
3164
3300
  PrivateLinkScopedResource: PrivateLinkScopedResource,
3165
3301
  ComponentsResource: ComponentsResource,
3302
+ ErrorResponseComponents: ErrorResponseComponents,
3303
+ ErrorResponseComponentsError: ErrorResponseComponentsError,
3166
3304
  ComponentPurgeBody: ComponentPurgeBody,
3167
3305
  ComponentPurgeBodyFilters: ComponentPurgeBodyFilters,
3168
3306
  ComponentPurgeResponse: ComponentPurgeResponse,
@@ -3170,9 +3308,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
3170
3308
  ErrorResponseLinkedStorage: ErrorResponseLinkedStorage,
3171
3309
  ErrorResponseLinkedStorageError: ErrorResponseLinkedStorageError,
3172
3310
  ComponentLinkedStorageAccountsPatch: ComponentLinkedStorageAccountsPatch,
3173
- OperationsListResult: OperationsListResult,
3174
- OperationLive: OperationLive,
3175
- OperationInfo: OperationInfo,
3176
3311
  LiveTokenResponse: LiveTokenResponse,
3177
3312
  ErrorResponse: ErrorResponse,
3178
3313
  Operation: Operation,
@@ -3180,6 +3315,9 @@ var Mappers = /*#__PURE__*/Object.freeze({
3180
3315
  OperationListResult: OperationListResult,
3181
3316
  InnerErrorTrace: InnerErrorTrace,
3182
3317
  WorkbookInnerErrorTrace: WorkbookInnerErrorTrace,
3318
+ OperationsListResult: OperationsListResult,
3319
+ OperationLive: OperationLive,
3320
+ OperationInfo: OperationInfo,
3183
3321
  WebTest: WebTest,
3184
3322
  WorkbookTemplate: WorkbookTemplate,
3185
3323
  MyWorkbook: MyWorkbook,
@@ -3490,7 +3628,7 @@ const scope = {
3490
3628
  }
3491
3629
  };
3492
3630
  const typeParam = {
3493
- parameterPath: ["options", "typeParam"],
3631
+ parameterPath: ["options", "type"],
3494
3632
  mapper: {
3495
3633
  defaultValue: "none",
3496
3634
  serializedName: "type",
@@ -3595,7 +3733,7 @@ const workbookProperties = {
3595
3733
  const apiVersion3 = {
3596
3734
  parameterPath: "apiVersion",
3597
3735
  mapper: {
3598
- defaultValue: "2021-08-01",
3736
+ defaultValue: "2022-04-01",
3599
3737
  isConstant: true,
3600
3738
  serializedName: "api-version",
3601
3739
  type: {
@@ -3624,7 +3762,7 @@ const revisionId = {
3624
3762
  const apiVersion4 = {
3625
3763
  parameterPath: "apiVersion",
3626
3764
  mapper: {
3627
- defaultValue: "2018-05-01-preview",
3765
+ defaultValue: "2020-02-02",
3628
3766
  isConstant: true,
3629
3767
  serializedName: "api-version",
3630
3768
  type: {
@@ -3683,17 +3821,6 @@ const linkedStorageAccountsProperties1 = {
3683
3821
  parameterPath: "linkedStorageAccountsProperties",
3684
3822
  mapper: ComponentLinkedStorageAccountsPatch
3685
3823
  };
3686
- const apiVersion6 = {
3687
- parameterPath: "apiVersion",
3688
- mapper: {
3689
- defaultValue: "2020-06-02-preview",
3690
- isConstant: true,
3691
- serializedName: "api-version",
3692
- type: {
3693
- name: "String"
3694
- }
3695
- }
3696
- };
3697
3824
  const resourceUri = {
3698
3825
  parameterPath: "resourceUri",
3699
3826
  mapper: {
@@ -3705,6 +3832,17 @@ const resourceUri = {
3705
3832
  },
3706
3833
  skipEncoding: true
3707
3834
  };
3835
+ const apiVersion6 = {
3836
+ parameterPath: "apiVersion",
3837
+ mapper: {
3838
+ defaultValue: "2021-10-14",
3839
+ isConstant: true,
3840
+ serializedName: "api-version",
3841
+ type: {
3842
+ name: "String"
3843
+ }
3844
+ }
3845
+ };
3708
3846
 
3709
3847
  /*
3710
3848
  * Copyright (c) Microsoft Corporation.
@@ -3780,7 +3918,7 @@ class AnnotationsImpl {
3780
3918
  * @param options The options parameters.
3781
3919
  */
3782
3920
  _list(resourceGroupName, resourceName, start, end, options) {
3783
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, start, end, options }, listOperationSpec);
3921
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, start, end, options }, listOperationSpec$9);
3784
3922
  }
3785
3923
  /**
3786
3924
  * Create an Annotation of an Application Insights component.
@@ -3791,7 +3929,7 @@ class AnnotationsImpl {
3791
3929
  * @param options The options parameters.
3792
3930
  */
3793
3931
  create(resourceGroupName, resourceName, annotationProperties, options) {
3794
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, annotationProperties, options }, createOperationSpec);
3932
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, annotationProperties, options }, createOperationSpec$3);
3795
3933
  }
3796
3934
  /**
3797
3935
  * Delete an Annotation of an Application Insights component.
@@ -3802,7 +3940,7 @@ class AnnotationsImpl {
3802
3940
  * @param options The options parameters.
3803
3941
  */
3804
3942
  delete(resourceGroupName, resourceName, annotationId, options) {
3805
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, annotationId, options }, deleteOperationSpec);
3943
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, annotationId, options }, deleteOperationSpec$b);
3806
3944
  }
3807
3945
  /**
3808
3946
  * Get the annotation for given id.
@@ -3813,12 +3951,12 @@ class AnnotationsImpl {
3813
3951
  * @param options The options parameters.
3814
3952
  */
3815
3953
  get(resourceGroupName, resourceName, annotationId, options) {
3816
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, annotationId, options }, getOperationSpec);
3954
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, annotationId, options }, getOperationSpec$g);
3817
3955
  }
3818
3956
  }
3819
3957
  // Operation Specifications
3820
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
3821
- const listOperationSpec = {
3958
+ const serializer$i = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3959
+ const listOperationSpec$9 = {
3822
3960
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations",
3823
3961
  httpMethod: "GET",
3824
3962
  responses: {
@@ -3837,9 +3975,9 @@ const listOperationSpec = {
3837
3975
  resourceName
3838
3976
  ],
3839
3977
  headerParameters: [accept],
3840
- serializer
3978
+ serializer: serializer$i
3841
3979
  };
3842
- const createOperationSpec = {
3980
+ const createOperationSpec$3 = {
3843
3981
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations",
3844
3982
  httpMethod: "PUT",
3845
3983
  responses: {
@@ -3865,9 +4003,9 @@ const createOperationSpec = {
3865
4003
  ],
3866
4004
  headerParameters: [accept, contentType],
3867
4005
  mediaType: "json",
3868
- serializer
4006
+ serializer: serializer$i
3869
4007
  };
3870
- const deleteOperationSpec = {
4008
+ const deleteOperationSpec$b = {
3871
4009
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations/{annotationId}",
3872
4010
  httpMethod: "DELETE",
3873
4011
  responses: { 200: {} },
@@ -3879,9 +4017,9 @@ const deleteOperationSpec = {
3879
4017
  resourceName,
3880
4018
  annotationId
3881
4019
  ],
3882
- serializer
4020
+ serializer: serializer$i
3883
4021
  };
3884
- const getOperationSpec = {
4022
+ const getOperationSpec$g = {
3885
4023
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations/{annotationId}",
3886
4024
  httpMethod: "GET",
3887
4025
  responses: {
@@ -3906,7 +4044,7 @@ const getOperationSpec = {
3906
4044
  annotationId
3907
4045
  ],
3908
4046
  headerParameters: [accept],
3909
- serializer
4047
+ serializer: serializer$i
3910
4048
  };
3911
4049
 
3912
4050
  /*
@@ -3977,7 +4115,7 @@ class APIKeysImpl {
3977
4115
  * @param options The options parameters.
3978
4116
  */
3979
4117
  _list(resourceGroupName, resourceName, options) {
3980
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$1);
4118
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$8);
3981
4119
  }
3982
4120
  /**
3983
4121
  * Create an API Key of an Application Insights component.
@@ -3988,7 +4126,7 @@ class APIKeysImpl {
3988
4126
  * @param options The options parameters.
3989
4127
  */
3990
4128
  create(resourceGroupName, resourceName, aPIKeyProperties, options) {
3991
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, aPIKeyProperties, options }, createOperationSpec$1);
4129
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, aPIKeyProperties, options }, createOperationSpec$2);
3992
4130
  }
3993
4131
  /**
3994
4132
  * Delete an API Key of an Application Insights component.
@@ -3998,7 +4136,7 @@ class APIKeysImpl {
3998
4136
  * @param options The options parameters.
3999
4137
  */
4000
4138
  delete(resourceGroupName, resourceName, keyId, options) {
4001
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, keyId, options }, deleteOperationSpec$1);
4139
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, keyId, options }, deleteOperationSpec$a);
4002
4140
  }
4003
4141
  /**
4004
4142
  * Get the API Key for this key id.
@@ -4008,12 +4146,12 @@ class APIKeysImpl {
4008
4146
  * @param options The options parameters.
4009
4147
  */
4010
4148
  get(resourceGroupName, resourceName, keyId, options) {
4011
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, keyId, options }, getOperationSpec$1);
4149
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, keyId, options }, getOperationSpec$f);
4012
4150
  }
4013
4151
  }
4014
4152
  // Operation Specifications
4015
- const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
4016
- const listOperationSpec$1 = {
4153
+ const serializer$h = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4154
+ const listOperationSpec$8 = {
4017
4155
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ApiKeys",
4018
4156
  httpMethod: "GET",
4019
4157
  responses: {
@@ -4029,9 +4167,9 @@ const listOperationSpec$1 = {
4029
4167
  resourceName
4030
4168
  ],
4031
4169
  headerParameters: [accept],
4032
- serializer: serializer$1
4170
+ serializer: serializer$h
4033
4171
  };
4034
- const createOperationSpec$1 = {
4172
+ const createOperationSpec$2 = {
4035
4173
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ApiKeys",
4036
4174
  httpMethod: "POST",
4037
4175
  responses: {
@@ -4049,9 +4187,9 @@ const createOperationSpec$1 = {
4049
4187
  ],
4050
4188
  headerParameters: [accept, contentType],
4051
4189
  mediaType: "json",
4052
- serializer: serializer$1
4190
+ serializer: serializer$h
4053
4191
  };
4054
- const deleteOperationSpec$1 = {
4192
+ const deleteOperationSpec$a = {
4055
4193
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/APIKeys/{keyId}",
4056
4194
  httpMethod: "DELETE",
4057
4195
  responses: {
@@ -4068,9 +4206,9 @@ const deleteOperationSpec$1 = {
4068
4206
  keyId
4069
4207
  ],
4070
4208
  headerParameters: [accept],
4071
- serializer: serializer$1
4209
+ serializer: serializer$h
4072
4210
  };
4073
- const getOperationSpec$1 = {
4211
+ const getOperationSpec$f = {
4074
4212
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/APIKeys/{keyId}",
4075
4213
  httpMethod: "GET",
4076
4214
  responses: {
@@ -4087,7 +4225,7 @@ const getOperationSpec$1 = {
4087
4225
  keyId
4088
4226
  ],
4089
4227
  headerParameters: [accept],
4090
- serializer: serializer$1
4228
+ serializer: serializer$h
4091
4229
  };
4092
4230
 
4093
4231
  /*
@@ -4113,7 +4251,7 @@ class ExportConfigurationsImpl {
4113
4251
  * @param options The options parameters.
4114
4252
  */
4115
4253
  list(resourceGroupName, resourceName, options) {
4116
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$2);
4254
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$7);
4117
4255
  }
4118
4256
  /**
4119
4257
  * Create a Continuous Export configuration of an Application Insights component.
@@ -4124,7 +4262,7 @@ class ExportConfigurationsImpl {
4124
4262
  * @param options The options parameters.
4125
4263
  */
4126
4264
  create(resourceGroupName, resourceName, exportProperties, options) {
4127
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, exportProperties, options }, createOperationSpec$2);
4265
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, exportProperties, options }, createOperationSpec$1);
4128
4266
  }
4129
4267
  /**
4130
4268
  * Delete a Continuous Export configuration of an Application Insights component.
@@ -4135,7 +4273,7 @@ class ExportConfigurationsImpl {
4135
4273
  * @param options The options parameters.
4136
4274
  */
4137
4275
  delete(resourceGroupName, resourceName, exportId, options) {
4138
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, exportId, options }, deleteOperationSpec$2);
4276
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, exportId, options }, deleteOperationSpec$9);
4139
4277
  }
4140
4278
  /**
4141
4279
  * Get the Continuous Export configuration for this export id.
@@ -4146,7 +4284,7 @@ class ExportConfigurationsImpl {
4146
4284
  * @param options The options parameters.
4147
4285
  */
4148
4286
  get(resourceGroupName, resourceName, exportId, options) {
4149
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, exportId, options }, getOperationSpec$2);
4287
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, exportId, options }, getOperationSpec$e);
4150
4288
  }
4151
4289
  /**
4152
4290
  * Update the Continuous Export configuration for this export id.
@@ -4159,12 +4297,12 @@ class ExportConfigurationsImpl {
4159
4297
  * @param options The options parameters.
4160
4298
  */
4161
4299
  update(resourceGroupName, resourceName, exportId, exportProperties, options) {
4162
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, exportId, exportProperties, options }, updateOperationSpec);
4300
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, exportId, exportProperties, options }, updateOperationSpec$7);
4163
4301
  }
4164
4302
  }
4165
4303
  // Operation Specifications
4166
- const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
4167
- const listOperationSpec$2 = {
4304
+ const serializer$g = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4305
+ const listOperationSpec$7 = {
4168
4306
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration",
4169
4307
  httpMethod: "GET",
4170
4308
  responses: {
@@ -4190,9 +4328,9 @@ const listOperationSpec$2 = {
4190
4328
  resourceName
4191
4329
  ],
4192
4330
  headerParameters: [accept],
4193
- serializer: serializer$2
4331
+ serializer: serializer$g
4194
4332
  };
4195
- const createOperationSpec$2 = {
4333
+ const createOperationSpec$1 = {
4196
4334
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration",
4197
4335
  httpMethod: "POST",
4198
4336
  responses: {
@@ -4220,9 +4358,9 @@ const createOperationSpec$2 = {
4220
4358
  ],
4221
4359
  headerParameters: [accept, contentType],
4222
4360
  mediaType: "json",
4223
- serializer: serializer$2
4361
+ serializer: serializer$g
4224
4362
  };
4225
- const deleteOperationSpec$2 = {
4363
+ const deleteOperationSpec$9 = {
4226
4364
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}",
4227
4365
  httpMethod: "DELETE",
4228
4366
  responses: {
@@ -4239,9 +4377,9 @@ const deleteOperationSpec$2 = {
4239
4377
  exportId
4240
4378
  ],
4241
4379
  headerParameters: [accept],
4242
- serializer: serializer$2
4380
+ serializer: serializer$g
4243
4381
  };
4244
- const getOperationSpec$2 = {
4382
+ const getOperationSpec$e = {
4245
4383
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}",
4246
4384
  httpMethod: "GET",
4247
4385
  responses: {
@@ -4258,9 +4396,9 @@ const getOperationSpec$2 = {
4258
4396
  exportId
4259
4397
  ],
4260
4398
  headerParameters: [accept],
4261
- serializer: serializer$2
4399
+ serializer: serializer$g
4262
4400
  };
4263
- const updateOperationSpec = {
4401
+ const updateOperationSpec$7 = {
4264
4402
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}",
4265
4403
  httpMethod: "PUT",
4266
4404
  responses: {
@@ -4279,7 +4417,7 @@ const updateOperationSpec = {
4279
4417
  ],
4280
4418
  headerParameters: [accept, contentType],
4281
4419
  mediaType: "json",
4282
- serializer: serializer$2
4420
+ serializer: serializer$g
4283
4421
  };
4284
4422
 
4285
4423
  /*
@@ -4305,7 +4443,7 @@ class ComponentCurrentBillingFeaturesImpl {
4305
4443
  * @param options The options parameters.
4306
4444
  */
4307
4445
  get(resourceGroupName, resourceName, options) {
4308
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$3);
4446
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$d);
4309
4447
  }
4310
4448
  /**
4311
4449
  * Update current billing features for an Application Insights component.
@@ -4316,12 +4454,12 @@ class ComponentCurrentBillingFeaturesImpl {
4316
4454
  * @param options The options parameters.
4317
4455
  */
4318
4456
  update(resourceGroupName, resourceName, billingFeaturesProperties, options) {
4319
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, billingFeaturesProperties, options }, updateOperationSpec$1);
4457
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, billingFeaturesProperties, options }, updateOperationSpec$6);
4320
4458
  }
4321
4459
  }
4322
4460
  // Operation Specifications
4323
- const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
4324
- const getOperationSpec$3 = {
4461
+ const serializer$f = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4462
+ const getOperationSpec$d = {
4325
4463
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/currentbillingfeatures",
4326
4464
  httpMethod: "GET",
4327
4465
  responses: {
@@ -4337,9 +4475,9 @@ const getOperationSpec$3 = {
4337
4475
  resourceName
4338
4476
  ],
4339
4477
  headerParameters: [accept],
4340
- serializer: serializer$3
4478
+ serializer: serializer$f
4341
4479
  };
4342
- const updateOperationSpec$1 = {
4480
+ const updateOperationSpec$6 = {
4343
4481
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/currentbillingfeatures",
4344
4482
  httpMethod: "PUT",
4345
4483
  responses: {
@@ -4357,7 +4495,7 @@ const updateOperationSpec$1 = {
4357
4495
  ],
4358
4496
  headerParameters: [accept, contentType],
4359
4497
  mediaType: "json",
4360
- serializer: serializer$3
4498
+ serializer: serializer$f
4361
4499
  };
4362
4500
 
4363
4501
  /*
@@ -4383,12 +4521,12 @@ class ComponentQuotaStatusImpl {
4383
4521
  * @param options The options parameters.
4384
4522
  */
4385
4523
  get(resourceGroupName, resourceName, options) {
4386
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$4);
4524
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$c);
4387
4525
  }
4388
4526
  }
4389
4527
  // Operation Specifications
4390
- const serializer$4 = coreClient.createSerializer(Mappers, /* isXml */ false);
4391
- const getOperationSpec$4 = {
4528
+ const serializer$e = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4529
+ const getOperationSpec$c = {
4392
4530
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/quotastatus",
4393
4531
  httpMethod: "GET",
4394
4532
  responses: {
@@ -4404,7 +4542,7 @@ const getOperationSpec$4 = {
4404
4542
  resourceName
4405
4543
  ],
4406
4544
  headerParameters: [accept],
4407
- serializer: serializer$4
4545
+ serializer: serializer$e
4408
4546
  };
4409
4547
 
4410
4548
  /*
@@ -4430,12 +4568,12 @@ class ComponentFeatureCapabilitiesImpl {
4430
4568
  * @param options The options parameters.
4431
4569
  */
4432
4570
  get(resourceGroupName, resourceName, options) {
4433
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$5);
4571
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$b);
4434
4572
  }
4435
4573
  }
4436
4574
  // Operation Specifications
4437
- const serializer$5 = coreClient.createSerializer(Mappers, /* isXml */ false);
4438
- const getOperationSpec$5 = {
4575
+ const serializer$d = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4576
+ const getOperationSpec$b = {
4439
4577
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/featurecapabilities",
4440
4578
  httpMethod: "GET",
4441
4579
  responses: {
@@ -4451,7 +4589,7 @@ const getOperationSpec$5 = {
4451
4589
  resourceName
4452
4590
  ],
4453
4591
  headerParameters: [accept],
4454
- serializer: serializer$5
4592
+ serializer: serializer$d
4455
4593
  };
4456
4594
 
4457
4595
  /*
@@ -4477,12 +4615,12 @@ class ComponentAvailableFeaturesImpl {
4477
4615
  * @param options The options parameters.
4478
4616
  */
4479
4617
  get(resourceGroupName, resourceName, options) {
4480
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$6);
4618
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$a);
4481
4619
  }
4482
4620
  }
4483
4621
  // Operation Specifications
4484
- const serializer$6 = coreClient.createSerializer(Mappers, /* isXml */ false);
4485
- const getOperationSpec$6 = {
4622
+ const serializer$c = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4623
+ const getOperationSpec$a = {
4486
4624
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/getavailablebillingfeatures",
4487
4625
  httpMethod: "GET",
4488
4626
  responses: {
@@ -4498,7 +4636,7 @@ const getOperationSpec$6 = {
4498
4636
  resourceName
4499
4637
  ],
4500
4638
  headerParameters: [accept],
4501
- serializer: serializer$6
4639
+ serializer: serializer$c
4502
4640
  };
4503
4641
 
4504
4642
  /*
@@ -4524,7 +4662,7 @@ class ProactiveDetectionConfigurationsImpl {
4524
4662
  * @param options The options parameters.
4525
4663
  */
4526
4664
  list(resourceGroupName, resourceName, options) {
4527
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$3);
4665
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$6);
4528
4666
  }
4529
4667
  /**
4530
4668
  * Get the ProactiveDetection configuration for this configuration id.
@@ -4535,7 +4673,7 @@ class ProactiveDetectionConfigurationsImpl {
4535
4673
  * @param options The options parameters.
4536
4674
  */
4537
4675
  get(resourceGroupName, resourceName, configurationId, options) {
4538
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, configurationId, options }, getOperationSpec$7);
4676
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, configurationId, options }, getOperationSpec$9);
4539
4677
  }
4540
4678
  /**
4541
4679
  * Update the ProactiveDetection configuration for this configuration id.
@@ -4554,12 +4692,12 @@ class ProactiveDetectionConfigurationsImpl {
4554
4692
  configurationId,
4555
4693
  proactiveDetectionProperties,
4556
4694
  options
4557
- }, updateOperationSpec$2);
4695
+ }, updateOperationSpec$5);
4558
4696
  }
4559
4697
  }
4560
4698
  // Operation Specifications
4561
- const serializer$7 = coreClient.createSerializer(Mappers, /* isXml */ false);
4562
- const listOperationSpec$3 = {
4699
+ const serializer$b = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4700
+ const listOperationSpec$6 = {
4563
4701
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs",
4564
4702
  httpMethod: "GET",
4565
4703
  responses: {
@@ -4585,9 +4723,9 @@ const listOperationSpec$3 = {
4585
4723
  resourceName
4586
4724
  ],
4587
4725
  headerParameters: [accept],
4588
- serializer: serializer$7
4726
+ serializer: serializer$b
4589
4727
  };
4590
- const getOperationSpec$7 = {
4728
+ const getOperationSpec$9 = {
4591
4729
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs/{ConfigurationId}",
4592
4730
  httpMethod: "GET",
4593
4731
  responses: {
@@ -4604,9 +4742,9 @@ const getOperationSpec$7 = {
4604
4742
  configurationId
4605
4743
  ],
4606
4744
  headerParameters: [accept],
4607
- serializer: serializer$7
4745
+ serializer: serializer$b
4608
4746
  };
4609
- const updateOperationSpec$2 = {
4747
+ const updateOperationSpec$5 = {
4610
4748
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs/{ConfigurationId}",
4611
4749
  httpMethod: "PUT",
4612
4750
  responses: {
@@ -4625,7 +4763,7 @@ const updateOperationSpec$2 = {
4625
4763
  ],
4626
4764
  headerParameters: [accept, contentType],
4627
4765
  mediaType: "json",
4628
- serializer: serializer$7
4766
+ serializer: serializer$b
4629
4767
  };
4630
4768
 
4631
4769
  /*
@@ -4696,7 +4834,7 @@ class WorkItemConfigurationsImpl {
4696
4834
  * @param options The options parameters.
4697
4835
  */
4698
4836
  _list(resourceGroupName, resourceName, options) {
4699
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$4);
4837
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$5);
4700
4838
  }
4701
4839
  /**
4702
4840
  * Create a work item configuration for an Application Insights component.
@@ -4712,7 +4850,7 @@ class WorkItemConfigurationsImpl {
4712
4850
  resourceName,
4713
4851
  workItemConfigurationProperties,
4714
4852
  options
4715
- }, createOperationSpec$3);
4853
+ }, createOperationSpec);
4716
4854
  }
4717
4855
  /**
4718
4856
  * Gets default work item configurations that exist for the application
@@ -4732,7 +4870,7 @@ class WorkItemConfigurationsImpl {
4732
4870
  * @param options The options parameters.
4733
4871
  */
4734
4872
  delete(resourceGroupName, resourceName, workItemConfigId, options) {
4735
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, workItemConfigId, options }, deleteOperationSpec$3);
4873
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, workItemConfigId, options }, deleteOperationSpec$8);
4736
4874
  }
4737
4875
  /**
4738
4876
  * Gets specified work item configuration for an Application Insights component.
@@ -4766,8 +4904,8 @@ class WorkItemConfigurationsImpl {
4766
4904
  }
4767
4905
  }
4768
4906
  // Operation Specifications
4769
- const serializer$8 = coreClient.createSerializer(Mappers, /* isXml */ false);
4770
- const listOperationSpec$4 = {
4907
+ const serializer$a = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4908
+ const listOperationSpec$5 = {
4771
4909
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs",
4772
4910
  httpMethod: "GET",
4773
4911
  responses: {
@@ -4786,9 +4924,9 @@ const listOperationSpec$4 = {
4786
4924
  resourceName
4787
4925
  ],
4788
4926
  headerParameters: [accept],
4789
- serializer: serializer$8
4927
+ serializer: serializer$a
4790
4928
  };
4791
- const createOperationSpec$3 = {
4929
+ const createOperationSpec = {
4792
4930
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs",
4793
4931
  httpMethod: "POST",
4794
4932
  responses: {
@@ -4806,7 +4944,7 @@ const createOperationSpec$3 = {
4806
4944
  ],
4807
4945
  headerParameters: [accept, contentType],
4808
4946
  mediaType: "json",
4809
- serializer: serializer$8
4947
+ serializer: serializer$a
4810
4948
  };
4811
4949
  const getDefaultOperationSpec = {
4812
4950
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/DefaultWorkItemConfig",
@@ -4824,9 +4962,9 @@ const getDefaultOperationSpec = {
4824
4962
  resourceName
4825
4963
  ],
4826
4964
  headerParameters: [accept],
4827
- serializer: serializer$8
4965
+ serializer: serializer$a
4828
4966
  };
4829
- const deleteOperationSpec$3 = {
4967
+ const deleteOperationSpec$8 = {
4830
4968
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs/{workItemConfigId}",
4831
4969
  httpMethod: "DELETE",
4832
4970
  responses: { 200: {} },
@@ -4838,7 +4976,7 @@ const deleteOperationSpec$3 = {
4838
4976
  resourceName,
4839
4977
  workItemConfigId
4840
4978
  ],
4841
- serializer: serializer$8
4979
+ serializer: serializer$a
4842
4980
  };
4843
4981
  const getItemOperationSpec = {
4844
4982
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs/{workItemConfigId}",
@@ -4857,7 +4995,7 @@ const getItemOperationSpec = {
4857
4995
  workItemConfigId
4858
4996
  ],
4859
4997
  headerParameters: [accept],
4860
- serializer: serializer$8
4998
+ serializer: serializer$a
4861
4999
  };
4862
5000
  const updateItemOperationSpec = {
4863
5001
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs/{workItemConfigId}",
@@ -4878,7 +5016,7 @@ const updateItemOperationSpec = {
4878
5016
  ],
4879
5017
  headerParameters: [accept, contentType],
4880
5018
  mediaType: "json",
4881
- serializer: serializer$8
5019
+ serializer: serializer$a
4882
5020
  };
4883
5021
 
4884
5022
  /*
@@ -4904,7 +5042,7 @@ class FavoritesImpl {
4904
5042
  * @param options The options parameters.
4905
5043
  */
4906
5044
  list(resourceGroupName, resourceName, options) {
4907
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$5);
5045
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$4);
4908
5046
  }
4909
5047
  /**
4910
5048
  * Get a single favorite by its FavoriteId, defined within an Application Insights component.
@@ -4949,7 +5087,7 @@ class FavoritesImpl {
4949
5087
  favoriteId,
4950
5088
  favoriteProperties,
4951
5089
  options
4952
- }, updateOperationSpec$3);
5090
+ }, updateOperationSpec$4);
4953
5091
  }
4954
5092
  /**
4955
5093
  * Remove a favorite that is associated to an Application Insights component.
@@ -4959,12 +5097,12 @@ class FavoritesImpl {
4959
5097
  * @param options The options parameters.
4960
5098
  */
4961
5099
  delete(resourceGroupName, resourceName, favoriteId, options) {
4962
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, favoriteId, options }, deleteOperationSpec$4);
5100
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, favoriteId, options }, deleteOperationSpec$7);
4963
5101
  }
4964
5102
  }
4965
5103
  // Operation Specifications
4966
- const serializer$9 = coreClient.createSerializer(Mappers, /* isXml */ false);
4967
- const listOperationSpec$5 = {
5104
+ const serializer$9 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5105
+ const listOperationSpec$4 = {
4968
5106
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites",
4969
5107
  httpMethod: "GET",
4970
5108
  responses: {
@@ -5038,7 +5176,7 @@ const addOperationSpec = {
5038
5176
  mediaType: "json",
5039
5177
  serializer: serializer$9
5040
5178
  };
5041
- const updateOperationSpec$3 = {
5179
+ const updateOperationSpec$4 = {
5042
5180
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}",
5043
5181
  httpMethod: "PATCH",
5044
5182
  responses: {
@@ -5059,7 +5197,7 @@ const updateOperationSpec$3 = {
5059
5197
  mediaType: "json",
5060
5198
  serializer: serializer$9
5061
5199
  };
5062
- const deleteOperationSpec$4 = {
5200
+ const deleteOperationSpec$7 = {
5063
5201
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}",
5064
5202
  httpMethod: "DELETE",
5065
5203
  responses: { 200: {} },
@@ -5142,12 +5280,12 @@ class WebTestLocationsImpl {
5142
5280
  * @param options The options parameters.
5143
5281
  */
5144
5282
  _list(resourceGroupName, resourceName, options) {
5145
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$6);
5283
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listOperationSpec$3);
5146
5284
  }
5147
5285
  }
5148
5286
  // Operation Specifications
5149
- const serializer$a = coreClient.createSerializer(Mappers, /* isXml */ false);
5150
- const listOperationSpec$6 = {
5287
+ const serializer$8 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5288
+ const listOperationSpec$3 = {
5151
5289
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/syntheticmonitorlocations",
5152
5290
  httpMethod: "GET",
5153
5291
  responses: {
@@ -5163,7 +5301,7 @@ const listOperationSpec$6 = {
5163
5301
  resourceName
5164
5302
  ],
5165
5303
  headerParameters: [accept],
5166
- serializer: serializer$a
5304
+ serializer: serializer$8
5167
5305
  };
5168
5306
 
5169
5307
  /*
@@ -5336,7 +5474,7 @@ class WebTestsImpl {
5336
5474
  * @param options The options parameters.
5337
5475
  */
5338
5476
  _listByResourceGroup(resourceGroupName, options) {
5339
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
5477
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$4);
5340
5478
  }
5341
5479
  /**
5342
5480
  * Get a specific Application Insights web test definition.
@@ -5345,7 +5483,7 @@ class WebTestsImpl {
5345
5483
  * @param options The options parameters.
5346
5484
  */
5347
5485
  get(resourceGroupName, webTestName, options) {
5348
- return this.client.sendOperationRequest({ resourceGroupName, webTestName, options }, getOperationSpec$9);
5486
+ return this.client.sendOperationRequest({ resourceGroupName, webTestName, options }, getOperationSpec$7);
5349
5487
  }
5350
5488
  /**
5351
5489
  * Creates or updates an Application Insights web test definition.
@@ -5356,7 +5494,7 @@ class WebTestsImpl {
5356
5494
  * @param options The options parameters.
5357
5495
  */
5358
5496
  createOrUpdate(resourceGroupName, webTestName, webTestDefinition, options) {
5359
- return this.client.sendOperationRequest({ resourceGroupName, webTestName, webTestDefinition, options }, createOrUpdateOperationSpec);
5497
+ return this.client.sendOperationRequest({ resourceGroupName, webTestName, webTestDefinition, options }, createOrUpdateOperationSpec$4);
5360
5498
  }
5361
5499
  /**
5362
5500
  * Creates or updates an Application Insights web test definition.
@@ -5366,7 +5504,7 @@ class WebTestsImpl {
5366
5504
  * @param options The options parameters.
5367
5505
  */
5368
5506
  updateTags(resourceGroupName, webTestName, webTestTags, options) {
5369
- return this.client.sendOperationRequest({ resourceGroupName, webTestName, webTestTags, options }, updateTagsOperationSpec);
5507
+ return this.client.sendOperationRequest({ resourceGroupName, webTestName, webTestTags, options }, updateTagsOperationSpec$1);
5370
5508
  }
5371
5509
  /**
5372
5510
  * Deletes an Application Insights web test.
@@ -5375,14 +5513,14 @@ class WebTestsImpl {
5375
5513
  * @param options The options parameters.
5376
5514
  */
5377
5515
  delete(resourceGroupName, webTestName, options) {
5378
- return this.client.sendOperationRequest({ resourceGroupName, webTestName, options }, deleteOperationSpec$5);
5516
+ return this.client.sendOperationRequest({ resourceGroupName, webTestName, options }, deleteOperationSpec$6);
5379
5517
  }
5380
5518
  /**
5381
5519
  * Get all Application Insights web test alerts definitions within a subscription.
5382
5520
  * @param options The options parameters.
5383
5521
  */
5384
5522
  _list(options) {
5385
- return this.client.sendOperationRequest({ options }, listOperationSpec$7);
5523
+ return this.client.sendOperationRequest({ options }, listOperationSpec$2);
5386
5524
  }
5387
5525
  /**
5388
5526
  * Get all Application Insights web tests defined for the specified component.
@@ -5400,7 +5538,7 @@ class WebTestsImpl {
5400
5538
  * @param options The options parameters.
5401
5539
  */
5402
5540
  _listByResourceGroupNext(resourceGroupName, nextLink, options) {
5403
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
5541
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$3);
5404
5542
  }
5405
5543
  /**
5406
5544
  * ListNext
@@ -5408,7 +5546,7 @@ class WebTestsImpl {
5408
5546
  * @param options The options parameters.
5409
5547
  */
5410
5548
  _listNext(nextLink, options) {
5411
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
5549
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
5412
5550
  }
5413
5551
  /**
5414
5552
  * ListByComponentNext
@@ -5422,8 +5560,8 @@ class WebTestsImpl {
5422
5560
  }
5423
5561
  }
5424
5562
  // Operation Specifications
5425
- const serializer$b = coreClient.createSerializer(Mappers, /* isXml */ false);
5426
- const listByResourceGroupOperationSpec = {
5563
+ const serializer$7 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5564
+ const listByResourceGroupOperationSpec$4 = {
5427
5565
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests",
5428
5566
  httpMethod: "GET",
5429
5567
  responses: {
@@ -5438,9 +5576,9 @@ const listByResourceGroupOperationSpec = {
5438
5576
  subscriptionId
5439
5577
  ],
5440
5578
  headerParameters: [accept],
5441
- serializer: serializer$b
5579
+ serializer: serializer$7
5442
5580
  };
5443
- const getOperationSpec$9 = {
5581
+ const getOperationSpec$7 = {
5444
5582
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}",
5445
5583
  httpMethod: "GET",
5446
5584
  responses: {
@@ -5456,9 +5594,9 @@ const getOperationSpec$9 = {
5456
5594
  webTestName
5457
5595
  ],
5458
5596
  headerParameters: [accept],
5459
- serializer: serializer$b
5597
+ serializer: serializer$7
5460
5598
  };
5461
- const createOrUpdateOperationSpec = {
5599
+ const createOrUpdateOperationSpec$4 = {
5462
5600
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}",
5463
5601
  httpMethod: "PUT",
5464
5602
  responses: {
@@ -5476,9 +5614,9 @@ const createOrUpdateOperationSpec = {
5476
5614
  ],
5477
5615
  headerParameters: [accept, contentType],
5478
5616
  mediaType: "json",
5479
- serializer: serializer$b
5617
+ serializer: serializer$7
5480
5618
  };
5481
- const updateTagsOperationSpec = {
5619
+ const updateTagsOperationSpec$1 = {
5482
5620
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}",
5483
5621
  httpMethod: "PATCH",
5484
5622
  responses: {
@@ -5496,9 +5634,9 @@ const updateTagsOperationSpec = {
5496
5634
  ],
5497
5635
  headerParameters: [accept, contentType],
5498
5636
  mediaType: "json",
5499
- serializer: serializer$b
5637
+ serializer: serializer$7
5500
5638
  };
5501
- const deleteOperationSpec$5 = {
5639
+ const deleteOperationSpec$6 = {
5502
5640
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}",
5503
5641
  httpMethod: "DELETE",
5504
5642
  responses: { 200: {}, 204: {} },
@@ -5509,9 +5647,9 @@ const deleteOperationSpec$5 = {
5509
5647
  subscriptionId,
5510
5648
  webTestName
5511
5649
  ],
5512
- serializer: serializer$b
5650
+ serializer: serializer$7
5513
5651
  };
5514
- const listOperationSpec$7 = {
5652
+ const listOperationSpec$2 = {
5515
5653
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/webtests",
5516
5654
  httpMethod: "GET",
5517
5655
  responses: {
@@ -5522,7 +5660,7 @@ const listOperationSpec$7 = {
5522
5660
  queryParameters: [apiVersion],
5523
5661
  urlParameters: [$host, subscriptionId],
5524
5662
  headerParameters: [accept],
5525
- serializer: serializer$b
5663
+ serializer: serializer$7
5526
5664
  };
5527
5665
  const listByComponentOperationSpec = {
5528
5666
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{componentName}/webtests",
@@ -5540,9 +5678,9 @@ const listByComponentOperationSpec = {
5540
5678
  componentName
5541
5679
  ],
5542
5680
  headerParameters: [accept],
5543
- serializer: serializer$b
5681
+ serializer: serializer$7
5544
5682
  };
5545
- const listByResourceGroupNextOperationSpec = {
5683
+ const listByResourceGroupNextOperationSpec$3 = {
5546
5684
  path: "{nextLink}",
5547
5685
  httpMethod: "GET",
5548
5686
  responses: {
@@ -5558,9 +5696,9 @@ const listByResourceGroupNextOperationSpec = {
5558
5696
  nextLink
5559
5697
  ],
5560
5698
  headerParameters: [accept],
5561
- serializer: serializer$b
5699
+ serializer: serializer$7
5562
5700
  };
5563
- const listNextOperationSpec = {
5701
+ const listNextOperationSpec$1 = {
5564
5702
  path: "{nextLink}",
5565
5703
  httpMethod: "GET",
5566
5704
  responses: {
@@ -5575,7 +5713,7 @@ const listNextOperationSpec = {
5575
5713
  nextLink
5576
5714
  ],
5577
5715
  headerParameters: [accept],
5578
- serializer: serializer$b
5716
+ serializer: serializer$7
5579
5717
  };
5580
5718
  const listByComponentNextOperationSpec = {
5581
5719
  path: "{nextLink}",
@@ -5594,7 +5732,7 @@ const listByComponentNextOperationSpec = {
5594
5732
  nextLink
5595
5733
  ],
5596
5734
  headerParameters: [accept],
5597
- serializer: serializer$b
5735
+ serializer: serializer$7
5598
5736
  };
5599
5737
 
5600
5738
  /*
@@ -5622,7 +5760,7 @@ class AnalyticsItemsImpl {
5622
5760
  * @param options The options parameters.
5623
5761
  */
5624
5762
  list(resourceGroupName, resourceName, scopePath, options) {
5625
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, scopePath, options }, listOperationSpec$8);
5763
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, scopePath, options }, listOperationSpec$1);
5626
5764
  }
5627
5765
  /**
5628
5766
  * Gets a specific Analytics Items defined within an Application Insights component.
@@ -5633,7 +5771,7 @@ class AnalyticsItemsImpl {
5633
5771
  * @param options The options parameters.
5634
5772
  */
5635
5773
  get(resourceGroupName, resourceName, scopePath, options) {
5636
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, scopePath, options }, getOperationSpec$a);
5774
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, scopePath, options }, getOperationSpec$6);
5637
5775
  }
5638
5776
  /**
5639
5777
  * Adds or Updates a specific Analytics Item within an Application Insights component.
@@ -5657,12 +5795,12 @@ class AnalyticsItemsImpl {
5657
5795
  * @param options The options parameters.
5658
5796
  */
5659
5797
  delete(resourceGroupName, resourceName, scopePath, options) {
5660
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, scopePath, options }, deleteOperationSpec$6);
5798
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, scopePath, options }, deleteOperationSpec$5);
5661
5799
  }
5662
5800
  }
5663
5801
  // Operation Specifications
5664
- const serializer$c = coreClient.createSerializer(Mappers, /* isXml */ false);
5665
- const listOperationSpec$8 = {
5802
+ const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
5803
+ const listOperationSpec$1 = {
5666
5804
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}",
5667
5805
  httpMethod: "GET",
5668
5806
  responses: {
@@ -5694,9 +5832,9 @@ const listOperationSpec$8 = {
5694
5832
  scopePath
5695
5833
  ],
5696
5834
  headerParameters: [accept],
5697
- serializer: serializer$c
5835
+ serializer: serializer$6
5698
5836
  };
5699
- const getOperationSpec$a = {
5837
+ const getOperationSpec$6 = {
5700
5838
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item",
5701
5839
  httpMethod: "GET",
5702
5840
  responses: {
@@ -5713,7 +5851,7 @@ const getOperationSpec$a = {
5713
5851
  scopePath
5714
5852
  ],
5715
5853
  headerParameters: [accept],
5716
- serializer: serializer$c
5854
+ serializer: serializer$6
5717
5855
  };
5718
5856
  const putOperationSpec = {
5719
5857
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item",
@@ -5734,9 +5872,9 @@ const putOperationSpec = {
5734
5872
  ],
5735
5873
  headerParameters: [accept, contentType],
5736
5874
  mediaType: "json",
5737
- serializer: serializer$c
5875
+ serializer: serializer$6
5738
5876
  };
5739
- const deleteOperationSpec$6 = {
5877
+ const deleteOperationSpec$5 = {
5740
5878
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item",
5741
5879
  httpMethod: "DELETE",
5742
5880
  responses: { 200: {} },
@@ -5748,7 +5886,7 @@ const deleteOperationSpec$6 = {
5748
5886
  resourceName,
5749
5887
  scopePath
5750
5888
  ],
5751
- serializer: serializer$c
5889
+ serializer: serializer$6
5752
5890
  };
5753
5891
 
5754
5892
  /*
@@ -5817,7 +5955,7 @@ class WorkbookTemplatesImpl {
5817
5955
  * @param options The options parameters.
5818
5956
  */
5819
5957
  _listByResourceGroup(resourceGroupName, options) {
5820
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
5958
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$3);
5821
5959
  }
5822
5960
  /**
5823
5961
  * Get a single workbook template by its resourceName.
@@ -5826,7 +5964,7 @@ class WorkbookTemplatesImpl {
5826
5964
  * @param options The options parameters.
5827
5965
  */
5828
5966
  get(resourceGroupName, resourceName, options) {
5829
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$b);
5967
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$5);
5830
5968
  }
5831
5969
  /**
5832
5970
  * Delete a workbook template.
@@ -5835,7 +5973,7 @@ class WorkbookTemplatesImpl {
5835
5973
  * @param options The options parameters.
5836
5974
  */
5837
5975
  delete(resourceGroupName, resourceName, options) {
5838
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, deleteOperationSpec$7);
5976
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, deleteOperationSpec$4);
5839
5977
  }
5840
5978
  /**
5841
5979
  * Create a new workbook template.
@@ -5845,7 +5983,7 @@ class WorkbookTemplatesImpl {
5845
5983
  * @param options The options parameters.
5846
5984
  */
5847
5985
  createOrUpdate(resourceGroupName, resourceName, workbookTemplateProperties, options) {
5848
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, workbookTemplateProperties, options }, createOrUpdateOperationSpec$1);
5986
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, workbookTemplateProperties, options }, createOrUpdateOperationSpec$3);
5849
5987
  }
5850
5988
  /**
5851
5989
  * Updates a workbook template that has already been added.
@@ -5854,12 +5992,12 @@ class WorkbookTemplatesImpl {
5854
5992
  * @param options The options parameters.
5855
5993
  */
5856
5994
  update(resourceGroupName, resourceName, options) {
5857
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, updateOperationSpec$4);
5995
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, updateOperationSpec$3);
5858
5996
  }
5859
5997
  }
5860
5998
  // Operation Specifications
5861
- const serializer$d = coreClient.createSerializer(Mappers, /* isXml */ false);
5862
- const listByResourceGroupOperationSpec$1 = {
5999
+ const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6000
+ const listByResourceGroupOperationSpec$3 = {
5863
6001
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates",
5864
6002
  httpMethod: "GET",
5865
6003
  responses: {
@@ -5877,9 +6015,9 @@ const listByResourceGroupOperationSpec$1 = {
5877
6015
  subscriptionId
5878
6016
  ],
5879
6017
  headerParameters: [accept],
5880
- serializer: serializer$d
6018
+ serializer: serializer$5
5881
6019
  };
5882
- const getOperationSpec$b = {
6020
+ const getOperationSpec$5 = {
5883
6021
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates/{resourceName}",
5884
6022
  httpMethod: "GET",
5885
6023
  responses: {
@@ -5898,9 +6036,9 @@ const getOperationSpec$b = {
5898
6036
  resourceName
5899
6037
  ],
5900
6038
  headerParameters: [accept],
5901
- serializer: serializer$d
6039
+ serializer: serializer$5
5902
6040
  };
5903
- const deleteOperationSpec$7 = {
6041
+ const deleteOperationSpec$4 = {
5904
6042
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates/{resourceName}",
5905
6043
  httpMethod: "DELETE",
5906
6044
  responses: {
@@ -5918,9 +6056,9 @@ const deleteOperationSpec$7 = {
5918
6056
  resourceName
5919
6057
  ],
5920
6058
  headerParameters: [accept],
5921
- serializer: serializer$d
6059
+ serializer: serializer$5
5922
6060
  };
5923
- const createOrUpdateOperationSpec$1 = {
6061
+ const createOrUpdateOperationSpec$3 = {
5924
6062
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates/{resourceName}",
5925
6063
  httpMethod: "PUT",
5926
6064
  responses: {
@@ -5944,9 +6082,9 @@ const createOrUpdateOperationSpec$1 = {
5944
6082
  ],
5945
6083
  headerParameters: [accept, contentType],
5946
6084
  mediaType: "json",
5947
- serializer: serializer$d
6085
+ serializer: serializer$5
5948
6086
  };
5949
- const updateOperationSpec$4 = {
6087
+ const updateOperationSpec$3 = {
5950
6088
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooktemplates/{resourceName}",
5951
6089
  httpMethod: "PATCH",
5952
6090
  responses: {
@@ -5967,7 +6105,7 @@ const updateOperationSpec$4 = {
5967
6105
  ],
5968
6106
  headerParameters: [accept, contentType],
5969
6107
  mediaType: "json",
5970
- serializer: serializer$d
6108
+ serializer: serializer$5
5971
6109
  };
5972
6110
 
5973
6111
  /*
@@ -6101,7 +6239,7 @@ class MyWorkbooksImpl {
6101
6239
  * @param options The options parameters.
6102
6240
  */
6103
6241
  _listBySubscription(category, options) {
6104
- return this.client.sendOperationRequest({ category, options }, listBySubscriptionOperationSpec);
6242
+ return this.client.sendOperationRequest({ category, options }, listBySubscriptionOperationSpec$1);
6105
6243
  }
6106
6244
  /**
6107
6245
  * Get a single private workbook by its resourceName.
@@ -6110,7 +6248,7 @@ class MyWorkbooksImpl {
6110
6248
  * @param options The options parameters.
6111
6249
  */
6112
6250
  get(resourceGroupName, resourceName, options) {
6113
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$c);
6251
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$4);
6114
6252
  }
6115
6253
  /**
6116
6254
  * Delete a private workbook.
@@ -6119,7 +6257,7 @@ class MyWorkbooksImpl {
6119
6257
  * @param options The options parameters.
6120
6258
  */
6121
6259
  delete(resourceGroupName, resourceName, options) {
6122
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, deleteOperationSpec$8);
6260
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, deleteOperationSpec$3);
6123
6261
  }
6124
6262
  /**
6125
6263
  * Create a new private workbook.
@@ -6139,7 +6277,7 @@ class MyWorkbooksImpl {
6139
6277
  * @param options The options parameters.
6140
6278
  */
6141
6279
  update(resourceGroupName, resourceName, workbookProperties, options) {
6142
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, workbookProperties, options }, updateOperationSpec$5);
6280
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, workbookProperties, options }, updateOperationSpec$2);
6143
6281
  }
6144
6282
  /**
6145
6283
  * ListByResourceGroupNext
@@ -6149,7 +6287,7 @@ class MyWorkbooksImpl {
6149
6287
  * @param options The options parameters.
6150
6288
  */
6151
6289
  _listByResourceGroupNext(resourceGroupName, category, nextLink, options) {
6152
- return this.client.sendOperationRequest({ resourceGroupName, category, nextLink, options }, listByResourceGroupNextOperationSpec$1);
6290
+ return this.client.sendOperationRequest({ resourceGroupName, category, nextLink, options }, listByResourceGroupNextOperationSpec$2);
6153
6291
  }
6154
6292
  /**
6155
6293
  * ListBySubscriptionNext
@@ -6158,11 +6296,11 @@ class MyWorkbooksImpl {
6158
6296
  * @param options The options parameters.
6159
6297
  */
6160
6298
  _listBySubscriptionNext(category, nextLink, options) {
6161
- return this.client.sendOperationRequest({ category, nextLink, options }, listBySubscriptionNextOperationSpec);
6299
+ return this.client.sendOperationRequest({ category, nextLink, options }, listBySubscriptionNextOperationSpec$1);
6162
6300
  }
6163
6301
  }
6164
6302
  // Operation Specifications
6165
- const serializer$e = coreClient.createSerializer(Mappers, /* isXml */ false);
6303
+ const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6166
6304
  const listByResourceGroupOperationSpec$2 = {
6167
6305
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/myWorkbooks",
6168
6306
  httpMethod: "GET",
@@ -6187,9 +6325,9 @@ const listByResourceGroupOperationSpec$2 = {
6187
6325
  subscriptionId
6188
6326
  ],
6189
6327
  headerParameters: [accept],
6190
- serializer: serializer$e
6328
+ serializer: serializer$4
6191
6329
  };
6192
- const listBySubscriptionOperationSpec = {
6330
+ const listBySubscriptionOperationSpec$1 = {
6193
6331
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/myWorkbooks",
6194
6332
  httpMethod: "GET",
6195
6333
  responses: {
@@ -6208,9 +6346,9 @@ const listBySubscriptionOperationSpec = {
6208
6346
  ],
6209
6347
  urlParameters: [$host, subscriptionId],
6210
6348
  headerParameters: [accept],
6211
- serializer: serializer$e
6349
+ serializer: serializer$4
6212
6350
  };
6213
- const getOperationSpec$c = {
6351
+ const getOperationSpec$4 = {
6214
6352
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/myWorkbooks/{resourceName}",
6215
6353
  httpMethod: "GET",
6216
6354
  responses: {
@@ -6229,9 +6367,9 @@ const getOperationSpec$c = {
6229
6367
  resourceName
6230
6368
  ],
6231
6369
  headerParameters: [accept],
6232
- serializer: serializer$e
6370
+ serializer: serializer$4
6233
6371
  };
6234
- const deleteOperationSpec$8 = {
6372
+ const deleteOperationSpec$3 = {
6235
6373
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/myWorkbooks/{resourceName}",
6236
6374
  httpMethod: "DELETE",
6237
6375
  responses: {
@@ -6249,7 +6387,7 @@ const deleteOperationSpec$8 = {
6249
6387
  resourceName
6250
6388
  ],
6251
6389
  headerParameters: [accept],
6252
- serializer: serializer$e
6390
+ serializer: serializer$4
6253
6391
  };
6254
6392
  const createOrUpdateOperationSpec$2 = {
6255
6393
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/myWorkbooks/{resourceName}",
@@ -6275,9 +6413,9 @@ const createOrUpdateOperationSpec$2 = {
6275
6413
  ],
6276
6414
  headerParameters: [accept, contentType],
6277
6415
  mediaType: "json",
6278
- serializer: serializer$e
6416
+ serializer: serializer$4
6279
6417
  };
6280
- const updateOperationSpec$5 = {
6418
+ const updateOperationSpec$2 = {
6281
6419
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/myWorkbooks/{resourceName}",
6282
6420
  httpMethod: "PATCH",
6283
6421
  responses: {
@@ -6298,9 +6436,9 @@ const updateOperationSpec$5 = {
6298
6436
  ],
6299
6437
  headerParameters: [accept, contentType],
6300
6438
  mediaType: "json",
6301
- serializer: serializer$e
6439
+ serializer: serializer$4
6302
6440
  };
6303
- const listByResourceGroupNextOperationSpec$1 = {
6441
+ const listByResourceGroupNextOperationSpec$2 = {
6304
6442
  path: "{nextLink}",
6305
6443
  httpMethod: "GET",
6306
6444
  responses: {
@@ -6325,9 +6463,9 @@ const listByResourceGroupNextOperationSpec$1 = {
6325
6463
  nextLink
6326
6464
  ],
6327
6465
  headerParameters: [accept],
6328
- serializer: serializer$e
6466
+ serializer: serializer$4
6329
6467
  };
6330
- const listBySubscriptionNextOperationSpec = {
6468
+ const listBySubscriptionNextOperationSpec$1 = {
6331
6469
  path: "{nextLink}",
6332
6470
  httpMethod: "GET",
6333
6471
  responses: {
@@ -6350,7 +6488,7 @@ const listBySubscriptionNextOperationSpec = {
6350
6488
  nextLink
6351
6489
  ],
6352
6490
  headerParameters: [accept],
6353
- serializer: serializer$e
6491
+ serializer: serializer$4
6354
6492
  };
6355
6493
 
6356
6494
  /*
@@ -6371,7 +6509,7 @@ class WorkbooksImpl {
6371
6509
  this.client = client;
6372
6510
  }
6373
6511
  /**
6374
- * Get all private workbooks defined within a specified subscription and category.
6512
+ * Get all Workbooks defined within a specified subscription and category.
6375
6513
  * @param category Category of workbook to return.
6376
6514
  * @param options The options parameters.
6377
6515
  */
@@ -6472,7 +6610,7 @@ class WorkbooksImpl {
6472
6610
  /**
6473
6611
  * Get the revisions for the workbook defined by its resourceName.
6474
6612
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
6475
- * @param resourceName The name of the Application Insights component resource.
6613
+ * @param resourceName The name of the resource.
6476
6614
  * @param options The options parameters.
6477
6615
  */
6478
6616
  listRevisionsList(resourceGroupName, resourceName, options) {
@@ -6520,12 +6658,12 @@ class WorkbooksImpl {
6520
6658
  });
6521
6659
  }
6522
6660
  /**
6523
- * Get all private workbooks defined within a specified subscription and category.
6661
+ * Get all Workbooks defined within a specified subscription and category.
6524
6662
  * @param category Category of workbook to return.
6525
6663
  * @param options The options parameters.
6526
6664
  */
6527
6665
  _listBySubscription(category, options) {
6528
- return this.client.sendOperationRequest({ category, options }, listBySubscriptionOperationSpec$1);
6666
+ return this.client.sendOperationRequest({ category, options }, listBySubscriptionOperationSpec);
6529
6667
  }
6530
6668
  /**
6531
6669
  * Get all Workbooks defined within a specified resource group and category.
@@ -6534,49 +6672,49 @@ class WorkbooksImpl {
6534
6672
  * @param options The options parameters.
6535
6673
  */
6536
6674
  _listByResourceGroup(resourceGroupName, category, options) {
6537
- return this.client.sendOperationRequest({ resourceGroupName, category, options }, listByResourceGroupOperationSpec$3);
6675
+ return this.client.sendOperationRequest({ resourceGroupName, category, options }, listByResourceGroupOperationSpec$1);
6538
6676
  }
6539
6677
  /**
6540
6678
  * Get a single workbook by its resourceName.
6541
6679
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
6542
- * @param resourceName The name of the Application Insights component resource.
6680
+ * @param resourceName The name of the resource.
6543
6681
  * @param options The options parameters.
6544
6682
  */
6545
6683
  get(resourceGroupName, resourceName, options) {
6546
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$d);
6684
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$3);
6547
6685
  }
6548
6686
  /**
6549
6687
  * Delete a workbook.
6550
6688
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
6551
- * @param resourceName The name of the Application Insights component resource.
6689
+ * @param resourceName The name of the resource.
6552
6690
  * @param options The options parameters.
6553
6691
  */
6554
6692
  delete(resourceGroupName, resourceName, options) {
6555
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, deleteOperationSpec$9);
6693
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, deleteOperationSpec$2);
6556
6694
  }
6557
6695
  /**
6558
6696
  * Create a new workbook.
6559
6697
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
6560
- * @param resourceName The name of the Application Insights component resource.
6698
+ * @param resourceName The name of the resource.
6561
6699
  * @param workbookProperties Properties that need to be specified to create a new workbook.
6562
6700
  * @param options The options parameters.
6563
6701
  */
6564
6702
  createOrUpdate(resourceGroupName, resourceName, workbookProperties, options) {
6565
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, workbookProperties, options }, createOrUpdateOperationSpec$3);
6703
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, workbookProperties, options }, createOrUpdateOperationSpec$1);
6566
6704
  }
6567
6705
  /**
6568
6706
  * Updates a workbook that has already been added.
6569
6707
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
6570
- * @param resourceName The name of the Application Insights component resource.
6708
+ * @param resourceName The name of the resource.
6571
6709
  * @param options The options parameters.
6572
6710
  */
6573
6711
  update(resourceGroupName, resourceName, options) {
6574
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, updateOperationSpec$6);
6712
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, updateOperationSpec$1);
6575
6713
  }
6576
6714
  /**
6577
6715
  * Get the revisions for the workbook defined by its resourceName.
6578
6716
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
6579
- * @param resourceName The name of the Application Insights component resource.
6717
+ * @param resourceName The name of the resource.
6580
6718
  * @param options The options parameters.
6581
6719
  */
6582
6720
  _revisionsList(resourceGroupName, resourceName, options) {
@@ -6585,7 +6723,7 @@ class WorkbooksImpl {
6585
6723
  /**
6586
6724
  * Get a single workbook revision defined by its revisionId.
6587
6725
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
6588
- * @param resourceName The name of the Application Insights component resource.
6726
+ * @param resourceName The name of the resource.
6589
6727
  * @param revisionId The id of the workbook's revision.
6590
6728
  * @param options The options parameters.
6591
6729
  */
@@ -6599,7 +6737,7 @@ class WorkbooksImpl {
6599
6737
  * @param options The options parameters.
6600
6738
  */
6601
6739
  _listBySubscriptionNext(category, nextLink, options) {
6602
- return this.client.sendOperationRequest({ category, nextLink, options }, listBySubscriptionNextOperationSpec$1);
6740
+ return this.client.sendOperationRequest({ category, nextLink, options }, listBySubscriptionNextOperationSpec);
6603
6741
  }
6604
6742
  /**
6605
6743
  * ListByResourceGroupNext
@@ -6609,12 +6747,12 @@ class WorkbooksImpl {
6609
6747
  * @param options The options parameters.
6610
6748
  */
6611
6749
  _listByResourceGroupNext(resourceGroupName, category, nextLink, options) {
6612
- return this.client.sendOperationRequest({ resourceGroupName, category, nextLink, options }, listByResourceGroupNextOperationSpec$2);
6750
+ return this.client.sendOperationRequest({ resourceGroupName, category, nextLink, options }, listByResourceGroupNextOperationSpec$1);
6613
6751
  }
6614
6752
  /**
6615
6753
  * RevisionsListNext
6616
6754
  * @param resourceGroupName The name of the resource group. The name is case insensitive.
6617
- * @param resourceName The name of the Application Insights component resource.
6755
+ * @param resourceName The name of the resource.
6618
6756
  * @param nextLink The nextLink from the previous successful call to the RevisionsList method.
6619
6757
  * @param options The options parameters.
6620
6758
  */
@@ -6623,8 +6761,8 @@ class WorkbooksImpl {
6623
6761
  }
6624
6762
  }
6625
6763
  // Operation Specifications
6626
- const serializer$f = coreClient.createSerializer(Mappers, /* isXml */ false);
6627
- const listBySubscriptionOperationSpec$1 = {
6764
+ const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
6765
+ const listBySubscriptionOperationSpec = {
6628
6766
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/workbooks",
6629
6767
  httpMethod: "GET",
6630
6768
  responses: {
@@ -6643,9 +6781,9 @@ const listBySubscriptionOperationSpec$1 = {
6643
6781
  ],
6644
6782
  urlParameters: [$host, subscriptionId],
6645
6783
  headerParameters: [accept],
6646
- serializer: serializer$f
6784
+ serializer: serializer$3
6647
6785
  };
6648
- const listByResourceGroupOperationSpec$3 = {
6786
+ const listByResourceGroupOperationSpec$1 = {
6649
6787
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks",
6650
6788
  httpMethod: "GET",
6651
6789
  responses: {
@@ -6669,9 +6807,9 @@ const listByResourceGroupOperationSpec$3 = {
6669
6807
  subscriptionId
6670
6808
  ],
6671
6809
  headerParameters: [accept],
6672
- serializer: serializer$f
6810
+ serializer: serializer$3
6673
6811
  };
6674
- const getOperationSpec$d = {
6812
+ const getOperationSpec$3 = {
6675
6813
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}",
6676
6814
  httpMethod: "GET",
6677
6815
  responses: {
@@ -6682,7 +6820,7 @@ const getOperationSpec$d = {
6682
6820
  bodyMapper: WorkbookError
6683
6821
  }
6684
6822
  },
6685
- queryParameters: [apiVersion3],
6823
+ queryParameters: [canFetchContent, apiVersion3],
6686
6824
  urlParameters: [
6687
6825
  $host,
6688
6826
  resourceGroupName,
@@ -6690,9 +6828,9 @@ const getOperationSpec$d = {
6690
6828
  resourceName
6691
6829
  ],
6692
6830
  headerParameters: [accept],
6693
- serializer: serializer$f
6831
+ serializer: serializer$3
6694
6832
  };
6695
- const deleteOperationSpec$9 = {
6833
+ const deleteOperationSpec$2 = {
6696
6834
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}",
6697
6835
  httpMethod: "DELETE",
6698
6836
  responses: {
@@ -6710,9 +6848,9 @@ const deleteOperationSpec$9 = {
6710
6848
  resourceName
6711
6849
  ],
6712
6850
  headerParameters: [accept],
6713
- serializer: serializer$f
6851
+ serializer: serializer$3
6714
6852
  };
6715
- const createOrUpdateOperationSpec$3 = {
6853
+ const createOrUpdateOperationSpec$1 = {
6716
6854
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}",
6717
6855
  httpMethod: "PUT",
6718
6856
  responses: {
@@ -6736,9 +6874,9 @@ const createOrUpdateOperationSpec$3 = {
6736
6874
  ],
6737
6875
  headerParameters: [accept, contentType],
6738
6876
  mediaType: "json",
6739
- serializer: serializer$f
6877
+ serializer: serializer$3
6740
6878
  };
6741
- const updateOperationSpec$6 = {
6879
+ const updateOperationSpec$1 = {
6742
6880
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}",
6743
6881
  httpMethod: "PATCH",
6744
6882
  responses: {
@@ -6759,7 +6897,7 @@ const updateOperationSpec$6 = {
6759
6897
  ],
6760
6898
  headerParameters: [accept, contentType],
6761
6899
  mediaType: "json",
6762
- serializer: serializer$f
6900
+ serializer: serializer$3
6763
6901
  };
6764
6902
  const revisionsListOperationSpec = {
6765
6903
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}/revisions",
@@ -6780,7 +6918,7 @@ const revisionsListOperationSpec = {
6780
6918
  resourceName
6781
6919
  ],
6782
6920
  headerParameters: [accept],
6783
- serializer: serializer$f
6921
+ serializer: serializer$3
6784
6922
  };
6785
6923
  const revisionGetOperationSpec = {
6786
6924
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/workbooks/{resourceName}/revisions/{revisionId}",
@@ -6802,9 +6940,9 @@ const revisionGetOperationSpec = {
6802
6940
  revisionId
6803
6941
  ],
6804
6942
  headerParameters: [accept],
6805
- serializer: serializer$f
6943
+ serializer: serializer$3
6806
6944
  };
6807
- const listBySubscriptionNextOperationSpec$1 = {
6945
+ const listBySubscriptionNextOperationSpec = {
6808
6946
  path: "{nextLink}",
6809
6947
  httpMethod: "GET",
6810
6948
  responses: {
@@ -6827,9 +6965,9 @@ const listBySubscriptionNextOperationSpec$1 = {
6827
6965
  nextLink
6828
6966
  ],
6829
6967
  headerParameters: [accept],
6830
- serializer: serializer$f
6968
+ serializer: serializer$3
6831
6969
  };
6832
- const listByResourceGroupNextOperationSpec$2 = {
6970
+ const listByResourceGroupNextOperationSpec$1 = {
6833
6971
  path: "{nextLink}",
6834
6972
  httpMethod: "GET",
6835
6973
  responses: {
@@ -6854,7 +6992,7 @@ const listByResourceGroupNextOperationSpec$2 = {
6854
6992
  nextLink
6855
6993
  ],
6856
6994
  headerParameters: [accept],
6857
- serializer: serializer$f
6995
+ serializer: serializer$3
6858
6996
  };
6859
6997
  const revisionsListNextOperationSpec = {
6860
6998
  path: "{nextLink}",
@@ -6876,7 +7014,7 @@ const revisionsListNextOperationSpec = {
6876
7014
  nextLink
6877
7015
  ],
6878
7016
  headerParameters: [accept],
6879
- serializer: serializer$f
7017
+ serializer: serializer$3
6880
7018
  };
6881
7019
 
6882
7020
  /*
@@ -6998,7 +7136,7 @@ class ComponentsImpl {
6998
7136
  * @param options The options parameters.
6999
7137
  */
7000
7138
  _list(options) {
7001
- return this.client.sendOperationRequest({ options }, listOperationSpec$9);
7139
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
7002
7140
  }
7003
7141
  /**
7004
7142
  * Gets a list of Application Insights components within a resource group.
@@ -7006,7 +7144,7 @@ class ComponentsImpl {
7006
7144
  * @param options The options parameters.
7007
7145
  */
7008
7146
  _listByResourceGroup(resourceGroupName, options) {
7009
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$4);
7147
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
7010
7148
  }
7011
7149
  /**
7012
7150
  * Deletes an Application Insights component.
@@ -7015,7 +7153,7 @@ class ComponentsImpl {
7015
7153
  * @param options The options parameters.
7016
7154
  */
7017
7155
  delete(resourceGroupName, resourceName, options) {
7018
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, deleteOperationSpec$a);
7156
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, deleteOperationSpec$1);
7019
7157
  }
7020
7158
  /**
7021
7159
  * Returns an Application Insights component.
@@ -7024,7 +7162,7 @@ class ComponentsImpl {
7024
7162
  * @param options The options parameters.
7025
7163
  */
7026
7164
  get(resourceGroupName, resourceName, options) {
7027
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$e);
7165
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec$2);
7028
7166
  }
7029
7167
  /**
7030
7168
  * Creates (or updates) an Application Insights component. Note: You cannot specify a different value
@@ -7036,7 +7174,7 @@ class ComponentsImpl {
7036
7174
  * @param options The options parameters.
7037
7175
  */
7038
7176
  createOrUpdate(resourceGroupName, resourceName, insightProperties, options) {
7039
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, insightProperties, options }, createOrUpdateOperationSpec$4);
7177
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, insightProperties, options }, createOrUpdateOperationSpec);
7040
7178
  }
7041
7179
  /**
7042
7180
  * Updates an existing component's tags. To update other fields use the CreateOrUpdate method.
@@ -7046,7 +7184,7 @@ class ComponentsImpl {
7046
7184
  * @param options The options parameters.
7047
7185
  */
7048
7186
  updateTags(resourceGroupName, resourceName, componentTags, options) {
7049
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, componentTags, options }, updateTagsOperationSpec$1);
7187
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, componentTags, options }, updateTagsOperationSpec);
7050
7188
  }
7051
7189
  /**
7052
7190
  * Purges data in an Application Insights component by a set of user-defined filters.
@@ -7081,7 +7219,7 @@ class ComponentsImpl {
7081
7219
  * @param options The options parameters.
7082
7220
  */
7083
7221
  _listNext(nextLink, options) {
7084
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
7222
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
7085
7223
  }
7086
7224
  /**
7087
7225
  * ListByResourceGroupNext
@@ -7090,30 +7228,36 @@ class ComponentsImpl {
7090
7228
  * @param options The options parameters.
7091
7229
  */
7092
7230
  _listByResourceGroupNext(resourceGroupName, nextLink, options) {
7093
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$3);
7231
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
7094
7232
  }
7095
7233
  }
7096
7234
  // Operation Specifications
7097
- const serializer$g = coreClient.createSerializer(Mappers, /* isXml */ false);
7098
- const listOperationSpec$9 = {
7235
+ const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
7236
+ const listOperationSpec = {
7099
7237
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/components",
7100
7238
  httpMethod: "GET",
7101
7239
  responses: {
7102
7240
  200: {
7103
7241
  bodyMapper: ApplicationInsightsComponentListResult
7242
+ },
7243
+ default: {
7244
+ bodyMapper: ErrorResponseComponents
7104
7245
  }
7105
7246
  },
7106
7247
  queryParameters: [apiVersion4],
7107
7248
  urlParameters: [$host, subscriptionId],
7108
7249
  headerParameters: [accept],
7109
- serializer: serializer$g
7250
+ serializer: serializer$2
7110
7251
  };
7111
- const listByResourceGroupOperationSpec$4 = {
7252
+ const listByResourceGroupOperationSpec = {
7112
7253
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components",
7113
7254
  httpMethod: "GET",
7114
7255
  responses: {
7115
7256
  200: {
7116
7257
  bodyMapper: ApplicationInsightsComponentListResult
7258
+ },
7259
+ default: {
7260
+ bodyMapper: ErrorResponseComponents
7117
7261
  }
7118
7262
  },
7119
7263
  queryParameters: [apiVersion4],
@@ -7123,12 +7267,18 @@ const listByResourceGroupOperationSpec$4 = {
7123
7267
  subscriptionId
7124
7268
  ],
7125
7269
  headerParameters: [accept],
7126
- serializer: serializer$g
7270
+ serializer: serializer$2
7127
7271
  };
7128
- const deleteOperationSpec$a = {
7272
+ const deleteOperationSpec$1 = {
7129
7273
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}",
7130
7274
  httpMethod: "DELETE",
7131
- responses: { 200: {}, 204: {} },
7275
+ responses: {
7276
+ 200: {},
7277
+ 204: {},
7278
+ default: {
7279
+ bodyMapper: ErrorResponseComponents
7280
+ }
7281
+ },
7132
7282
  queryParameters: [apiVersion4],
7133
7283
  urlParameters: [
7134
7284
  $host,
@@ -7136,14 +7286,18 @@ const deleteOperationSpec$a = {
7136
7286
  subscriptionId,
7137
7287
  resourceName
7138
7288
  ],
7139
- serializer: serializer$g
7289
+ headerParameters: [accept],
7290
+ serializer: serializer$2
7140
7291
  };
7141
- const getOperationSpec$e = {
7292
+ const getOperationSpec$2 = {
7142
7293
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}",
7143
7294
  httpMethod: "GET",
7144
7295
  responses: {
7145
7296
  200: {
7146
7297
  bodyMapper: ApplicationInsightsComponent
7298
+ },
7299
+ default: {
7300
+ bodyMapper: ErrorResponseComponents
7147
7301
  }
7148
7302
  },
7149
7303
  queryParameters: [apiVersion4],
@@ -7154,17 +7308,17 @@ const getOperationSpec$e = {
7154
7308
  resourceName
7155
7309
  ],
7156
7310
  headerParameters: [accept],
7157
- serializer: serializer$g
7311
+ serializer: serializer$2
7158
7312
  };
7159
- const createOrUpdateOperationSpec$4 = {
7313
+ const createOrUpdateOperationSpec = {
7160
7314
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}",
7161
7315
  httpMethod: "PUT",
7162
7316
  responses: {
7163
7317
  200: {
7164
7318
  bodyMapper: ApplicationInsightsComponent
7165
7319
  },
7166
- 201: {
7167
- bodyMapper: ApplicationInsightsComponent
7320
+ default: {
7321
+ bodyMapper: ErrorResponseComponents
7168
7322
  }
7169
7323
  },
7170
7324
  requestBody: insightProperties,
@@ -7177,17 +7331,17 @@ const createOrUpdateOperationSpec$4 = {
7177
7331
  ],
7178
7332
  headerParameters: [accept, contentType],
7179
7333
  mediaType: "json",
7180
- serializer: serializer$g
7334
+ serializer: serializer$2
7181
7335
  };
7182
- const updateTagsOperationSpec$1 = {
7336
+ const updateTagsOperationSpec = {
7183
7337
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}",
7184
7338
  httpMethod: "PATCH",
7185
7339
  responses: {
7186
7340
  200: {
7187
7341
  bodyMapper: ApplicationInsightsComponent
7188
7342
  },
7189
- 201: {
7190
- bodyMapper: ApplicationInsightsComponent
7343
+ default: {
7344
+ bodyMapper: ErrorResponseComponents
7191
7345
  }
7192
7346
  },
7193
7347
  requestBody: componentTags,
@@ -7200,7 +7354,7 @@ const updateTagsOperationSpec$1 = {
7200
7354
  ],
7201
7355
  headerParameters: [accept, contentType],
7202
7356
  mediaType: "json",
7203
- serializer: serializer$g
7357
+ serializer: serializer$2
7204
7358
  };
7205
7359
  const purgeOperationSpec = {
7206
7360
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/purge",
@@ -7208,6 +7362,9 @@ const purgeOperationSpec = {
7208
7362
  responses: {
7209
7363
  202: {
7210
7364
  bodyMapper: ComponentPurgeResponse
7365
+ },
7366
+ default: {
7367
+ bodyMapper: ErrorResponseComponents
7211
7368
  }
7212
7369
  },
7213
7370
  requestBody: body,
@@ -7220,7 +7377,7 @@ const purgeOperationSpec = {
7220
7377
  ],
7221
7378
  headerParameters: [accept, contentType],
7222
7379
  mediaType: "json",
7223
- serializer: serializer$g
7380
+ serializer: serializer$2
7224
7381
  };
7225
7382
  const getPurgeStatusOperationSpec = {
7226
7383
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/operations/{purgeId}",
@@ -7228,6 +7385,9 @@ const getPurgeStatusOperationSpec = {
7228
7385
  responses: {
7229
7386
  200: {
7230
7387
  bodyMapper: ComponentPurgeStatusResponse
7388
+ },
7389
+ default: {
7390
+ bodyMapper: ErrorResponseComponents
7231
7391
  }
7232
7392
  },
7233
7393
  queryParameters: [apiVersion4],
@@ -7239,14 +7399,17 @@ const getPurgeStatusOperationSpec = {
7239
7399
  purgeId
7240
7400
  ],
7241
7401
  headerParameters: [accept],
7242
- serializer: serializer$g
7402
+ serializer: serializer$2
7243
7403
  };
7244
- const listNextOperationSpec$1 = {
7404
+ const listNextOperationSpec = {
7245
7405
  path: "{nextLink}",
7246
7406
  httpMethod: "GET",
7247
7407
  responses: {
7248
7408
  200: {
7249
7409
  bodyMapper: ApplicationInsightsComponentListResult
7410
+ },
7411
+ default: {
7412
+ bodyMapper: ErrorResponseComponents
7250
7413
  }
7251
7414
  },
7252
7415
  queryParameters: [apiVersion4],
@@ -7256,14 +7419,17 @@ const listNextOperationSpec$1 = {
7256
7419
  nextLink
7257
7420
  ],
7258
7421
  headerParameters: [accept],
7259
- serializer: serializer$g
7422
+ serializer: serializer$2
7260
7423
  };
7261
- const listByResourceGroupNextOperationSpec$3 = {
7424
+ const listByResourceGroupNextOperationSpec = {
7262
7425
  path: "{nextLink}",
7263
7426
  httpMethod: "GET",
7264
7427
  responses: {
7265
7428
  200: {
7266
7429
  bodyMapper: ApplicationInsightsComponentListResult
7430
+ },
7431
+ default: {
7432
+ bodyMapper: ErrorResponseComponents
7267
7433
  }
7268
7434
  },
7269
7435
  queryParameters: [apiVersion4],
@@ -7274,7 +7440,7 @@ const listByResourceGroupNextOperationSpec$3 = {
7274
7440
  nextLink
7275
7441
  ],
7276
7442
  headerParameters: [accept],
7277
- serializer: serializer$g
7443
+ serializer: serializer$2
7278
7444
  };
7279
7445
 
7280
7446
  /*
@@ -7302,7 +7468,7 @@ class ComponentLinkedStorageAccountsOperationsImpl {
7302
7468
  * @param options The options parameters.
7303
7469
  */
7304
7470
  get(resourceGroupName, resourceName, storageType, options) {
7305
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, storageType, options }, getOperationSpec$f);
7471
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, storageType, options }, getOperationSpec$1);
7306
7472
  }
7307
7473
  /**
7308
7474
  * Replace current linked storage account for an Application Insights component.
@@ -7340,7 +7506,7 @@ class ComponentLinkedStorageAccountsOperationsImpl {
7340
7506
  storageType,
7341
7507
  linkedStorageAccountsProperties,
7342
7508
  options
7343
- }, updateOperationSpec$7);
7509
+ }, updateOperationSpec);
7344
7510
  }
7345
7511
  /**
7346
7512
  * Delete linked storage accounts for an Application Insights component.
@@ -7351,12 +7517,12 @@ class ComponentLinkedStorageAccountsOperationsImpl {
7351
7517
  * @param options The options parameters.
7352
7518
  */
7353
7519
  delete(resourceGroupName, resourceName, storageType, options) {
7354
- return this.client.sendOperationRequest({ resourceGroupName, resourceName, storageType, options }, deleteOperationSpec$b);
7520
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, storageType, options }, deleteOperationSpec);
7355
7521
  }
7356
7522
  }
7357
7523
  // Operation Specifications
7358
- const serializer$h = coreClient.createSerializer(Mappers, /* isXml */ false);
7359
- const getOperationSpec$f = {
7524
+ const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
7525
+ const getOperationSpec$1 = {
7360
7526
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}",
7361
7527
  httpMethod: "GET",
7362
7528
  responses: {
@@ -7376,7 +7542,7 @@ const getOperationSpec$f = {
7376
7542
  storageType
7377
7543
  ],
7378
7544
  headerParameters: [accept],
7379
- serializer: serializer$h
7545
+ serializer: serializer$1
7380
7546
  };
7381
7547
  const createAndUpdateOperationSpec = {
7382
7548
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}",
@@ -7400,9 +7566,9 @@ const createAndUpdateOperationSpec = {
7400
7566
  ],
7401
7567
  headerParameters: [accept, contentType],
7402
7568
  mediaType: "json",
7403
- serializer: serializer$h
7569
+ serializer: serializer$1
7404
7570
  };
7405
- const updateOperationSpec$7 = {
7571
+ const updateOperationSpec = {
7406
7572
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}",
7407
7573
  httpMethod: "PATCH",
7408
7574
  responses: {
@@ -7424,9 +7590,9 @@ const updateOperationSpec$7 = {
7424
7590
  ],
7425
7591
  headerParameters: [accept, contentType],
7426
7592
  mediaType: "json",
7427
- serializer: serializer$h
7593
+ serializer: serializer$1
7428
7594
  };
7429
- const deleteOperationSpec$b = {
7595
+ const deleteOperationSpec = {
7430
7596
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}",
7431
7597
  httpMethod: "DELETE",
7432
7598
  responses: {
@@ -7445,119 +7611,7 @@ const deleteOperationSpec$b = {
7445
7611
  storageType
7446
7612
  ],
7447
7613
  headerParameters: [accept],
7448
- serializer: serializer$h
7449
- };
7450
-
7451
- /*
7452
- * Copyright (c) Microsoft Corporation.
7453
- * Licensed under the MIT License.
7454
- *
7455
- * Code generated by Microsoft (R) AutoRest Code Generator.
7456
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7457
- */
7458
- /// <reference lib="esnext.asynciterable" />
7459
- /** Class containing Operations operations. */
7460
- class OperationsImpl {
7461
- /**
7462
- * Initialize a new instance of the class Operations class.
7463
- * @param client Reference to the service client
7464
- */
7465
- constructor(client) {
7466
- this.client = client;
7467
- }
7468
- /**
7469
- * List the available operations supported by the resource provider.
7470
- * @param options The options parameters.
7471
- */
7472
- list(options) {
7473
- const iter = this.listPagingAll(options);
7474
- return {
7475
- next() {
7476
- return iter.next();
7477
- },
7478
- [Symbol.asyncIterator]() {
7479
- return this;
7480
- },
7481
- byPage: () => {
7482
- return this.listPagingPage(options);
7483
- }
7484
- };
7485
- }
7486
- listPagingPage(options) {
7487
- return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
7488
- let result = yield tslib.__await(this._list(options));
7489
- yield yield tslib.__await(result.value || []);
7490
- let continuationToken = result.nextLink;
7491
- while (continuationToken) {
7492
- result = yield tslib.__await(this._listNext(continuationToken, options));
7493
- continuationToken = result.nextLink;
7494
- yield yield tslib.__await(result.value || []);
7495
- }
7496
- });
7497
- }
7498
- listPagingAll(options) {
7499
- return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
7500
- var e_1, _a;
7501
- try {
7502
- for (var _b = tslib.__asyncValues(this.listPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
7503
- const page = _c.value;
7504
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
7505
- }
7506
- }
7507
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
7508
- finally {
7509
- try {
7510
- if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
7511
- }
7512
- finally { if (e_1) throw e_1.error; }
7513
- }
7514
- });
7515
- }
7516
- /**
7517
- * List the available operations supported by the resource provider.
7518
- * @param options The options parameters.
7519
- */
7520
- _list(options) {
7521
- return this.client.sendOperationRequest({ options }, listOperationSpec$a);
7522
- }
7523
- /**
7524
- * ListNext
7525
- * @param nextLink The nextLink from the previous successful call to the List method.
7526
- * @param options The options parameters.
7527
- */
7528
- _listNext(nextLink, options) {
7529
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
7530
- }
7531
- }
7532
- // Operation Specifications
7533
- const serializer$i = coreClient.createSerializer(Mappers, /* isXml */ false);
7534
- const listOperationSpec$a = {
7535
- path: "/providers/microsoft.insights/operations",
7536
- httpMethod: "GET",
7537
- responses: {
7538
- 200: {
7539
- bodyMapper: OperationsListResult
7540
- },
7541
- default: {}
7542
- },
7543
- queryParameters: [apiVersion6],
7544
- urlParameters: [$host],
7545
- headerParameters: [accept],
7546
- serializer: serializer$i
7547
- };
7548
- const listNextOperationSpec$2 = {
7549
- path: "{nextLink}",
7550
- httpMethod: "GET",
7551
- responses: {
7552
- 200: {
7553
- bodyMapper: OperationsListResult
7554
- },
7555
- default: {}
7556
- },
7557
- queryParameters: [apiVersion6],
7558
- urlParameters: [$host, nextLink],
7559
- headerParameters: [accept],
7560
- serializer: serializer$i
7614
+ serializer: serializer$1
7561
7615
  };
7562
7616
 
7563
7617
  /*
@@ -7582,13 +7636,13 @@ class LiveTokenImpl {
7582
7636
  * @param options The options parameters.
7583
7637
  */
7584
7638
  get(resourceUri, options) {
7585
- return this.client.sendOperationRequest({ resourceUri, options }, getOperationSpec$g);
7639
+ return this.client.sendOperationRequest({ resourceUri, options }, getOperationSpec);
7586
7640
  }
7587
7641
  }
7588
7642
  // Operation Specifications
7589
- const serializer$j = coreClient.createSerializer(Mappers, /* isXml */ false);
7590
- const getOperationSpec$g = {
7591
- path: "/{resourceUri}/providers/microsoft.insights/generatelivetoken",
7643
+ const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
7644
+ const getOperationSpec = {
7645
+ path: "/{resourceUri}/providers/Microsoft.Insights/generatelivetoken",
7592
7646
  httpMethod: "POST",
7593
7647
  responses: {
7594
7648
  200: {
@@ -7601,7 +7655,7 @@ const getOperationSpec$g = {
7601
7655
  queryParameters: [apiVersion6],
7602
7656
  urlParameters: [$host, resourceUri],
7603
7657
  headerParameters: [accept],
7604
- serializer: serializer$j
7658
+ serializer
7605
7659
  };
7606
7660
 
7607
7661
  /*
@@ -7611,7 +7665,7 @@ const getOperationSpec$g = {
7611
7665
  * Code generated by Microsoft (R) AutoRest Code Generator.
7612
7666
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7613
7667
  */
7614
- class ApplicationInsightsManagementClient extends coreClient.ServiceClient {
7668
+ class ApplicationInsightsManagementClient extends coreClient__namespace.ServiceClient {
7615
7669
  /**
7616
7670
  * Initializes a new instance of the ApplicationInsightsManagementClient class.
7617
7671
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -7619,6 +7673,7 @@ class ApplicationInsightsManagementClient extends coreClient.ServiceClient {
7619
7673
  * @param options The parameter options
7620
7674
  */
7621
7675
  constructor(credentials, subscriptionId, options) {
7676
+ var _a, _b;
7622
7677
  if (credentials === undefined) {
7623
7678
  throw new Error("'credentials' cannot be null");
7624
7679
  }
@@ -7633,7 +7688,7 @@ class ApplicationInsightsManagementClient extends coreClient.ServiceClient {
7633
7688
  requestContentType: "application/json; charset=utf-8",
7634
7689
  credential: credentials
7635
7690
  };
7636
- const packageDetails = `azsdk-js-arm-appinsights/5.0.0-beta.1`;
7691
+ const packageDetails = `azsdk-js-arm-appinsights/5.0.0-beta.4`;
7637
7692
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
7638
7693
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
7639
7694
  : `${packageDetails}`;
@@ -7642,8 +7697,24 @@ class ApplicationInsightsManagementClient extends coreClient.ServiceClient {
7642
7697
  }
7643
7698
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
7644
7699
  userAgentPrefix
7645
- }, baseUri: options.endpoint || "https://management.azure.com" });
7700
+ }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
7646
7701
  super(optionsWithDefaults);
7702
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
7703
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
7704
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
7705
+ coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
7706
+ if (!bearerTokenAuthenticationPolicyFound) {
7707
+ this.pipeline.removePolicy({
7708
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
7709
+ });
7710
+ this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
7711
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
7712
+ challengeCallbacks: {
7713
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
7714
+ }
7715
+ }));
7716
+ }
7717
+ }
7647
7718
  // Parameter assignments
7648
7719
  this.subscriptionId = subscriptionId;
7649
7720
  // Assigning values to Constant parameters
@@ -7666,7 +7737,6 @@ class ApplicationInsightsManagementClient extends coreClient.ServiceClient {
7666
7737
  this.workbooks = new WorkbooksImpl(this);
7667
7738
  this.components = new ComponentsImpl(this);
7668
7739
  this.componentLinkedStorageAccountsOperations = new ComponentLinkedStorageAccountsOperationsImpl(this);
7669
- this.operations = new OperationsImpl(this);
7670
7740
  this.liveToken = new LiveTokenImpl(this);
7671
7741
  }
7672
7742
  }