@azure/arm-appinsights 5.0.0-alpha.20250618.1 → 5.0.0-alpha.20250718.2
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
|
@@ -15,6 +15,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
|
16
16
|
/** Class containing APIKeys operations. */
|
|
17
17
|
class APIKeysImpl {
|
|
18
|
+
client;
|
|
18
19
|
/**
|
|
19
20
|
* Initialize a new instance of the class APIKeys class.
|
|
20
21
|
* @param client Reference to the service client
|
|
@@ -38,39 +39,22 @@ class APIKeysImpl {
|
|
|
38
39
|
return this;
|
|
39
40
|
},
|
|
40
41
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
42
|
+
if (settings?.maxPageSize) {
|
|
42
43
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
44
|
}
|
|
44
45
|
return this.listPagingPage(resourceGroupName, resourceName, options, settings);
|
|
45
46
|
},
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
|
-
listPagingPage(resourceGroupName, resourceName, options, _settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
yield yield tslib_1.__await(result.value || []);
|
|
53
|
-
});
|
|
49
|
+
async *listPagingPage(resourceGroupName, resourceName, options, _settings) {
|
|
50
|
+
let result;
|
|
51
|
+
result = await this._list(resourceGroupName, resourceName, options);
|
|
52
|
+
yield result.value || [];
|
|
54
53
|
}
|
|
55
|
-
listPagingAll(resourceGroupName, resourceName, options) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, resourceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
60
|
-
_c = _f.value;
|
|
61
|
-
_d = false;
|
|
62
|
-
const page = _c;
|
|
63
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
67
|
-
finally {
|
|
68
|
-
try {
|
|
69
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
70
|
-
}
|
|
71
|
-
finally { if (e_1) throw e_1.error; }
|
|
72
|
-
}
|
|
73
|
-
});
|
|
54
|
+
async *listPagingAll(resourceGroupName, resourceName, options) {
|
|
55
|
+
for await (const page of this.listPagingPage(resourceGroupName, resourceName, options)) {
|
|
56
|
+
yield* page;
|
|
57
|
+
}
|
|
74
58
|
}
|
|
75
59
|
/**
|
|
76
60
|
* Gets a list of API keys of an Application Insights component.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aPIKeys.js","sourceRoot":"","sources":["../../../src/operations/aPIKeys.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,2CAA2C;AAC3C,MAAa,WAAW;IAGtB;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,YAAoB,EACpB,OAAmC;QAEnC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;QAC1E,OAAO;YACL,IAAI;gBACF,OAAO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,CAAC,YAAY;QACvB,UAAU,CAAC,KAAK;KACjB;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 { APIKeys } 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 ApplicationInsightsComponentAPIKey,\n APIKeysListOptionalParams,\n APIKeysListResponse,\n APIKeyRequest,\n APIKeysCreateOptionalParams,\n APIKeysCreateResponse,\n APIKeysDeleteOptionalParams,\n APIKeysDeleteResponse,\n APIKeysGetOptionalParams,\n APIKeysGetResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing APIKeys operations. */\nexport class APIKeysImpl implements APIKeys {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class APIKeys 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 API keys 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 public list(\n resourceGroupName: string,\n resourceName: string,\n options?: APIKeysListOptionalParams,\n ): PagedAsyncIterableIterator<ApplicationInsightsComponentAPIKey> {\n const iter = this.listPagingAll(resourceGroupName, resourceName, 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(\n resourceGroupName,\n resourceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n resourceName: string,\n options?: APIKeysListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<ApplicationInsightsComponentAPIKey[]> {\n let result: APIKeysListResponse;\n result = await this._list(resourceGroupName, resourceName, options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n resourceName: string,\n options?: APIKeysListOptionalParams,\n ): AsyncIterableIterator<ApplicationInsightsComponentAPIKey> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n resourceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of API keys 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 private _list(\n resourceGroupName: string,\n resourceName: string,\n options?: APIKeysListOptionalParams,\n ): Promise<APIKeysListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Create an API Key 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 aPIKeyProperties Properties that need to be specified to create an API key of a Application\n * Insights component.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n resourceName: string,\n aPIKeyProperties: APIKeyRequest,\n options?: APIKeysCreateOptionalParams,\n ): Promise<APIKeysCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, aPIKeyProperties, options },\n createOperationSpec,\n );\n }\n\n /**\n * Delete an API Key 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 keyId The API Key ID. This is unique within a Application Insights component.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n keyId: string,\n options?: APIKeysDeleteOptionalParams,\n ): Promise<APIKeysDeleteResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, keyId, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Get the API Key for this key 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 keyId The API Key ID. This is unique within a Application Insights component.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n keyId: string,\n options?: APIKeysGetOptionalParams,\n ): Promise<APIKeysGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, keyId, options },\n getOperationSpec,\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}/ApiKeys\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAPIKeyListResult,\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}/ApiKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAPIKey,\n },\n },\n requestBody: Parameters.aPIKeyProperties,\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}/APIKeys/{keyId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAPIKey,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.keyId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/APIKeys/{keyId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAPIKey,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.keyId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"aPIKeys.js","sourceRoot":"","sources":["../../../src/operations/aPIKeys.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,2CAA2C;AAC3C,MAAa,WAAW;IACL,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,YAAoB,EACpB,OAAmC;QAEnC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;QAC1E,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,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,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;KACxB;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,2IAA2I;IACjJ,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kCAAkC;SACvD;KACF;IACD,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,KAAK;KACjB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,2IAA2I;IACjJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kCAAkC;SACvD;KACF;IACD,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,KAAK;KACjB;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 { APIKeys } 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 ApplicationInsightsComponentAPIKey,\n APIKeysListOptionalParams,\n APIKeysListResponse,\n APIKeyRequest,\n APIKeysCreateOptionalParams,\n APIKeysCreateResponse,\n APIKeysDeleteOptionalParams,\n APIKeysDeleteResponse,\n APIKeysGetOptionalParams,\n APIKeysGetResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing APIKeys operations. */\nexport class APIKeysImpl implements APIKeys {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class APIKeys 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 API keys 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 public list(\n resourceGroupName: string,\n resourceName: string,\n options?: APIKeysListOptionalParams,\n ): PagedAsyncIterableIterator<ApplicationInsightsComponentAPIKey> {\n const iter = this.listPagingAll(resourceGroupName, resourceName, 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(\n resourceGroupName,\n resourceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n resourceName: string,\n options?: APIKeysListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<ApplicationInsightsComponentAPIKey[]> {\n let result: APIKeysListResponse;\n result = await this._list(resourceGroupName, resourceName, options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n resourceName: string,\n options?: APIKeysListOptionalParams,\n ): AsyncIterableIterator<ApplicationInsightsComponentAPIKey> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n resourceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a list of API keys 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 private _list(\n resourceGroupName: string,\n resourceName: string,\n options?: APIKeysListOptionalParams,\n ): Promise<APIKeysListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Create an API Key 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 aPIKeyProperties Properties that need to be specified to create an API key of a Application\n * Insights component.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n resourceName: string,\n aPIKeyProperties: APIKeyRequest,\n options?: APIKeysCreateOptionalParams,\n ): Promise<APIKeysCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, aPIKeyProperties, options },\n createOperationSpec,\n );\n }\n\n /**\n * Delete an API Key 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 keyId The API Key ID. This is unique within a Application Insights component.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n keyId: string,\n options?: APIKeysDeleteOptionalParams,\n ): Promise<APIKeysDeleteResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, keyId, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Get the API Key for this key 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 keyId The API Key ID. This is unique within a Application Insights component.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n keyId: string,\n options?: APIKeysGetOptionalParams,\n ): Promise<APIKeysGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, keyId, options },\n getOperationSpec,\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}/ApiKeys\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAPIKeyListResult,\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}/ApiKeys\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAPIKey,\n },\n },\n requestBody: Parameters.aPIKeyProperties,\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}/APIKeys/{keyId}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAPIKey,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.keyId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/APIKeys/{keyId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAPIKey,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.keyId,\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 AnalyticsItems operations. */
|
|
16
16
|
class AnalyticsItemsImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class AnalyticsItems class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analyticsItems.js","sourceRoot":"","sources":["../../../src/operations/analyticsItems.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AActD,kDAAkD;AAClD,MAAa,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,iBAAyB,EACzB,YAAoB,EACpB,SAAwB,EACxB,OAA0C;QAE1C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,EACvD,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,SAAwB,EACxB,OAAyC;QAEzC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAA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,EAAE,GAAG,EAAE,EAAE,EAAE;IACtB,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,EAAE,UAAU,CAAC,IAAI,CAAC;IACzE,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,SAAS;KACrB;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 { AnalyticsItems } 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 ItemScopePath,\n AnalyticsItemsListOptionalParams,\n AnalyticsItemsListResponse,\n AnalyticsItemsGetOptionalParams,\n AnalyticsItemsGetResponse,\n ApplicationInsightsComponentAnalyticsItem,\n AnalyticsItemsPutOptionalParams,\n AnalyticsItemsPutResponse,\n AnalyticsItemsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing AnalyticsItems operations. */\nexport class AnalyticsItemsImpl implements AnalyticsItems {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class AnalyticsItems 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 Analytics Items 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 scopePath Enum indicating if this item definition is owned by a specific user or is shared\n * between all users with access to the Application Insights component.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n resourceName: string,\n scopePath: ItemScopePath,\n options?: AnalyticsItemsListOptionalParams,\n ): Promise<AnalyticsItemsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, scopePath, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets a specific Analytics Items 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 scopePath Enum indicating if this item definition is owned by a specific user or is shared\n * between all users with access to the Application Insights component.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n scopePath: ItemScopePath,\n options?: AnalyticsItemsGetOptionalParams,\n ): Promise<AnalyticsItemsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, scopePath, options },\n getOperationSpec,\n );\n }\n\n /**\n * Adds or Updates a specific Analytics Item 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 scopePath Enum indicating if this item definition is owned by a specific user or is shared\n * between all users with access to the Application Insights component.\n * @param itemProperties Properties that need to be specified to create a new item and add it to an\n * Application Insights component.\n * @param options The options parameters.\n */\n put(\n resourceGroupName: string,\n resourceName: string,\n scopePath: ItemScopePath,\n itemProperties: ApplicationInsightsComponentAnalyticsItem,\n options?: AnalyticsItemsPutOptionalParams,\n ): Promise<AnalyticsItemsPutResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, scopePath, itemProperties, options },\n putOperationSpec,\n );\n }\n\n /**\n * Deletes a specific Analytics Items 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 scopePath Enum indicating if this item definition is owned by a specific user or is shared\n * between all users with access to the Application Insights component.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n scopePath: ItemScopePath,\n options?: AnalyticsItemsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, scopePath, 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}/{scopePath}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ApplicationInsightsComponentAnalyticsItem\",\n },\n },\n },\n },\n },\n },\n queryParameters: [\n Parameters.apiVersion1,\n Parameters.scope,\n Parameters.typeParam,\n Parameters.includeContent,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.scopePath,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAnalyticsItem,\n },\n },\n queryParameters: [Parameters.apiVersion1, Parameters.id, Parameters.name],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.scopePath,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst putOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAnalyticsItem,\n },\n },\n requestBody: Parameters.itemProperties,\n queryParameters: [Parameters.apiVersion1, Parameters.overrideItem],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.scopePath,\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}/{scopePath}/item\",\n httpMethod: \"DELETE\",\n responses: { 200: {} },\n queryParameters: [Parameters.apiVersion1, Parameters.id, Parameters.name],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.scopePath,\n ],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"analyticsItems.js","sourceRoot":"","sources":["../../../src/operations/analyticsItems.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AActD,kDAAkD;AAClD,MAAa,kBAAkB;IACZ,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,iBAAyB,EACzB,YAAoB,EACpB,SAAwB,EACxB,OAA0C;QAE1C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,EACvD,iBAAiB,CAClB,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,SAAwB,EACxB,OAAyC;QAEzC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,EACvD,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,SAAwB,EACxB,cAAyD,EACzD,OAAyC;QAEzC,OAAO,IAAI,CAAC,MAAM,CAAC,o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AAY;QACvB,UAAU,CAAC,SAAS;KACrB;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 { AnalyticsItems } 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 ItemScopePath,\n AnalyticsItemsListOptionalParams,\n AnalyticsItemsListResponse,\n AnalyticsItemsGetOptionalParams,\n AnalyticsItemsGetResponse,\n ApplicationInsightsComponentAnalyticsItem,\n AnalyticsItemsPutOptionalParams,\n AnalyticsItemsPutResponse,\n AnalyticsItemsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing AnalyticsItems operations. */\nexport class AnalyticsItemsImpl implements AnalyticsItems {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class AnalyticsItems 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 Analytics Items 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 scopePath Enum indicating if this item definition is owned by a specific user or is shared\n * between all users with access to the Application Insights component.\n * @param options The options parameters.\n */\n list(\n resourceGroupName: string,\n resourceName: string,\n scopePath: ItemScopePath,\n options?: AnalyticsItemsListOptionalParams,\n ): Promise<AnalyticsItemsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, scopePath, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets a specific Analytics Items 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 scopePath Enum indicating if this item definition is owned by a specific user or is shared\n * between all users with access to the Application Insights component.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n scopePath: ItemScopePath,\n options?: AnalyticsItemsGetOptionalParams,\n ): Promise<AnalyticsItemsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, scopePath, options },\n getOperationSpec,\n );\n }\n\n /**\n * Adds or Updates a specific Analytics Item 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 scopePath Enum indicating if this item definition is owned by a specific user or is shared\n * between all users with access to the Application Insights component.\n * @param itemProperties Properties that need to be specified to create a new item and add it to an\n * Application Insights component.\n * @param options The options parameters.\n */\n put(\n resourceGroupName: string,\n resourceName: string,\n scopePath: ItemScopePath,\n itemProperties: ApplicationInsightsComponentAnalyticsItem,\n options?: AnalyticsItemsPutOptionalParams,\n ): Promise<AnalyticsItemsPutResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, scopePath, itemProperties, options },\n putOperationSpec,\n );\n }\n\n /**\n * Deletes a specific Analytics Items 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 scopePath Enum indicating if this item definition is owned by a specific user or is shared\n * between all users with access to the Application Insights component.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n scopePath: ItemScopePath,\n options?: AnalyticsItemsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, scopePath, 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}/{scopePath}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"ApplicationInsightsComponentAnalyticsItem\",\n },\n },\n },\n },\n },\n },\n queryParameters: [\n Parameters.apiVersion1,\n Parameters.scope,\n Parameters.typeParam,\n Parameters.includeContent,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.scopePath,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAnalyticsItem,\n },\n },\n queryParameters: [Parameters.apiVersion1, Parameters.id, Parameters.name],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.scopePath,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst putOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAnalyticsItem,\n },\n },\n requestBody: Parameters.itemProperties,\n queryParameters: [Parameters.apiVersion1, Parameters.overrideItem],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.scopePath,\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}/{scopePath}/item\",\n httpMethod: \"DELETE\",\n responses: { 200: {} },\n queryParameters: [Parameters.apiVersion1, Parameters.id, Parameters.name],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.scopePath,\n ],\n serializer,\n};\n"]}
|
|
@@ -15,6 +15,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
|
16
16
|
/** Class containing Annotations operations. */
|
|
17
17
|
class AnnotationsImpl {
|
|
18
|
+
client;
|
|
18
19
|
/**
|
|
19
20
|
* Initialize a new instance of the class Annotations class.
|
|
20
21
|
* @param client Reference to the service client
|
|
@@ -41,39 +42,22 @@ class AnnotationsImpl {
|
|
|
41
42
|
return this;
|
|
42
43
|
},
|
|
43
44
|
byPage: (settings) => {
|
|
44
|
-
if (settings
|
|
45
|
+
if (settings?.maxPageSize) {
|
|
45
46
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
46
47
|
}
|
|
47
48
|
return this.listPagingPage(resourceGroupName, resourceName, start, end, options, settings);
|
|
48
49
|
},
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
|
-
listPagingPage(resourceGroupName, resourceName, start, end, options, _settings) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
yield yield tslib_1.__await(result.value || []);
|
|
56
|
-
});
|
|
52
|
+
async *listPagingPage(resourceGroupName, resourceName, start, end, options, _settings) {
|
|
53
|
+
let result;
|
|
54
|
+
result = await this._list(resourceGroupName, resourceName, start, end, options);
|
|
55
|
+
yield result.value || [];
|
|
57
56
|
}
|
|
58
|
-
listPagingAll(resourceGroupName, resourceName, start, end, options) {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, resourceName, start, end, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
63
|
-
_c = _f.value;
|
|
64
|
-
_d = false;
|
|
65
|
-
const page = _c;
|
|
66
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
70
|
-
finally {
|
|
71
|
-
try {
|
|
72
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
73
|
-
}
|
|
74
|
-
finally { if (e_1) throw e_1.error; }
|
|
75
|
-
}
|
|
76
|
-
});
|
|
57
|
+
async *listPagingAll(resourceGroupName, resourceName, start, end, options) {
|
|
58
|
+
for await (const page of this.listPagingPage(resourceGroupName, resourceName, start, end, options)) {
|
|
59
|
+
yield* page;
|
|
60
|
+
}
|
|
77
61
|
}
|
|
78
62
|
/**
|
|
79
63
|
* Gets the list of annotations for a component for given time range
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotations.js","sourceRoot":"","sources":["../../../src/operations/annotations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAatD,4CAA4C;AAC5C,+CAA+C;AAC/C,MAAa,eAAe;IAG1B;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAyB,EACzB,YAAoB,EACpB,KAAa,EACb,GAAW,EACX,OAAuC;QAEvC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,YAAY,EACZ,KAAK,EACL,GAAG,EACH,OAAO,CACR,CAAC;QACF,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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E;gBACV,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE;iBAClE;aACF;SACF;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;KACF;IACD,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,YAAY;KACxB;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 { Annotations } 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 Annotation,\n AnnotationsListOptionalParams,\n AnnotationsListResponse,\n AnnotationsCreateOptionalParams,\n AnnotationsCreateResponse,\n AnnotationsDeleteOptionalParams,\n AnnotationsGetOptionalParams,\n AnnotationsGetResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Annotations operations. */\nexport class AnnotationsImpl implements Annotations {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class Annotations class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the list of annotations for a component for given time range\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 start The start time to query from for annotations, cannot be older than 90 days from current\n * date.\n * @param end The end time to query for annotations.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n resourceName: string,\n start: string,\n end: string,\n options?: AnnotationsListOptionalParams,\n ): PagedAsyncIterableIterator<Annotation> {\n const iter = this.listPagingAll(\n resourceGroupName,\n resourceName,\n start,\n end,\n options,\n );\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(\n resourceGroupName,\n resourceName,\n start,\n end,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n resourceName: string,\n start: string,\n end: string,\n options?: AnnotationsListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<Annotation[]> {\n let result: AnnotationsListResponse;\n result = await this._list(\n resourceGroupName,\n resourceName,\n start,\n end,\n options,\n );\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n resourceName: string,\n start: string,\n end: string,\n options?: AnnotationsListOptionalParams,\n ): AsyncIterableIterator<Annotation> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n resourceName,\n start,\n end,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of annotations for a component for given time range\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 start The start time to query from for annotations, cannot be older than 90 days from current\n * date.\n * @param end The end time to query for annotations.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n resourceName: string,\n start: string,\n end: string,\n options?: AnnotationsListOptionalParams,\n ): Promise<AnnotationsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, start, end, options },\n listOperationSpec,\n );\n }\n\n /**\n * Create an Annotation 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 annotationProperties Properties that need to be specified to create an annotation of a\n * Application Insights component.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n resourceName: string,\n annotationProperties: Annotation,\n options?: AnnotationsCreateOptionalParams,\n ): Promise<AnnotationsCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, annotationProperties, options },\n createOperationSpec,\n );\n }\n\n /**\n * Delete an Annotation 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 annotationId The unique annotation 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 annotationId: string,\n options?: AnnotationsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, annotationId, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Get the annotation for given 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 annotationId The unique annotation 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 annotationId: string,\n options?: AnnotationsGetOptionalParams,\n ): Promise<AnnotationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, annotationId, options },\n getOperationSpec,\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}/Annotations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AnnotationsListResult,\n },\n default: {\n bodyMapper: Mappers.AnnotationError,\n },\n },\n queryParameters: [Parameters.apiVersion1, Parameters.start, Parameters.end],\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}/Annotations\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"Annotation\" } },\n },\n },\n },\n default: {\n bodyMapper: Mappers.AnnotationError,\n },\n },\n requestBody: Parameters.annotationProperties,\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}/Annotations/{annotationId}\",\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.annotationId,\n ],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations/{annotationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"Annotation\" } },\n },\n },\n },\n default: {\n bodyMapper: Mappers.AnnotationError,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.annotationId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"annotations.js","sourceRoot":"","sources":["../../../src/operations/annotations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAatD,4CAA4C;AAC5C,+CAA+C;AAC/C,MAAa,eAAe;IACT,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAyB,EACzB,YAAoB,EACpB,KAAa,EACb,GAAW,EACX,OAAuC;QAEvC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,iBAAiB,EACjB,YAAY,EACZ,KAAK,EACL,GAAG,EACH,OAAO,CACR,CAAC;QACF,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,cAAc,CACxB,iBAAiB,EACjB,YAAY,EACZ,KAAK,EACL,GAAG,EACH,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,iBAAyB,EACzB,YAAoB,EACpB,KAAa,EACb,GAAW,EACX,OAAuC,EACvC,SAAwB;QAExB,IAAI,MAA+B,CAAC;QACpC,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CACvB,iBAAiB,EACjB,YAAY,EACZ,KAAK,EACL,GAAG,EACH,OAAO,CACR,CAAC;QACF,MAAM,MAAM,CAAC,KAAK,IAAI,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,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,sJAAsJ;IAC5J,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,YAAY;KACxB;IACD,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,sJAAsJ;IAC5J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE;gBACV,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE;iBAClE;aACF;SACF;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;KACF;IACD,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,YAAY;KACxB;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 { Annotations } 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 Annotation,\n AnnotationsListOptionalParams,\n AnnotationsListResponse,\n AnnotationsCreateOptionalParams,\n AnnotationsCreateResponse,\n AnnotationsDeleteOptionalParams,\n AnnotationsGetOptionalParams,\n AnnotationsGetResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Annotations operations. */\nexport class AnnotationsImpl implements Annotations {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class Annotations class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the list of annotations for a component for given time range\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 start The start time to query from for annotations, cannot be older than 90 days from current\n * date.\n * @param end The end time to query for annotations.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n resourceName: string,\n start: string,\n end: string,\n options?: AnnotationsListOptionalParams,\n ): PagedAsyncIterableIterator<Annotation> {\n const iter = this.listPagingAll(\n resourceGroupName,\n resourceName,\n start,\n end,\n options,\n );\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(\n resourceGroupName,\n resourceName,\n start,\n end,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n resourceName: string,\n start: string,\n end: string,\n options?: AnnotationsListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<Annotation[]> {\n let result: AnnotationsListResponse;\n result = await this._list(\n resourceGroupName,\n resourceName,\n start,\n end,\n options,\n );\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n resourceName: string,\n start: string,\n end: string,\n options?: AnnotationsListOptionalParams,\n ): AsyncIterableIterator<Annotation> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n resourceName,\n start,\n end,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the list of annotations for a component for given time range\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 start The start time to query from for annotations, cannot be older than 90 days from current\n * date.\n * @param end The end time to query for annotations.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n resourceName: string,\n start: string,\n end: string,\n options?: AnnotationsListOptionalParams,\n ): Promise<AnnotationsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, start, end, options },\n listOperationSpec,\n );\n }\n\n /**\n * Create an Annotation 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 annotationProperties Properties that need to be specified to create an annotation of a\n * Application Insights component.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n resourceName: string,\n annotationProperties: Annotation,\n options?: AnnotationsCreateOptionalParams,\n ): Promise<AnnotationsCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, annotationProperties, options },\n createOperationSpec,\n );\n }\n\n /**\n * Delete an Annotation 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 annotationId The unique annotation 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 annotationId: string,\n options?: AnnotationsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, annotationId, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Get the annotation for given 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 annotationId The unique annotation 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 annotationId: string,\n options?: AnnotationsGetOptionalParams,\n ): Promise<AnnotationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, annotationId, options },\n getOperationSpec,\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}/Annotations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AnnotationsListResult,\n },\n default: {\n bodyMapper: Mappers.AnnotationError,\n },\n },\n queryParameters: [Parameters.apiVersion1, Parameters.start, Parameters.end],\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}/Annotations\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"Annotation\" } },\n },\n },\n },\n default: {\n bodyMapper: Mappers.AnnotationError,\n },\n },\n requestBody: Parameters.annotationProperties,\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}/Annotations/{annotationId}\",\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.annotationId,\n ],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations/{annotationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: {\n type: {\n name: \"Sequence\",\n element: { type: { name: \"Composite\", className: \"Annotation\" } },\n },\n },\n },\n default: {\n bodyMapper: Mappers.AnnotationError,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.annotationId,\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 ComponentAvailableFeatures operations. */
|
|
16
16
|
class ComponentAvailableFeaturesImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class ComponentAvailableFeatures class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"componentAvailableFeatures.js","sourceRoot":"","sources":["../../../src/operations/componentAvailableFeatures.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,8DAA8D;AAC9D,MAAa,8BAA8B;
|
|
1
|
+
{"version":3,"file":"componentAvailableFeatures.js","sourceRoot":"","sources":["../../../src/operations/componentAvailableFeatures.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,8DAA8D;AAC9D,MAAa,8BAA8B;IAGxB,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,OAAqD;QAErD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,EAC5C,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AA7BD,wEA6BC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,uJAAuJ;IAC7J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6CAA6C;SAClE;KACF;IACD,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;KACxB;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 { ComponentAvailableFeatures } 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 ComponentAvailableFeaturesGetOptionalParams,\n ComponentAvailableFeaturesGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing ComponentAvailableFeatures operations. */\nexport class ComponentAvailableFeaturesImpl\n implements ComponentAvailableFeatures\n{\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class ComponentAvailableFeatures class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns all available features of the 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?: ComponentAvailableFeaturesGetOptionalParams,\n ): Promise<ComponentAvailableFeaturesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/getavailablebillingfeatures\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentAvailableFeatures,\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};\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 ComponentCurrentBillingFeatures operations. */
|
|
16
16
|
class ComponentCurrentBillingFeaturesImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class ComponentCurrentBillingFeatures class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"componentCurrentBillingFeatures.js","sourceRoot":"","sources":["../../../src/operations/componentCurrentBillingFeatures.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,mEAAmE;AACnE,MAAa,mCAAmC;
|
|
1
|
+
{"version":3,"file":"componentCurrentBillingFeatures.js","sourceRoot":"","sources":["../../../src/operations/componentCurrentBillingFeatures.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,mEAAmE;AACnE,MAAa,mCAAmC;IAG7B,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,OAA0D;QAE1D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,EAC5C,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CACJ,iBAAyB,EACzB,YAAoB,EACpB,yBAAsE,EACtE,OAA6D;QAE7D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,yBAAyB,EAAE,OAAO,EAAE,EACvE,mBAAmB,CACpB,CAAC;IACJ,CAAC;CACF;AAjDD,kFAiDC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,kJAAkJ;IACxJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2CAA2C;SAChE;KACF;IACD,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;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,kJAAkJ;IACxJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2CAA2C;SAChE;KACF;IACD,WAAW,EAAE,UAAU,CAAC,yBAAyB;IACjD,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;KACxB;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 { ComponentCurrentBillingFeatures } 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 ComponentCurrentBillingFeaturesGetOptionalParams,\n ComponentCurrentBillingFeaturesGetResponse,\n ApplicationInsightsComponentBillingFeatures,\n ComponentCurrentBillingFeaturesUpdateOptionalParams,\n ComponentCurrentBillingFeaturesUpdateResponse,\n} from \"../models/index.js\";\n\n/** Class containing ComponentCurrentBillingFeatures operations. */\nexport class ComponentCurrentBillingFeaturesImpl\n implements ComponentCurrentBillingFeatures\n{\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class ComponentCurrentBillingFeatures class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns current billing features for 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?: ComponentCurrentBillingFeaturesGetOptionalParams,\n ): Promise<ComponentCurrentBillingFeaturesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Update current billing features for 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 billingFeaturesProperties Properties that need to be specified to update billing features for\n * an Application Insights component.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n billingFeaturesProperties: ApplicationInsightsComponentBillingFeatures,\n options?: ComponentCurrentBillingFeaturesUpdateOptionalParams,\n ): Promise<ComponentCurrentBillingFeaturesUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, billingFeaturesProperties, options },\n updateOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/currentbillingfeatures\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentBillingFeatures,\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 updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/currentbillingfeatures\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentBillingFeatures,\n },\n },\n requestBody: Parameters.billingFeaturesProperties,\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};\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 ComponentFeatureCapabilities operations. */
|
|
16
16
|
class ComponentFeatureCapabilitiesImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class ComponentFeatureCapabilities class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"componentFeatureCapabilities.js","sourceRoot":"","sources":["../../../src/operations/componentFeatureCapabilities.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,gEAAgE;AAChE,MAAa,gCAAgC;
|
|
1
|
+
{"version":3,"file":"componentFeatureCapabilities.js","sourceRoot":"","sources":["../../../src/operations/componentFeatureCapabilities.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,gEAAgE;AAChE,MAAa,gCAAgC;IAG1B,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,OAAuD;QAEvD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,EAC5C,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AA7BD,4EA6BC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,+IAA+I;IACrJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+CAA+C;SACpE;KACF;IACD,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;KACxB;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 { ComponentFeatureCapabilities } 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 ComponentFeatureCapabilitiesGetOptionalParams,\n ComponentFeatureCapabilitiesGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing ComponentFeatureCapabilities operations. */\nexport class ComponentFeatureCapabilitiesImpl\n implements ComponentFeatureCapabilities\n{\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class ComponentFeatureCapabilities class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns feature capabilities of the 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?: ComponentFeatureCapabilitiesGetOptionalParams,\n ): Promise<ComponentFeatureCapabilitiesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/featurecapabilities\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentFeatureCapabilities,\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};\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 ComponentLinkedStorageAccountsOperations operations. */
|
|
16
16
|
class ComponentLinkedStorageAccountsOperationsImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class ComponentLinkedStorageAccountsOperations class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"componentLinkedStorageAccountsOperations.js","sourceRoot":"","sources":["../../../src/operations/componentLinkedStorageAccountsOperations.ts"],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T,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,WAAW,EAAE,UAAU,CAAC,gCAAgC;IACxD,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,WAAW;KACvB;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,+JAA+J;IACrK,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,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,WAAW;KACvB;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 { ComponentLinkedStorageAccountsOperations } 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 StorageType,\n ComponentLinkedStorageAccountsGetOptionalParams,\n ComponentLinkedStorageAccountsGetResponse,\n ComponentLinkedStorageAccounts,\n ComponentLinkedStorageAccountsCreateAndUpdateOptionalParams,\n ComponentLinkedStorageAccountsCreateAndUpdateResponse,\n ComponentLinkedStorageAccountsPatch,\n ComponentLinkedStorageAccountsUpdateOptionalParams,\n ComponentLinkedStorageAccountsUpdateResponse,\n ComponentLinkedStorageAccountsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing ComponentLinkedStorageAccountsOperations operations. */\nexport class ComponentLinkedStorageAccountsOperationsImpl\n implements ComponentLinkedStorageAccountsOperations\n{\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class ComponentLinkedStorageAccountsOperations class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns the current linked storage settings for 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 storageType The type of the Application Insights component data source for the linked storage\n * account.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n storageType: StorageType,\n options?: ComponentLinkedStorageAccountsGetOptionalParams,\n ): Promise<ComponentLinkedStorageAccountsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, storageType, options },\n getOperationSpec,\n );\n }\n\n /**\n * Replace current linked storage account for 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 storageType The type of the Application Insights component data source for the linked storage\n * account.\n * @param linkedStorageAccountsProperties Properties that need to be specified to update linked storage\n * accounts for an Application Insights component.\n * @param options The options parameters.\n */\n createAndUpdate(\n resourceGroupName: string,\n resourceName: string,\n storageType: StorageType,\n linkedStorageAccountsProperties: ComponentLinkedStorageAccounts,\n options?: ComponentLinkedStorageAccountsCreateAndUpdateOptionalParams,\n ): Promise<ComponentLinkedStorageAccountsCreateAndUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n storageType,\n linkedStorageAccountsProperties,\n options,\n },\n createAndUpdateOperationSpec,\n );\n }\n\n /**\n * Update linked storage accounts for 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 storageType The type of the Application Insights component data source for the linked storage\n * account.\n * @param linkedStorageAccountsProperties Properties that need to be specified to update a linked\n * storage accounts for an Application Insights component.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n storageType: StorageType,\n linkedStorageAccountsProperties: ComponentLinkedStorageAccountsPatch,\n options?: ComponentLinkedStorageAccountsUpdateOptionalParams,\n ): Promise<ComponentLinkedStorageAccountsUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n storageType,\n linkedStorageAccountsProperties,\n options,\n },\n updateOperationSpec,\n );\n }\n\n /**\n * Delete linked storage accounts for 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 storageType The type of the Application Insights component data source for the linked storage\n * account.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n storageType: StorageType,\n options?: ComponentLinkedStorageAccountsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, storageType, options },\n deleteOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ComponentLinkedStorageAccounts,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseLinkedStorage,\n },\n },\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.storageType,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createAndUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ComponentLinkedStorageAccounts,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseLinkedStorage,\n },\n },\n requestBody: Parameters.linkedStorageAccountsProperties,\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.storageType,\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}/linkedStorageAccounts/{storageType}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ComponentLinkedStorageAccounts,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseLinkedStorage,\n },\n },\n requestBody: Parameters.linkedStorageAccountsProperties1,\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.storageType,\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}/linkedStorageAccounts/{storageType}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponseLinkedStorage,\n },\n },\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.storageType,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"componentLinkedStorageAccountsOperations.js","sourceRoot":"","sources":["../../../src/operations/componentLinkedStorageAccountsOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4EAA4E;AAC5E,MAAa,4CAA4C;IAGtC,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,WAAwB,EACxB,OAAyD;QAEzD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,WAAW,EAAE,OAAO,EAAE,EACzD,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACH,eAAe,CACb,iBAAyB,EACzB,YAAoB,EACpB,WAAwB,EACxB,+BAA+D,EAC/D,OAAqE;QAErE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,YAAY;YACZ,WAAW;YACX,+BAA+B;YAC/B,OAAO;SACR,EACD,4BAA4B,CAC7B,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,iBAAyB,EACzB,YAAoB,EACpB,WAAwB,EACxB,+BAAoE,EACpE,OAA4D;QAE5D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,YAAY;YACZ,WAAW;YACX,+BAA+B;YAC/B,OAAO;SACR,EACD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,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 { ComponentLinkedStorageAccountsOperations } 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 StorageType,\n ComponentLinkedStorageAccountsGetOptionalParams,\n ComponentLinkedStorageAccountsGetResponse,\n ComponentLinkedStorageAccounts,\n ComponentLinkedStorageAccountsCreateAndUpdateOptionalParams,\n ComponentLinkedStorageAccountsCreateAndUpdateResponse,\n ComponentLinkedStorageAccountsPatch,\n ComponentLinkedStorageAccountsUpdateOptionalParams,\n ComponentLinkedStorageAccountsUpdateResponse,\n ComponentLinkedStorageAccountsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing ComponentLinkedStorageAccountsOperations operations. */\nexport class ComponentLinkedStorageAccountsOperationsImpl\n implements ComponentLinkedStorageAccountsOperations\n{\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class ComponentLinkedStorageAccountsOperations class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns the current linked storage settings for 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 storageType The type of the Application Insights component data source for the linked storage\n * account.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n storageType: StorageType,\n options?: ComponentLinkedStorageAccountsGetOptionalParams,\n ): Promise<ComponentLinkedStorageAccountsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, storageType, options },\n getOperationSpec,\n );\n }\n\n /**\n * Replace current linked storage account for 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 storageType The type of the Application Insights component data source for the linked storage\n * account.\n * @param linkedStorageAccountsProperties Properties that need to be specified to update linked storage\n * accounts for an Application Insights component.\n * @param options The options parameters.\n */\n createAndUpdate(\n resourceGroupName: string,\n resourceName: string,\n storageType: StorageType,\n linkedStorageAccountsProperties: ComponentLinkedStorageAccounts,\n options?: ComponentLinkedStorageAccountsCreateAndUpdateOptionalParams,\n ): Promise<ComponentLinkedStorageAccountsCreateAndUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n storageType,\n linkedStorageAccountsProperties,\n options,\n },\n createAndUpdateOperationSpec,\n );\n }\n\n /**\n * Update linked storage accounts for 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 storageType The type of the Application Insights component data source for the linked storage\n * account.\n * @param linkedStorageAccountsProperties Properties that need to be specified to update a linked\n * storage accounts for an Application Insights component.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n storageType: StorageType,\n linkedStorageAccountsProperties: ComponentLinkedStorageAccountsPatch,\n options?: ComponentLinkedStorageAccountsUpdateOptionalParams,\n ): Promise<ComponentLinkedStorageAccountsUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n storageType,\n linkedStorageAccountsProperties,\n options,\n },\n updateOperationSpec,\n );\n }\n\n /**\n * Delete linked storage accounts for 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 storageType The type of the Application Insights component data source for the linked storage\n * account.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n storageType: StorageType,\n options?: ComponentLinkedStorageAccountsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, storageType, options },\n deleteOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ComponentLinkedStorageAccounts,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseLinkedStorage,\n },\n },\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.storageType,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createAndUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ComponentLinkedStorageAccounts,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseLinkedStorage,\n },\n },\n requestBody: Parameters.linkedStorageAccountsProperties,\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.storageType,\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}/linkedStorageAccounts/{storageType}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ComponentLinkedStorageAccounts,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseLinkedStorage,\n },\n },\n requestBody: Parameters.linkedStorageAccountsProperties1,\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.storageType,\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}/linkedStorageAccounts/{storageType}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponseLinkedStorage,\n },\n },\n queryParameters: [Parameters.apiVersion7],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.storageType,\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 ComponentQuotaStatus operations. */
|
|
16
16
|
class ComponentQuotaStatusImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class ComponentQuotaStatus class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"componentQuotaStatus.js","sourceRoot":"","sources":["../../../src/operations/componentQuotaStatus.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,wDAAwD;AACxD,MAAa,wBAAwB;
|
|
1
|
+
{"version":3,"file":"componentQuotaStatus.js","sourceRoot":"","sources":["../../../src/operations/componentQuotaStatus.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,wDAAwD;AACxD,MAAa,wBAAwB;IAClB,MAAM,CAAsC;IAE7D;;;OAGG;IACH,YAAY,MAA2C;QACrD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,OAA+C;QAE/C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,EAC5C,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AA3BD,4DA2BC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,uIAAuI;IAC7I,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uCAAuC;SAC5D;KACF;IACD,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;KACxB;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 { ComponentQuotaStatus } 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 ComponentQuotaStatusGetOptionalParams,\n ComponentQuotaStatusGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing ComponentQuotaStatus operations. */\nexport class ComponentQuotaStatusImpl implements ComponentQuotaStatus {\n private readonly client: ApplicationInsightsManagementClient;\n\n /**\n * Initialize a new instance of the class ComponentQuotaStatus class.\n * @param client Reference to the service client\n */\n constructor(client: ApplicationInsightsManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns daily data volume cap (quota) status for 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?: ComponentQuotaStatusGetOptionalParams,\n ): Promise<ComponentQuotaStatusGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/quotastatus\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ApplicationInsightsComponentQuotaStatus,\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};\n"]}
|