@azure/arm-appinsights 5.0.0-alpha.20250619.1 → 5.0.0-alpha.20250729.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/applicationInsightsManagementClient.js +32 -5
- package/dist/browser/applicationInsightsManagementClient.js.map +1 -1
- package/dist/browser/models/mappers.js +194 -91
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/aPIKeys.js +10 -27
- package/dist/browser/operations/aPIKeys.js.map +1 -1
- package/dist/browser/operations/analyticsItems.js +1 -0
- package/dist/browser/operations/analyticsItems.js.map +1 -1
- package/dist/browser/operations/annotations.js +10 -27
- package/dist/browser/operations/annotations.js.map +1 -1
- package/dist/browser/operations/componentAvailableFeatures.js +1 -0
- package/dist/browser/operations/componentAvailableFeatures.js.map +1 -1
- package/dist/browser/operations/componentCurrentBillingFeatures.js +1 -0
- package/dist/browser/operations/componentCurrentBillingFeatures.js.map +1 -1
- package/dist/browser/operations/componentFeatureCapabilities.js +1 -0
- package/dist/browser/operations/componentFeatureCapabilities.js.map +1 -1
- package/dist/browser/operations/componentLinkedStorageAccountsOperations.js +1 -0
- package/dist/browser/operations/componentLinkedStorageAccountsOperations.js.map +1 -1
- package/dist/browser/operations/componentQuotaStatus.js +1 -0
- package/dist/browser/operations/componentQuotaStatus.js.map +1 -1
- package/dist/browser/operations/components.js +45 -79
- package/dist/browser/operations/components.js.map +1 -1
- package/dist/browser/operations/deletedWorkbooks.js +23 -40
- package/dist/browser/operations/deletedWorkbooks.js.map +1 -1
- package/dist/browser/operations/exportConfigurations.js +1 -0
- package/dist/browser/operations/exportConfigurations.js.map +1 -1
- package/dist/browser/operations/favorites.js +1 -0
- package/dist/browser/operations/favorites.js.map +1 -1
- package/dist/browser/operations/liveToken.js +1 -0
- package/dist/browser/operations/liveToken.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/proactiveDetectionConfigurations.js +1 -0
- package/dist/browser/operations/proactiveDetectionConfigurations.js.map +1 -1
- package/dist/browser/operations/webTestLocations.js +10 -27
- package/dist/browser/operations/webTestLocations.js.map +1 -1
- package/dist/browser/operations/webTests.js +67 -118
- package/dist/browser/operations/webTests.js.map +1 -1
- package/dist/browser/operations/workItemConfigurations.js +10 -27
- package/dist/browser/operations/workItemConfigurations.js.map +1 -1
- package/dist/browser/operations/workbookTemplates.js +10 -27
- package/dist/browser/operations/workbookTemplates.js.map +1 -1
- package/dist/browser/operations/workbooks.js +67 -118
- package/dist/browser/operations/workbooks.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/applicationInsightsManagementClient.js +32 -5
- package/dist/commonjs/applicationInsightsManagementClient.js.map +1 -1
- package/dist/commonjs/models/mappers.js +194 -91
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/aPIKeys.js +10 -26
- package/dist/commonjs/operations/aPIKeys.js.map +1 -1
- package/dist/commonjs/operations/analyticsItems.js +1 -0
- package/dist/commonjs/operations/analyticsItems.js.map +1 -1
- package/dist/commonjs/operations/annotations.js +10 -26
- package/dist/commonjs/operations/annotations.js.map +1 -1
- package/dist/commonjs/operations/componentAvailableFeatures.js +1 -0
- package/dist/commonjs/operations/componentAvailableFeatures.js.map +1 -1
- package/dist/commonjs/operations/componentCurrentBillingFeatures.js +1 -0
- package/dist/commonjs/operations/componentCurrentBillingFeatures.js.map +1 -1
- package/dist/commonjs/operations/componentFeatureCapabilities.js +1 -0
- package/dist/commonjs/operations/componentFeatureCapabilities.js.map +1 -1
- package/dist/commonjs/operations/componentLinkedStorageAccountsOperations.js +1 -0
- package/dist/commonjs/operations/componentLinkedStorageAccountsOperations.js.map +1 -1
- package/dist/commonjs/operations/componentQuotaStatus.js +1 -0
- package/dist/commonjs/operations/componentQuotaStatus.js.map +1 -1
- package/dist/commonjs/operations/components.js +45 -78
- package/dist/commonjs/operations/components.js.map +1 -1
- package/dist/commonjs/operations/deletedWorkbooks.js +23 -39
- package/dist/commonjs/operations/deletedWorkbooks.js.map +1 -1
- package/dist/commonjs/operations/exportConfigurations.js +1 -0
- package/dist/commonjs/operations/exportConfigurations.js.map +1 -1
- package/dist/commonjs/operations/favorites.js +1 -0
- package/dist/commonjs/operations/favorites.js.map +1 -1
- package/dist/commonjs/operations/liveToken.js +1 -0
- package/dist/commonjs/operations/liveToken.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/proactiveDetectionConfigurations.js +1 -0
- package/dist/commonjs/operations/proactiveDetectionConfigurations.js.map +1 -1
- package/dist/commonjs/operations/webTestLocations.js +10 -26
- package/dist/commonjs/operations/webTestLocations.js.map +1 -1
- package/dist/commonjs/operations/webTests.js +67 -117
- package/dist/commonjs/operations/webTests.js.map +1 -1
- package/dist/commonjs/operations/workItemConfigurations.js +10 -26
- package/dist/commonjs/operations/workItemConfigurations.js.map +1 -1
- package/dist/commonjs/operations/workbookTemplates.js +10 -26
- package/dist/commonjs/operations/workbookTemplates.js.map +1 -1
- package/dist/commonjs/operations/workbooks.js +67 -117
- package/dist/commonjs/operations/workbooks.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/applicationInsightsManagementClient.js +32 -5
- package/dist/esm/applicationInsightsManagementClient.js.map +1 -1
- package/dist/esm/models/mappers.js +194 -91
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/aPIKeys.js +10 -27
- package/dist/esm/operations/aPIKeys.js.map +1 -1
- package/dist/esm/operations/analyticsItems.js +1 -0
- package/dist/esm/operations/analyticsItems.js.map +1 -1
- package/dist/esm/operations/annotations.js +10 -27
- package/dist/esm/operations/annotations.js.map +1 -1
- package/dist/esm/operations/componentAvailableFeatures.js +1 -0
- package/dist/esm/operations/componentAvailableFeatures.js.map +1 -1
- package/dist/esm/operations/componentCurrentBillingFeatures.js +1 -0
- package/dist/esm/operations/componentCurrentBillingFeatures.js.map +1 -1
- package/dist/esm/operations/componentFeatureCapabilities.js +1 -0
- package/dist/esm/operations/componentFeatureCapabilities.js.map +1 -1
- package/dist/esm/operations/componentLinkedStorageAccountsOperations.js +1 -0
- package/dist/esm/operations/componentLinkedStorageAccountsOperations.js.map +1 -1
- package/dist/esm/operations/componentQuotaStatus.js +1 -0
- package/dist/esm/operations/componentQuotaStatus.js.map +1 -1
- package/dist/esm/operations/components.js +45 -79
- package/dist/esm/operations/components.js.map +1 -1
- package/dist/esm/operations/deletedWorkbooks.js +23 -40
- package/dist/esm/operations/deletedWorkbooks.js.map +1 -1
- package/dist/esm/operations/exportConfigurations.js +1 -0
- package/dist/esm/operations/exportConfigurations.js.map +1 -1
- package/dist/esm/operations/favorites.js +1 -0
- package/dist/esm/operations/favorites.js.map +1 -1
- package/dist/esm/operations/liveToken.js +1 -0
- package/dist/esm/operations/liveToken.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/proactiveDetectionConfigurations.js +1 -0
- package/dist/esm/operations/proactiveDetectionConfigurations.js.map +1 -1
- package/dist/esm/operations/webTestLocations.js +10 -27
- package/dist/esm/operations/webTestLocations.js.map +1 -1
- package/dist/esm/operations/webTests.js +67 -118
- package/dist/esm/operations/webTests.js.map +1 -1
- package/dist/esm/operations/workItemConfigurations.js +10 -27
- package/dist/esm/operations/workItemConfigurations.js.map +1 -1
- package/dist/esm/operations/workbookTemplates.js +10 -27
- package/dist/esm/operations/workbookTemplates.js.map +1 -1
- package/dist/esm/operations/workbooks.js +67 -118
- package/dist/esm/operations/workbooks.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/applicationInsightsManagementClient.js +32 -5
- package/dist/react-native/applicationInsightsManagementClient.js.map +1 -1
- package/dist/react-native/models/mappers.js +194 -91
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/aPIKeys.js +10 -27
- package/dist/react-native/operations/aPIKeys.js.map +1 -1
- package/dist/react-native/operations/analyticsItems.js +1 -0
- package/dist/react-native/operations/analyticsItems.js.map +1 -1
- package/dist/react-native/operations/annotations.js +10 -27
- package/dist/react-native/operations/annotations.js.map +1 -1
- package/dist/react-native/operations/componentAvailableFeatures.js +1 -0
- package/dist/react-native/operations/componentAvailableFeatures.js.map +1 -1
- package/dist/react-native/operations/componentCurrentBillingFeatures.js +1 -0
- package/dist/react-native/operations/componentCurrentBillingFeatures.js.map +1 -1
- package/dist/react-native/operations/componentFeatureCapabilities.js +1 -0
- package/dist/react-native/operations/componentFeatureCapabilities.js.map +1 -1
- package/dist/react-native/operations/componentLinkedStorageAccountsOperations.js +1 -0
- package/dist/react-native/operations/componentLinkedStorageAccountsOperations.js.map +1 -1
- package/dist/react-native/operations/componentQuotaStatus.js +1 -0
- package/dist/react-native/operations/componentQuotaStatus.js.map +1 -1
- package/dist/react-native/operations/components.js +45 -79
- package/dist/react-native/operations/components.js.map +1 -1
- package/dist/react-native/operations/deletedWorkbooks.js +23 -40
- package/dist/react-native/operations/deletedWorkbooks.js.map +1 -1
- package/dist/react-native/operations/exportConfigurations.js +1 -0
- package/dist/react-native/operations/exportConfigurations.js.map +1 -1
- package/dist/react-native/operations/favorites.js +1 -0
- package/dist/react-native/operations/favorites.js.map +1 -1
- package/dist/react-native/operations/liveToken.js +1 -0
- package/dist/react-native/operations/liveToken.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/proactiveDetectionConfigurations.js +1 -0
- package/dist/react-native/operations/proactiveDetectionConfigurations.js.map +1 -1
- package/dist/react-native/operations/webTestLocations.js +10 -27
- package/dist/react-native/operations/webTestLocations.js.map +1 -1
- package/dist/react-native/operations/webTests.js +67 -118
- package/dist/react-native/operations/webTests.js.map +1 -1
- package/dist/react-native/operations/workItemConfigurations.js +10 -27
- package/dist/react-native/operations/workItemConfigurations.js.map +1 -1
- package/dist/react-native/operations/workbookTemplates.js +10 -27
- package/dist/react-native/operations/workbookTemplates.js.map +1 -1
- package/dist/react-native/operations/workbooks.js +67 -118
- package/dist/react-native/operations/workbooks.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-appinsights.api.md → arm-appinsights-node.api.md} +0 -0
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing Components operations. */
|
|
18
18
|
class ComponentsImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class Components class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -37,52 +38,35 @@ class ComponentsImpl {
|
|
|
37
38
|
return this;
|
|
38
39
|
},
|
|
39
40
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
41
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
43
|
}
|
|
43
44
|
return this.listPagingPage(options, settings);
|
|
44
45
|
},
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
|
-
listPagingPage(options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
48
|
+
async *listPagingPage(options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._list(options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listNext(continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
66
65
|
}
|
|
67
|
-
listPagingAll(options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
66
|
+
async *listPagingAll(options) {
|
|
67
|
+
for await (const page of this.listPagingPage(options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
86
70
|
}
|
|
87
71
|
/**
|
|
88
72
|
* Gets a list of Application Insights components within a resource group.
|
|
@@ -99,52 +83,35 @@ class ComponentsImpl {
|
|
|
99
83
|
return this;
|
|
100
84
|
},
|
|
101
85
|
byPage: (settings) => {
|
|
102
|
-
if (settings
|
|
86
|
+
if (settings?.maxPageSize) {
|
|
103
87
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
104
88
|
}
|
|
105
89
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
106
90
|
},
|
|
107
91
|
};
|
|
108
92
|
}
|
|
109
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
});
|
|
93
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
94
|
+
let result;
|
|
95
|
+
let continuationToken = settings?.continuationToken;
|
|
96
|
+
if (!continuationToken) {
|
|
97
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
98
|
+
let page = result.value || [];
|
|
99
|
+
continuationToken = result.nextLink;
|
|
100
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
101
|
+
yield page;
|
|
102
|
+
}
|
|
103
|
+
while (continuationToken) {
|
|
104
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
105
|
+
continuationToken = result.nextLink;
|
|
106
|
+
let page = result.value || [];
|
|
107
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
108
|
+
yield page;
|
|
109
|
+
}
|
|
128
110
|
}
|
|
129
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
134
|
-
_c = _f.value;
|
|
135
|
-
_d = false;
|
|
136
|
-
const page = _c;
|
|
137
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
141
|
-
finally {
|
|
142
|
-
try {
|
|
143
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
144
|
-
}
|
|
145
|
-
finally { if (e_2) throw e_2.error; }
|
|
146
|
-
}
|
|
147
|
-
});
|
|
111
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
112
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
113
|
+
yield* page;
|
|
114
|
+
}
|
|
148
115
|
}
|
|
149
116
|
/**
|
|
150
117
|
* Gets a list of all Application Insights components within a subscription.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../../src/operations/components.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AA2BtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;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;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Components } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ApplicationInsightsManagementClient } from \"../applicationInsightsManagementClient.js\";\nimport {\n ApplicationInsightsComponent,\n ComponentsListNextOptionalParams,\n ComponentsListOptionalParams,\n ComponentsListResponse,\n ComponentsListByResourceGroupNextOptionalParams,\n ComponentsListByResourceGroupOptionalParams,\n ComponentsListByResourceGroupResponse,\n ComponentsDeleteOptionalParams,\n ComponentsGetOptionalParams,\n ComponentsGetResponse,\n ComponentsCreateOrUpdateOptionalParams,\n ComponentsCreateOrUpdateResponse,\n TagsResource,\n ComponentsUpdateTagsOptionalParams,\n ComponentsUpdateTagsResponse,\n ComponentPurgeBody,\n ComponentsPurgeOptionalParams,\n ComponentsPurgeResponse,\n ComponentsGetPurgeStatusOptionalParams,\n ComponentsGetPurgeStatusResponse,\n ComponentsListNextResponse,\n ComponentsListByResourceGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Components operations. */\nexport class ComponentsImpl implements Components {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class Components class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of all Application Insights components within a subscription.\n * @param options The options parameters.\n */\n public list(\n options?: ComponentsListOptionalParams,\n ): PagedAsyncIterableIterator<ApplicationInsightsComponent> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: ComponentsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ApplicationInsightsComponent[]> {\n let result: ComponentsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: ComponentsListOptionalParams,\n ): AsyncIterableIterator<ApplicationInsightsComponent> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of Application Insights components within a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: ComponentsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<ApplicationInsightsComponent> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: ComponentsListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ApplicationInsightsComponent[]> {\n let result: ComponentsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: ComponentsListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<ApplicationInsightsComponent> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of all Application Insights components within a subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: ComponentsListOptionalParams,\n ): Promise<ComponentsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Gets a list of Application Insights components within a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: ComponentsListByResourceGroupOptionalParams,\n ): Promise<ComponentsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Deletes an Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n options?: ComponentsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Returns an Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n options?: ComponentsGetOptionalParams,\n ): Promise<ComponentsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates (or updates) an Application Insights component. Note: You cannot specify a different value\n * for InstrumentationKey nor AppId in the Put operation.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param insightProperties Properties that need to be specified to create an Application Insights\n * component.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n insightProperties: ApplicationInsightsComponent,\n options?: ComponentsCreateOrUpdateOptionalParams,\n ): Promise<ComponentsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, insightProperties, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Updates an existing component's tags. To update other fields use the CreateOrUpdate method.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param componentTags Updated tag information to set into the component instance.\n * @param options The options parameters.\n */\n updateTags(\n resourceGroupName: string,\n resourceName: string,\n componentTags: TagsResource,\n options?: ComponentsUpdateTagsOptionalParams,\n ): Promise<ComponentsUpdateTagsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, componentTags, options },\n updateTagsOperationSpec,\n );\n }\n\n /**\n * Purges data in an Application Insights component by a set of user-defined filters.\n *\n * In order to manage system resources, purge requests are throttled at 50 requests per hour. You\n * should batch the execution of purge requests by sending a single command whose predicate includes\n * all user identities that require purging. Use the in operator to specify multiple identities. You\n * should run the query prior to using for a purge request to verify that the results are expected.\n * Note: this operation is intended for Classic resources, for workspace-based Application Insights\n * resource please run purge operation (directly on the\n * workspace)( https://learn.microsoft.com/rest/api/loganalytics/workspace-purge/purge) , scoped to\n * specific resource id.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param body Describes the body of a request to purge data in a single table of an Application\n * Insights component\n * @param options The options parameters.\n */\n purge(\n resourceGroupName: string,\n resourceName: string,\n body: ComponentPurgeBody,\n options?: ComponentsPurgeOptionalParams,\n ): Promise<ComponentsPurgeResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, body, options },\n purgeOperationSpec,\n );\n }\n\n /**\n * Get status for an ongoing purge operation.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param purgeId In a purge status request, this is the Id of the operation the status of which is\n * returned.\n * @param options The options parameters.\n */\n getPurgeStatus(\n resourceGroupName: string,\n resourceName: string,\n purgeId: string,\n options?: ComponentsGetPurgeStatusOptionalParams,\n ): Promise<ComponentsGetPurgeStatusResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, purgeId, options },\n getPurgeStatusOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: ComponentsListNextOptionalParams,\n ): Promise<ComponentsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: ComponentsListByResourceGroupNextOptionalParams,\n ): Promise<ComponentsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Insights/components\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseComponents,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseComponents,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponseComponents,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponent,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseComponents,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponent,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseComponents,\n },\n },\n requestBody: Parameters.insightProperties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateTagsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponent,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseComponents,\n },\n },\n requestBody: Parameters.componentTags,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst purgeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/purge\",\n httpMethod: \"POST\",\n responses: {\n 202: {\n bodyMapper: Mappers.ComponentPurgeResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseComponents,\n },\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getPurgeStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/operations/{purgeId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ComponentPurgeStatusResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseComponents,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.purgeId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseComponents,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseComponents,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../../src/operations/components.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AA2BtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IACR,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC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AAE;YACP,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,OAAO;KACnB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sCAAsC;SAC3D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sCAAsC;SAC3D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Components } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ApplicationInsightsManagementClient } from \"../applicationInsightsManagementClient.js\";\nimport {\n ApplicationInsightsComponent,\n ComponentsListNextOptionalParams,\n ComponentsListOptionalParams,\n ComponentsListResponse,\n ComponentsListByResourceGroupNextOptionalParams,\n ComponentsListByResourceGroupOptionalParams,\n ComponentsListByResourceGroupResponse,\n ComponentsDeleteOptionalParams,\n ComponentsGetOptionalParams,\n ComponentsGetResponse,\n ComponentsCreateOrUpdateOptionalParams,\n ComponentsCreateOrUpdateResponse,\n TagsResource,\n ComponentsUpdateTagsOptionalParams,\n ComponentsUpdateTagsResponse,\n ComponentPurgeBody,\n ComponentsPurgeOptionalParams,\n ComponentsPurgeResponse,\n ComponentsGetPurgeStatusOptionalParams,\n ComponentsGetPurgeStatusResponse,\n ComponentsListNextResponse,\n ComponentsListByResourceGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Components operations. */\nexport class ComponentsImpl implements Components {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class Components class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of all Application Insights components within a subscription.\n * @param options The options parameters.\n */\n public list(\n options?: ComponentsListOptionalParams,\n ): PagedAsyncIterableIterator<ApplicationInsightsComponent> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: ComponentsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ApplicationInsightsComponent[]> {\n let result: ComponentsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: ComponentsListOptionalParams,\n ): AsyncIterableIterator<ApplicationInsightsComponent> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of Application Insights components within a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: ComponentsListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<ApplicationInsightsComponent> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: ComponentsListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ApplicationInsightsComponent[]> {\n let result: ComponentsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: ComponentsListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<ApplicationInsightsComponent> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of all Application Insights components within a subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: ComponentsListOptionalParams,\n ): Promise<ComponentsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Gets a list of Application Insights components within a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: ComponentsListByResourceGroupOptionalParams,\n ): Promise<ComponentsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Deletes an Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n options?: ComponentsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Returns an Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n options?: ComponentsGetOptionalParams,\n ): Promise<ComponentsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates (or updates) an Application Insights component. Note: You cannot specify a different value\n * for InstrumentationKey nor AppId in the Put operation.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param insightProperties Properties that need to be specified to create an Application Insights\n * component.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n insightProperties: ApplicationInsightsComponent,\n options?: ComponentsCreateOrUpdateOptionalParams,\n ): Promise<ComponentsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, insightProperties, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Updates an existing component's tags. To update other fields use the CreateOrUpdate method.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param componentTags Updated tag information to set into the component instance.\n * @param options The options parameters.\n */\n updateTags(\n resourceGroupName: string,\n resourceName: string,\n componentTags: TagsResource,\n options?: ComponentsUpdateTagsOptionalParams,\n ): Promise<ComponentsUpdateTagsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, componentTags, options },\n updateTagsOperationSpec,\n );\n }\n\n /**\n * Purges data in an Application Insights component by a set of user-defined filters.\n *\n * In order to manage system resources, purge requests are throttled at 50 requests per hour. You\n * should batch the execution of purge requests by sending a single command whose predicate includes\n * all user identities that require purging. Use the in operator to specify multiple identities. You\n * should run the query prior to using for a purge request to verify that the results are expected.\n * Note: this operation is intended for Classic resources, for workspace-based Application Insights\n * resource please run purge operation (directly on the\n * workspace)( https://learn.microsoft.com/rest/api/loganalytics/workspace-purge/purge) , scoped to\n * specific resource id.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param body Describes the body of a request to purge data in a single table of an Application\n * Insights component\n * @param options The options parameters.\n */\n purge(\n resourceGroupName: string,\n resourceName: string,\n body: ComponentPurgeBody,\n options?: ComponentsPurgeOptionalParams,\n ): Promise<ComponentsPurgeResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, body, options },\n purgeOperationSpec,\n );\n }\n\n /**\n * Get status for an ongoing purge operation.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param purgeId In a purge status request, this is the Id of the operation the status of which is\n * returned.\n * @param options The options parameters.\n */\n getPurgeStatus(\n resourceGroupName: string,\n resourceName: string,\n purgeId: string,\n options?: ComponentsGetPurgeStatusOptionalParams,\n ): Promise<ComponentsGetPurgeStatusResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, purgeId, options },\n getPurgeStatusOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: ComponentsListNextOptionalParams,\n ): Promise<ComponentsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: ComponentsListByResourceGroupNextOptionalParams,\n ): Promise<ComponentsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Insights/components\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseComponents,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseComponents,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponseComponents,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponent,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseComponents,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponent,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseComponents,\n },\n },\n requestBody: Parameters.insightProperties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateTagsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponent,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseComponents,\n },\n },\n requestBody: Parameters.componentTags,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst purgeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/purge\",\n httpMethod: \"POST\",\n responses: {\n 202: {\n bodyMapper: Mappers.ComponentPurgeResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseComponents,\n },\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getPurgeStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/operations/{purgeId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ComponentPurgeStatusResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseComponents,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.purgeId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseComponents,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseComponents,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing DeletedWorkbooks operations. */
|
|
18
18
|
class DeletedWorkbooksImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class DeletedWorkbooks class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -37,52 +38,35 @@ class DeletedWorkbooksImpl {
|
|
|
37
38
|
return this;
|
|
38
39
|
},
|
|
39
40
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
41
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
43
|
}
|
|
43
44
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
44
45
|
},
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
|
-
listBySubscriptionPagingPage(options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
48
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._listBySubscription(options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
66
65
|
}
|
|
67
|
-
listBySubscriptionPagingAll(options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
66
|
+
async *listBySubscriptionPagingAll(options) {
|
|
67
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
86
70
|
}
|
|
87
71
|
/**
|
|
88
72
|
* Get all recently deleted Workbooks in a specified subscription.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deletedWorkbooks.js","sourceRoot":"","sources":["../../../src/operations/deletedWorkbooks.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,oDAAoD;AACpD,MAAa,oBAAoB;
|
|
1
|
+
{"version":3,"file":"deletedWorkbooks.js","sourceRoot":"","sources":["../../../src/operations/deletedWorkbooks.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,oDAAoD;AACpD,MAAa,oBAAoB;IACd,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,kBAAkB,CACvB,OAA0D;QAE1D,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;QACvD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,4BAA4B,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC9D,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,4BAA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ACrB,mCAAmC,CACpC,CAAC;IACJ,CAAC;CACF;AA5FD,oDA4FC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EAAE,+EAA+E;IACrF,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,IAAI;QACf,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,WAAW;KACvB;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { DeletedWorkbooks } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ApplicationInsightsManagementClient } from \"../applicationInsightsManagementClient.js\";\nimport {\n DeletedWorkbook,\n DeletedWorkbooksListBySubscriptionNextOptionalParams,\n DeletedWorkbooksListBySubscriptionOptionalParams,\n DeletedWorkbooksListBySubscriptionResponse,\n DeletedWorkbooksListBySubscriptionNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DeletedWorkbooks operations. */\nexport class DeletedWorkbooksImpl implements DeletedWorkbooks {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class DeletedWorkbooks class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Get all recently deleted Workbooks in a specified subscription.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: DeletedWorkbooksListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<DeletedWorkbook> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: DeletedWorkbooksListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DeletedWorkbook[]> {\n let result: DeletedWorkbooksListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: DeletedWorkbooksListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<DeletedWorkbook> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Get all recently deleted Workbooks in a specified subscription.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: DeletedWorkbooksListBySubscriptionOptionalParams,\n ): Promise<DeletedWorkbooksListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: DeletedWorkbooksListBySubscriptionNextOptionalParams,\n ): Promise<DeletedWorkbooksListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Insights/deletedWorkbooks\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeletedWorkbooksListResult,\n },\n default: {\n bodyMapper: Mappers.DeletedWorkbookError,\n },\n },\n queryParameters: [\n Parameters.tags,\n Parameters.category1,\n Parameters.apiVersion8,\n ],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeletedWorkbooksListResult,\n },\n default: {\n bodyMapper: Mappers.DeletedWorkbookError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
|
14
14
|
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
15
|
/** Class containing ExportConfigurations operations. */
|
|
16
16
|
class ExportConfigurationsImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class ExportConfigurations class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exportConfigurations.js","sourceRoot":"","sources":["../../../src/operations/exportConfigurations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAgBtD,wDAAwD;AACxD,MAAa,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,iBAAyB,EACzB,YAAoB,EACpB,OAAgD;QAEhD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,EAC5C,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAyB,EACzB,YAAoB,EACpB,gBAA2D,EAC3D,OAAkD;QAElD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,gBAAgB,EAAE,OAAO,EAAE,EAC9D,mBAAmB,CACpB,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAyB,EACzB,YAAoB,EACpB,QAAgB,EAChB,OAAkD;QAElD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,QAAQ,EAAE,OAAO,E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AC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,0JAA0J;IAChK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+CAA+C;SACpE;KACF;IACD,WAAW,EAAE,UAAU,CAAC,gBAAgB;IACxC,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { ExportConfigurations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ApplicationInsightsManagementClient } from \"../applicationInsightsManagementClient.js\";\nimport {\n ExportConfigurationsListOptionalParams,\n ExportConfigurationsListResponse,\n ApplicationInsightsComponentExportRequest,\n ExportConfigurationsCreateOptionalParams,\n ExportConfigurationsCreateResponse,\n ExportConfigurationsDeleteOptionalParams,\n ExportConfigurationsDeleteResponse,\n ExportConfigurationsGetOptionalParams,\n ExportConfigurationsGetResponse,\n ExportConfigurationsUpdateOptionalParams,\n ExportConfigurationsUpdateResponse,\n} from \"../models/index.js\";\n\n/** Class containing ExportConfigurations operations. */\nexport class ExportConfigurationsImpl implements ExportConfigurations {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class ExportConfigurations class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of Continuous Export configuration of an Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n resourceName: string,\n options?: ExportConfigurationsListOptionalParams,\n ): Promise<ExportConfigurationsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Create a Continuous Export configuration of an Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param exportProperties Properties that need to be specified to create a Continuous Export\n * configuration of a Application Insights component.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n resourceName: string,\n exportProperties: ApplicationInsightsComponentExportRequest,\n options?: ExportConfigurationsCreateOptionalParams,\n ): Promise<ExportConfigurationsCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, exportProperties, options },\n createOperationSpec,\n );\n }\n\n /**\n * Delete a Continuous Export configuration of an Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param exportId The Continuous Export configuration ID. This is unique within a Application Insights\n * component.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n exportId: string,\n options?: ExportConfigurationsDeleteOptionalParams,\n ): Promise<ExportConfigurationsDeleteResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, exportId, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Get the Continuous Export configuration for this export id.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param exportId The Continuous Export configuration ID. This is unique within a Application Insights\n * component.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n exportId: string,\n options?: ExportConfigurationsGetOptionalParams,\n ): Promise<ExportConfigurationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, exportId, options },\n getOperationSpec,\n );\n }\n\n /**\n * Update the Continuous Export configuration for this export id.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param exportId The Continuous Export configuration ID. This is unique within a Application Insights\n * component.\n * @param exportProperties Properties that need to be specified to update the Continuous Export\n * configuration.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n exportId: string,\n exportProperties: ApplicationInsightsComponentExportRequest,\n options?: ExportConfigurationsUpdateOptionalParams,\n ): Promise<ExportConfigurationsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, exportId, exportProperties, options },\n updateOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ApplicationInsightsComponentExportConfiguration\",\n },\n },\n },\n },\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ApplicationInsightsComponentExportConfiguration\",\n },\n },\n },\n },\n },\n },\n requestBody: Parameters.exportProperties,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentExportConfiguration,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.exportId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentExportConfiguration,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.exportId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentExportConfiguration,\n },\n },\n requestBody: Parameters.exportProperties,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.exportId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"exportConfigurations.js","sourceRoot":"","sources":["../../../src/operations/exportConfigurations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAgBtD,wDAAwD;AACxD,MAAa,wBAAwB;IAClB,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,iBAAyB,EACzB,YAAoB,EACpB,OAAgD;QAEhD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,EAC5C,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAyB,EACzB,YAAoB,EACpB,gBAA2D,EAC3D,OAAkD;QAElD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,gBAAgB,EAAE,OAAO,EAAE,EAC9D,mBAAmB,CACpB,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAyB,EACzB,YAAoB,EACpB,QAAgB,EAChB,OAAkD;QAElD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,EACtD,mBAAmB,CACpB,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CACD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AAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,0JAA0J;IAChK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+CAA+C;SACpE;KACF;IACD,WAAW,EAAE,UAAU,CAAC,gBAAgB;IACxC,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { ExportConfigurations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ApplicationInsightsManagementClient } from \"../applicationInsightsManagementClient.js\";\nimport {\n ExportConfigurationsListOptionalParams,\n ExportConfigurationsListResponse,\n ApplicationInsightsComponentExportRequest,\n ExportConfigurationsCreateOptionalParams,\n ExportConfigurationsCreateResponse,\n ExportConfigurationsDeleteOptionalParams,\n ExportConfigurationsDeleteResponse,\n ExportConfigurationsGetOptionalParams,\n ExportConfigurationsGetResponse,\n ExportConfigurationsUpdateOptionalParams,\n ExportConfigurationsUpdateResponse,\n} from \"../models/index.js\";\n\n/** Class containing ExportConfigurations operations. */\nexport class ExportConfigurationsImpl implements ExportConfigurations {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class ExportConfigurations class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of Continuous Export configuration of an Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n resourceName: string,\n options?: ExportConfigurationsListOptionalParams,\n ): Promise<ExportConfigurationsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Create a Continuous Export configuration of an Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param exportProperties Properties that need to be specified to create a Continuous Export\n * configuration of a Application Insights component.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n resourceName: string,\n exportProperties: ApplicationInsightsComponentExportRequest,\n options?: ExportConfigurationsCreateOptionalParams,\n ): Promise<ExportConfigurationsCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, exportProperties, options },\n createOperationSpec,\n );\n }\n\n /**\n * Delete a Continuous Export configuration of an Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param exportId The Continuous Export configuration ID. This is unique within a Application Insights\n * component.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n exportId: string,\n options?: ExportConfigurationsDeleteOptionalParams,\n ): Promise<ExportConfigurationsDeleteResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, exportId, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Get the Continuous Export configuration for this export id.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param exportId The Continuous Export configuration ID. This is unique within a Application Insights\n * component.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n exportId: string,\n options?: ExportConfigurationsGetOptionalParams,\n ): Promise<ExportConfigurationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, exportId, options },\n getOperationSpec,\n );\n }\n\n /**\n * Update the Continuous Export configuration for this export id.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param exportId The Continuous Export configuration ID. This is unique within a Application Insights\n * component.\n * @param exportProperties Properties that need to be specified to update the Continuous Export\n * configuration.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n exportId: string,\n exportProperties: ApplicationInsightsComponentExportRequest,\n options?: ExportConfigurationsUpdateOptionalParams,\n ): Promise<ExportConfigurationsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, exportId, exportProperties, options },\n updateOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ApplicationInsightsComponentExportConfiguration\",\n },\n },\n },\n },\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ApplicationInsightsComponentExportConfiguration\",\n },\n },\n },\n },\n },\n },\n requestBody: Parameters.exportProperties,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentExportConfiguration,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.exportId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentExportConfiguration,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.exportId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentExportConfiguration,\n },\n },\n requestBody: Parameters.exportProperties,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.exportId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
|
|
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
|
14
14
|
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
15
|
/** Class containing Favorites operations. */
|
|
16
16
|
class FavoritesImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class Favorites class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"favorites.js","sourceRoot":"","sources":["../../../src/operations/favorites.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,6CAA6C;AAC7C,MAAa,aAAa;IAGxB;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,iBAAyB,EACzB,YAAoB,EACpB,OAAqC;QAErC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,EAC5C,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,UAAkB,EAClB,OAAoC;QAEpC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,EACxD,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;;;OAQG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,UAAkB,EAClB,kBAAwD,EACxD,OAAoC;Q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H,UAAU,EAAE,OAAO,CAAC,oCAAoC;SACzD;KACF;IACD,WAAW,EAAE,UAAU,CAAC,kBAAkB;IAC1C,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,kJAAkJ;IACxJ,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;IACtB,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,UAAU;KACtB;IACD,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Favorites } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ApplicationInsightsManagementClient } from \"../applicationInsightsManagementClient.js\";\nimport {\n FavoritesListOptionalParams,\n FavoritesListResponse,\n FavoritesGetOptionalParams,\n FavoritesGetResponse,\n ApplicationInsightsComponentFavorite,\n FavoritesAddOptionalParams,\n FavoritesAddResponse,\n FavoritesUpdateOptionalParams,\n FavoritesUpdateResponse,\n FavoritesDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing Favorites operations. */\nexport class FavoritesImpl implements Favorites {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class Favorites class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of favorites defined within an Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n resourceName: string,\n options?: FavoritesListOptionalParams,\n ): Promise<FavoritesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Get a single favorite by its FavoriteId, defined within an Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param favoriteId The Id of a specific favorite defined in the Application Insights component\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n favoriteId: string,\n options?: FavoritesGetOptionalParams,\n ): Promise<FavoritesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, favoriteId, options },\n getOperationSpec,\n );\n }\n\n /**\n * Adds a new favorites to an Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param favoriteId The Id of a specific favorite defined in the Application Insights component\n * @param favoriteProperties Properties that need to be specified to create a new favorite and add it\n * to an Application Insights component.\n * @param options The options parameters.\n */\n add(\n resourceGroupName: string,\n resourceName: string,\n favoriteId: string,\n favoriteProperties: ApplicationInsightsComponentFavorite,\n options?: FavoritesAddOptionalParams,\n ): Promise<FavoritesAddResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n favoriteId,\n favoriteProperties,\n options,\n },\n addOperationSpec,\n );\n }\n\n /**\n * Updates a favorite that has already been added to an Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param favoriteId The Id of a specific favorite defined in the Application Insights component\n * @param favoriteProperties Properties that need to be specified to update the existing favorite.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n favoriteId: string,\n favoriteProperties: ApplicationInsightsComponentFavorite,\n options?: FavoritesUpdateOptionalParams,\n ): Promise<FavoritesUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n favoriteId,\n favoriteProperties,\n options,\n },\n updateOperationSpec,\n );\n }\n\n /**\n * Remove a favorite that is associated to an Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param favoriteId The Id of a specific favorite defined in the Application Insights component\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n favoriteId: string,\n options?: FavoritesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, favoriteId, options },\n deleteOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ApplicationInsightsComponentFavorite\",\n },\n },\n },\n },\n },\n },\n queryParameters: [\n Parameters.apiVersion1,\n Parameters.favoriteType,\n Parameters.sourceType,\n Parameters.canFetchContent,\n Parameters.tags,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentFavorite,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.favoriteId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst addOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentFavorite,\n },\n },\n requestBody: Parameters.favoriteProperties,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.favoriteId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentFavorite,\n },\n },\n requestBody: Parameters.favoriteProperties,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.favoriteId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}\",\n httpMethod: \"DELETE\",\n responses: { 200: {} },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.favoriteId,\n ],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"favorites.js","sourceRoot":"","sources":["../../../src/operations/favorites.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,6CAA6C;AAC7C,MAAa,aAAa;IACP,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,IAAI,CACF,iBAAyB,EACzB,YAAoB,EACpB,OAAqC;QAErC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,EAC5C,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,UAAkB,EAClB,OAAoC;QAEpC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,EACxD,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;;;OAQG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,UAAkB,EAClB,kBAAwD,EACxD,OAAoC;QAEpC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,YAAY;YACZ,UAAU;YACV,kBAAkB;YAClB,OAAO;SACR,EACD,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAyB,EACzB,YAAoB,EACpB,UAAkB,EAClB,kBAAwD,EACxD,OAAuC;QAEvC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBA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AC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,kJAAkJ;IACxJ,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;IACtB,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,UAAU;KACtB;IACD,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Favorites } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ApplicationInsightsManagementClient } from \"../applicationInsightsManagementClient.js\";\nimport {\n FavoritesListOptionalParams,\n FavoritesListResponse,\n FavoritesGetOptionalParams,\n FavoritesGetResponse,\n ApplicationInsightsComponentFavorite,\n FavoritesAddOptionalParams,\n FavoritesAddResponse,\n FavoritesUpdateOptionalParams,\n FavoritesUpdateResponse,\n FavoritesDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing Favorites operations. */\nexport class FavoritesImpl implements Favorites {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class Favorites class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a list of favorites defined within an Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n resourceName: string,\n options?: FavoritesListOptionalParams,\n ): Promise<FavoritesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Get a single favorite by its FavoriteId, defined within an Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param favoriteId The Id of a specific favorite defined in the Application Insights component\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n favoriteId: string,\n options?: FavoritesGetOptionalParams,\n ): Promise<FavoritesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, favoriteId, options },\n getOperationSpec,\n );\n }\n\n /**\n * Adds a new favorites to an Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param favoriteId The Id of a specific favorite defined in the Application Insights component\n * @param favoriteProperties Properties that need to be specified to create a new favorite and add it\n * to an Application Insights component.\n * @param options The options parameters.\n */\n add(\n resourceGroupName: string,\n resourceName: string,\n favoriteId: string,\n favoriteProperties: ApplicationInsightsComponentFavorite,\n options?: FavoritesAddOptionalParams,\n ): Promise<FavoritesAddResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n favoriteId,\n favoriteProperties,\n options,\n },\n addOperationSpec,\n );\n }\n\n /**\n * Updates a favorite that has already been added to an Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param favoriteId The Id of a specific favorite defined in the Application Insights component\n * @param favoriteProperties Properties that need to be specified to update the existing favorite.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n favoriteId: string,\n favoriteProperties: ApplicationInsightsComponentFavorite,\n options?: FavoritesUpdateOptionalParams,\n ): Promise<FavoritesUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n favoriteId,\n favoriteProperties,\n options,\n },\n updateOperationSpec,\n );\n }\n\n /**\n * Remove a favorite that is associated to an Application Insights component.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Application Insights component resource.\n * @param favoriteId The Id of a specific favorite defined in the Application Insights component\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n favoriteId: string,\n options?: FavoritesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, favoriteId, options },\n deleteOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ApplicationInsightsComponentFavorite\",\n },\n },\n },\n },\n },\n },\n queryParameters: [\n Parameters.apiVersion1,\n Parameters.favoriteType,\n Parameters.sourceType,\n Parameters.canFetchContent,\n Parameters.tags,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentFavorite,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.favoriteId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst addOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentFavorite,\n },\n },\n requestBody: Parameters.favoriteProperties,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.favoriteId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentFavorite,\n },\n },\n requestBody: Parameters.favoriteProperties,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.favoriteId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}\",\n httpMethod: \"DELETE\",\n responses: { 200: {} },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.favoriteId,\n ],\n serializer,\n};\n"]}
|
|
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
|
14
14
|
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
15
|
/** Class containing LiveToken operations. */
|
|
16
16
|
class LiveTokenImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class LiveToken class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"liveToken.js","sourceRoot":"","sources":["../../../src/operations/liveToken.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAItD,6CAA6C;AAC7C,MAAa,aAAa;
|
|
1
|
+
{"version":3,"file":"liveToken.js","sourceRoot":"","sources":["../../../src/operations/liveToken.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAItD,6CAA6C;AAC7C,MAAa,aAAa;IACP,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,GAAG,CACD,WAAmB,EACnB,OAAoC;QAEpC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,WAAW,EAAE,OAAO,EAAE,EACxB,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AAzBD,sCAyBC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,+DAA+D;IACrE,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC;IACzD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { LiveToken } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ApplicationInsightsManagementClient } from \"../applicationInsightsManagementClient.js\";\nimport { LiveTokenGetOptionalParams, LiveTokenGetResponse } from \"../models/index.js\";\n\n/** Class containing LiveToken operations. */\nexport class LiveTokenImpl implements LiveToken {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class LiveToken class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * **Gets an access token for live metrics stream data.**\n * @param resourceUri The identifier of the resource.\n * @param options The options parameters.\n */\n get(\n resourceUri: string,\n options?: LiveTokenGetOptionalParams,\n ): Promise<LiveTokenGetResponse> {\n return this.client.sendOperationRequest(\n { resourceUri, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/{resourceUri}/providers/Microsoft.Insights/generatelivetoken\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.LiveTokenResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseLinkedStorage,\n },\n },\n queryParameters: [Parameters.apiVersion6],\n urlParameters: [Parameters.$host, Parameters.resourceUri],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|