From ce5764e856bdedaab7ff86856a176075938532df Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Tue, 15 Sep 2020 02:20:47 +0000 Subject: [PATCH] Generated from 5ca1949f4cacda79d9cf2966aed5969bab270864 --- .../arm-appinsights/LICENSE.txt | 2 +- .../arm-appinsights/README.md | 14 +- .../arm-appinsights/package.json | 22 +- .../arm-appinsights/rollup.config.js | 22 +- .../applicationInsightsManagementClient.ts | 12 +- ...licationInsightsManagementClientContext.ts | 6 +- .../src/models/aPIKeysMappers.ts | 13 +- .../src/models/analyticsItemsMappers.ts | 7 +- .../src/models/annotationsMappers.ts | 13 +- .../componentAvailableFeaturesMappers.ts | 7 +- .../componentCurrentBillingFeaturesMappers.ts | 7 +- .../componentFeatureCapabilitiesMappers.ts | 7 +- ...tLinkedStorageAccountsOperationsMappers.ts | 31 + .../src/models/componentQuotaStatusMappers.ts | 7 +- .../src/models/componentsMappers.ts | 31 +- .../src/models/exportConfigurationsMappers.ts | 11 +- .../src/models/favoritesMappers.ts | 7 +- .../arm-appinsights/src/models/index.ts | 2410 +++++++++-------- .../src/models/liveTokenMappers.ts | 12 + .../arm-appinsights/src/models/mappers.ts | 1502 ++++++---- .../src/models/myWorkbooksMappers.ts | 32 + .../src/models/operationsMappers.ts | 15 +- .../arm-appinsights/src/models/parameters.ts | 83 +- ...proactiveDetectionConfigurationsMappers.ts | 25 +- .../src/models/webTestLocationsMappers.ts | 9 +- .../src/models/webTestsMappers.ts | 37 +- .../models/workItemConfigurationsMappers.ts | 15 +- .../src/models/workbooksMappers.ts | 33 +- .../arm-appinsights/src/operations/aPIKeys.ts | 32 +- .../src/operations/analyticsItems.ts | 32 +- .../src/operations/annotations.ts | 53 +- .../operations/componentAvailableFeatures.ts | 8 +- .../componentCurrentBillingFeatures.ts | 16 +- .../componentFeatureCapabilities.ts | 10 +- ...omponentLinkedStorageAccountsOperations.ts | 289 ++ .../src/operations/componentQuotaStatus.ts | 8 +- .../src/operations/components.ts | 70 +- .../src/operations/exportConfigurations.ts | 40 +- .../src/operations/favorites.ts | 40 +- .../arm-appinsights/src/operations/index.ts | 5 +- .../src/operations/liveToken.ts | 81 + .../src/operations/myWorkbooks.ts | 401 +++ .../src/operations/operations.ts | 97 +- .../proactiveDetectionConfigurations.ts | 24 +- .../src/operations/webTestLocations.ts | 8 +- .../src/operations/webTests.ts | 54 +- .../src/operations/workItemConfigurations.ts | 195 +- .../src/operations/workbooks.ts | 50 +- .../arm-appinsights/tsconfig.json | 2 +- 49 files changed, 3889 insertions(+), 2018 deletions(-) create mode 100644 sdk/applicationinsights/arm-appinsights/src/models/componentLinkedStorageAccountsOperationsMappers.ts create mode 100644 sdk/applicationinsights/arm-appinsights/src/models/liveTokenMappers.ts create mode 100644 sdk/applicationinsights/arm-appinsights/src/models/myWorkbooksMappers.ts create mode 100644 sdk/applicationinsights/arm-appinsights/src/operations/componentLinkedStorageAccountsOperations.ts create mode 100644 sdk/applicationinsights/arm-appinsights/src/operations/liveToken.ts create mode 100644 sdk/applicationinsights/arm-appinsights/src/operations/myWorkbooks.ts diff --git a/sdk/applicationinsights/arm-appinsights/LICENSE.txt b/sdk/applicationinsights/arm-appinsights/LICENSE.txt index a70e8cf66038..ea8fb1516028 100644 --- a/sdk/applicationinsights/arm-appinsights/LICENSE.txt +++ b/sdk/applicationinsights/arm-appinsights/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2020 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/applicationinsights/arm-appinsights/README.md b/sdk/applicationinsights/arm-appinsights/README.md index 6be3c6ab9f88..a81a6333908d 100644 --- a/sdk/applicationinsights/arm-appinsights/README.md +++ b/sdk/applicationinsights/arm-appinsights/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for ApplicationInsightsManagementClient. ### How to Install -``` +```bash npm install @azure/arm-appinsights ``` @@ -19,13 +19,14 @@ npm install @azure/arm-appinsights ##### Install @azure/ms-rest-nodeauth -``` -npm install @azure/ms-rest-nodeauth +- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`. +```bash +npm install @azure/ms-rest-nodeauth@"^3.0.0" ``` ##### Sample code -```ts +```typescript import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; @@ -47,7 +48,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -95,5 +96,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fapplicationinsights%2Farm-appinsights%2FREADME.png) +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/applicationinsights/arm-appinsights/README.png) diff --git a/sdk/applicationinsights/arm-appinsights/package.json b/sdk/applicationinsights/arm-appinsights/package.json index af5066cd1398..e1be6c1c422f 100644 --- a/sdk/applicationinsights/arm-appinsights/package.json +++ b/sdk/applicationinsights/arm-appinsights/package.json @@ -4,9 +4,9 @@ "description": "ApplicationInsightsManagementClient Library with typescript type definitions for node.js and browser.", "version": "2.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", - "tslib": "^1.9.3" + "@azure/ms-rest-azure-js": "^2.0.1", + "@azure/ms-rest-js": "^2.0.4", + "tslib": "^1.10.0" }, "keywords": [ "node", @@ -20,18 +20,19 @@ "module": "./esm/applicationInsightsManagementClient.js", "types": "./esm/applicationInsightsManagementClient.d.ts", "devDependencies": { - "typescript": "^3.1.1", - "rollup": "^0.66.2", - "rollup-plugin-node-resolve": "^3.4.0", - "uglify-js": "^3.4.9" + "typescript": "^3.5.3", + "rollup": "^1.18.0", + "rollup-plugin-node-resolve": "^5.2.0", + "rollup-plugin-sourcemaps": "^0.4.2", + "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/applicationinsights/arm-appinsights", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/applicationinsights/arm-appinsights", "repository": { "type": "git", - "url": "https://github.com/azure/azure-sdk-for-js.git" + "url": "https://github.com/Azure/azure-sdk-for-js.git" }, "bugs": { - "url": "https://github.com/azure/azure-sdk-for-js/issues" + "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", @@ -43,6 +44,7 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "src/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], diff --git a/sdk/applicationinsights/arm-appinsights/rollup.config.js b/sdk/applicationinsights/arm-appinsights/rollup.config.js index 78641ef3fe3c..034249a738d2 100644 --- a/sdk/applicationinsights/arm-appinsights/rollup.config.js +++ b/sdk/applicationinsights/arm-appinsights/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/applicationInsightsManagementClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/applicationInsightsManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-appinsights.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ mainFields: ['module', 'main'] }), + sourcemaps() ] }; + export default config; diff --git a/sdk/applicationinsights/arm-appinsights/src/applicationInsightsManagementClient.ts b/sdk/applicationinsights/arm-appinsights/src/applicationInsightsManagementClient.ts index 1ad9a69a56ef..129814529633 100644 --- a/sdk/applicationinsights/arm-appinsights/src/applicationInsightsManagementClient.ts +++ b/sdk/applicationinsights/arm-appinsights/src/applicationInsightsManagementClient.ts @@ -26,18 +26,21 @@ class ApplicationInsightsManagementClient extends ApplicationInsightsManagementC componentFeatureCapabilities: operations.ComponentFeatureCapabilities; componentAvailableFeatures: operations.ComponentAvailableFeatures; proactiveDetectionConfigurations: operations.ProactiveDetectionConfigurations; - components: operations.Components; workItemConfigurations: operations.WorkItemConfigurations; favorites: operations.Favorites; webTestLocations: operations.WebTestLocations; webTests: operations.WebTests; analyticsItems: operations.AnalyticsItems; workbooks: operations.Workbooks; + myWorkbooks: operations.MyWorkbooks; + components: operations.Components; + componentLinkedStorageAccounts: operations.ComponentLinkedStorageAccountsOperations; + liveToken: operations.LiveToken; /** * Initializes a new instance of the ApplicationInsightsManagementClient class. * @param credentials Credentials needed for the client to connect to Azure. - * @param subscriptionId The Azure subscription ID. + * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ApplicationInsightsManagementClientOptions) { @@ -51,13 +54,16 @@ class ApplicationInsightsManagementClient extends ApplicationInsightsManagementC this.componentFeatureCapabilities = new operations.ComponentFeatureCapabilities(this); this.componentAvailableFeatures = new operations.ComponentAvailableFeatures(this); this.proactiveDetectionConfigurations = new operations.ProactiveDetectionConfigurations(this); - this.components = new operations.Components(this); this.workItemConfigurations = new operations.WorkItemConfigurations(this); this.favorites = new operations.Favorites(this); this.webTestLocations = new operations.WebTestLocations(this); this.webTests = new operations.WebTests(this); this.analyticsItems = new operations.AnalyticsItems(this); this.workbooks = new operations.Workbooks(this); + this.myWorkbooks = new operations.MyWorkbooks(this); + this.components = new operations.Components(this); + this.componentLinkedStorageAccounts = new operations.ComponentLinkedStorageAccountsOperations(this); + this.liveToken = new operations.LiveToken(this); } } diff --git a/sdk/applicationinsights/arm-appinsights/src/applicationInsightsManagementClientContext.ts b/sdk/applicationinsights/arm-appinsights/src/applicationInsightsManagementClientContext.ts index 41cf05899c26..94e92c6240f9 100644 --- a/sdk/applicationinsights/arm-appinsights/src/applicationInsightsManagementClientContext.ts +++ b/sdk/applicationinsights/arm-appinsights/src/applicationInsightsManagementClientContext.ts @@ -13,17 +13,16 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-appinsights"; -const packageVersion = "0.1.0"; +const packageVersion = "2.1.0"; export class ApplicationInsightsManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; - apiVersion?: string; subscriptionId: string; /** * Initializes a new instance of the ApplicationInsightsManagementClient class. * @param credentials Credentials needed for the client to connect to Azure. - * @param subscriptionId The Azure subscription ID. + * @param subscriptionId The ID of the target subscription. * @param [options] The parameter options */ constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ApplicationInsightsManagementClientOptions) { @@ -44,7 +43,6 @@ export class ApplicationInsightsManagementClientContext extends msRestAzure.Azur super(credentials, options); - this.apiVersion = '2015-05-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; diff --git a/sdk/applicationinsights/arm-appinsights/src/models/aPIKeysMappers.ts b/sdk/applicationinsights/arm-appinsights/src/models/aPIKeysMappers.ts index 1d4fc21adfe6..359b47866056 100644 --- a/sdk/applicationinsights/arm-appinsights/src/models/aPIKeysMappers.ts +++ b/sdk/applicationinsights/arm-appinsights/src/models/aPIKeysMappers.ts @@ -1,17 +1,14 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - ApplicationInsightsComponentAPIKeyListResult, + APIKeyRequest, ApplicationInsightsComponentAPIKey, - CloudError, - APIKeyRequest + ApplicationInsightsComponentAPIKeyListResult, + CloudError } from "../models/mappers"; - diff --git a/sdk/applicationinsights/arm-appinsights/src/models/analyticsItemsMappers.ts b/sdk/applicationinsights/arm-appinsights/src/models/analyticsItemsMappers.ts index b00875e33415..ec4ddeb966e1 100644 --- a/sdk/applicationinsights/arm-appinsights/src/models/analyticsItemsMappers.ts +++ b/sdk/applicationinsights/arm-appinsights/src/models/analyticsItemsMappers.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { @@ -13,4 +11,3 @@ export { ApplicationInsightsComponentAnalyticsItemProperties, CloudError } from "../models/mappers"; - diff --git a/sdk/applicationinsights/arm-appinsights/src/models/annotationsMappers.ts b/sdk/applicationinsights/arm-appinsights/src/models/annotationsMappers.ts index d5d9386a0d5e..dd86a501f412 100644 --- a/sdk/applicationinsights/arm-appinsights/src/models/annotationsMappers.ts +++ b/sdk/applicationinsights/arm-appinsights/src/models/annotationsMappers.ts @@ -1,18 +1,15 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - AnnotationsListResult, Annotation, AnnotationError, - InnerError, - CloudError + AnnotationsListResult, + CloudError, + InnerError } from "../models/mappers"; - diff --git a/sdk/applicationinsights/arm-appinsights/src/models/componentAvailableFeaturesMappers.ts b/sdk/applicationinsights/arm-appinsights/src/models/componentAvailableFeaturesMappers.ts index 778c0f8e27f8..077b32f04cad 100644 --- a/sdk/applicationinsights/arm-appinsights/src/models/componentAvailableFeaturesMappers.ts +++ b/sdk/applicationinsights/arm-appinsights/src/models/componentAvailableFeaturesMappers.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { @@ -14,4 +12,3 @@ export { ApplicationInsightsComponentFeatureCapability, CloudError } from "../models/mappers"; - diff --git a/sdk/applicationinsights/arm-appinsights/src/models/componentCurrentBillingFeaturesMappers.ts b/sdk/applicationinsights/arm-appinsights/src/models/componentCurrentBillingFeaturesMappers.ts index 3e6161210aec..b765b76a1921 100644 --- a/sdk/applicationinsights/arm-appinsights/src/models/componentCurrentBillingFeaturesMappers.ts +++ b/sdk/applicationinsights/arm-appinsights/src/models/componentCurrentBillingFeaturesMappers.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { @@ -13,4 +11,3 @@ export { ApplicationInsightsComponentDataVolumeCap, CloudError } from "../models/mappers"; - diff --git a/sdk/applicationinsights/arm-appinsights/src/models/componentFeatureCapabilitiesMappers.ts b/sdk/applicationinsights/arm-appinsights/src/models/componentFeatureCapabilitiesMappers.ts index 66534b06f77b..b13f2ae34a0c 100644 --- a/sdk/applicationinsights/arm-appinsights/src/models/componentFeatureCapabilitiesMappers.ts +++ b/sdk/applicationinsights/arm-appinsights/src/models/componentFeatureCapabilitiesMappers.ts @@ -1,15 +1,12 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { ApplicationInsightsComponentFeatureCapabilities, CloudError } from "../models/mappers"; - diff --git a/sdk/applicationinsights/arm-appinsights/src/models/componentLinkedStorageAccountsOperationsMappers.ts b/sdk/applicationinsights/arm-appinsights/src/models/componentLinkedStorageAccountsOperationsMappers.ts new file mode 100644 index 000000000000..712871b162ad --- /dev/null +++ b/sdk/applicationinsights/arm-appinsights/src/models/componentLinkedStorageAccountsOperationsMappers.ts @@ -0,0 +1,31 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + ApplicationInsightsComponent, + ApplicationInsightsComponentProactiveDetectionConfiguration, + ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions, + AzureEntityResource, + BaseResource, + ComponentLinkedStorageAccounts, + ComponentLinkedStorageAccountsPatch, + ComponentsResource, + ErrorResponse, + MyWorkbook, + MyWorkbookResource, + PrivateLinkScopedResource, + ProxyResource, + Resource, + TrackedResource, + WebTest, + WebTestGeolocation, + WebTestPropertiesConfiguration, + WebtestsResource, + Workbook, + WorkbookResource +} from "../models/mappers"; diff --git a/sdk/applicationinsights/arm-appinsights/src/models/componentQuotaStatusMappers.ts b/sdk/applicationinsights/arm-appinsights/src/models/componentQuotaStatusMappers.ts index a3dfa8eaaa53..6b2bc91696da 100644 --- a/sdk/applicationinsights/arm-appinsights/src/models/componentQuotaStatusMappers.ts +++ b/sdk/applicationinsights/arm-appinsights/src/models/componentQuotaStatusMappers.ts @@ -1,15 +1,12 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { ApplicationInsightsComponentQuotaStatus, CloudError } from "../models/mappers"; - diff --git a/sdk/applicationinsights/arm-appinsights/src/models/componentsMappers.ts b/sdk/applicationinsights/arm-appinsights/src/models/componentsMappers.ts index c3b85e5ea6cc..a145168e704e 100644 --- a/sdk/applicationinsights/arm-appinsights/src/models/componentsMappers.ts +++ b/sdk/applicationinsights/arm-appinsights/src/models/componentsMappers.ts @@ -1,31 +1,36 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - ApplicationInsightsComponentListResult, ApplicationInsightsComponent, - ComponentsResource, + ApplicationInsightsComponentListResult, + ApplicationInsightsComponentProactiveDetectionConfiguration, + ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions, + AzureEntityResource, BaseResource, CloudError, - TagsResource, + ComponentLinkedStorageAccounts, ComponentPurgeBody, ComponentPurgeBodyFilters, ComponentPurgeResponse, ComponentPurgeStatusResponse, - ApplicationInsightsComponentProactiveDetectionConfiguration, - ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions, - WebtestsResource, + ComponentsResource, + MyWorkbook, + MyWorkbookResource, + PrivateLinkScopedResource, + ProxyResource, + Resource, + TagsResource, + TrackedResource, WebTest, WebTestGeolocation, WebTestPropertiesConfiguration, - WorkbookResource, - Workbook + WebtestsResource, + Workbook, + WorkbookResource } from "../models/mappers"; - diff --git a/sdk/applicationinsights/arm-appinsights/src/models/exportConfigurationsMappers.ts b/sdk/applicationinsights/arm-appinsights/src/models/exportConfigurationsMappers.ts index a1919004b9d4..a5c3232aad4e 100644 --- a/sdk/applicationinsights/arm-appinsights/src/models/exportConfigurationsMappers.ts +++ b/sdk/applicationinsights/arm-appinsights/src/models/exportConfigurationsMappers.ts @@ -1,16 +1,13 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { ApplicationInsightsComponentExportConfiguration, - CloudError, - ApplicationInsightsComponentExportRequest + ApplicationInsightsComponentExportRequest, + CloudError } from "../models/mappers"; - diff --git a/sdk/applicationinsights/arm-appinsights/src/models/favoritesMappers.ts b/sdk/applicationinsights/arm-appinsights/src/models/favoritesMappers.ts index f69c1f6d10e9..d927641eeede 100644 --- a/sdk/applicationinsights/arm-appinsights/src/models/favoritesMappers.ts +++ b/sdk/applicationinsights/arm-appinsights/src/models/favoritesMappers.ts @@ -1,15 +1,12 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { ApplicationInsightsComponentFavorite, CloudError } from "../models/mappers"; - diff --git a/sdk/applicationinsights/arm-appinsights/src/models/index.ts b/sdk/applicationinsights/arm-appinsights/src/models/index.ts index ff9e140b9556..9b42aa4deac2 100644 --- a/sdk/applicationinsights/arm-appinsights/src/models/index.ts +++ b/sdk/applicationinsights/arm-appinsights/src/models/index.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is - * regenerated. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,1769 +11,1698 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing ErrorResponse. - * Error reponse indicates Insights service is not able to process the incoming - * request. The reason is provided in the error message. - * + * Error response indicates Insights service is not able to process the incoming request. The + * reason is provided in the error message. */ export interface ErrorResponse { /** - * @member {string} [code] Error code. + * Error code. */ code?: string; /** - * @member {string} [message] Error message indicating why the operation - * failed. + * Error message indicating why the operation failed. */ message?: string; } /** - * @interface - * An interface representing OperationDisplay. * The object that represents the operation. - * */ export interface OperationDisplay { /** - * @member {string} [provider] Service provider: Microsoft.Cdn + * Service provider: Microsoft.Cdn */ provider?: string; /** - * @member {string} [resource] Resource on which the operation is performed: - * Profile, endpoint, etc. + * Resource on which the operation is performed: Profile, endpoint, etc. */ resource?: string; /** - * @member {string} [operation] Operation type: Read, write, delete, etc. + * Operation type: Read, write, delete, etc. */ operation?: string; } /** - * @interface - * An interface representing Operation. * CDN REST API operation - * */ export interface Operation { /** - * @member {string} [name] Operation name: {provider}/{resource}/{operation} + * Operation name: {provider}/{resource}/{operation} */ name?: string; /** - * @member {OperationDisplay} [display] The object that represents the - * operation. + * The object that represents the operation. */ display?: OperationDisplay; } /** - * @interface - * An interface representing Annotation. * Annotation associated with an application insights resource. - * */ export interface Annotation { /** - * @member {string} [annotationName] Name of annotation + * Name of annotation */ annotationName?: string; /** - * @member {string} [category] Category of annotation, free form + * Category of annotation, free form */ category?: string; /** - * @member {Date} [eventTime] Time when event occurred + * Time when event occurred */ eventTime?: Date; /** - * @member {string} [id] Unique Id for annotation + * Unique Id for annotation */ id?: string; /** - * @member {string} [properties] Serialized JSON object for detailed - * properties + * Serialized JSON object for detailed properties */ properties?: string; /** - * @member {string} [relatedAnnotation] Related parent annotation if any. - * Default value: 'null' . + * Related parent annotation if any. Default value: 'null'. */ relatedAnnotation?: string; } /** - * @interface - * An interface representing InnerError. * Inner error - * */ export interface InnerError { /** - * @member {string} [diagnosticcontext] Provides correlation for request + * Provides correlation for request */ diagnosticcontext?: string; /** - * @member {Date} [time] Request time + * Request time */ time?: Date; } /** - * @interface - * An interface representing AnnotationError. * Error associated with trying to create annotation with Id that already exist - * */ export interface AnnotationError { /** - * @member {string} [code] Error detail code and explanation + * Error detail code and explanation */ code?: string; /** - * @member {string} [message] Error message + * Error message */ message?: string; - /** - * @member {InnerError} [innererror] - */ innererror?: InnerError; } /** - * @interface - * An interface representing APIKeyRequest. - * An Application Insights component API Key createion request definition. - * + * An Application Insights component API Key creation request definition. */ export interface APIKeyRequest { /** - * @member {string} [name] The name of the API Key. + * The name of the API Key. */ name?: string; /** - * @member {string[]} [linkedReadProperties] The read access rights of this - * API Key. + * The read access rights of this API Key. */ linkedReadProperties?: string[]; /** - * @member {string[]} [linkedWriteProperties] The write access rights of this - * API Key. + * The write access rights of this API Key. */ linkedWriteProperties?: string[]; } /** - * @interface - * An interface representing ApplicationInsightsComponentAPIKey. * Properties that define an API key of an Application Insights Component. - * */ export interface ApplicationInsightsComponentAPIKey { /** - * @member {string} [id] The unique ID of the API key inside an Applciation - * Insights component. It is auto generated when the API key is created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The unique ID of the API key inside an Application Insights component. It is auto generated + * when the API key is created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [apiKey] The API key value. It will be only return once - * when the API Key was created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The API key value. It will be only return once when the API Key was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly apiKey?: string; /** - * @member {string} [createdDate] The create date of this API key. + * The create date of this API key. */ createdDate?: string; /** - * @member {string} [name] The name of the API key. + * The name of the API key. */ name?: string; /** - * @member {string[]} [linkedReadProperties] The read access rights of this - * API Key. + * The read access rights of this API Key. */ linkedReadProperties?: string[]; /** - * @member {string[]} [linkedWriteProperties] The write access rights of this - * API Key. + * The write access rights of this API Key. */ linkedWriteProperties?: string[]; } /** - * @interface - * An interface representing ApplicationInsightsComponentExportRequest. - * An Application Insights component Continuous Export configuration request - * definition. - * + * An Application Insights component Continuous Export configuration request definition. */ export interface ApplicationInsightsComponentExportRequest { /** - * @member {string} [recordTypes] The document types to be exported, as comma - * separated values. Allowed values include 'Requests', 'Event', - * 'Exceptions', 'Metrics', 'PageViews', 'PageViewPerformance', 'Rdd', + * The document types to be exported, as comma separated values. Allowed values include + * 'Requests', 'Event', 'Exceptions', 'Metrics', 'PageViews', 'PageViewPerformance', 'Rdd', * 'PerformanceCounters', 'Availability', 'Messages'. */ recordTypes?: string; /** - * @member {string} [destinationType] The Continuous Export destination type. - * This has to be 'Blob'. + * The Continuous Export destination type. This has to be 'Blob'. */ destinationType?: string; /** - * @member {string} [destinationAddress] The SAS URL for the destination - * storage container. It must grant write permission. + * The SAS URL for the destination storage container. It must grant write permission. */ destinationAddress?: string; /** - * @member {string} [isEnabled] Set to 'true' to create a Continuous Export - * configuration as enabled, otherwise set it to 'false'. + * Set to 'true' to create a Continuous Export configuration as enabled, otherwise set it to + * 'false'. */ isEnabled?: string; /** - * @member {string} [notificationQueueEnabled] Deprecated + * Deprecated */ notificationQueueEnabled?: string; /** - * @member {string} [notificationQueueUri] Deprecated + * Deprecated */ notificationQueueUri?: string; /** - * @member {string} [destinationStorageSubscriptionId] The subscription ID of - * the destination storage container. + * The subscription ID of the destination storage container. */ destinationStorageSubscriptionId?: string; /** - * @member {string} [destinationStorageLocationId] The location ID of the - * destination storage container. + * The location ID of the destination storage container. */ destinationStorageLocationId?: string; /** - * @member {string} [destinationAccountId] The name of destination storage - * account. + * The name of destination storage account. */ destinationAccountId?: string; } /** - * @interface - * An interface representing ApplicationInsightsComponentExportConfiguration. * Properties that define a Continuous Export configuration. - * */ export interface ApplicationInsightsComponentExportConfiguration { /** - * @member {string} [exportId] The unique ID of the export configuration - * inside an Applciation Insights component. It is auto generated when the - * Continuous Export configuration is created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The unique ID of the export configuration inside an Application Insights component. It is auto + * generated when the Continuous Export configuration is created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly exportId?: string; /** - * @member {string} [instrumentationKey] The instrumentation key of the - * Application Insights component. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The instrumentation key of the Application Insights component. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly instrumentationKey?: string; /** - * @member {string} [recordTypes] This comma separated list of document types - * that will be exported. The possible values include 'Requests', 'Event', - * 'Exceptions', 'Metrics', 'PageViews', 'PageViewPerformance', 'Rdd', + * This comma separated list of document types that will be exported. The possible values include + * 'Requests', 'Event', 'Exceptions', 'Metrics', 'PageViews', 'PageViewPerformance', 'Rdd', * 'PerformanceCounters', 'Availability', 'Messages'. */ recordTypes?: string; /** - * @member {string} [applicationName] The name of the Application Insights - * component. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The name of the Application Insights component. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly applicationName?: string; /** - * @member {string} [subscriptionId] The subscription of the Application - * Insights component. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The subscription of the Application Insights component. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly subscriptionId?: string; /** - * @member {string} [resourceGroup] The resource group of the Application - * Insights component. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The resource group of the Application Insights component. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly resourceGroup?: string; /** - * @member {string} [destinationStorageSubscriptionId] The destination - * storage account subscription ID. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The destination storage account subscription ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly destinationStorageSubscriptionId?: string; /** - * @member {string} [destinationStorageLocationId] The destination account - * location ID. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The destination account location ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly destinationStorageLocationId?: string; /** - * @member {string} [destinationAccountId] The name of destination account. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The name of destination account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly destinationAccountId?: string; /** - * @member {string} [destinationType] The destination type. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The destination type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly destinationType?: string; /** - * @member {string} [isUserEnabled] This will be 'true' if the Continuous - * Export configuration is enabled, otherwise it will be 'false'. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * This will be 'true' if the Continuous Export configuration is enabled, otherwise it will be + * 'false'. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isUserEnabled?: string; /** - * @member {string} [lastUserUpdate] Last time the Continuous Export - * configuration was updated. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Last time the Continuous Export configuration was updated. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly lastUserUpdate?: string; /** - * @member {string} [notificationQueueEnabled] Deprecated + * Deprecated */ notificationQueueEnabled?: string; /** - * @member {string} [exportStatus] This indicates current Continuous Export - * configuration status. The possible values are 'Preparing', 'Success', - * 'Failure'. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * This indicates current Continuous Export configuration status. The possible values are + * 'Preparing', 'Success', 'Failure'. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly exportStatus?: string; /** - * @member {string} [lastSuccessTime] The last time data was successfully - * delivered to the destination storage container for this Continuous Export - * configuration. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The last time data was successfully delivered to the destination storage container for this + * Continuous Export configuration. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly lastSuccessTime?: string; /** - * @member {string} [lastGapTime] The last time the Continuous Export - * configuration started failing. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The last time the Continuous Export configuration started failing. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly lastGapTime?: string; /** - * @member {string} [permanentErrorReason] This is the reason the Continuous - * Export configuration started failing. It can be 'AzureStorageNotFound' or - * 'AzureStorageAccessDenied'. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * This is the reason the Continuous Export configuration started failing. It can be + * 'AzureStorageNotFound' or 'AzureStorageAccessDenied'. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly permanentErrorReason?: string; /** - * @member {string} [storageName] The name of the destination storage - * account. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The name of the destination storage account. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly storageName?: string; /** - * @member {string} [containerName] The name of the destination storage - * container. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The name of the destination storage container. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly containerName?: string; } /** - * @interface - * An interface representing ApplicationInsightsComponentDataVolumeCap. - * An Application Insights component daily data volumne cap - * + * An Application Insights component daily data volume cap */ export interface ApplicationInsightsComponentDataVolumeCap { /** - * @member {number} [cap] Daily data volume cap in GB. + * Daily data volume cap in GB. */ cap?: number; /** - * @member {number} [resetTime] Daily data volume cap UTC reset hour. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Daily data volume cap UTC reset hour. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly resetTime?: number; /** - * @member {number} [warningThreshold] Reserved, not used for now. + * Reserved, not used for now. */ warningThreshold?: number; /** - * @member {boolean} [stopSendNotificationWhenHitThreshold] Reserved, not - * used for now. + * Reserved, not used for now. */ stopSendNotificationWhenHitThreshold?: boolean; /** - * @member {boolean} [stopSendNotificationWhenHitCap] Do not send a - * notification email when the daily data volume cap is met. + * Do not send a notification email when the daily data volume cap is met. */ stopSendNotificationWhenHitCap?: boolean; /** - * @member {number} [maxHistoryCap] Maximum daily data volume cap that the - * user can set for this component. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Maximum daily data volume cap that the user can set for this component. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly maxHistoryCap?: number; } /** - * @interface - * An interface representing ApplicationInsightsComponentBillingFeatures. * An Application Insights component billing features - * */ export interface ApplicationInsightsComponentBillingFeatures { /** - * @member {ApplicationInsightsComponentDataVolumeCap} [dataVolumeCap] An - * Application Insights component daily data volumne cap + * An Application Insights component daily data volume cap */ dataVolumeCap?: ApplicationInsightsComponentDataVolumeCap; /** - * @member {string[]} [currentBillingFeatures] Current enabled pricing plan. - * When the component is in the Enterprise plan, this will list both 'Basic' - * and 'Application Insights Enterprise'. + * Current enabled pricing plan. When the component is in the Enterprise plan, this will list + * both 'Basic' and 'Application Insights Enterprise'. */ currentBillingFeatures?: string[]; } /** - * @interface - * An interface representing ApplicationInsightsComponentQuotaStatus. * An Application Insights component daily data volume cap status - * */ export interface ApplicationInsightsComponentQuotaStatus { /** - * @member {string} [appId] The Application ID for the Application Insights - * component. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The Application ID for the Application Insights component. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly appId?: string; /** - * @member {boolean} [shouldBeThrottled] The daily data volume cap is met, - * and data ingestion will be stopped. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The daily data volume cap is met, and data ingestion will be stopped. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly shouldBeThrottled?: boolean; /** - * @member {string} [expirationTime] Date and time when the daily data volume - * cap will be reset, and data ingestion will resume. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Date and time when the daily data volume cap will be reset, and data ingestion will resume. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly expirationTime?: string; } /** - * @interface - * An interface representing ApplicationInsightsComponentFeatureCapabilities. * An Application Insights component feature capabilities - * */ export interface ApplicationInsightsComponentFeatureCapabilities { /** - * @member {boolean} [supportExportData] Whether allow to use continuous - * export feature. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Whether allow to use continuous export feature. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly supportExportData?: boolean; /** - * @member {string} [burstThrottlePolicy] Reserved, not used now. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Reserved, not used now. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly burstThrottlePolicy?: string; /** - * @member {string} [metadataClass] Reserved, not used now. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Reserved, not used now. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly metadataClass?: string; /** - * @member {boolean} [liveStreamMetrics] Reserved, not used now. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Reserved, not used now. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly liveStreamMetrics?: boolean; /** - * @member {boolean} [applicationMap] Reserved, not used now. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Reserved, not used now. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly applicationMap?: boolean; /** - * @member {boolean} [workItemIntegration] Whether allow to use work item - * integration feature. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Whether allow to use work item integration feature. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly workItemIntegration?: boolean; /** - * @member {boolean} [powerBIIntegration] Reserved, not used now. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Reserved, not used now. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly powerBIIntegration?: boolean; /** - * @member {boolean} [openSchema] Reserved, not used now. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Reserved, not used now. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly openSchema?: boolean; /** - * @member {boolean} [proactiveDetection] Reserved, not used now. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Reserved, not used now. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly proactiveDetection?: boolean; /** - * @member {boolean} [analyticsIntegration] Reserved, not used now. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Reserved, not used now. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly analyticsIntegration?: boolean; /** - * @member {boolean} [multipleStepWebTest] Whether allow to use multiple - * steps web test feature. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Whether allow to use multiple steps web test feature. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly multipleStepWebTest?: boolean; /** - * @member {string} [apiAccessLevel] Reserved, not used now. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Reserved, not used now. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly apiAccessLevel?: string; /** - * @member {string} [trackingType] The applciation insights component used - * tracking type. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The application insights component used tracking type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly trackingType?: string; /** - * @member {number} [dailyCap] Daily data volume cap in GB. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Daily data volume cap in GB. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly dailyCap?: number; /** - * @member {number} [dailyCapResetTime] Daily data volume cap UTC reset hour. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Daily data volume cap UTC reset hour. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly dailyCapResetTime?: number; /** - * @member {number} [throttleRate] Reserved, not used now. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Reserved, not used now. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly throttleRate?: number; } /** - * @interface - * An interface representing ApplicationInsightsComponentFeatureCapability. * An Application Insights component feature capability - * */ export interface ApplicationInsightsComponentFeatureCapability { /** - * @member {string} [name] The name of the capability. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The name of the capability. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [description] The description of the capability. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The description of the capability. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly description?: string; /** - * @member {string} [value] The vaule of the capability. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The value of the capability. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly value?: string; /** - * @member {string} [unit] The unit of the capability. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The unit of the capability. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly unit?: string; /** - * @member {string} [meterId] The meter used for the capability. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The meter used for the capability. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly meterId?: string; /** - * @member {string} [meterRateFrequency] The meter rate of the meter. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The meter rate of the meter. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly meterRateFrequency?: string; } /** - * @interface - * An interface representing ApplicationInsightsComponentFeature. * An Application Insights component daily data volume cap status - * */ export interface ApplicationInsightsComponentFeature { /** - * @member {string} [featureName] The pricing feature name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The pricing feature name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly featureName?: string; /** - * @member {string} [meterId] The meter id used for the feature. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The meter id used for the feature. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly meterId?: string; /** - * @member {string} [meterRateFrequency] The meter meter rate for the - * feature's meter. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The meter rate for the feature's meter. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly meterRateFrequency?: string; /** - * @member {string} [resouceId] Reserved, not used now. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Reserved, not used now. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly resouceId?: string; /** - * @member {boolean} [isHidden] Reserved, not used now. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Reserved, not used now. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isHidden?: boolean; /** - * @member {ApplicationInsightsComponentFeatureCapability[]} [capabilities] A - * list of Application Insigths component feature capability. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * A list of Application Insights component feature capability. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly capabilities?: ApplicationInsightsComponentFeatureCapability[]; /** - * @member {string} [title] Desplay name of the feature. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Display name of the feature. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly title?: string; /** - * @member {boolean} [isMainFeature] Whether can apply addon feature on to - * it. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Whether can apply addon feature on to it. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly isMainFeature?: boolean; /** - * @member {string} [supportedAddonFeatures] The add on features on main - * feature. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The add on features on main feature. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly supportedAddonFeatures?: string; } /** - * @interface - * An interface representing ApplicationInsightsComponentAvailableFeatures. * An Application Insights component available features. - * */ export interface ApplicationInsightsComponentAvailableFeatures { /** - * @member {ApplicationInsightsComponentFeature[]} [result] A list of - * Application Insigths component feature. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * A list of Application Insights component feature. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly result?: ApplicationInsightsComponentFeature[]; } /** - * @interface - * An interface representing ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions. - * Static definitions of the ProactiveDetection configuration rule (same values - * for all components). - * + * Static definitions of the ProactiveDetection configuration rule (same values for all + * components). */ export interface ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions { /** - * @member {string} [name] The rule name + * The rule name */ name?: string; /** - * @member {string} [displayName] The rule name as it is displayed in UI + * The rule name as it is displayed in UI */ displayName?: string; /** - * @member {string} [description] The rule description + * The rule description */ description?: string; /** - * @member {string} [helpUrl] URL which displays aditional info about the - * proactive detection rule + * URL which displays additional info about the proactive detection rule */ helpUrl?: string; /** - * @member {boolean} [isHidden] A flag indicating whether the rule is hidden - * (from the UI) + * A flag indicating whether the rule is hidden (from the UI) */ isHidden?: boolean; /** - * @member {boolean} [isEnabledByDefault] A flag indicating whether the rule - * is enabled by default + * A flag indicating whether the rule is enabled by default */ isEnabledByDefault?: boolean; /** - * @member {boolean} [isInPreview] A flag indicating whether the rule is in - * preview + * A flag indicating whether the rule is in preview */ isInPreview?: boolean; /** - * @member {boolean} [supportsEmailNotifications] A flag indicating whether - * email notifications are supported for detections for this rule + * A flag indicating whether email notifications are supported for detections for this rule */ supportsEmailNotifications?: boolean; } /** - * @interface - * An interface representing ApplicationInsightsComponentProactiveDetectionConfiguration. * Properties that define a ProactiveDetection configuration. - * - * @extends BaseResource */ export interface ApplicationInsightsComponentProactiveDetectionConfiguration extends BaseResource { /** - * @member {string} [name] The rule name + * The rule name */ name?: string; /** - * @member {boolean} [enabled] A flag that indicates whether this rule is - * enabled by the user + * A flag that indicates whether this rule is enabled by the user */ enabled?: boolean; /** - * @member {boolean} [sendEmailsToSubscriptionOwners] A flag that indicated - * whether notifications on this rule should be sent to subscription owners + * A flag that indicated whether notifications on this rule should be sent to subscription owners */ sendEmailsToSubscriptionOwners?: boolean; /** - * @member {string[]} [customEmails] Custom email addresses for this rule - * notifications + * Custom email addresses for this rule notifications */ customEmails?: string[]; /** - * @member {string} [lastUpdatedTime] The last time this rule was updated + * The last time this rule was updated */ lastUpdatedTime?: string; /** - * @member - * {ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions} - * [ruleDefinitions] Static definitions of the ProactiveDetection - * configuration rule (same values for all components). + * Static definitions of the ProactiveDetection configuration rule (same values for all + * components). */ ruleDefinitions?: ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions; } /** - * @interface - * An interface representing ComponentsResource. - * An azure resource object - * - * @extends BaseResource - */ -export interface ComponentsResource extends BaseResource { - /** - * @member {string} [id] Azure resource Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly id?: string; - /** - * @member {string} [name] Azure resource name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly name?: string; - /** - * @member {string} [type] Azure resource type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly type?: string; - /** - * @member {string} location Resource location - */ - location: string; - /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags - */ - tags?: { [propertyName: string]: string }; -} - -/** - * @interface - * An interface representing TagsResource. - * A container holding only the Tags for a resource, allowing the user to - * update the tags on a WebTest instance. - * - */ -export interface TagsResource { - /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags - */ - tags?: { [propertyName: string]: string }; -} - -/** - * @interface - * An interface representing ApplicationInsightsComponent. - * An Application Insights component definition. - * - * @extends ComponentsResource - */ -export interface ApplicationInsightsComponent extends ComponentsResource { - /** - * @member {string} kind The kind of application that this component refers - * to, used to customize UI. This value is a freeform string, values should - * typically be one of the following: web, ios, other, store, java, phone. - */ - kind: string; - /** - * @member {string} [applicationId] The unique ID of your application. This - * field mirrors the 'Name' field and cannot be changed. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly applicationId?: string; - /** - * @member {string} [appId] Application Insights Unique ID for your - * Application. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly appId?: string; - /** - * @member {ApplicationType} applicationType Type of application being - * monitored. Possible values include: 'web', 'other'. Default value: 'web' . - */ - applicationType: ApplicationType; - /** - * @member {FlowType} [flowType] Used by the Application Insights system to - * determine what kind of flow this component was created by. This is to be - * set to 'Bluefield' when creating/updating a component via the REST API. - * Possible values include: 'Bluefield'. Default value: 'Bluefield' . - */ - flowType?: FlowType; - /** - * @member {RequestSource} [requestSource] Describes what tool created this - * Application Insights component. Customers using this API should set this - * to the default 'rest'. Possible values include: 'rest'. Default value: - * 'rest' . - */ - requestSource?: RequestSource; - /** - * @member {string} [instrumentationKey] Application Insights Instrumentation - * key. A read-only value that applications can use to identify the - * destination for all telemetry sent to Azure Application Insights. This - * value will be supplied upon construction of each new Application Insights - * component. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly instrumentationKey?: string; - /** - * @member {Date} [creationDate] Creation Date for the Application Insights - * component, in ISO 8601 format. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly creationDate?: Date; - /** - * @member {string} [tenantId] Azure Tenant Id. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly tenantId?: string; - /** - * @member {string} [hockeyAppId] The unique application ID created when a - * new application is added to HockeyApp, used for communications with - * HockeyApp. - */ - hockeyAppId?: string; - /** - * @member {string} [hockeyAppToken] Token used to authenticate - * communications with between Application Insights and HockeyApp. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly hockeyAppToken?: string; - /** - * @member {string} [provisioningState] Current state of this component: - * whether or not is has been provisioned within the resource group it is - * defined. Users cannot change this value but are able to read from it. - * Values will include Succeeded, Deploying, Canceled, and Failed. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly provisioningState?: string; - /** - * @member {number} [samplingPercentage] Percentage of the data produced by - * the application being monitored that is being sampled for Application - * Insights telemetry. - */ - samplingPercentage?: number; -} - -/** - * @interface - * An interface representing ComponentPurgeBodyFilters. - * User-defined filters to return data which will be purged from the table. - * - */ -export interface ComponentPurgeBodyFilters { - /** - * @member {string} [column] The column of the table over which the given - * query should run - */ - column?: string; - /** - * @member {string} [operator] A query operator to evaluate over the provided - * column and value(s). - */ - operator?: string; - /** - * @member {any} [value] the value for the operator to function over. This - * can be a number (e.g., > 100), a string (timestamp >= '2017-09-01') or - * array of values. - */ - value?: any; - /** - * @member {string} [key] When filtering over custom dimensions, this key - * will be used as the name of the custom dimension. - */ - key?: string; -} - -/** - * @interface - * An interface representing ComponentPurgeBody. - * Describes the body of a purge request for an App Insights component - * - */ -export interface ComponentPurgeBody { - /** - * @member {string} table Table from which to purge data. - */ - table: string; - /** - * @member {ComponentPurgeBodyFilters[]} filters The set of columns and - * filters (queries) to run over them to purge the resulting data. - */ - filters: ComponentPurgeBodyFilters[]; -} - -/** - * @interface - * An interface representing ComponentPurgeResponse. - * Response containing operationId for a specific purge action. - * - */ -export interface ComponentPurgeResponse { - /** - * @member {string} operationId Id to use when querying for status for a - * particular purge operation. - */ - operationId: string; -} - -/** - * @interface - * An interface representing ComponentPurgeStatusResponse. - * Response containing status for a specific purge operation. - * - */ -export interface ComponentPurgeStatusResponse { - /** - * @member {PurgeState} status Status of the operation represented by the - * requested Id. Possible values include: 'pending', 'completed' - */ - status: PurgeState; -} - -/** - * @interface - * An interface representing WorkItemConfiguration. * Work item configuration associated with an application insights resource. - * */ export interface WorkItemConfiguration { /** - * @member {string} [connectorId] Connector identifier where work item is - * created + * Connector identifier where work item is created */ connectorId?: string; /** - * @member {string} [configDisplayName] Configuration friendly name + * Configuration friendly name */ configDisplayName?: string; /** - * @member {boolean} [isDefault] Boolean value indicating whether - * configuration is default + * Boolean value indicating whether configuration is default */ isDefault?: boolean; /** - * @member {string} [id] Unique Id for work item + * Unique Id for work item */ id?: string; /** - * @member {string} [configProperties] Serialized JSON object for detailed - * properties + * Serialized JSON object for detailed properties */ configProperties?: string; } /** - * @interface - * An interface representing WorkItemCreateConfiguration. * Work item configuration creation payload - * */ export interface WorkItemCreateConfiguration { /** - * @member {string} [connectorId] Unique connector id + * Unique connector id */ connectorId?: string; /** - * @member {string} [connectorDataConfiguration] Serialized JSON object for - * detaile d properties + * Serialized JSON object for detailed properties */ connectorDataConfiguration?: string; /** - * @member {boolean} [validateOnly] Boolean indicating validate only + * Boolean indicating validate only */ validateOnly?: boolean; /** - * @member {string} [workItemProperties] Custom work item properties + * Custom work item properties */ - workItemProperties?: string; + workItemProperties?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing WorkItemConfigurationError. - * Error associated with trying to get work item configuration or - * configurations - * + * Error associated with trying to get work item configuration or configurations */ export interface WorkItemConfigurationError { /** - * @member {string} [code] Error detail code and explanation + * Error detail code and explanation */ code?: string; /** - * @member {string} [message] Error message + * Error message */ message?: string; - /** - * @member {InnerError} [innererror] - */ innererror?: InnerError; } /** - * @interface - * An interface representing ApplicationInsightsComponentFavorite. - * Properties that define a favorite that is associated to an Application - * Insights component. - * + * Properties that define a favorite that is associated to an Application Insights component. */ export interface ApplicationInsightsComponentFavorite { /** - * @member {string} [name] The user-defined name of the favorite. + * The user-defined name of the favorite. */ name?: string; /** - * @member {string} [config] Configuration of this particular favorite, which - * are driven by the Azure portal UX. Configuration data is a string - * containing valid JSON + * Configuration of this particular favorite, which are driven by the Azure portal UX. + * Configuration data is a string containing valid JSON */ config?: string; /** - * @member {string} [version] This instance's version of the data model. This - * can change as new features are added that can be marked favorite. Current - * examples include MetricsExplorer (ME) and Search. + * This instance's version of the data model. This can change as new features are added that can + * be marked favorite. Current examples include MetricsExplorer (ME) and Search. */ version?: string; /** - * @member {string} [favoriteId] Internally assigned unique id of the - * favorite definition. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Internally assigned unique id of the favorite definition. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly favoriteId?: string; /** - * @member {FavoriteType} [favoriteType] Enum indicating if this favorite - * definition is owned by a specific user or is shared between all users with - * access to the Application Insights component. Possible values include: + * Enum indicating if this favorite definition is owned by a specific user or is shared between + * all users with access to the Application Insights component. Possible values include: * 'shared', 'user' */ favoriteType?: FavoriteType; /** - * @member {string} [sourceType] The source of the favorite definition. + * The source of the favorite definition. */ sourceType?: string; /** - * @member {string} [timeModified] Date and time in UTC of the last - * modification that was made to this favorite definition. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Date and time in UTC of the last modification that was made to this favorite definition. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly timeModified?: string; /** - * @member {string[]} [tags] A list of 0 or more tags that are associated - * with this favorite definition + * A list of 0 or more tags that are associated with this favorite definition */ tags?: string[]; /** - * @member {string} [category] Favorite category, as defined by the user at - * creation time. + * Favorite category, as defined by the user at creation time. */ category?: string; /** - * @member {boolean} [isGeneratedFromTemplate] Flag denoting wether or not - * this favorite was generated from a template. + * Flag denoting wether or not this favorite was generated from a template. */ isGeneratedFromTemplate?: boolean; /** - * @member {string} [userId] Unique user id of the specific user that owns - * this favorite. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Unique user id of the specific user that owns this favorite. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly userId?: string; } /** - * @interface - * An interface representing ApplicationInsightsComponentWebTestLocation. - * Properties that define a web test location available to an Application - * Insights Component. - * + * Properties that define a web test location available to an Application Insights Component. */ export interface ApplicationInsightsComponentWebTestLocation { /** - * @member {string} [displayName] The display name of the web test location. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * The display name of the web test location. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly displayName?: string; /** - * @member {string} [tag] Internally defined geographic location tag. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Internally defined geographic location tag. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly tag?: string; } /** - * @interface - * An interface representing WebtestsResource. * An azure resource object - * - * @extends BaseResource */ export interface WebtestsResource extends BaseResource { /** - * @member {string} [id] Azure resource Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Azure resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Azure resource name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Azure resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] Azure resource type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Azure resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {string} location Resource location + * Resource location */ location: string; /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags + * Resource tags */ tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing WebTestGeolocation. - * Geo-physical location to run a web test from. You must specify one or more - * locations for the test to run from. - * + * A container holding only the Tags for a resource, allowing the user to update the tags on a + * WebTest instance. + */ +export interface TagsResource { + /** + * Resource tags + */ + tags?: { [propertyName: string]: string }; +} + +/** + * Geo-physical location to run a web test from. You must specify one or more locations for the + * test to run from. */ export interface WebTestGeolocation { /** - * @member {string} [location] Location ID for the webtest to run from. + * Location ID for the webtest to run from. */ location?: string; } /** - * @interface - * An interface representing WebTestPropertiesConfiguration. * An XML configuration specification for a WebTest. - * */ export interface WebTestPropertiesConfiguration { /** - * @member {string} [webTest] The XML specification of a WebTest to run - * against an application. + * The XML specification of a WebTest to run against an application. */ webTest?: string; } /** - * @interface - * An interface representing WebTest. * An Application Insights web test definition. - * - * @extends WebtestsResource */ export interface WebTest extends WebtestsResource { /** - * @member {WebTestKind} [kind] The kind of web test that this web test - * watches. Choices are ping and multistep. Possible values include: 'ping', - * 'multistep'. Default value: 'ping' . + * The kind of web test that this web test watches. Choices are ping and multistep. Possible + * values include: 'ping', 'multistep'. Default value: 'ping'. */ kind?: WebTestKind; /** - * @member {string} syntheticMonitorId Unique ID of this WebTest. This is - * typically the same value as the Name field. + * Unique ID of this WebTest. This is typically the same value as the Name field. */ syntheticMonitorId: string; /** - * @member {string} webTestName User defined name if this WebTest. + * User defined name if this WebTest. */ webTestName: string; /** - * @member {string} [description] Purpose/user defined descriptive test for - * this WebTest. + * Purpose/user defined descriptive test for this WebTest. */ description?: string; /** - * @member {boolean} [enabled] Is the test actively being monitored. + * Is the test actively being monitored. */ enabled?: boolean; /** - * @member {number} [frequency] Interval in seconds between test runs for - * this WebTest. Default value is 300. Default value: 300 . + * Interval in seconds between test runs for this WebTest. Default value is 300. Default value: + * 300. */ frequency?: number; /** - * @member {number} [timeout] Seconds until this WebTest will timeout and - * fail. Default value is 30. Default value: 30 . + * Seconds until this WebTest will timeout and fail. Default value is 30. Default value: 30. */ timeout?: number; /** - * @member {WebTestKind} webTestKind The kind of web test this is, valid - * choices are ping and multistep. Possible values include: 'ping', - * 'multistep'. Default value: 'ping' . + * The kind of web test this is, valid choices are ping and multistep. Possible values include: + * 'ping', 'multistep'. Default value: 'ping'. */ webTestKind: WebTestKind; /** - * @member {boolean} [retryEnabled] Allow for retries should this WebTest - * fail. + * Allow for retries should this WebTest fail. */ retryEnabled?: boolean; /** - * @member {WebTestGeolocation[]} locations A list of where to physically run - * the tests from to give global coverage for accessibility of your - * application. + * A list of where to physically run the tests from to give global coverage for accessibility of + * your application. */ locations: WebTestGeolocation[]; /** - * @member {WebTestPropertiesConfiguration} [configuration] An XML - * configuration specification for a WebTest. + * An XML configuration specification for a WebTest. */ configuration?: WebTestPropertiesConfiguration; /** - * @member {string} [provisioningState] Current state of this component, - * whether or not is has been provisioned within the resource group it is - * defined. Users cannot change this value but are able to read from it. - * Values will include Succeeded, Deploying, Canceled, and Failed. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Current state of this component, whether or not is has been provisioned within the resource + * group it is defined. Users cannot change this value but are able to read from it. Values will + * include Succeeded, Deploying, Canceled, and Failed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly provisioningState?: string; } /** - * @interface - * An interface representing ApplicationInsightsComponentAnalyticsItemProperties. - * A set of properties that can be defined in the context of a specific item - * type. Each type may have its own properties. - * + * A set of properties that can be defined in the context of a specific item type. Each type may + * have its own properties. */ export interface ApplicationInsightsComponentAnalyticsItemProperties { /** - * @member {string} [functionAlias] A function alias, used when the type of - * the item is Function + * A function alias, used when the type of the item is Function */ functionAlias?: string; } /** - * @interface - * An interface representing ApplicationInsightsComponentAnalyticsItem. - * Properties that define an Analytics item that is associated to an - * Application Insights component. - * + * Properties that define an Analytics item that is associated to an Application Insights + * component. */ export interface ApplicationInsightsComponentAnalyticsItem { /** - * @member {string} [id] Internally assigned unique id of the item - * definition. + * Internally assigned unique id of the item definition. */ id?: string; /** - * @member {string} [name] The user-defined name of the item. + * The user-defined name of the item. */ name?: string; /** - * @member {string} [content] The content of this item + * The content of this item */ content?: string; /** - * @member {string} [version] This instance's version of the data model. This - * can change as new features are added. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * This instance's version of the data model. This can change as new features are added. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly version?: string; /** - * @member {ItemScope} [scope] Enum indicating if this item definition is - * owned by a specific user or is shared between all users with access to the - * Application Insights component. Possible values include: 'shared', 'user' + * Enum indicating if this item definition is owned by a specific user or is shared between all + * users with access to the Application Insights component. Possible values include: 'shared', + * 'user' */ scope?: ItemScope; /** - * @member {ItemType} [type] Enum indicating the type of the Analytics item. - * Possible values include: 'query', 'function', 'folder', 'recent' + * Enum indicating the type of the Analytics item. Possible values include: 'query', 'function', + * 'folder', 'recent' */ type?: ItemType; /** - * @member {string} [timeCreated] Date and time in UTC when this item was - * created. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Date and time in UTC when this item was created. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly timeCreated?: string; /** - * @member {string} [timeModified] Date and time in UTC of the last - * modification that was made to this item. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Date and time in UTC of the last modification that was made to this item. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly timeModified?: string; - /** - * @member {ApplicationInsightsComponentAnalyticsItemProperties} [properties] - */ properties?: ApplicationInsightsComponentAnalyticsItemProperties; } /** - * @interface - * An interface representing WorkbookResource. * An azure resource object - * - * @extends BaseResource */ export interface WorkbookResource extends BaseResource { /** - * @member {string} [id] Azure resource Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Azure resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Azure resource name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Azure resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] Azure resource type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Azure resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {string} [location] Resource location + * Resource location */ location?: string; /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags + * Resource tags */ tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing Workbook. * An Application Insights workbook definition. - * - * @extends WorkbookResource */ export interface Workbook extends WorkbookResource { /** - * @member {SharedTypeKind} [kind] The kind of workbook. Choices are user and - * shared. Possible values include: 'user', 'shared' + * The kind of workbook. Choices are user and shared. Possible values include: 'user', 'shared' */ kind?: SharedTypeKind; /** - * @member {string} workbookName The user-defined name of the workbook. + * The user-defined name of the workbook. */ workbookName: string; /** - * @member {string} serializedData Configuration of this particular workbook. - * Configuration data is a string containing valid JSON + * Configuration of this particular workbook. Configuration data is a string containing valid + * JSON */ serializedData: string; /** - * @member {string} [version] This instance's version of the data model. This - * can change as new features are added that can be marked workbook. + * This instance's version of the data model. This can change as new features are added that can + * be marked workbook. */ version?: string; /** - * @member {string} workbookId Internally assigned unique id of the workbook - * definition. + * Internally assigned unique id of the workbook definition. */ workbookId: string; /** - * @member {SharedTypeKind} sharedTypeKind Enum indicating if this workbook - * definition is owned by a specific user or is shared between all users with - * access to the Application Insights component. Possible values include: - * 'user', 'shared'. Default value: 'shared' . + * Enum indicating if this workbook definition is owned by a specific user or is shared between + * all users with access to the Application Insights component. Possible values include: 'user', + * 'shared'. Default value: 'shared'. */ sharedTypeKind: SharedTypeKind; /** - * @member {string} [timeModified] Date and time in UTC of the last - * modification that was made to this workbook definition. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Date and time in UTC of the last modification that was made to this workbook definition. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly timeModified?: string; /** - * @member {string} category Workbook category, as defined by the user at - * creation time. + * Workbook category, as defined by the user at creation time. */ category: string; /** - * @member {string[]} [workbookTags] A list of 0 or more tags that are - * associated with this workbook definition + * A list of 0 or more tags that are associated with this workbook definition */ workbookTags?: string[]; /** - * @member {string} userId Unique user id of the specific user that owns this - * workbook. + * Unique user id of the specific user that owns this workbook. */ userId: string; /** - * @member {string} [sourceResourceId] Optional resourceId for a source - * resource. + * Optional resourceId for a source resource. */ sourceResourceId?: string; } /** - * @interface - * An interface representing LinkProperties. * Contains a sourceId and workbook resource id to link two resources. - * */ export interface LinkProperties { /** - * @member {string} [sourceId] The source Azure resource id + * The source Azure resource id */ sourceId?: string; /** - * @member {string} [targetId] The workbook Azure resource id + * The workbook Azure resource id */ targetId?: string; /** - * @member {string} [category] The category of workbook + * The category of workbook */ category?: string; } /** - * @interface - * An interface representing ErrorFieldContract. * Error Field contract. - * */ export interface ErrorFieldContract { /** - * @member {string} [code] Property level error code. + * Property level error code. */ code?: string; /** - * @member {string} [message] Human-readable representation of property-level - * error. + * Human-readable representation of property-level error. */ message?: string; /** - * @member {string} [target] Property name. + * Property name. */ target?: string; } /** - * @interface - * An interface representing WorkbookError. * Error message body that will indicate why the operation failed. - * */ export interface WorkbookError { /** - * @member {string} [code] Service-defined error code. This code serves as a - * sub-status for the HTTP error code specified in the response. + * Service-defined error code. This code serves as a sub-status for the HTTP error code specified + * in the response. */ code?: string; /** - * @member {string} [message] Human-readable representation of the error. + * Human-readable representation of the error. */ message?: string; /** - * @member {ErrorFieldContract[]} [details] The list of invalid fields send - * in request, in case of validation error. + * The list of invalid fields send in request, in case of validation error. */ details?: ErrorFieldContract[]; } /** - * @interface - * An interface representing FavoritesListOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase + * An azure resource object */ -export interface FavoritesListOptionalParams extends msRest.RequestOptionsBase { +export interface MyWorkbookResource extends BaseResource { /** - * @member {FavoriteType} [favoriteType] The type of favorite. Value can be - * either shared or user. Possible values include: 'shared', 'user'. Default - * value: 'shared' . + * Azure resource Id */ - favoriteType?: FavoriteType; + id?: string; /** - * @member {FavoriteSourceType} [sourceType] Source type of favorite to - * return. When left out, the source type defaults to 'other' (not present in - * this enum). Possible values include: 'retention', 'notebook', 'sessions', - * 'events', 'userflows', 'funnel', 'impact', 'segmentation' + * Azure resource name */ - sourceType?: FavoriteSourceType; + name?: string; /** - * @member {boolean} [canFetchContent] Flag indicating whether or not to - * return the full content for each applicable favorite. If false, only - * return summary content for favorites. + * Azure resource type */ - canFetchContent?: boolean; + type?: string; /** - * @member {string[]} [tags] Tags that must be present on each favorite - * returned. + * Resource location */ - tags?: string[]; + location?: string; + /** + * Resource tags + */ + tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing AnalyticsItemsListOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase + * An Application Insights private workbook definition. */ -export interface AnalyticsItemsListOptionalParams extends msRest.RequestOptionsBase { +export interface MyWorkbook extends MyWorkbookResource { /** - * @member {ItemScope} [scope] Enum indicating if this item definition is - * owned by a specific user or is shared between all users with access to the - * Application Insights component. Possible values include: 'shared', 'user'. - * Default value: 'shared' . + * The kind of workbook. Choices are user and shared. Possible values include: 'user', 'shared' */ - scope?: ItemScope; + kind?: SharedTypeKind; /** - * @member {ItemTypeParameter} [type] Enum indicating the type of the - * Analytics item. Possible values include: 'none', 'query', 'function', - * 'folder', 'recent'. Default value: 'none' . + * The user-defined name of the private workbook. */ - type?: ItemTypeParameter; + displayName: string; /** - * @member {boolean} [includeContent] Flag indicating whether or not to - * return the content of each applicable item. If false, only return the item - * information. + * Configuration of this particular private workbook. Configuration data is a string containing + * valid JSON */ - includeContent?: boolean; -} - -/** - * @interface - * An interface representing AnalyticsItemsGetOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface AnalyticsItemsGetOptionalParams extends msRest.RequestOptionsBase { + serializedData: string; + /** + * This instance's version of the data model. This can change as new features are added that can + * be marked private workbook. + */ + version?: string; + /** + * Date and time in UTC of the last modification that was made to this private workbook + * definition. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly timeModified?: string; + /** + * Workbook category, as defined by the user at creation time. + */ + category: string; + /** + * A list of 0 or more tags that are associated with this private workbook definition + */ + myWorkbookTags?: string[]; + /** + * Unique user id of the specific user that owns this private workbook. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly userId?: string; + /** + * Optional resourceId for a source resource. + */ + sourceId?: string; +} + +/** + * Error message body that will indicate why the operation failed. + */ +export interface MyWorkbookError { + /** + * Service-defined error code. This code serves as a sub-status for the HTTP error code specified + * in the response. + */ + code?: string; + /** + * Human-readable representation of the error. + */ + message?: string; + /** + * The list of invalid fields send in request, in case of validation error. + */ + details?: ErrorFieldContract[]; +} + +/** + * An azure resource object + */ +export interface ComponentsResource extends BaseResource { + /** + * Azure resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Azure resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Azure resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Resource location + */ + location: string; + /** + * Resource tags + */ + tags?: { [propertyName: string]: string }; +} + +/** + * The private link scope resource reference. + */ +export interface PrivateLinkScopedResource { + /** + * The full resource Id of the private link scope resource. + */ + resourceId?: string; + /** + * The private link scope unique Identifier. + */ + scopeId?: string; +} + +/** + * An Application Insights component definition. + */ +export interface ApplicationInsightsComponent extends ComponentsResource { + /** + * The kind of application that this component refers to, used to customize UI. This value is a + * freeform string, values should typically be one of the following: web, ios, other, store, + * java, phone. + */ + kind: string; + /** + * The unique ID of your application. This field mirrors the 'Name' field and cannot be changed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly applicationId?: string; + /** + * Application Insights Unique ID for your Application. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly appId?: string; + /** + * Type of application being monitored. Possible values include: 'web', 'other'. Default value: + * 'web'. + */ + applicationType: ApplicationType; + /** + * Used by the Application Insights system to determine what kind of flow this component was + * created by. This is to be set to 'Bluefield' when creating/updating a component via the REST + * API. Possible values include: 'Bluefield'. Default value: 'Bluefield'. + */ + flowType?: FlowType; + /** + * Describes what tool created this Application Insights component. Customers using this API + * should set this to the default 'rest'. Possible values include: 'rest'. Default value: 'rest'. + */ + requestSource?: RequestSource; + /** + * Application Insights Instrumentation key. A read-only value that applications can use to + * identify the destination for all telemetry sent to Azure Application Insights. This value will + * be supplied upon construction of each new Application Insights component. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly instrumentationKey?: string; + /** + * Creation Date for the Application Insights component, in ISO 8601 format. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly creationDate?: Date; + /** + * Azure Tenant Id. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tenantId?: string; + /** + * The unique application ID created when a new application is added to HockeyApp, used for + * communications with HockeyApp. + */ + hockeyAppId?: string; + /** + * Token used to authenticate communications with between Application Insights and HockeyApp. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly hockeyAppToken?: string; /** - * @member {string} [id] The Id of a specific item defined in the Application - * Insights component + * Current state of this component: whether or not is has been provisioned within the resource + * group it is defined. Users cannot change this value but are able to read from it. Values will + * include Succeeded, Deploying, Canceled, and Failed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: string; + /** + * Percentage of the data produced by the application being monitored that is being sampled for + * Application Insights telemetry. + */ + samplingPercentage?: number; + /** + * Application Insights component connection string. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly connectionString?: string; + /** + * Retention period in days. Default value: 90. + */ + retentionInDays?: number; + /** + * Disable IP masking. + */ + disableIpMasking?: boolean; + /** + * Purge data immediately after 30 days. + */ + immediatePurgeDataOn30Days?: boolean; + /** + * List of linked private link scope resources. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; + /** + * The network access type for accessing Application Insights ingestion. Possible values include: + * 'Enabled', 'Disabled'. Default value: 'Enabled'. + */ + publicNetworkAccessForIngestion?: PublicNetworkAccessType; + /** + * The network access type for accessing Application Insights query. Possible values include: + * 'Enabled', 'Disabled'. Default value: 'Enabled'. + */ + publicNetworkAccessForQuery?: PublicNetworkAccessType; + /** + * Indicates the flow of the ingestion. Possible values include: 'ApplicationInsights', + * 'ApplicationInsightsWithDiagnosticSettings', 'LogAnalytics'. Default value: + * 'ApplicationInsights'. + */ + ingestionMode?: IngestionMode; +} + +/** + * User-defined filters to return data which will be purged from the table. + */ +export interface ComponentPurgeBodyFilters { + /** + * The column of the table over which the given query should run + */ + column?: string; + /** + * A query operator to evaluate over the provided column and value(s). Supported operators are + * ==, =~, in, in~, >, >=, <, <=, between, and have the same behavior as they would in a KQL + * query. + */ + operator?: string; + /** + * the value for the operator to function over. This can be a number (e.g., > 100), a string + * (timestamp >= '2017-09-01') or array of values. + */ + value?: any; + /** + * When filtering over custom dimensions, this key will be used as the name of the custom + * dimension. + */ + key?: string; +} + +/** + * Describes the body of a purge request for an App Insights component + */ +export interface ComponentPurgeBody { + /** + * Table from which to purge data. + */ + table: string; + /** + * The set of columns and filters (queries) to run over them to purge the resulting data. + */ + filters: ComponentPurgeBodyFilters[]; +} + +/** + * Response containing operationId for a specific purge action. + */ +export interface ComponentPurgeResponse { + /** + * Id to use when querying for status for a particular purge operation. + */ + operationId: string; +} + +/** + * Response containing status for a specific purge operation. + */ +export interface ComponentPurgeStatusResponse { + /** + * Status of the operation represented by the requested Id. Possible values include: 'pending', + * 'completed' + */ + status: PurgeState; +} + +/** + * An interface representing Resource. + */ +export interface Resource extends BaseResource { + /** + * Fully qualified resource Id for the resource. Ex - + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * The name of the resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * The type of the resource. Ex- Microsoft.Compute/virtualMachines or + * Microsoft.Storage/storageAccounts. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; +} + +/** + * The resource model definition for a ARM proxy resource. It will have everything other than + * required location and tags + */ +export interface ProxyResource extends Resource { +} + +/** + * An Application Insights component linked storage accounts + */ +export interface ComponentLinkedStorageAccounts extends ProxyResource { + /** + * Linked storage account resource ID + */ + linkedStorageAccount?: string; +} + +/** + * An Application Insights component linked storage accounts patch + */ +export interface ComponentLinkedStorageAccountsPatch { + /** + * Linked storage account resource ID + */ + linkedStorageAccount?: string; +} + +/** + * The resource model definition for a ARM tracked top level resource + */ +export interface TrackedResource extends Resource { + /** + * Resource tags. + */ + tags?: { [propertyName: string]: string }; + /** + * The geo-location where the resource lives + */ + location: string; +} + +/** + * The resource model definition for a Azure Resource Manager resource with an etag. + */ +export interface AzureEntityResource extends Resource { + /** + * Resource Etag. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly etag?: string; +} + +/** + * The response to a live token query. + */ +export interface LiveTokenResponse { + /** + * JWT token for accessing live metrics stream data. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly liveToken?: string; +} + +/** + * Information about an operation + */ +export interface OperationInfo { + /** + * Name of the provider + */ + provider?: string; + /** + * Name of the resource type + */ + resource?: string; + /** + * Name of the operation + */ + operation?: string; + /** + * Description of the operation + */ + description?: string; +} + +/** + * Represents an operation returned by the GetOperations request + */ +export interface OperationLive { + /** + * Name of the operation + */ + name?: string; + /** + * Display name of the operation + */ + display?: OperationInfo; + /** + * Origin of the operation + */ + origin?: string; + /** + * Properties of the operation + */ + properties?: any; +} + +/** + * Optional Parameters. + */ +export interface FavoritesListOptionalParams extends msRest.RequestOptionsBase { + /** + * The type of favorite. Value can be either shared or user. Possible values include: 'shared', + * 'user'. Default value: 'shared'. + */ + favoriteType?: FavoriteType; + /** + * Source type of favorite to return. When left out, the source type defaults to 'other' (not + * present in this enum). Possible values include: 'retention', 'notebook', 'sessions', 'events', + * 'userflows', 'funnel', 'impact', 'segmentation' + */ + sourceType?: FavoriteSourceType; + /** + * Flag indicating whether or not to return the full content for each applicable favorite. If + * false, only return summary content for favorites. + */ + canFetchContent?: boolean; + /** + * Tags that must be present on each favorite returned. + */ + tags?: string[]; +} + +/** + * Optional Parameters. + */ +export interface AnalyticsItemsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Enum indicating if this item definition is owned by a specific user or is shared between all + * users with access to the Application Insights component. Possible values include: 'shared', + * 'user'. Default value: 'shared'. + */ + scope?: ItemScope; + /** + * Enum indicating the type of the Analytics item. Possible values include: 'none', 'query', + * 'function', 'folder', 'recent'. Default value: 'none'. + */ + type?: ItemTypeParameter; + /** + * Flag indicating whether or not to return the content of each applicable item. If false, only + * return the item information. + */ + includeContent?: boolean; +} + +/** + * Optional Parameters. + */ +export interface AnalyticsItemsGetOptionalParams extends msRest.RequestOptionsBase { + /** + * The Id of a specific item defined in the Application Insights component */ id?: string; /** - * @member {string} [name] The name of a specific item defined in the - * Application Insights component + * The name of a specific item defined in the Application Insights component */ name?: string; } /** - * @interface - * An interface representing AnalyticsItemsPutOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface AnalyticsItemsPutOptionalParams extends msRest.RequestOptionsBase { /** - * @member {boolean} [overrideItem] Flag indicating whether or not to force - * save an item. This allows overriding an item if it already exists. + * Flag indicating whether or not to force save an item. This allows overriding an item if it + * already exists. */ overrideItem?: boolean; } /** - * @interface - * An interface representing AnalyticsItemsDeleteMethodOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface AnalyticsItemsDeleteMethodOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [id] The Id of a specific item defined in the Application - * Insights component + * The Id of a specific item defined in the Application Insights component */ id?: string; /** - * @member {string} [name] The name of a specific item defined in the - * Application Insights component + * The name of a specific item defined in the Application Insights component */ name?: string; } /** - * @interface - * An interface representing WorkbooksListByResourceGroupOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface WorkbooksListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string[]} [tags] Tags presents on each workbook returned. + * Tags presents on each workbook returned. */ tags?: string[]; /** - * @member {boolean} [canFetchContent] Flag indicating whether or not to - * return the full content for each applicable workbook. If false, only - * return summary content for workbooks. + * Flag indicating whether or not to return the full content for each applicable workbook. If + * false, only return summary content for workbooks. */ canFetchContent?: boolean; } /** - * @interface - * An interface representing ApplicationInsightsManagementClientOptions. - * @extends AzureServiceClientOptions + * Optional Parameters. */ -export interface ApplicationInsightsManagementClientOptions extends AzureServiceClientOptions { +export interface MyWorkbooksListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [baseUri] + * Tags presents on each workbook returned. */ - baseUri?: string; + tags?: string[]; + /** + * Flag indicating whether or not to return the full content for each applicable workbook. If + * false, only return summary content for workbooks. + */ + canFetchContent?: boolean; } +/** + * Optional Parameters. + */ +export interface MyWorkbooksListBySubscriptionOptionalParams extends msRest.RequestOptionsBase { + /** + * Tags presents on each workbook returned. + */ + tags?: string[]; + /** + * Flag indicating whether or not to return the full content for each applicable workbook. If + * false, only return summary content for workbooks. + */ + canFetchContent?: boolean; +} + +/** + * An interface representing ApplicationInsightsManagementClientOptions. + */ +export interface ApplicationInsightsManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} /** * @interface - * An interface representing the OperationListResult. - * Result of the request to list CDN operations. It contains a list of - * operations and a URL link to get the next set of results. - * + * Result of the request to list CDN operations. It contains a list of operations and a URL link to + * get the next set of results. * @extends Array */ export interface OperationListResult extends Array { /** - * @member {string} [nextLink] URL to get the next set of operation list - * results if there are any. + * URL to get the next set of operation list results if there are any. + */ + nextLink?: string; +} + +/** + * @interface + * Result of the List Operations operation + * @extends Array + */ +export interface OperationsListResult extends Array { + /** + * URL to get the next set of operation list results if there are any. */ nextLink?: string; } /** * @interface - * An interface representing the AnnotationsListResult. * Annotations list result. - * * @extends Array */ export interface AnnotationsListResult extends Array { @@ -1783,9 +1710,7 @@ export interface AnnotationsListResult extends Array { /** * @interface - * An interface representing the ApplicationInsightsComponentAPIKeyListResult. * Describes the list of API Keys of an Application Insights Component. - * * @extends Array */ export interface ApplicationInsightsComponentAPIKeyListResult extends Array { @@ -1793,25 +1718,7 @@ export interface ApplicationInsightsComponentAPIKeyListResult extends Array - */ -export interface ApplicationInsightsComponentListResult extends Array { - /** - * @member {string} [nextLink] The URI to get the next set of Application - * Insights component defintions if too many components where returned in the - * result set. - */ - nextLink?: string; -} - -/** - * @interface - * An interface representing the WorkItemConfigurationsListResult. * Work item configuration list result. - * * @extends Array */ export interface WorkItemConfigurationsListResult extends Array { @@ -1819,10 +1726,7 @@ export interface WorkItemConfigurationsListResult extends Array */ export interface ApplicationInsightsWebTestLocationsListResult extends Array { @@ -1830,101 +1734,134 @@ export interface ApplicationInsightsWebTestLocationsListResult extends Array */ export interface WebTestListResult extends Array { /** - * @member {string} [nextLink] The link to get the next part of the returned - * list of web tests, should the return set be too large for a single - * request. May be null. + * The link to get the next part of the returned list of web tests, should the return set be too + * large for a single request. May be null. */ nextLink?: string; } /** * @interface - * An interface representing the WorkbooksListResult. * Workbook list result. - * * @extends Array */ export interface WorkbooksListResult extends Array { } /** - * Defines values for ApplicationType. - * Possible values include: 'web', 'other' + * @interface + * Workbook list result. + * @extends Array + */ +export interface MyWorkbooksListResult extends Array { +} + +/** + * @interface + * Describes the list of Application Insights Resources. + * @extends Array + */ +export interface ApplicationInsightsComponentListResult extends Array { + /** + * The URI to get the next set of Application Insights component definitions if too many + * components where returned in the result set. + */ + nextLink?: string; +} + +/** + * Defines values for FavoriteType. + * Possible values include: 'shared', 'user' * @readonly * @enum {string} */ -export type ApplicationType = 'web' | 'other'; +export type FavoriteType = 'shared' | 'user'; /** - * Defines values for FlowType. - * Possible values include: 'Bluefield' + * Defines values for WebTestKind. + * Possible values include: 'ping', 'multistep' * @readonly * @enum {string} */ -export type FlowType = 'Bluefield'; +export type WebTestKind = 'ping' | 'multistep'; /** - * Defines values for RequestSource. - * Possible values include: 'rest' + * Defines values for ItemScope. + * Possible values include: 'shared', 'user' * @readonly * @enum {string} */ -export type RequestSource = 'rest'; +export type ItemScope = 'shared' | 'user'; /** - * Defines values for PurgeState. - * Possible values include: 'pending', 'completed' + * Defines values for ItemType. + * Possible values include: 'query', 'function', 'folder', 'recent' + * @readonly + * @enum {string} + */ +export type ItemType = 'query' | 'function' | 'folder' | 'recent'; + +/** + * Defines values for SharedTypeKind. + * Possible values include: 'user', 'shared' + * @readonly + * @enum {string} + */ +export type SharedTypeKind = 'user' | 'shared'; + +/** + * Defines values for ApplicationType. + * Possible values include: 'web', 'other' * @readonly * @enum {string} */ -export type PurgeState = 'pending' | 'completed'; +export type ApplicationType = 'web' | 'other'; /** - * Defines values for FavoriteType. - * Possible values include: 'shared', 'user' + * Defines values for FlowType. + * Possible values include: 'Bluefield' * @readonly * @enum {string} */ -export type FavoriteType = 'shared' | 'user'; +export type FlowType = 'Bluefield'; /** - * Defines values for WebTestKind. - * Possible values include: 'ping', 'multistep' + * Defines values for RequestSource. + * Possible values include: 'rest' * @readonly * @enum {string} */ -export type WebTestKind = 'ping' | 'multistep'; +export type RequestSource = 'rest'; /** - * Defines values for ItemScope. - * Possible values include: 'shared', 'user' + * Defines values for PublicNetworkAccessType. + * Possible values include: 'Enabled', 'Disabled' * @readonly * @enum {string} */ -export type ItemScope = 'shared' | 'user'; +export type PublicNetworkAccessType = 'Enabled' | 'Disabled'; /** - * Defines values for ItemType. - * Possible values include: 'query', 'function', 'folder', 'recent' + * Defines values for IngestionMode. + * Possible values include: 'ApplicationInsights', 'ApplicationInsightsWithDiagnosticSettings', + * 'LogAnalytics' * @readonly * @enum {string} */ -export type ItemType = 'query' | 'function' | 'folder' | 'recent'; +export type IngestionMode = 'ApplicationInsights' | 'ApplicationInsightsWithDiagnosticSettings' | 'LogAnalytics'; /** - * Defines values for SharedTypeKind. - * Possible values include: 'user', 'shared' + * Defines values for PurgeState. + * Possible values include: 'pending', 'completed' * @readonly * @enum {string} */ -export type SharedTypeKind = 'user' | 'shared'; +export type PurgeState = 'pending' | 'completed'; /** * Defines values for FavoriteSourceType. @@ -1971,6 +1908,7 @@ export type OperationsListResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1978,6 +1916,26 @@ export type OperationsListResponse = OperationListResult & { }; }; +/** + * Contains response data for the list1 operation. + */ +export type OperationsList1Response = OperationsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: OperationsListResult; + }; +}; + /** * Contains response data for the listNext operation. */ @@ -1990,6 +1948,7 @@ export type OperationsListNextResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -1998,9 +1957,9 @@ export type OperationsListNextResponse = OperationListResult & { }; /** - * Contains response data for the list operation. + * Contains response data for the list1Next operation. */ -export type AnnotationsListResponse = AnnotationsListResult & { +export type OperationsList1NextResponse = OperationsListResult & { /** * The underlying HTTP response. */ @@ -2009,17 +1968,18 @@ export type AnnotationsListResponse = AnnotationsListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: AnnotationsListResult; + parsedBody: OperationsListResult; }; }; /** - * Contains response data for the create operation. + * Contains response data for the list operation. */ -export type AnnotationsCreateResponse = Array & { +export type AnnotationsListResponse = AnnotationsListResult & { /** * The underlying HTTP response. */ @@ -2028,21 +1988,18 @@ export type AnnotationsCreateResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Annotation[]; + parsedBody: AnnotationsListResult; }; }; /** - * Contains response data for the deleteMethod operation. + * Contains response data for the create operation. */ -export type AnnotationsDeleteMethodResponse = { - /** - * The parsed response body. - */ - body: any; +export type AnnotationsCreateResponse = Array & { /** * The underlying HTTP response. */ @@ -2051,10 +2008,11 @@ export type AnnotationsDeleteMethodResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: Annotation[]; }; }; @@ -2070,6 +2028,7 @@ export type AnnotationsGetResponse = Array & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2089,6 +2048,7 @@ export type APIKeysListResponse = ApplicationInsightsComponentAPIKeyListResult & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2108,6 +2068,7 @@ export type APIKeysCreateResponse = ApplicationInsightsComponentAPIKey & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2127,6 +2088,7 @@ export type APIKeysDeleteMethodResponse = ApplicationInsightsComponentAPIKey & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2146,6 +2108,7 @@ export type APIKeysGetResponse = ApplicationInsightsComponentAPIKey & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -2165,6 +2128,7 @@ export type ExportConfigurationsListResponse = Array & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApplicationInsightsComponentProactiveDetectionConfiguration[]; + }; +}; + +/** + * Contains response data for the get operation. + */ +export type ProactiveDetectionConfigurationsGetResponse = ApplicationInsightsComponentProactiveDetectionConfiguration & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApplicationInsightsComponentProactiveDetectionConfiguration; + }; +}; + /** * Contains response data for the update operation. */ -export type ComponentCurrentBillingFeaturesUpdateResponse = ApplicationInsightsComponentBillingFeatures & { +export type ProactiveDetectionConfigurationsUpdateResponse = ApplicationInsightsComponentProactiveDetectionConfiguration & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: ApplicationInsightsComponentProactiveDetectionConfiguration; + }; +}; + +/** + * Contains response data for the list operation. + */ +export type WorkItemConfigurationsListResponse = WorkItemConfigurationsListResult & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkItemConfigurationsListResult; + }; +}; + +/** + * Contains response data for the create operation. + */ +export type WorkItemConfigurationsCreateResponse = WorkItemConfiguration & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + + /** + * The response body as parsed JSON or XML + */ + parsedBody: WorkItemConfiguration; + }; +}; + +/** + * Contains response data for the getDefault operation. + */ +export type WorkItemConfigurationsGetDefaultResponse = WorkItemConfiguration & { /** * The underlying HTTP response. */ @@ -2279,17 +2428,18 @@ export type ComponentCurrentBillingFeaturesUpdateResponse = ApplicationInsightsC * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ApplicationInsightsComponentBillingFeatures; + parsedBody: WorkItemConfiguration; }; }; /** - * Contains response data for the get operation. + * Contains response data for the getItem operation. */ -export type ComponentQuotaStatusGetResponse = ApplicationInsightsComponentQuotaStatus & { +export type WorkItemConfigurationsGetItemResponse = WorkItemConfiguration & { /** * The underlying HTTP response. */ @@ -2298,17 +2448,18 @@ export type ComponentQuotaStatusGetResponse = ApplicationInsightsComponentQuotaS * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ApplicationInsightsComponentQuotaStatus; + parsedBody: WorkItemConfiguration; }; }; /** - * Contains response data for the get operation. + * Contains response data for the updateItem operation. */ -export type ComponentFeatureCapabilitiesGetResponse = ApplicationInsightsComponentFeatureCapabilities & { +export type WorkItemConfigurationsUpdateItemResponse = WorkItemConfiguration & { /** * The underlying HTTP response. */ @@ -2317,17 +2468,18 @@ export type ComponentFeatureCapabilitiesGetResponse = ApplicationInsightsCompone * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ApplicationInsightsComponentFeatureCapabilities; + parsedBody: WorkItemConfiguration; }; }; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type ComponentAvailableFeaturesGetResponse = ApplicationInsightsComponentAvailableFeatures & { +export type FavoritesListResponse = Array & { /** * The underlying HTTP response. */ @@ -2336,17 +2488,18 @@ export type ComponentAvailableFeaturesGetResponse = ApplicationInsightsComponent * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ApplicationInsightsComponentAvailableFeatures; + parsedBody: ApplicationInsightsComponentFavorite[]; }; }; /** - * Contains response data for the list operation. + * Contains response data for the get operation. */ -export type ProactiveDetectionConfigurationsListResponse = Array & { +export type FavoritesGetResponse = ApplicationInsightsComponentFavorite & { /** * The underlying HTTP response. */ @@ -2355,17 +2508,18 @@ export type ProactiveDetectionConfigurationsListResponse = Array & { /** * The underlying HTTP response. */ @@ -2602,17 +2768,18 @@ export type WorkItemConfigurationsCreateResponse = WorkItemConfiguration & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: WorkItemConfiguration; + parsedBody: ApplicationInsightsComponentAnalyticsItem[]; }; }; /** - * Contains response data for the getDefault operation. + * Contains response data for the get operation. */ -export type WorkItemConfigurationsGetDefaultResponse = WorkItemConfiguration & { +export type AnalyticsItemsGetResponse = ApplicationInsightsComponentAnalyticsItem & { /** * The underlying HTTP response. */ @@ -2621,21 +2788,18 @@ export type WorkItemConfigurationsGetDefaultResponse = WorkItemConfiguration & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: WorkItemConfiguration; + parsedBody: ApplicationInsightsComponentAnalyticsItem; }; }; /** - * Contains response data for the deleteMethod operation. + * Contains response data for the put operation. */ -export type WorkItemConfigurationsDeleteMethodResponse = { - /** - * The parsed response body. - */ - body: any; +export type AnalyticsItemsPutResponse = ApplicationInsightsComponentAnalyticsItem & { /** * The underlying HTTP response. */ @@ -2644,17 +2808,18 @@ export type WorkItemConfigurationsDeleteMethodResponse = { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: any; + parsedBody: ApplicationInsightsComponentAnalyticsItem; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByResourceGroup operation. */ -export type FavoritesListResponse = Array & { +export type WorkbooksListByResourceGroupResponse = WorkbooksListResult & { /** * The underlying HTTP response. */ @@ -2663,17 +2828,18 @@ export type FavoritesListResponse = Array * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ApplicationInsightsComponentFavorite[]; + parsedBody: WorkbooksListResult; }; }; /** * Contains response data for the get operation. */ -export type FavoritesGetResponse = ApplicationInsightsComponentFavorite & { +export type WorkbooksGetResponse = Workbook & { /** * The underlying HTTP response. */ @@ -2682,17 +2848,18 @@ export type FavoritesGetResponse = ApplicationInsightsComponentFavorite & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ApplicationInsightsComponentFavorite; + parsedBody: Workbook; }; }; /** - * Contains response data for the add operation. + * Contains response data for the createOrUpdate operation. */ -export type FavoritesAddResponse = ApplicationInsightsComponentFavorite & { +export type WorkbooksCreateOrUpdateResponse = Workbook & { /** * The underlying HTTP response. */ @@ -2701,17 +2868,18 @@ export type FavoritesAddResponse = ApplicationInsightsComponentFavorite & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ApplicationInsightsComponentFavorite; + parsedBody: Workbook; }; }; /** * Contains response data for the update operation. */ -export type FavoritesUpdateResponse = ApplicationInsightsComponentFavorite & { +export type WorkbooksUpdateResponse = Workbook & { /** * The underlying HTTP response. */ @@ -2720,17 +2888,18 @@ export type FavoritesUpdateResponse = ApplicationInsightsComponentFavorite & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ApplicationInsightsComponentFavorite; + parsedBody: Workbook; }; }; /** - * Contains response data for the list operation. + * Contains response data for the listByResourceGroup operation. */ -export type WebTestLocationsListResponse = ApplicationInsightsWebTestLocationsListResult & { +export type MyWorkbooksListByResourceGroupResponse = MyWorkbooksListResult & { /** * The underlying HTTP response. */ @@ -2739,17 +2908,18 @@ export type WebTestLocationsListResponse = ApplicationInsightsWebTestLocationsLi * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: ApplicationInsightsWebTestLocationsListResult; + parsedBody: MyWorkbooksListResult; }; }; /** - * Contains response data for the listByResourceGroup operation. + * Contains response data for the listBySubscription operation. */ -export type WebTestsListByResourceGroupResponse = WebTestListResult & { +export type MyWorkbooksListBySubscriptionResponse = MyWorkbooksListResult & { /** * The underlying HTTP response. */ @@ -2758,17 +2928,18 @@ export type WebTestsListByResourceGroupResponse = WebTestListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: WebTestListResult; + parsedBody: MyWorkbooksListResult; }; }; /** * Contains response data for the get operation. */ -export type WebTestsGetResponse = WebTest & { +export type MyWorkbooksGetResponse = MyWorkbook & { /** * The underlying HTTP response. */ @@ -2777,17 +2948,18 @@ export type WebTestsGetResponse = WebTest & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: WebTest; + parsedBody: MyWorkbook; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type WebTestsCreateOrUpdateResponse = WebTest & { +export type MyWorkbooksCreateOrUpdateResponse = MyWorkbook & { /** * The underlying HTTP response. */ @@ -2796,17 +2968,18 @@ export type WebTestsCreateOrUpdateResponse = WebTest & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: WebTest; + parsedBody: MyWorkbook; }; }; /** - * Contains response data for the updateTags operation. + * Contains response data for the update operation. */ -export type WebTestsUpdateTagsResponse = WebTest & { +export type MyWorkbooksUpdateResponse = MyWorkbook & { /** * The underlying HTTP response. */ @@ -2815,17 +2988,18 @@ export type WebTestsUpdateTagsResponse = WebTest & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: WebTest; + parsedBody: MyWorkbook; }; }; /** * Contains response data for the list operation. */ -export type WebTestsListResponse = WebTestListResult & { +export type ComponentsListResponse = ApplicationInsightsComponentListResult & { /** * The underlying HTTP response. */ @@ -2834,17 +3008,18 @@ export type WebTestsListResponse = WebTestListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: WebTestListResult; + parsedBody: ApplicationInsightsComponentListResult; }; }; /** - * Contains response data for the listByComponent operation. + * Contains response data for the listByResourceGroup operation. */ -export type WebTestsListByComponentResponse = WebTestListResult & { +export type ComponentsListByResourceGroupResponse = ApplicationInsightsComponentListResult & { /** * The underlying HTTP response. */ @@ -2853,17 +3028,18 @@ export type WebTestsListByComponentResponse = WebTestListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: WebTestListResult; + parsedBody: ApplicationInsightsComponentListResult; }; }; /** - * Contains response data for the listByResourceGroupNext operation. + * Contains response data for the get operation. */ -export type WebTestsListByResourceGroupNextResponse = WebTestListResult & { +export type ComponentsGetResponse = ApplicationInsightsComponent & { /** * The underlying HTTP response. */ @@ -2872,17 +3048,18 @@ export type WebTestsListByResourceGroupNextResponse = WebTestListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: WebTestListResult; + parsedBody: ApplicationInsightsComponent; }; }; /** - * Contains response data for the listNext operation. + * Contains response data for the createOrUpdate operation. */ -export type WebTestsListNextResponse = WebTestListResult & { +export type ComponentsCreateOrUpdateResponse = ApplicationInsightsComponent & { /** * The underlying HTTP response. */ @@ -2891,17 +3068,18 @@ export type WebTestsListNextResponse = WebTestListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: WebTestListResult; + parsedBody: ApplicationInsightsComponent; }; }; /** - * Contains response data for the listByComponentNext operation. + * Contains response data for the updateTags operation. */ -export type WebTestsListByComponentNextResponse = WebTestListResult & { +export type ComponentsUpdateTagsResponse = ApplicationInsightsComponent & { /** * The underlying HTTP response. */ @@ -2910,17 +3088,18 @@ export type WebTestsListByComponentNextResponse = WebTestListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: WebTestListResult; + parsedBody: ApplicationInsightsComponent; }; }; /** - * Contains response data for the list operation. + * Contains response data for the purge operation. */ -export type AnalyticsItemsListResponse = Array & { +export type ComponentsPurgeResponse = ComponentPurgeResponse & { /** * The underlying HTTP response. */ @@ -2929,17 +3108,18 @@ export type AnalyticsItemsListResponse = Array */ list(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param callback The callback */ list(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param options The optional parameters * @param callback The callback @@ -60,7 +60,7 @@ export class APIKeys { /** * Create an API Key of an Application Insights component. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param aPIKeyProperties Properties that need to be specified to create an API key of a * Application Insights component. @@ -69,7 +69,7 @@ export class APIKeys { */ create(resourceGroupName: string, resourceName: string, aPIKeyProperties: Models.APIKeyRequest, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param aPIKeyProperties Properties that need to be specified to create an API key of a * Application Insights component. @@ -77,7 +77,7 @@ export class APIKeys { */ create(resourceGroupName: string, resourceName: string, aPIKeyProperties: Models.APIKeyRequest, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param aPIKeyProperties Properties that need to be specified to create an API key of a * Application Insights component. @@ -99,7 +99,7 @@ export class APIKeys { /** * Delete an API Key of an Application Insights component. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param keyId The API Key ID. This is unique within a Application Insights component. * @param [options] The optional parameters @@ -107,14 +107,14 @@ export class APIKeys { */ deleteMethod(resourceGroupName: string, resourceName: string, keyId: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param keyId The API Key ID. This is unique within a Application Insights component. * @param callback The callback */ deleteMethod(resourceGroupName: string, resourceName: string, keyId: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param keyId The API Key ID. This is unique within a Application Insights component. * @param options The optional parameters @@ -135,7 +135,7 @@ export class APIKeys { /** * Get the API Key for this key id. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param keyId The API Key ID. This is unique within a Application Insights component. * @param [options] The optional parameters @@ -143,14 +143,14 @@ export class APIKeys { */ get(resourceGroupName: string, resourceName: string, keyId: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param keyId The API Key ID. This is unique within a Application Insights component. * @param callback The callback */ get(resourceGroupName: string, resourceName: string, keyId: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param keyId The API Key ID. This is unique within a Application Insights component. * @param options The optional parameters @@ -181,7 +181,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -206,7 +206,7 @@ const createOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -239,7 +239,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.keyId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -265,7 +265,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.keyId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/analyticsItems.ts b/sdk/applicationinsights/arm-appinsights/src/operations/analyticsItems.ts index bafbaa9326ea..6ab9ebbc360f 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/analyticsItems.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/analyticsItems.ts @@ -28,7 +28,7 @@ export class AnalyticsItems { /** * Gets a list of Analytics Items defined within an Application Insights component. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param scopePath Enum indicating if this item definition is owned by a specific user or is * shared between all users with access to the Application Insights component. Possible values @@ -38,7 +38,7 @@ export class AnalyticsItems { */ list(resourceGroupName: string, resourceName: string, scopePath: Models.ItemScopePath, options?: Models.AnalyticsItemsListOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param scopePath Enum indicating if this item definition is owned by a specific user or is * shared between all users with access to the Application Insights component. Possible values @@ -47,7 +47,7 @@ export class AnalyticsItems { */ list(resourceGroupName: string, resourceName: string, scopePath: Models.ItemScopePath, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param scopePath Enum indicating if this item definition is owned by a specific user or is * shared between all users with access to the Application Insights component. Possible values @@ -70,7 +70,7 @@ export class AnalyticsItems { /** * Gets a specific Analytics Items defined within an Application Insights component. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param scopePath Enum indicating if this item definition is owned by a specific user or is * shared between all users with access to the Application Insights component. Possible values @@ -80,7 +80,7 @@ export class AnalyticsItems { */ get(resourceGroupName: string, resourceName: string, scopePath: Models.ItemScopePath, options?: Models.AnalyticsItemsGetOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param scopePath Enum indicating if this item definition is owned by a specific user or is * shared between all users with access to the Application Insights component. Possible values @@ -89,7 +89,7 @@ export class AnalyticsItems { */ get(resourceGroupName: string, resourceName: string, scopePath: Models.ItemScopePath, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param scopePath Enum indicating if this item definition is owned by a specific user or is * shared between all users with access to the Application Insights component. Possible values @@ -112,7 +112,7 @@ export class AnalyticsItems { /** * Adds or Updates a specific Analytics Item within an Application Insights component. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param scopePath Enum indicating if this item definition is owned by a specific user or is * shared between all users with access to the Application Insights component. Possible values @@ -124,7 +124,7 @@ export class AnalyticsItems { */ put(resourceGroupName: string, resourceName: string, scopePath: Models.ItemScopePath, itemProperties: Models.ApplicationInsightsComponentAnalyticsItem, options?: Models.AnalyticsItemsPutOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param scopePath Enum indicating if this item definition is owned by a specific user or is * shared between all users with access to the Application Insights component. Possible values @@ -135,7 +135,7 @@ export class AnalyticsItems { */ put(resourceGroupName: string, resourceName: string, scopePath: Models.ItemScopePath, itemProperties: Models.ApplicationInsightsComponentAnalyticsItem, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param scopePath Enum indicating if this item definition is owned by a specific user or is * shared between all users with access to the Application Insights component. Possible values @@ -161,7 +161,7 @@ export class AnalyticsItems { /** * Deletes a specific Analytics Items defined within an Application Insights component. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param scopePath Enum indicating if this item definition is owned by a specific user or is * shared between all users with access to the Application Insights component. Possible values @@ -171,7 +171,7 @@ export class AnalyticsItems { */ deleteMethod(resourceGroupName: string, resourceName: string, scopePath: Models.ItemScopePath, options?: Models.AnalyticsItemsDeleteMethodOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param scopePath Enum indicating if this item definition is owned by a specific user or is * shared between all users with access to the Application Insights component. Possible values @@ -180,7 +180,7 @@ export class AnalyticsItems { */ deleteMethod(resourceGroupName: string, resourceName: string, scopePath: Models.ItemScopePath, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param scopePath Enum indicating if this item definition is owned by a specific user or is * shared between all users with access to the Application Insights component. Possible values @@ -214,7 +214,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.scopePath ], queryParameters: [ - Parameters.apiVersion, + Parameters.apiVersion0, Parameters.scope, Parameters.type, Parameters.includeContent @@ -254,7 +254,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.scopePath ], queryParameters: [ - Parameters.apiVersion, + Parameters.apiVersion0, Parameters.id, Parameters.name ], @@ -282,7 +282,7 @@ const putOperationSpec: msRest.OperationSpec = { Parameters.scopePath ], queryParameters: [ - Parameters.apiVersion, + Parameters.apiVersion0, Parameters.overrideItem ], headerParameters: [ @@ -316,7 +316,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.scopePath ], queryParameters: [ - Parameters.apiVersion, + Parameters.apiVersion0, Parameters.id, Parameters.name ], diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/annotations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/annotations.ts index f36ded7ddd78..b9b3f4e1015d 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/annotations.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/annotations.ts @@ -28,7 +28,7 @@ export class Annotations { /** * Gets the list of annotations for a component for given time range - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param start The start time to query from for annotations, cannot be older than 90 days from * current date. @@ -38,7 +38,7 @@ export class Annotations { */ list(resourceGroupName: string, resourceName: string, start: string, end: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param start The start time to query from for annotations, cannot be older than 90 days from * current date. @@ -47,7 +47,7 @@ export class Annotations { */ list(resourceGroupName: string, resourceName: string, start: string, end: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param start The start time to query from for annotations, cannot be older than 90 days from * current date. @@ -71,7 +71,7 @@ export class Annotations { /** * Create an Annotation of an Application Insights component. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param annotationProperties Properties that need to be specified to create an annotation of a * Application Insights component. @@ -80,7 +80,7 @@ export class Annotations { */ create(resourceGroupName: string, resourceName: string, annotationProperties: Models.Annotation, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param annotationProperties Properties that need to be specified to create an annotation of a * Application Insights component. @@ -88,7 +88,7 @@ export class Annotations { */ create(resourceGroupName: string, resourceName: string, annotationProperties: Models.Annotation, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param annotationProperties Properties that need to be specified to create an annotation of a * Application Insights component. @@ -110,32 +110,32 @@ export class Annotations { /** * Delete an Annotation of an Application Insights component. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param annotationId The unique annotation ID. This is unique within a Application Insights * component. * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - deleteMethod(resourceGroupName: string, resourceName: string, annotationId: string, options?: msRest.RequestOptionsBase): Promise; + deleteMethod(resourceGroupName: string, resourceName: string, annotationId: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param annotationId The unique annotation ID. This is unique within a Application Insights * component. * @param callback The callback */ - deleteMethod(resourceGroupName: string, resourceName: string, annotationId: string, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, resourceName: string, annotationId: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param annotationId The unique annotation ID. This is unique within a Application Insights * component. * @param options The optional parameters * @param callback The callback */ - deleteMethod(resourceGroupName: string, resourceName: string, annotationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, resourceName: string, annotationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, resourceName: string, annotationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, resourceName: string, annotationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -144,12 +144,12 @@ export class Annotations { options }, deleteMethodOperationSpec, - callback) as Promise; + callback); } /** * Get the annotation for given id. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param annotationId The unique annotation ID. This is unique within a Application Insights * component. @@ -158,7 +158,7 @@ export class Annotations { */ get(resourceGroupName: string, resourceName: string, annotationId: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param annotationId The unique annotation ID. This is unique within a Application Insights * component. @@ -166,7 +166,7 @@ export class Annotations { */ get(resourceGroupName: string, resourceName: string, annotationId: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param annotationId The unique annotation ID. This is unique within a Application Insights * component. @@ -198,7 +198,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion, + Parameters.apiVersion0, Parameters.start, Parameters.end ], @@ -225,7 +225,7 @@ const createOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -269,20 +269,13 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.annotationId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage ], responses: { - 200: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } - }, + 200: {}, default: { bodyMapper: Mappers.CloudError } @@ -300,7 +293,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.annotationId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/componentAvailableFeatures.ts b/sdk/applicationinsights/arm-appinsights/src/operations/componentAvailableFeatures.ts index 84cc340da70b..e5ce8d5f1604 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/componentAvailableFeatures.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/componentAvailableFeatures.ts @@ -28,20 +28,20 @@ export class ComponentAvailableFeatures { /** * Returns all available features of the application insights component. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param [options] The optional parameters * @returns Promise */ get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param callback The callback */ get(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param options The optional parameters * @param callback The callback @@ -70,7 +70,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/componentCurrentBillingFeatures.ts b/sdk/applicationinsights/arm-appinsights/src/operations/componentCurrentBillingFeatures.ts index d4a36c61adb3..8c309bc2b2f2 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/componentCurrentBillingFeatures.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/componentCurrentBillingFeatures.ts @@ -28,20 +28,20 @@ export class ComponentCurrentBillingFeatures { /** * Returns current billing features for an Application Insights component. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param [options] The optional parameters * @returns Promise */ get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param callback The callback */ get(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param options The optional parameters * @param callback The callback @@ -60,7 +60,7 @@ export class ComponentCurrentBillingFeatures { /** * Update current billing features for an Application Insights component. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param billingFeaturesProperties Properties that need to be specified to update billing features * for an Application Insights component. @@ -69,7 +69,7 @@ export class ComponentCurrentBillingFeatures { */ update(resourceGroupName: string, resourceName: string, billingFeaturesProperties: Models.ApplicationInsightsComponentBillingFeatures, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param billingFeaturesProperties Properties that need to be specified to update billing features * for an Application Insights component. @@ -77,7 +77,7 @@ export class ComponentCurrentBillingFeatures { */ update(resourceGroupName: string, resourceName: string, billingFeaturesProperties: Models.ApplicationInsightsComponentBillingFeatures, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param billingFeaturesProperties Properties that need to be specified to update billing features * for an Application Insights component. @@ -109,7 +109,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -134,7 +134,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/componentFeatureCapabilities.ts b/sdk/applicationinsights/arm-appinsights/src/operations/componentFeatureCapabilities.ts index 26e06651a059..de36f7cae22c 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/componentFeatureCapabilities.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/componentFeatureCapabilities.ts @@ -27,21 +27,21 @@ export class ComponentFeatureCapabilities { } /** - * Returns feature capabilites of the application insights component. - * @param resourceGroupName The name of the resource group. + * Returns feature capabilities of the application insights component. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param [options] The optional parameters * @returns Promise */ get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param callback The callback */ get(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param options The optional parameters * @param callback The callback @@ -70,7 +70,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/componentLinkedStorageAccountsOperations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/componentLinkedStorageAccountsOperations.ts new file mode 100644 index 000000000000..46a0e3ed40bf --- /dev/null +++ b/sdk/applicationinsights/arm-appinsights/src/operations/componentLinkedStorageAccountsOperations.ts @@ -0,0 +1,289 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/componentLinkedStorageAccountsOperationsMappers"; +import * as Parameters from "../models/parameters"; +import { ApplicationInsightsManagementClientContext } from "../applicationInsightsManagementClientContext"; + +/** Class representing a ComponentLinkedStorageAccountsOperations. */ +export class ComponentLinkedStorageAccountsOperations { + private readonly client: ApplicationInsightsManagementClientContext; + + /** + * Create a ComponentLinkedStorageAccountsOperations. + * @param {ApplicationInsightsManagementClientContext} client Reference to the service client. + */ + constructor(client: ApplicationInsightsManagementClientContext) { + this.client = client; + } + + /** + * Returns the current linked storage settings for an Application Insights component. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param callback The callback + */ + get(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Replace current linked storage account for an Application Insights component. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param linkedStorageAccountsProperties Properties that need to be specified to update linked + * storage accounts for an Application Insights component. + * @param [options] The optional parameters + * @returns Promise + */ + createAndUpdate(resourceGroupName: string, resourceName: string, linkedStorageAccountsProperties: Models.ComponentLinkedStorageAccounts, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param linkedStorageAccountsProperties Properties that need to be specified to update linked + * storage accounts for an Application Insights component. + * @param callback The callback + */ + createAndUpdate(resourceGroupName: string, resourceName: string, linkedStorageAccountsProperties: Models.ComponentLinkedStorageAccounts, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param linkedStorageAccountsProperties Properties that need to be specified to update linked + * storage accounts for an Application Insights component. + * @param options The optional parameters + * @param callback The callback + */ + createAndUpdate(resourceGroupName: string, resourceName: string, linkedStorageAccountsProperties: Models.ComponentLinkedStorageAccounts, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createAndUpdate(resourceGroupName: string, resourceName: string, linkedStorageAccountsProperties: Models.ComponentLinkedStorageAccounts, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + linkedStorageAccountsProperties, + options + }, + createAndUpdateOperationSpec, + callback) as Promise; + } + + /** + * Update linked storage accounts for an Application Insights component. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param linkedStorageAccountsProperties Properties that need to be specified to update a linked + * storage accounts for an Application Insights component. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, resourceName: string, linkedStorageAccountsProperties: Models.ComponentLinkedStorageAccountsPatch, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param linkedStorageAccountsProperties Properties that need to be specified to update a linked + * storage accounts for an Application Insights component. + * @param callback The callback + */ + update(resourceGroupName: string, resourceName: string, linkedStorageAccountsProperties: Models.ComponentLinkedStorageAccountsPatch, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param linkedStorageAccountsProperties Properties that need to be specified to update a linked + * storage accounts for an Application Insights component. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, resourceName: string, linkedStorageAccountsProperties: Models.ComponentLinkedStorageAccountsPatch, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, resourceName: string, linkedStorageAccountsProperties: Models.ComponentLinkedStorageAccountsPatch, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + linkedStorageAccountsProperties, + options + }, + updateOperationSpec, + callback) as Promise; + } + + /** + * Delete linked storage accounts for an Application Insights component. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + options + }, + deleteMethodOperationSpec, + callback); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceName, + Parameters.storageType + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ComponentLinkedStorageAccounts + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const createAndUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceName, + Parameters.storageType + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "linkedStorageAccountsProperties", + mapper: { + ...Mappers.ComponentLinkedStorageAccounts, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ComponentLinkedStorageAccounts + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceName, + Parameters.storageType + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "linkedStorageAccountsProperties", + mapper: { + ...Mappers.ComponentLinkedStorageAccountsPatch, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ComponentLinkedStorageAccounts + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/linkedStorageAccounts/{storageType}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceName, + Parameters.storageType + ], + queryParameters: [ + Parameters.apiVersion3 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/componentQuotaStatus.ts b/sdk/applicationinsights/arm-appinsights/src/operations/componentQuotaStatus.ts index 9c62a249142b..c94652a32949 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/componentQuotaStatus.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/componentQuotaStatus.ts @@ -28,20 +28,20 @@ export class ComponentQuotaStatus { /** * Returns daily data volume cap (quota) status for an Application Insights component. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param [options] The optional parameters * @returns Promise */ get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param callback The callback */ get(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param options The optional parameters * @param callback The callback @@ -70,7 +70,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/components.ts b/sdk/applicationinsights/arm-appinsights/src/operations/components.ts index 5d5ab4a6b9c1..48c6618cbfe9 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/components.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/components.ts @@ -52,18 +52,18 @@ export class Components { /** * Gets a list of Application Insights components within a resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param [options] The optional parameters * @returns Promise */ listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param callback The callback */ listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The optional parameters * @param callback The callback */ @@ -80,20 +80,20 @@ export class Components { /** * Deletes an Application Insights component. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param [options] The optional parameters * @returns Promise */ deleteMethod(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param callback The callback */ deleteMethod(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param options The optional parameters * @param callback The callback @@ -112,20 +112,20 @@ export class Components { /** * Returns an Application Insights component. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param [options] The optional parameters * @returns Promise */ get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param callback The callback */ get(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param options The optional parameters * @param callback The callback @@ -145,7 +145,7 @@ export class Components { /** * Creates (or updates) an Application Insights component. Note: You cannot specify a different * value for InstrumentationKey nor AppId in the Put operation. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param insightProperties Properties that need to be specified to create an Application Insights * component. @@ -154,7 +154,7 @@ export class Components { */ createOrUpdate(resourceGroupName: string, resourceName: string, insightProperties: Models.ApplicationInsightsComponent, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param insightProperties Properties that need to be specified to create an Application Insights * component. @@ -162,7 +162,7 @@ export class Components { */ createOrUpdate(resourceGroupName: string, resourceName: string, insightProperties: Models.ApplicationInsightsComponent, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param insightProperties Properties that need to be specified to create an Application Insights * component. @@ -184,7 +184,7 @@ export class Components { /** * Updates an existing component's tags. To update other fields use the CreateOrUpdate method. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param componentTags Updated tag information to set into the component instance. * @param [options] The optional parameters @@ -192,14 +192,14 @@ export class Components { */ updateTags(resourceGroupName: string, resourceName: string, componentTags: Models.TagsResource, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param componentTags Updated tag information to set into the component instance. * @param callback The callback */ updateTags(resourceGroupName: string, resourceName: string, componentTags: Models.TagsResource, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param componentTags Updated tag information to set into the component instance. * @param options The optional parameters @@ -220,7 +220,13 @@ export class Components { /** * Purges data in an Application Insights component by a set of user-defined filters. - * @param resourceGroupName The name of the resource group. + * + * In order to manage system resources, purge requests are throttled at 50 requests per hour. You + * should batch the execution of purge requests by sending a single command whose predicate + * includes all user identities that require purging. Use the in operator to specify multiple + * identities. You should run the query prior to using for a purge request to verify that the + * results are expected. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param body Describes the body of a request to purge data in a single table of an Application * Insights component @@ -229,7 +235,7 @@ export class Components { */ purge(resourceGroupName: string, resourceName: string, body: Models.ComponentPurgeBody, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param body Describes the body of a request to purge data in a single table of an Application * Insights component @@ -237,7 +243,7 @@ export class Components { */ purge(resourceGroupName: string, resourceName: string, body: Models.ComponentPurgeBody, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param body Describes the body of a request to purge data in a single table of an Application * Insights component @@ -259,7 +265,7 @@ export class Components { /** * Get status for an ongoing purge operation. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param purgeId In a purge status request, this is the Id of the operation the status of which is * returned. @@ -268,7 +274,7 @@ export class Components { */ getPurgeStatus(resourceGroupName: string, resourceName: string, purgeId: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param purgeId In a purge status request, this is the Id of the operation the status of which is * returned. @@ -276,7 +282,7 @@ export class Components { */ getPurgeStatus(resourceGroupName: string, resourceName: string, purgeId: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param purgeId In a purge status request, this is the Id of the operation the status of which is * returned. @@ -362,7 +368,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -386,7 +392,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -411,7 +417,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -435,7 +441,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -460,7 +466,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -476,6 +482,9 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.ApplicationInsightsComponent }, + 201: { + bodyMapper: Mappers.ApplicationInsightsComponent + }, default: { bodyMapper: Mappers.CloudError } @@ -492,7 +501,7 @@ const updateTagsOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -508,6 +517,9 @@ const updateTagsOperationSpec: msRest.OperationSpec = { 200: { bodyMapper: Mappers.ApplicationInsightsComponent }, + 201: { + bodyMapper: Mappers.ApplicationInsightsComponent + }, default: { bodyMapper: Mappers.CloudError } @@ -524,7 +536,7 @@ const purgeOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -557,7 +569,7 @@ const getPurgeStatusOperationSpec: msRest.OperationSpec = { Parameters.purgeId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/exportConfigurations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/exportConfigurations.ts index a7985ea6e265..940a447fdb0b 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/exportConfigurations.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/exportConfigurations.ts @@ -28,20 +28,20 @@ export class ExportConfigurations { /** * Gets a list of Continuous Export configuration of an Application Insights component. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param [options] The optional parameters * @returns Promise */ list(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param callback The callback */ list(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param options The optional parameters * @param callback The callback @@ -60,7 +60,7 @@ export class ExportConfigurations { /** * Create a Continuous Export configuration of an Application Insights component. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param exportProperties Properties that need to be specified to create a Continuous Export * configuration of a Application Insights component. @@ -69,7 +69,7 @@ export class ExportConfigurations { */ create(resourceGroupName: string, resourceName: string, exportProperties: Models.ApplicationInsightsComponentExportRequest, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param exportProperties Properties that need to be specified to create a Continuous Export * configuration of a Application Insights component. @@ -77,7 +77,7 @@ export class ExportConfigurations { */ create(resourceGroupName: string, resourceName: string, exportProperties: Models.ApplicationInsightsComponentExportRequest, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param exportProperties Properties that need to be specified to create a Continuous Export * configuration of a Application Insights component. @@ -99,7 +99,7 @@ export class ExportConfigurations { /** * Delete a Continuous Export configuration of an Application Insights component. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param exportId The Continuous Export configuration ID. This is unique within a Application * Insights component. @@ -108,7 +108,7 @@ export class ExportConfigurations { */ deleteMethod(resourceGroupName: string, resourceName: string, exportId: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param exportId The Continuous Export configuration ID. This is unique within a Application * Insights component. @@ -116,7 +116,7 @@ export class ExportConfigurations { */ deleteMethod(resourceGroupName: string, resourceName: string, exportId: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param exportId The Continuous Export configuration ID. This is unique within a Application * Insights component. @@ -138,7 +138,7 @@ export class ExportConfigurations { /** * Get the Continuous Export configuration for this export id. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param exportId The Continuous Export configuration ID. This is unique within a Application * Insights component. @@ -147,7 +147,7 @@ export class ExportConfigurations { */ get(resourceGroupName: string, resourceName: string, exportId: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param exportId The Continuous Export configuration ID. This is unique within a Application * Insights component. @@ -155,7 +155,7 @@ export class ExportConfigurations { */ get(resourceGroupName: string, resourceName: string, exportId: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param exportId The Continuous Export configuration ID. This is unique within a Application * Insights component. @@ -177,7 +177,7 @@ export class ExportConfigurations { /** * Update the Continuous Export configuration for this export id. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param exportId The Continuous Export configuration ID. This is unique within a Application * Insights component. @@ -188,7 +188,7 @@ export class ExportConfigurations { */ update(resourceGroupName: string, resourceName: string, exportId: string, exportProperties: Models.ApplicationInsightsComponentExportRequest, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param exportId The Continuous Export configuration ID. This is unique within a Application * Insights component. @@ -198,7 +198,7 @@ export class ExportConfigurations { */ update(resourceGroupName: string, resourceName: string, exportId: string, exportProperties: Models.ApplicationInsightsComponentExportRequest, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param exportId The Continuous Export configuration ID. This is unique within a Application * Insights component. @@ -233,7 +233,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -269,7 +269,7 @@ const createOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -313,7 +313,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.exportId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -339,7 +339,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.exportId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -365,7 +365,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.exportId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/favorites.ts b/sdk/applicationinsights/arm-appinsights/src/operations/favorites.ts index b7d321659714..f825ea158c5a 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/favorites.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/favorites.ts @@ -28,20 +28,20 @@ export class Favorites { /** * Gets a list of favorites defined within an Application Insights component. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param [options] The optional parameters * @returns Promise */ list(resourceGroupName: string, resourceName: string, options?: Models.FavoritesListOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param callback The callback */ list(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param options The optional parameters * @param callback The callback @@ -60,7 +60,7 @@ export class Favorites { /** * Get a single favorite by its FavoriteId, defined within an Application Insights component. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param favoriteId The Id of a specific favorite defined in the Application Insights component * @param [options] The optional parameters @@ -68,14 +68,14 @@ export class Favorites { */ get(resourceGroupName: string, resourceName: string, favoriteId: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param favoriteId The Id of a specific favorite defined in the Application Insights component * @param callback The callback */ get(resourceGroupName: string, resourceName: string, favoriteId: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param favoriteId The Id of a specific favorite defined in the Application Insights component * @param options The optional parameters @@ -96,7 +96,7 @@ export class Favorites { /** * Adds a new favorites to an Application Insights component. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param favoriteId The Id of a specific favorite defined in the Application Insights component * @param favoriteProperties Properties that need to be specified to create a new favorite and add @@ -106,7 +106,7 @@ export class Favorites { */ add(resourceGroupName: string, resourceName: string, favoriteId: string, favoriteProperties: Models.ApplicationInsightsComponentFavorite, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param favoriteId The Id of a specific favorite defined in the Application Insights component * @param favoriteProperties Properties that need to be specified to create a new favorite and add @@ -115,7 +115,7 @@ export class Favorites { */ add(resourceGroupName: string, resourceName: string, favoriteId: string, favoriteProperties: Models.ApplicationInsightsComponentFavorite, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param favoriteId The Id of a specific favorite defined in the Application Insights component * @param favoriteProperties Properties that need to be specified to create a new favorite and add @@ -139,7 +139,7 @@ export class Favorites { /** * Updates a favorite that has already been added to an Application Insights component. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param favoriteId The Id of a specific favorite defined in the Application Insights component * @param favoriteProperties Properties that need to be specified to update the existing favorite. @@ -148,7 +148,7 @@ export class Favorites { */ update(resourceGroupName: string, resourceName: string, favoriteId: string, favoriteProperties: Models.ApplicationInsightsComponentFavorite, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param favoriteId The Id of a specific favorite defined in the Application Insights component * @param favoriteProperties Properties that need to be specified to update the existing favorite. @@ -156,7 +156,7 @@ export class Favorites { */ update(resourceGroupName: string, resourceName: string, favoriteId: string, favoriteProperties: Models.ApplicationInsightsComponentFavorite, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param favoriteId The Id of a specific favorite defined in the Application Insights component * @param favoriteProperties Properties that need to be specified to update the existing favorite. @@ -179,7 +179,7 @@ export class Favorites { /** * Remove a favorite that is associated to an Application Insights component. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param favoriteId The Id of a specific favorite defined in the Application Insights component * @param [options] The optional parameters @@ -187,14 +187,14 @@ export class Favorites { */ deleteMethod(resourceGroupName: string, resourceName: string, favoriteId: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param favoriteId The Id of a specific favorite defined in the Application Insights component * @param callback The callback */ deleteMethod(resourceGroupName: string, resourceName: string, favoriteId: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param favoriteId The Id of a specific favorite defined in the Application Insights component * @param options The optional parameters @@ -225,7 +225,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion, + Parameters.apiVersion0, Parameters.favoriteType, Parameters.sourceType, Parameters.canFetchContent, @@ -266,7 +266,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.favoriteId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -292,7 +292,7 @@ const addOperationSpec: msRest.OperationSpec = { Parameters.favoriteId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -325,7 +325,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.favoriteId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -358,7 +358,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.favoriteId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/index.ts b/sdk/applicationinsights/arm-appinsights/src/operations/index.ts index 081347db5f2d..c3c6ae147129 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/index.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/index.ts @@ -17,10 +17,13 @@ export * from "./componentQuotaStatus"; export * from "./componentFeatureCapabilities"; export * from "./componentAvailableFeatures"; export * from "./proactiveDetectionConfigurations"; -export * from "./components"; export * from "./workItemConfigurations"; export * from "./favorites"; export * from "./webTestLocations"; export * from "./webTests"; export * from "./analyticsItems"; export * from "./workbooks"; +export * from "./myWorkbooks"; +export * from "./components"; +export * from "./componentLinkedStorageAccountsOperations"; +export * from "./liveToken"; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/liveToken.ts b/sdk/applicationinsights/arm-appinsights/src/operations/liveToken.ts new file mode 100644 index 000000000000..ed95ae3dd28b --- /dev/null +++ b/sdk/applicationinsights/arm-appinsights/src/operations/liveToken.ts @@ -0,0 +1,81 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/liveTokenMappers"; +import * as Parameters from "../models/parameters"; +import { ApplicationInsightsManagementClientContext } from "../applicationInsightsManagementClientContext"; + +/** Class representing a LiveToken. */ +export class LiveToken { + private readonly client: ApplicationInsightsManagementClientContext; + + /** + * Create a LiveToken. + * @param {ApplicationInsightsManagementClientContext} client Reference to the service client. + */ + constructor(client: ApplicationInsightsManagementClientContext) { + this.client = client; + } + + /** + * **Gets an access token for live metrics stream data.** + * @param resourceUri The identifier of the resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceUri: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceUri The identifier of the resource. + * @param callback The callback + */ + get(resourceUri: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceUri The identifier of the resource. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceUri: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceUri: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceUri, + options + }, + getOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "{resourceUri}/providers/microsoft.insights/generatelivetoken", + urlParameters: [ + Parameters.resourceUri + ], + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.LiveTokenResponse + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/myWorkbooks.ts b/sdk/applicationinsights/arm-appinsights/src/operations/myWorkbooks.ts new file mode 100644 index 000000000000..bbd47c344ea6 --- /dev/null +++ b/sdk/applicationinsights/arm-appinsights/src/operations/myWorkbooks.ts @@ -0,0 +1,401 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/myWorkbooksMappers"; +import * as Parameters from "../models/parameters"; +import { ApplicationInsightsManagementClientContext } from "../applicationInsightsManagementClientContext"; + +/** Class representing a MyWorkbooks. */ +export class MyWorkbooks { + private readonly client: ApplicationInsightsManagementClientContext; + + /** + * Create a MyWorkbooks. + * @param {ApplicationInsightsManagementClientContext} client Reference to the service client. + */ + constructor(client: ApplicationInsightsManagementClientContext) { + this.client = client; + } + + /** + * Get all private workbooks defined within a specified resource group and category. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param category Category of workbook to return. Possible values include: 'workbook', 'TSG', + * 'performance', 'retention' + * @param [options] The optional parameters + * @returns Promise + */ + listByResourceGroup(resourceGroupName: string, category: Models.CategoryType, options?: Models.MyWorkbooksListByResourceGroupOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param category Category of workbook to return. Possible values include: 'workbook', 'TSG', + * 'performance', 'retention' + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, category: Models.CategoryType, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param category Category of workbook to return. Possible values include: 'workbook', 'TSG', + * 'performance', 'retention' + * @param options The optional parameters + * @param callback The callback + */ + listByResourceGroup(resourceGroupName: string, category: Models.CategoryType, options: Models.MyWorkbooksListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; + listByResourceGroup(resourceGroupName: string, category: Models.CategoryType, options?: Models.MyWorkbooksListByResourceGroupOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + category, + options + }, + listByResourceGroupOperationSpec, + callback) as Promise; + } + + /** + * Get all private workbooks defined within a specified subscription and category. + * @param category Category of workbook to return. Possible values include: 'workbook', 'TSG', + * 'performance', 'retention' + * @param [options] The optional parameters + * @returns Promise + */ + listBySubscription(category: Models.CategoryType, options?: Models.MyWorkbooksListBySubscriptionOptionalParams): Promise; + /** + * @param category Category of workbook to return. Possible values include: 'workbook', 'TSG', + * 'performance', 'retention' + * @param callback The callback + */ + listBySubscription(category: Models.CategoryType, callback: msRest.ServiceCallback): void; + /** + * @param category Category of workbook to return. Possible values include: 'workbook', 'TSG', + * 'performance', 'retention' + * @param options The optional parameters + * @param callback The callback + */ + listBySubscription(category: Models.CategoryType, options: Models.MyWorkbooksListBySubscriptionOptionalParams, callback: msRest.ServiceCallback): void; + listBySubscription(category: Models.CategoryType, options?: Models.MyWorkbooksListBySubscriptionOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + category, + options + }, + listBySubscriptionOperationSpec, + callback) as Promise; + } + + /** + * Get a single private workbook by its resourceName. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param callback The callback + */ + get(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Delete a private workbook. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param options The optional parameters + * @param callback The callback + */ + deleteMethod(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + options + }, + deleteMethodOperationSpec, + callback); + } + + /** + * Create a new private workbook. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param workbookProperties Properties that need to be specified to create a new private workbook. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, resourceName: string, workbookProperties: Models.MyWorkbook, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param workbookProperties Properties that need to be specified to create a new private workbook. + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, resourceName: string, workbookProperties: Models.MyWorkbook, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param workbookProperties Properties that need to be specified to create a new private workbook. + * @param options The optional parameters + * @param callback The callback + */ + createOrUpdate(resourceGroupName: string, resourceName: string, workbookProperties: Models.MyWorkbook, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + createOrUpdate(resourceGroupName: string, resourceName: string, workbookProperties: Models.MyWorkbook, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + workbookProperties, + options + }, + createOrUpdateOperationSpec, + callback) as Promise; + } + + /** + * Updates a private workbook that has already been added. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param workbookProperties Properties that need to be specified to create a new private workbook. + * @param [options] The optional parameters + * @returns Promise + */ + update(resourceGroupName: string, resourceName: string, workbookProperties: Models.MyWorkbook, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param workbookProperties Properties that need to be specified to create a new private workbook. + * @param callback The callback + */ + update(resourceGroupName: string, resourceName: string, workbookProperties: Models.MyWorkbook, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param workbookProperties Properties that need to be specified to create a new private workbook. + * @param options The optional parameters + * @param callback The callback + */ + update(resourceGroupName: string, resourceName: string, workbookProperties: Models.MyWorkbook, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, resourceName: string, workbookProperties: Models.MyWorkbook, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + workbookProperties, + options + }, + updateOperationSpec, + callback) as Promise; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listByResourceGroupOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/myWorkbooks", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName + ], + queryParameters: [ + Parameters.category, + Parameters.tags, + Parameters.canFetchContent, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MyWorkbooksListResult + }, + default: { + bodyMapper: Mappers.MyWorkbookError + } + }, + serializer +}; + +const listBySubscriptionOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Insights/myWorkbooks", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.category, + Parameters.tags, + Parameters.canFetchContent, + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MyWorkbooksListResult + }, + default: { + bodyMapper: Mappers.MyWorkbookError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/myWorkbooks/{resourceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.MyWorkbook + }, + default: { + bodyMapper: Mappers.MyWorkbookError + } + }, + serializer +}; + +const deleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/myWorkbooks/{resourceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 201: {}, + 204: {}, + default: { + bodyMapper: Mappers.MyWorkbookError + } + }, + serializer +}; + +const createOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/myWorkbooks/{resourceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workbookProperties", + mapper: { + ...Mappers.MyWorkbook, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.MyWorkbook + }, + 201: { + bodyMapper: Mappers.MyWorkbook + }, + default: { + bodyMapper: Mappers.MyWorkbookError + } + }, + serializer +}; + +const updateOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/myWorkbooks/{resourceName}", + urlParameters: [ + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.resourceName + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "workbookProperties", + mapper: { + ...Mappers.MyWorkbook, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.MyWorkbook + }, + default: { + bodyMapper: Mappers.MyWorkbookError + } + }, + serializer +}; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/operations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/operations.ts index 2b5a6ac42961..a21e656b1639 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/operations.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/operations.ts @@ -50,6 +50,31 @@ export class Operations { callback) as Promise; } + /** + * List the available operations supported by the resource provider. + * @summary List available operations. + * @param [options] The optional parameters + * @returns Promise + */ + list1(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list1(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list1(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list1(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + list1OperationSpec, + callback) as Promise; + } + /** * Lists all of the available insights REST API operations. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -77,6 +102,35 @@ export class Operations { listNextOperationSpec, callback) as Promise; } + + /** + * List the available operations supported by the resource provider. + * @summary List available operations. + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param [options] The optional parameters + * @returns Promise + */ + list1Next(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param callback The callback + */ + list1Next(nextPageLink: string, callback: msRest.ServiceCallback): void; + /** + * @param nextPageLink The NextLink from the previous successful call to List operation. + * @param options The optional parameters + * @param callback The callback + */ + list1Next(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list1Next(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + nextPageLink, + options + }, + list1NextOperationSpec, + callback) as Promise; + } } // Operation Specifications @@ -85,7 +139,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.Insights/operations", queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -101,6 +155,26 @@ const listOperationSpec: msRest.OperationSpec = { serializer }; +const list1OperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/microsoft.insights/operations", + queryParameters: [ + Parameters.apiVersion1 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", @@ -121,3 +195,24 @@ const listNextOperationSpec: msRest.OperationSpec = { }, serializer }; + +const list1NextOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + baseUrl: "https://management.azure.com", + path: "{nextLink}", + urlParameters: [ + Parameters.nextPageLink + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.OperationsListResult + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/proactiveDetectionConfigurations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/proactiveDetectionConfigurations.ts index ca6f6dcbe202..79b5a581c019 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/proactiveDetectionConfigurations.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/proactiveDetectionConfigurations.ts @@ -28,20 +28,20 @@ export class ProactiveDetectionConfigurations { /** * Gets a list of ProactiveDetection configurations of an Application Insights component. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param [options] The optional parameters * @returns Promise */ list(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param callback The callback */ list(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param options The optional parameters * @param callback The callback @@ -60,7 +60,7 @@ export class ProactiveDetectionConfigurations { /** * Get the ProactiveDetection configuration for this configuration id. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param configurationId The ProactiveDetection configuration ID. This is unique within a * Application Insights component. @@ -69,7 +69,7 @@ export class ProactiveDetectionConfigurations { */ get(resourceGroupName: string, resourceName: string, configurationId: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param configurationId The ProactiveDetection configuration ID. This is unique within a * Application Insights component. @@ -77,7 +77,7 @@ export class ProactiveDetectionConfigurations { */ get(resourceGroupName: string, resourceName: string, configurationId: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param configurationId The ProactiveDetection configuration ID. This is unique within a * Application Insights component. @@ -99,7 +99,7 @@ export class ProactiveDetectionConfigurations { /** * Update the ProactiveDetection configuration for this configuration id. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param configurationId The ProactiveDetection configuration ID. This is unique within a * Application Insights component. @@ -110,7 +110,7 @@ export class ProactiveDetectionConfigurations { */ update(resourceGroupName: string, resourceName: string, configurationId: string, proactiveDetectionProperties: Models.ApplicationInsightsComponentProactiveDetectionConfiguration, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param configurationId The ProactiveDetection configuration ID. This is unique within a * Application Insights component. @@ -120,7 +120,7 @@ export class ProactiveDetectionConfigurations { */ update(resourceGroupName: string, resourceName: string, configurationId: string, proactiveDetectionProperties: Models.ApplicationInsightsComponentProactiveDetectionConfiguration, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param configurationId The ProactiveDetection configuration ID. This is unique within a * Application Insights component. @@ -155,7 +155,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -192,7 +192,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.configurationId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -218,7 +218,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.configurationId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/webTestLocations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/webTestLocations.ts index 95fbad790bb0..ef40c1e72fab 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/webTestLocations.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/webTestLocations.ts @@ -28,20 +28,20 @@ export class WebTestLocations { /** * Gets a list of web test locations available to this Application Insights component. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param [options] The optional parameters * @returns Promise */ list(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param callback The callback */ list(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param options The optional parameters * @param callback The callback @@ -70,7 +70,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/webTests.ts b/sdk/applicationinsights/arm-appinsights/src/operations/webTests.ts index 85311b4d629b..cc6634172d90 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/webTests.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/webTests.ts @@ -28,18 +28,18 @@ export class WebTests { /** * Get all Application Insights web tests defined within a specified resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param [options] The optional parameters * @returns Promise */ listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param callback The callback */ listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The optional parameters * @param callback The callback */ @@ -56,20 +56,20 @@ export class WebTests { /** * Get a specific Application Insights web test definition. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param webTestName The name of the Application Insights webtest resource. * @param [options] The optional parameters * @returns Promise */ get(resourceGroupName: string, webTestName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param webTestName The name of the Application Insights webtest resource. * @param callback The callback */ get(resourceGroupName: string, webTestName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param webTestName The name of the Application Insights webtest resource. * @param options The optional parameters * @param callback The callback @@ -88,7 +88,7 @@ export class WebTests { /** * Creates or updates an Application Insights web test definition. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param webTestName The name of the Application Insights webtest resource. * @param webTestDefinition Properties that need to be specified to create or update an Application * Insights web test definition. @@ -97,7 +97,7 @@ export class WebTests { */ createOrUpdate(resourceGroupName: string, webTestName: string, webTestDefinition: Models.WebTest, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param webTestName The name of the Application Insights webtest resource. * @param webTestDefinition Properties that need to be specified to create or update an Application * Insights web test definition. @@ -105,7 +105,7 @@ export class WebTests { */ createOrUpdate(resourceGroupName: string, webTestName: string, webTestDefinition: Models.WebTest, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param webTestName The name of the Application Insights webtest resource. * @param webTestDefinition Properties that need to be specified to create or update an Application * Insights web test definition. @@ -127,7 +127,7 @@ export class WebTests { /** * Creates or updates an Application Insights web test definition. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param webTestName The name of the Application Insights webtest resource. * @param webTestTags Updated tag information to set into the web test instance. * @param [options] The optional parameters @@ -135,14 +135,14 @@ export class WebTests { */ updateTags(resourceGroupName: string, webTestName: string, webTestTags: Models.TagsResource, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param webTestName The name of the Application Insights webtest resource. * @param webTestTags Updated tag information to set into the web test instance. * @param callback The callback */ updateTags(resourceGroupName: string, webTestName: string, webTestTags: Models.TagsResource, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param webTestName The name of the Application Insights webtest resource. * @param webTestTags Updated tag information to set into the web test instance. * @param options The optional parameters @@ -163,20 +163,20 @@ export class WebTests { /** * Deletes an Application Insights web test. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param webTestName The name of the Application Insights webtest resource. * @param [options] The optional parameters * @returns Promise */ deleteMethod(resourceGroupName: string, webTestName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param webTestName The name of the Application Insights webtest resource. * @param callback The callback */ deleteMethod(resourceGroupName: string, webTestName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param webTestName The name of the Application Insights webtest resource. * @param options The optional parameters * @param callback The callback @@ -194,7 +194,7 @@ export class WebTests { } /** - * Get all Application Insights web test alerts definitioned within a subscription. + * Get all Application Insights web test alerts definitions within a subscription. * @param [options] The optional parameters * @returns Promise */ @@ -220,20 +220,20 @@ export class WebTests { /** * Get all Application Insights web tests defined for the specified component. * @param componentName The name of the Application Insights component resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param [options] The optional parameters * @returns Promise */ listByComponent(componentName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; /** * @param componentName The name of the Application Insights component resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param callback The callback */ listByComponent(componentName: string, resourceGroupName: string, callback: msRest.ServiceCallback): void; /** * @param componentName The name of the Application Insights component resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The optional parameters * @param callback The callback */ @@ -278,7 +278,7 @@ export class WebTests { } /** - * Get all Application Insights web test alerts definitioned within a subscription. + * Get all Application Insights web test alerts definitions within a subscription. * @param nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -344,7 +344,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -369,7 +369,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.webTestName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -394,7 +394,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.webTestName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -426,7 +426,7 @@ const updateTagsOperationSpec: msRest.OperationSpec = { Parameters.webTestName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -458,7 +458,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.webTestName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -480,7 +480,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -505,7 +505,7 @@ const listByComponentOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/workItemConfigurations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/workItemConfigurations.ts index 5d8318641273..f3d0751cbcde 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/workItemConfigurations.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/workItemConfigurations.ts @@ -28,20 +28,20 @@ export class WorkItemConfigurations { /** * Gets the list work item configurations that exist for the application - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param [options] The optional parameters * @returns Promise */ list(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param callback The callback */ list(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param options The optional parameters * @param callback The callback @@ -60,7 +60,7 @@ export class WorkItemConfigurations { /** * Create a work item configuration for an Application Insights component. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param workItemConfigurationProperties Properties that need to be specified to create a work * item configuration of a Application Insights component. @@ -69,7 +69,7 @@ export class WorkItemConfigurations { */ create(resourceGroupName: string, resourceName: string, workItemConfigurationProperties: Models.WorkItemCreateConfiguration, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param workItemConfigurationProperties Properties that need to be specified to create a work * item configuration of a Application Insights component. @@ -77,7 +77,7 @@ export class WorkItemConfigurations { */ create(resourceGroupName: string, resourceName: string, workItemConfigurationProperties: Models.WorkItemCreateConfiguration, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param workItemConfigurationProperties Properties that need to be specified to create a work * item configuration of a Application Insights component. @@ -99,20 +99,20 @@ export class WorkItemConfigurations { /** * Gets default work item configurations that exist for the application - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param [options] The optional parameters * @returns Promise */ getDefault(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param callback The callback */ getDefault(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param options The optional parameters * @param callback The callback @@ -130,33 +130,33 @@ export class WorkItemConfigurations { } /** - * Delete an workitem configuration of an Application Insights component. - * @param resourceGroupName The name of the resource group. + * Delete a work item configuration of an Application Insights component. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param workItemConfigId The unique work item configuration Id. This can be either friendly name * of connector as defined in connector configuration * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - deleteMethod(resourceGroupName: string, resourceName: string, workItemConfigId: string, options?: msRest.RequestOptionsBase): Promise; + deleteMethod(resourceGroupName: string, resourceName: string, workItemConfigId: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param workItemConfigId The unique work item configuration Id. This can be either friendly name * of connector as defined in connector configuration * @param callback The callback */ - deleteMethod(resourceGroupName: string, resourceName: string, workItemConfigId: string, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, resourceName: string, workItemConfigId: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param workItemConfigId The unique work item configuration Id. This can be either friendly name * of connector as defined in connector configuration * @param options The optional parameters * @param callback The callback */ - deleteMethod(resourceGroupName: string, resourceName: string, workItemConfigId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, resourceName: string, workItemConfigId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + deleteMethod(resourceGroupName: string, resourceName: string, workItemConfigId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + deleteMethod(resourceGroupName: string, resourceName: string, workItemConfigId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -165,7 +165,92 @@ export class WorkItemConfigurations { options }, deleteMethodOperationSpec, - callback) as Promise; + callback); + } + + /** + * Gets specified work item configuration for an Application Insights component. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param workItemConfigId The unique work item configuration Id. This can be either friendly name + * of connector as defined in connector configuration + * @param [options] The optional parameters + * @returns Promise + */ + getItem(resourceGroupName: string, resourceName: string, workItemConfigId: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param workItemConfigId The unique work item configuration Id. This can be either friendly name + * of connector as defined in connector configuration + * @param callback The callback + */ + getItem(resourceGroupName: string, resourceName: string, workItemConfigId: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param workItemConfigId The unique work item configuration Id. This can be either friendly name + * of connector as defined in connector configuration + * @param options The optional parameters + * @param callback The callback + */ + getItem(resourceGroupName: string, resourceName: string, workItemConfigId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + getItem(resourceGroupName: string, resourceName: string, workItemConfigId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + workItemConfigId, + options + }, + getItemOperationSpec, + callback) as Promise; + } + + /** + * Update a work item configuration for an Application Insights component. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param workItemConfigId The unique work item configuration Id. This can be either friendly name + * of connector as defined in connector configuration + * @param workItemConfigurationProperties Properties that need to be specified to update a work + * item configuration for this Application Insights component. + * @param [options] The optional parameters + * @returns Promise + */ + updateItem(resourceGroupName: string, resourceName: string, workItemConfigId: string, workItemConfigurationProperties: Models.WorkItemCreateConfiguration, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param workItemConfigId The unique work item configuration Id. This can be either friendly name + * of connector as defined in connector configuration + * @param workItemConfigurationProperties Properties that need to be specified to update a work + * item configuration for this Application Insights component. + * @param callback The callback + */ + updateItem(resourceGroupName: string, resourceName: string, workItemConfigId: string, workItemConfigurationProperties: Models.WorkItemCreateConfiguration, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the Application Insights component resource. + * @param workItemConfigId The unique work item configuration Id. This can be either friendly name + * of connector as defined in connector configuration + * @param workItemConfigurationProperties Properties that need to be specified to update a work + * item configuration for this Application Insights component. + * @param options The optional parameters + * @param callback The callback + */ + updateItem(resourceGroupName: string, resourceName: string, workItemConfigId: string, workItemConfigurationProperties: Models.WorkItemCreateConfiguration, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + updateItem(resourceGroupName: string, resourceName: string, workItemConfigId: string, workItemConfigurationProperties: Models.WorkItemCreateConfiguration, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + resourceName, + workItemConfigId, + workItemConfigurationProperties, + options + }, + updateItemOperationSpec, + callback) as Promise; } } @@ -180,7 +265,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -205,7 +290,7 @@ const createOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -237,7 +322,7 @@ const getDefaultOperationSpec: msRest.OperationSpec = { Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -263,19 +348,71 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.workItemConfigId ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getItemOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs/{workItemConfigId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceName, + Parameters.workItemConfigId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.WorkItemConfiguration + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const updateItemOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs/{workItemConfigId}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.resourceName, + Parameters.workItemConfigId + ], + queryParameters: [ + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage ], + requestBody: { + parameterPath: "workItemConfigurationProperties", + mapper: { + ...Mappers.WorkItemCreateConfiguration, + required: true + } + }, responses: { 200: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } + bodyMapper: Mappers.WorkItemConfiguration }, default: { bodyMapper: Mappers.CloudError diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/workbooks.ts b/sdk/applicationinsights/arm-appinsights/src/operations/workbooks.ts index 7fa139f6e407..7d11428584ba 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/workbooks.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/workbooks.ts @@ -28,7 +28,7 @@ export class Workbooks { /** * Get all Workbooks defined within a specified resource group and category. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param category Category of workbook to return. Possible values include: 'workbook', 'TSG', * 'performance', 'retention' * @param [options] The optional parameters @@ -36,14 +36,14 @@ export class Workbooks { */ listByResourceGroup(resourceGroupName: string, category: Models.CategoryType, options?: Models.WorkbooksListByResourceGroupOptionalParams): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param category Category of workbook to return. Possible values include: 'workbook', 'TSG', * 'performance', 'retention' * @param callback The callback */ listByResourceGroup(resourceGroupName: string, category: Models.CategoryType, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param category Category of workbook to return. Possible values include: 'workbook', 'TSG', * 'performance', 'retention' * @param options The optional parameters @@ -63,20 +63,20 @@ export class Workbooks { /** * Get a single workbook by its resourceName. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param [options] The optional parameters * @returns Promise */ get(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param callback The callback */ get(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param options The optional parameters * @param callback The callback @@ -95,20 +95,20 @@ export class Workbooks { /** * Delete a workbook. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param [options] The optional parameters * @returns Promise */ deleteMethod(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param callback The callback */ deleteMethod(resourceGroupName: string, resourceName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param options The optional parameters * @param callback The callback @@ -127,7 +127,7 @@ export class Workbooks { /** * Create a new workbook. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param workbookProperties Properties that need to be specified to create a new workbook. * @param [options] The optional parameters @@ -135,14 +135,14 @@ export class Workbooks { */ createOrUpdate(resourceGroupName: string, resourceName: string, workbookProperties: Models.Workbook, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param workbookProperties Properties that need to be specified to create a new workbook. * @param callback The callback */ createOrUpdate(resourceGroupName: string, resourceName: string, workbookProperties: Models.Workbook, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param workbookProperties Properties that need to be specified to create a new workbook. * @param options The optional parameters @@ -163,7 +163,7 @@ export class Workbooks { /** * Updates a workbook that has already been added. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param workbookProperties Properties that need to be specified to create a new workbook. * @param [options] The optional parameters @@ -171,14 +171,14 @@ export class Workbooks { */ update(resourceGroupName: string, resourceName: string, workbookProperties: Models.Workbook, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param workbookProperties Properties that need to be specified to create a new workbook. * @param callback The callback */ update(resourceGroupName: string, resourceName: string, workbookProperties: Models.Workbook, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the Application Insights component resource. * @param workbookProperties Properties that need to be specified to create a new workbook. * @param options The optional parameters @@ -202,7 +202,7 @@ export class Workbooks { const serializer = new msRest.Serializer(Mappers); const listByResourceGroupOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName @@ -211,7 +211,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.category, Parameters.tags, Parameters.canFetchContent, - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -229,14 +229,14 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -254,14 +254,14 @@ const getOperationSpec: msRest.OperationSpec = { const deleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -278,14 +278,14 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { const createOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage @@ -313,14 +313,14 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", urlParameters: [ Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.resourceName ], queryParameters: [ - Parameters.apiVersion + Parameters.apiVersion0 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/applicationinsights/arm-appinsights/tsconfig.json b/sdk/applicationinsights/arm-appinsights/tsconfig.json index 87bbf5b5fa49..422b584abd5e 100644 --- a/sdk/applicationinsights/arm-appinsights/tsconfig.json +++ b/sdk/applicationinsights/arm-appinsights/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6"], + "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", "importHelpers": true