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..9714493f5a40 100644 --- a/sdk/applicationinsights/arm-appinsights/src/applicationInsightsManagementClient.ts +++ b/sdk/applicationinsights/arm-appinsights/src/applicationInsightsManagementClient.ts @@ -11,6 +11,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as Models from "./models"; import * as Mappers from "./models/mappers"; +import * as Parameters from "./models/parameters"; import * as operations from "./operations"; import { ApplicationInsightsManagementClientContext } from "./applicationInsightsManagementClientContext"; @@ -18,50 +19,97 @@ import { ApplicationInsightsManagementClientContext } from "./applicationInsight class ApplicationInsightsManagementClient extends ApplicationInsightsManagementClientContext { // Operation groups operations: operations.Operations; - annotations: operations.Annotations; - aPIKeys: operations.APIKeys; - exportConfigurations: operations.ExportConfigurations; - componentCurrentBillingFeatures: operations.ComponentCurrentBillingFeatures; - componentQuotaStatus: operations.ComponentQuotaStatus; - 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; /** * 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) { super(credentials, subscriptionId, options); this.operations = new operations.Operations(this); - this.annotations = new operations.Annotations(this); - this.aPIKeys = new operations.APIKeys(this); - this.exportConfigurations = new operations.ExportConfigurations(this); - this.componentCurrentBillingFeatures = new operations.ComponentCurrentBillingFeatures(this); - this.componentQuotaStatus = new operations.ComponentQuotaStatus(this); - 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); + } + + /** + * Returns a file test result for the matching test + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param webTestName The name of the Application Insights webtest resource. + * @param geoLocationId The location ID where the webtest was physically run. + * @param timeStamp The posix (epoch) time stamp for the webtest result. + * @param downloadAs The format to use when returning the webtest result. Possible values include: + * 'WebTestResult', 'Json' + * @param [options] The optional parameters + * @returns Promise + */ + getTestResultFile(resourceGroupName: string, webTestName: string, geoLocationId: string, timeStamp: number, downloadAs: Models.DownloadAs, options?: Models.ApplicationInsightsManagementClientGetTestResultFileOptionalParams): Promise; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param webTestName The name of the Application Insights webtest resource. + * @param geoLocationId The location ID where the webtest was physically run. + * @param timeStamp The posix (epoch) time stamp for the webtest result. + * @param downloadAs The format to use when returning the webtest result. Possible values include: + * 'WebTestResult', 'Json' + * @param callback The callback + */ + getTestResultFile(resourceGroupName: string, webTestName: string, geoLocationId: string, timeStamp: number, downloadAs: Models.DownloadAs, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param webTestName The name of the Application Insights webtest resource. + * @param geoLocationId The location ID where the webtest was physically run. + * @param timeStamp The posix (epoch) time stamp for the webtest result. + * @param downloadAs The format to use when returning the webtest result. Possible values include: + * 'WebTestResult', 'Json' + * @param options The optional parameters + * @param callback The callback + */ + getTestResultFile(resourceGroupName: string, webTestName: string, geoLocationId: string, timeStamp: number, downloadAs: Models.DownloadAs, options: Models.ApplicationInsightsManagementClientGetTestResultFileOptionalParams, callback: msRest.ServiceCallback): void; + getTestResultFile(resourceGroupName: string, webTestName: string, geoLocationId: string, timeStamp: number, downloadAs: Models.DownloadAs, options?: Models.ApplicationInsightsManagementClientGetTestResultFileOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.sendOperationRequest( + { + resourceGroupName, + webTestName, + geoLocationId, + timeStamp, + downloadAs, + options + }, + getTestResultFileOperationSpec, + callback) as Promise; } } // Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getTestResultFileOperationSpec: msRest.OperationSpec = { + httpMethod: "POST", + path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/webtests/{webTestName}/getTestResultFile", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.webTestName + ], + queryParameters: [ + Parameters.apiVersion, + Parameters.geoLocationId, + Parameters.timeStamp, + Parameters.downloadAs, + Parameters.testSuccessfulCriteria, + Parameters.continuationToken + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.TestResultFileResponse + }, + default: { + bodyMapper: Mappers.ErrorResponse + } + }, + serializer +}; export { ApplicationInsightsManagementClient, diff --git a/sdk/applicationinsights/arm-appinsights/src/applicationInsightsManagementClientContext.ts b/sdk/applicationinsights/arm-appinsights/src/applicationInsightsManagementClientContext.ts index 41cf05899c26..3b6e6caac319 100644 --- a/sdk/applicationinsights/arm-appinsights/src/applicationInsightsManagementClientContext.ts +++ b/sdk/applicationinsights/arm-appinsights/src/applicationInsightsManagementClientContext.ts @@ -13,17 +13,17 @@ 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; + apiVersion?: 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 +44,7 @@ export class ApplicationInsightsManagementClientContext extends msRestAzure.Azur super(credentials, options); - this.apiVersion = '2015-05-01'; + this.apiVersion = '2020-02-10-preview'; 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 deleted file mode 100644 index 1d4fc21adfe6..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/models/aPIKeysMappers.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* - * 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 { - ApplicationInsightsComponentAPIKeyListResult, - ApplicationInsightsComponentAPIKey, - CloudError, - APIKeyRequest -} from "../models/mappers"; - diff --git a/sdk/applicationinsights/arm-appinsights/src/models/analyticsItemsMappers.ts b/sdk/applicationinsights/arm-appinsights/src/models/analyticsItemsMappers.ts deleted file mode 100644 index b00875e33415..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/models/analyticsItemsMappers.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* - * 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 { - ApplicationInsightsComponentAnalyticsItem, - 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 deleted file mode 100644 index d5d9386a0d5e..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/models/annotationsMappers.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * 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 { - AnnotationsListResult, - Annotation, - AnnotationError, - InnerError, - CloudError -} from "../models/mappers"; - diff --git a/sdk/applicationinsights/arm-appinsights/src/models/componentAvailableFeaturesMappers.ts b/sdk/applicationinsights/arm-appinsights/src/models/componentAvailableFeaturesMappers.ts deleted file mode 100644 index 778c0f8e27f8..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/models/componentAvailableFeaturesMappers.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* - * 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 { - ApplicationInsightsComponentAvailableFeatures, - ApplicationInsightsComponentFeature, - 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 deleted file mode 100644 index 3e6161210aec..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/models/componentCurrentBillingFeaturesMappers.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* - * 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 { - ApplicationInsightsComponentBillingFeatures, - 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 deleted file mode 100644 index 66534b06f77b..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/models/componentFeatureCapabilitiesMappers.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* - * 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 { - ApplicationInsightsComponentFeatureCapabilities, - CloudError -} from "../models/mappers"; - diff --git a/sdk/applicationinsights/arm-appinsights/src/models/componentQuotaStatusMappers.ts b/sdk/applicationinsights/arm-appinsights/src/models/componentQuotaStatusMappers.ts deleted file mode 100644 index a3dfa8eaaa53..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/models/componentQuotaStatusMappers.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* - * 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 { - 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 deleted file mode 100644 index c3b85e5ea6cc..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/models/componentsMappers.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* - * 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 { - ApplicationInsightsComponentListResult, - ApplicationInsightsComponent, - ComponentsResource, - BaseResource, - CloudError, - TagsResource, - ComponentPurgeBody, - ComponentPurgeBodyFilters, - ComponentPurgeResponse, - ComponentPurgeStatusResponse, - ApplicationInsightsComponentProactiveDetectionConfiguration, - ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions, - WebtestsResource, - WebTest, - WebTestGeolocation, - WebTestPropertiesConfiguration, - WorkbookResource, - Workbook -} from "../models/mappers"; - diff --git a/sdk/applicationinsights/arm-appinsights/src/models/exportConfigurationsMappers.ts b/sdk/applicationinsights/arm-appinsights/src/models/exportConfigurationsMappers.ts deleted file mode 100644 index a1919004b9d4..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/models/exportConfigurationsMappers.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* - * 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 { - ApplicationInsightsComponentExportConfiguration, - CloudError, - ApplicationInsightsComponentExportRequest -} from "../models/mappers"; - diff --git a/sdk/applicationinsights/arm-appinsights/src/models/favoritesMappers.ts b/sdk/applicationinsights/arm-appinsights/src/models/favoritesMappers.ts deleted file mode 100644 index f69c1f6d10e9..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/models/favoritesMappers.ts +++ /dev/null @@ -1,15 +0,0 @@ -/* - * 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 { - 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..1b830c5db8ea 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,2990 +11,124 @@ 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. - * - */ -export interface ErrorResponse { - /** - * @member {string} [code] Error code. - */ - code?: string; - /** - * @member {string} [message] 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 - */ - provider?: string; - /** - * @member {string} [resource] Resource on which the operation is performed: - * Profile, endpoint, etc. - */ - resource?: string; - /** - * @member {string} [operation] 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} - */ - name?: string; - /** - * @member {OperationDisplay} [display] 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 - */ - annotationName?: string; - /** - * @member {string} [category] Category of annotation, free form - */ - category?: string; - /** - * @member {Date} [eventTime] Time when event occurred - */ - eventTime?: Date; - /** - * @member {string} [id] Unique Id for annotation - */ - id?: string; - /** - * @member {string} [properties] Serialized JSON object for detailed - * properties - */ - properties?: string; - /** - * @member {string} [relatedAnnotation] 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 - */ - diagnosticcontext?: string; - /** - * @member {Date} [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 - */ - code?: string; - /** - * @member {string} [message] Error message - */ - message?: string; - /** - * @member {InnerError} [innererror] - */ - innererror?: InnerError; -} - -/** - * @interface - * An interface representing APIKeyRequest. - * An Application Insights component API Key createion request definition. - * - */ -export interface APIKeyRequest { - /** - * @member {string} [name] The name of the API Key. - */ - name?: string; - /** - * @member {string[]} [linkedReadProperties] The read access rights of this - * API Key. - */ - linkedReadProperties?: string[]; - /** - * @member {string[]} [linkedWriteProperties] 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.** - */ - 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.** - */ - readonly apiKey?: string; - /** - * @member {string} [createdDate] The create date of this API key. - */ - createdDate?: string; - /** - * @member {string} [name] The name of the API key. - */ - name?: string; - /** - * @member {string[]} [linkedReadProperties] The read access rights of this - * API Key. - */ - linkedReadProperties?: string[]; - /** - * @member {string[]} [linkedWriteProperties] The write access rights of this - * API Key. - */ - linkedWriteProperties?: string[]; -} - -/** - * @interface - * An interface representing ApplicationInsightsComponentExportRequest. - * 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', - * 'PerformanceCounters', 'Availability', 'Messages'. - */ - recordTypes?: string; - /** - * @member {string} [destinationType] 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. - */ - destinationAddress?: string; - /** - * @member {string} [isEnabled] Set to 'true' to create a Continuous Export - * configuration as enabled, otherwise set it to 'false'. - */ - isEnabled?: string; - /** - * @member {string} [notificationQueueEnabled] Deprecated - */ - notificationQueueEnabled?: string; - /** - * @member {string} [notificationQueueUri] Deprecated - */ - notificationQueueUri?: string; - /** - * @member {string} [destinationStorageSubscriptionId] The subscription ID of - * the destination storage container. - */ - destinationStorageSubscriptionId?: string; - /** - * @member {string} [destinationStorageLocationId] The location ID of the - * destination storage container. - */ - destinationStorageLocationId?: string; - /** - * @member {string} [destinationAccountId] 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.** - */ - 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.** - */ - 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', - * '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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - readonly destinationAccountId?: string; - /** - * @member {string} [destinationType] 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.** - */ - 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.** - */ - readonly lastUserUpdate?: string; - /** - * @member {string} [notificationQueueEnabled] 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - readonly containerName?: string; -} - -/** - * @interface - * An interface representing ApplicationInsightsComponentDataVolumeCap. - * An Application Insights component daily data volumne cap - * - */ -export interface ApplicationInsightsComponentDataVolumeCap { - /** - * @member {number} [cap] 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.** - */ - readonly resetTime?: number; - /** - * @member {number} [warningThreshold] Reserved, not used for now. - */ - warningThreshold?: number; - /** - * @member {boolean} [stopSendNotificationWhenHitThreshold] Reserved, not - * used for now. - */ - stopSendNotificationWhenHitThreshold?: boolean; - /** - * @member {boolean} [stopSendNotificationWhenHitCap] 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.** - */ - 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 - */ - 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'. - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - 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.** - */ - readonly result?: ApplicationInsightsComponentFeature[]; -} - -/** - * @interface - * An interface representing ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions. - * Static definitions of the ProactiveDetection configuration rule (same values - * for all components). - * - */ -export interface ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions { - /** - * @member {string} [name] The rule name - */ - name?: string; - /** - * @member {string} [displayName] The rule name as it is displayed in UI - */ - displayName?: string; - /** - * @member {string} [description] The rule description - */ - description?: string; - /** - * @member {string} [helpUrl] URL which displays aditional info about the - * proactive detection rule - */ - helpUrl?: string; - /** - * @member {boolean} [isHidden] 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 - */ - isEnabledByDefault?: boolean; - /** - * @member {boolean} [isInPreview] 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 - */ - 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 - */ - name?: string; - /** - * @member {boolean} [enabled] 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 - */ - sendEmailsToSubscriptionOwners?: boolean; - /** - * @member {string[]} [customEmails] Custom email addresses for this rule - * notifications - */ - customEmails?: string[]; - /** - * @member {string} [lastUpdatedTime] The last time this rule was updated - */ - lastUpdatedTime?: string; - /** - * @member - * {ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions} - * [ruleDefinitions] 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 - */ - connectorId?: string; - /** - * @member {string} [configDisplayName] Configuration friendly name - */ - configDisplayName?: string; - /** - * @member {boolean} [isDefault] Boolean value indicating whether - * configuration is default - */ - isDefault?: boolean; - /** - * @member {string} [id] Unique Id for work item - */ - id?: string; - /** - * @member {string} [configProperties] 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 - */ - connectorId?: string; - /** - * @member {string} [connectorDataConfiguration] Serialized JSON object for - * detaile d properties - */ - connectorDataConfiguration?: string; - /** - * @member {boolean} [validateOnly] Boolean indicating validate only - */ - validateOnly?: boolean; - /** - * @member {string} [workItemProperties] Custom work item properties - */ - workItemProperties?: string; -} - -/** - * @interface - * An interface representing WorkItemConfigurationError. - * Error associated with trying to get work item configuration or - * configurations - * - */ -export interface WorkItemConfigurationError { - /** - * @member {string} [code] Error detail code and explanation - */ - code?: string; - /** - * @member {string} [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. - * - */ -export interface ApplicationInsightsComponentFavorite { - /** - * @member {string} [name] 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 - */ - 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. - */ - 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.** - */ - 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: - * 'shared', 'user' - */ - favoriteType?: FavoriteType; - /** - * @member {string} [sourceType] 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.** - */ - readonly timeModified?: string; - /** - * @member {string[]} [tags] 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. - */ - category?: string; - /** - * @member {boolean} [isGeneratedFromTemplate] 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.** - */ - readonly userId?: string; -} - -/** - * @interface - * An interface representing ApplicationInsightsComponentWebTestLocation. - * 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.** - */ - 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.** - */ - 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.** - */ - 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 WebTestGeolocation. - * 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?: 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. - */ - 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' . - */ - kind?: WebTestKind; - /** - * @member {string} syntheticMonitorId 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. - */ - webTestName: string; - /** - * @member {string} [description] Purpose/user defined descriptive test for - * this WebTest. - */ - description?: string; - /** - * @member {boolean} [enabled] 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 . - */ - frequency?: number; - /** - * @member {number} [timeout] 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' . - */ - webTestKind: WebTestKind; - /** - * @member {boolean} [retryEnabled] 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. - */ - locations: WebTestGeolocation[]; - /** - * @member {WebTestPropertiesConfiguration} [configuration] 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.** - */ - 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. - * - */ -export interface ApplicationInsightsComponentAnalyticsItemProperties { - /** - * @member {string} [functionAlias] 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. - * - */ -export interface ApplicationInsightsComponentAnalyticsItem { - /** - * @member {string} [id] Internally assigned unique id of the item - * definition. - */ - id?: string; - /** - * @member {string} [name] The user-defined name of the item. - */ - name?: string; - /** - * @member {string} [content] 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.** - */ - 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' - */ - scope?: ItemScope; - /** - * @member {ItemType} [type] 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.** - */ - 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.** - */ - 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.** - */ - 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 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' - */ - kind?: SharedTypeKind; - /** - * @member {string} workbookName 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 - */ - 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. - */ - version?: string; - /** - * @member {string} workbookId 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' . - */ - 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.** - */ - readonly timeModified?: string; - /** - * @member {string} category 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 - */ - workbookTags?: string[]; - /** - * @member {string} userId Unique user id of the specific user that owns this - * workbook. - */ - userId: string; - /** - * @member {string} [sourceResourceId] 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 - */ - sourceId?: string; - /** - * @member {string} [targetId] The workbook Azure resource id - */ - targetId?: string; - /** - * @member {string} [category] The category of workbook - */ - category?: string; -} - -/** - * @interface - * An interface representing ErrorFieldContract. - * Error Field contract. - * - */ -export interface ErrorFieldContract { - /** - * @member {string} [code] Property level error code. - */ - code?: string; - /** - * @member {string} [message] Human-readable representation of property-level - * error. - */ - message?: string; - /** - * @member {string} [target] 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. - */ - code?: string; - /** - * @member {string} [message] Human-readable representation of the error. - */ - message?: string; - /** - * @member {ErrorFieldContract[]} [details] The list of invalid fields send - * in request, in case of validation error. - */ - details?: ErrorFieldContract[]; -} - -/** - * @interface - * An interface representing FavoritesListOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface FavoritesListOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {FavoriteType} [favoriteType] The type of favorite. Value can be - * either shared or user. Possible values include: 'shared', 'user'. Default - * value: 'shared' . - */ - favoriteType?: FavoriteType; - /** - * @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' - */ - sourceType?: FavoriteSourceType; - /** - * @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. - */ - canFetchContent?: boolean; - /** - * @member {string[]} [tags] Tags that must be present on each favorite - * returned. - */ - tags?: string[]; -} - -/** - * @interface - * An interface representing AnalyticsItemsListOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface AnalyticsItemsListOptionalParams extends msRest.RequestOptionsBase { - /** - * @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' . - */ - scope?: ItemScope; - /** - * @member {ItemTypeParameter} [type] Enum indicating the type of the - * Analytics item. Possible values include: 'none', 'query', 'function', - * 'folder', 'recent'. Default value: 'none' . - */ - type?: ItemTypeParameter; - /** - * @member {boolean} [includeContent] Flag indicating whether or not to - * return the content of each applicable item. If false, only return the item - * information. - */ - includeContent?: boolean; -} - -/** - * @interface - * An interface representing AnalyticsItemsGetOptionalParams. - * Optional Parameters. - * - * @extends RequestOptionsBase - */ -export interface AnalyticsItemsGetOptionalParams extends msRest.RequestOptionsBase { - /** - * @member {string} [id] 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 - */ - 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. - */ - 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 - */ - id?: string; - /** - * @member {string} [name] 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?: 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. - */ - canFetchContent?: boolean; -} - -/** - * @interface - * An interface representing ApplicationInsightsManagementClientOptions. - * @extends AzureServiceClientOptions - */ -export interface ApplicationInsightsManagementClientOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ - 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. - * - * @extends Array - */ -export interface OperationListResult extends Array { - /** - * @member {string} [nextLink] 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 { -} - -/** - * @interface - * An interface representing the ApplicationInsightsComponentAPIKeyListResult. - * Describes the list of API Keys of an Application Insights Component. - * - * @extends Array - */ -export interface ApplicationInsightsComponentAPIKeyListResult extends Array { -} - -/** - * @interface - * An interface representing the ApplicationInsightsComponentListResult. - * Describes the list of Application Insights Resources. - * - * @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 { -} - -/** - * @interface - * An interface representing the ApplicationInsightsWebTestLocationsListResult. - * Describes the list of web test locations available to an Application - * Insights Component. - * - * @extends Array - */ -export interface ApplicationInsightsWebTestLocationsListResult extends Array { -} - -/** - * @interface - * An interface representing the WebTestListResult. - * A list of 0 or more Application Insights web test definitions. - * - * @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. - */ - 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' - * @readonly - * @enum {string} - */ -export type ApplicationType = 'web' | 'other'; - -/** - * Defines values for FlowType. - * Possible values include: 'Bluefield' - * @readonly - * @enum {string} - */ -export type FlowType = 'Bluefield'; - -/** - * Defines values for RequestSource. - * Possible values include: 'rest' - * @readonly - * @enum {string} - */ -export type RequestSource = 'rest'; - -/** - * Defines values for PurgeState. - * Possible values include: 'pending', 'completed' - * @readonly - * @enum {string} - */ -export type PurgeState = 'pending' | 'completed'; - -/** - * Defines values for FavoriteType. - * Possible values include: 'shared', 'user' - * @readonly - * @enum {string} - */ -export type FavoriteType = 'shared' | 'user'; - -/** - * Defines values for WebTestKind. - * Possible values include: 'ping', 'multistep' - * @readonly - * @enum {string} - */ -export type WebTestKind = 'ping' | 'multistep'; - -/** - * Defines values for ItemScope. - * Possible values include: 'shared', 'user' - * @readonly - * @enum {string} - */ -export type ItemScope = 'shared' | 'user'; - -/** - * 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 FavoriteSourceType. - * Possible values include: 'retention', 'notebook', 'sessions', 'events', 'userflows', 'funnel', - * 'impact', 'segmentation' - * @readonly - * @enum {string} - */ -export type FavoriteSourceType = 'retention' | 'notebook' | 'sessions' | 'events' | 'userflows' | 'funnel' | 'impact' | 'segmentation'; - -/** - * Defines values for ItemScopePath. - * Possible values include: 'analyticsItems', 'myanalyticsItems' - * @readonly - * @enum {string} - */ -export type ItemScopePath = 'analyticsItems' | 'myanalyticsItems'; - -/** - * Defines values for ItemTypeParameter. - * Possible values include: 'none', 'query', 'function', 'folder', 'recent' - * @readonly - * @enum {string} - */ -export type ItemTypeParameter = 'none' | 'query' | 'function' | 'folder' | 'recent'; - -/** - * Defines values for CategoryType. - * Possible values include: 'workbook', 'TSG', 'performance', 'retention' - * @readonly - * @enum {string} - */ -export type CategoryType = 'workbook' | 'TSG' | 'performance' | 'retention'; - -/** - * Contains response data for the list operation. - */ -export type OperationsListResponse = OperationListResult & { - /** - * 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: OperationListResult; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type OperationsListNextResponse = OperationListResult & { - /** - * 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: OperationListResult; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type AnnotationsListResponse = AnnotationsListResult & { - /** - * 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: AnnotationsListResult; - }; -}; - -/** - * Contains response data for the create operation. - */ -export type AnnotationsCreateResponse = 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: Annotation[]; - }; -}; - -/** - * Contains response data for the deleteMethod operation. - */ -export type AnnotationsDeleteMethodResponse = { - /** - * The parsed response body. - */ - body: any; - /** - * 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: any; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type AnnotationsGetResponse = 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: Annotation[]; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type APIKeysListResponse = ApplicationInsightsComponentAPIKeyListResult & { - /** - * 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: ApplicationInsightsComponentAPIKeyListResult; - }; -}; - -/** - * Contains response data for the create operation. - */ -export type APIKeysCreateResponse = ApplicationInsightsComponentAPIKey & { - /** - * 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: ApplicationInsightsComponentAPIKey; - }; -}; - -/** - * Contains response data for the deleteMethod operation. - */ -export type APIKeysDeleteMethodResponse = ApplicationInsightsComponentAPIKey & { - /** - * 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: ApplicationInsightsComponentAPIKey; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type APIKeysGetResponse = ApplicationInsightsComponentAPIKey & { - /** - * 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: ApplicationInsightsComponentAPIKey; - }; -}; - -/** - * Contains response data for the list operation. - */ -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: ApplicationInsightsComponentExportConfiguration[]; - }; -}; - -/** - * Contains response data for the create operation. - */ -export type ExportConfigurationsCreateResponse = 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: ApplicationInsightsComponentExportConfiguration[]; - }; -}; - -/** - * Contains response data for the deleteMethod operation. - */ -export type ExportConfigurationsDeleteMethodResponse = ApplicationInsightsComponentExportConfiguration & { - /** - * 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: ApplicationInsightsComponentExportConfiguration; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ExportConfigurationsGetResponse = ApplicationInsightsComponentExportConfiguration & { - /** - * 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: ApplicationInsightsComponentExportConfiguration; - }; -}; - -/** - * Contains response data for the update operation. - */ -export type ExportConfigurationsUpdateResponse = ApplicationInsightsComponentExportConfiguration & { - /** - * 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: ApplicationInsightsComponentExportConfiguration; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ComponentCurrentBillingFeaturesGetResponse = ApplicationInsightsComponentBillingFeatures & { - /** - * 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: ApplicationInsightsComponentBillingFeatures; - }; -}; - -/** - * Contains response data for the update operation. - */ -export type ComponentCurrentBillingFeaturesUpdateResponse = ApplicationInsightsComponentBillingFeatures & { - /** - * 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: ApplicationInsightsComponentBillingFeatures; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ComponentQuotaStatusGetResponse = ApplicationInsightsComponentQuotaStatus & { - /** - * 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: ApplicationInsightsComponentQuotaStatus; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ComponentFeatureCapabilitiesGetResponse = ApplicationInsightsComponentFeatureCapabilities & { - /** - * 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: ApplicationInsightsComponentFeatureCapabilities; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ComponentAvailableFeaturesGetResponse = ApplicationInsightsComponentAvailableFeatures & { - /** - * 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: ApplicationInsightsComponentAvailableFeatures; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type ProactiveDetectionConfigurationsListResponse = 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 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 ComponentsListResponse = ApplicationInsightsComponentListResult & { - /** - * 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: ApplicationInsightsComponentListResult; - }; -}; - -/** - * Contains response data for the listByResourceGroup operation. - */ -export type ComponentsListByResourceGroupResponse = ApplicationInsightsComponentListResult & { - /** - * 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: ApplicationInsightsComponentListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type ComponentsGetResponse = ApplicationInsightsComponent & { - /** - * 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: ApplicationInsightsComponent; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type ComponentsCreateOrUpdateResponse = ApplicationInsightsComponent & { - /** - * 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: ApplicationInsightsComponent; - }; -}; - -/** - * Contains response data for the updateTags operation. - */ -export type ComponentsUpdateTagsResponse = ApplicationInsightsComponent & { - /** - * 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: ApplicationInsightsComponent; - }; -}; - -/** - * Contains response data for the purge operation. - */ -export type ComponentsPurgeResponse = ComponentPurgeResponse & { - /** - * 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: ComponentPurgeResponse; - }; -}; - -/** - * Contains response data for the getPurgeStatus operation. - */ -export type ComponentsGetPurgeStatusResponse = ComponentPurgeStatusResponse & { - /** - * 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: ComponentPurgeStatusResponse; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type ComponentsListNextResponse = ApplicationInsightsComponentListResult & { - /** - * 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: ApplicationInsightsComponentListResult; - }; -}; - -/** - * Contains response data for the listByResourceGroupNext operation. - */ -export type ComponentsListByResourceGroupNextResponse = ApplicationInsightsComponentListResult & { - /** - * 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: ApplicationInsightsComponentListResult; - }; -}; - -/** - * 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. - */ - _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 deleteMethod operation. - */ -export type WorkItemConfigurationsDeleteMethodResponse = { - /** - * The parsed response body. - */ - body: any; - /** - * 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: any; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type FavoritesListResponse = 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: ApplicationInsightsComponentFavorite[]; - }; -}; - /** - * Contains response data for the get operation. + * Describes the format of Error response. */ -export type FavoritesGetResponse = ApplicationInsightsComponentFavorite & { +export interface ErrorResponse { /** - * The underlying HTTP response. + * Error code */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ApplicationInsightsComponentFavorite; - }; -}; - -/** - * Contains response data for the add operation. - */ -export type FavoritesAddResponse = ApplicationInsightsComponentFavorite & { + code?: string; /** - * The underlying HTTP response. + * Error message indicating why the operation failed. */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ApplicationInsightsComponentFavorite; - }; -}; + message?: string; +} /** - * Contains response data for the update operation. + * Test result. */ -export type FavoritesUpdateResponse = ApplicationInsightsComponentFavorite & { +export interface TestResultFileResponse { /** - * The underlying HTTP response. + * File contents. */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ApplicationInsightsComponentFavorite; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type WebTestLocationsListResponse = ApplicationInsightsWebTestLocationsListResult & { + data?: string; /** - * The underlying HTTP response. + * The URI that can be used to request the next section of the result file in the event the file + * is too large for a single request. */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ApplicationInsightsWebTestLocationsListResult; - }; -}; + nextLink?: string; +} /** - * Contains response data for the listByResourceGroup operation. + * Information about an operation */ -export type WebTestsListByResourceGroupResponse = WebTestListResult & { +export interface OperationInfo { /** - * The underlying HTTP response. + * Name of the provider */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WebTestListResult; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type WebTestsGetResponse = WebTest & { + provider?: string; /** - * The underlying HTTP response. + * Name of the resource type */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WebTest; - }; -}; - -/** - * Contains response data for the createOrUpdate operation. - */ -export type WebTestsCreateOrUpdateResponse = WebTest & { + resource?: string; /** - * The underlying HTTP response. + * Name of the operation */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WebTest; - }; -}; - -/** - * Contains response data for the updateTags operation. - */ -export type WebTestsUpdateTagsResponse = WebTest & { + operation?: string; /** - * The underlying HTTP response. + * Description of the operation */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WebTest; - }; -}; + description?: string; +} /** - * Contains response data for the list operation. + * Represents an operation returned by the GetOperations request */ -export type WebTestsListResponse = WebTestListResult & { +export interface Operation { /** - * The underlying HTTP response. + * Name of the operation */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WebTestListResult; - }; -}; - -/** - * Contains response data for the listByComponent operation. - */ -export type WebTestsListByComponentResponse = WebTestListResult & { + name?: string; /** - * The underlying HTTP response. + * Display name of the operation */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WebTestListResult; - }; -}; - -/** - * Contains response data for the listByResourceGroupNext operation. - */ -export type WebTestsListByResourceGroupNextResponse = WebTestListResult & { + display?: OperationInfo; /** - * The underlying HTTP response. + * Origin of the operation */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WebTestListResult; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type WebTestsListNextResponse = WebTestListResult & { + origin?: string; /** - * The underlying HTTP response. + * Properties of the operation */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WebTestListResult; - }; -}; + properties?: any; +} /** - * Contains response data for the listByComponentNext operation. + * Optional Parameters. */ -export type WebTestsListByComponentNextResponse = WebTestListResult & { +export interface ApplicationInsightsManagementClientGetTestResultFileOptionalParams extends msRest.RequestOptionsBase { /** - * The underlying HTTP response. + * The success state criteria for the webtest result. */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: WebTestListResult; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type AnalyticsItemsListResponse = Array & { + testSuccessfulCriteria?: boolean; /** - * The underlying HTTP response. + * The continuation token. */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ApplicationInsightsComponentAnalyticsItem[]; - }; -}; + continuationToken?: string; +} /** - * Contains response data for the get operation. + * An interface representing ApplicationInsightsManagementClientOptions. */ -export type AnalyticsItemsGetResponse = ApplicationInsightsComponentAnalyticsItem & { - /** - * 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: ApplicationInsightsComponentAnalyticsItem; - }; -}; +export interface ApplicationInsightsManagementClientOptions extends AzureServiceClientOptions { + baseUri?: string; +} /** - * Contains response data for the put operation. + * @interface + * Result of the List Operations operation + * @extends Array */ -export type AnalyticsItemsPutResponse = ApplicationInsightsComponentAnalyticsItem & { +export interface OperationsListResult extends Array { /** - * The underlying HTTP response. + * URL to get the next set of operation list results if there are any. */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - /** - * The response body as parsed JSON or XML - */ - parsedBody: ApplicationInsightsComponentAnalyticsItem; - }; -}; + nextLink?: string; +} /** - * Contains response data for the listByResourceGroup operation. + * Defines values for DownloadAs. + * Possible values include: 'WebTestResult', 'Json' + * @readonly + * @enum {string} */ -export type WorkbooksListByResourceGroupResponse = WorkbooksListResult & { - /** - * 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: WorkbooksListResult; - }; -}; +export type DownloadAs = 'WebTestResult' | 'Json'; /** - * Contains response data for the get operation. + * Contains response data for the list operation. */ -export type WorkbooksGetResponse = Workbook & { +export type OperationsListResponse = OperationsListResult & { /** * The underlying HTTP response. */ @@ -3005,17 +137,18 @@ export type WorkbooksGetResponse = Workbook & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Workbook; + parsedBody: OperationsListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listNext operation. */ -export type WorkbooksCreateOrUpdateResponse = Workbook & { +export type OperationsListNextResponse = OperationsListResult & { /** * The underlying HTTP response. */ @@ -3024,17 +157,18 @@ export type WorkbooksCreateOrUpdateResponse = Workbook & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Workbook; + parsedBody: OperationsListResult; }; }; /** - * Contains response data for the update operation. + * Contains response data for the getTestResultFile operation. */ -export type WorkbooksUpdateResponse = Workbook & { +export type GetTestResultFileResponse = TestResultFileResponse & { /** * The underlying HTTP response. */ @@ -3043,9 +177,10 @@ export type WorkbooksUpdateResponse = Workbook & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ - parsedBody: Workbook; + parsedBody: TestResultFileResponse; }; }; diff --git a/sdk/applicationinsights/arm-appinsights/src/models/mappers.ts b/sdk/applicationinsights/arm-appinsights/src/models/mappers.ts index 842d71411ac9..0961341b46b2 100644 --- a/sdk/applicationinsights/arm-appinsights/src/models/mappers.ts +++ b/sdk/applicationinsights/arm-appinsights/src/models/mappers.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 { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; @@ -36,1863 +34,54 @@ export const ErrorResponse: msRest.CompositeMapper = { } }; -export const OperationDisplay: msRest.CompositeMapper = { - serializedName: "Operation_display", +export const TestResultFileResponse: msRest.CompositeMapper = { + serializedName: "TestResultFileResponse", type: { name: "Composite", - className: "OperationDisplay", + className: "TestResultFileResponse", modelProperties: { - provider: { - serializedName: "provider", - type: { - name: "String" - } - }, - resource: { - serializedName: "resource", - type: { - name: "String" - } - }, - operation: { - serializedName: "operation", - type: { - name: "String" - } - } - } - } -}; - -export const Operation: msRest.CompositeMapper = { - serializedName: "Operation", - type: { - name: "Composite", - className: "Operation", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - display: { - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplay" - } - } - } - } -}; - -export const Annotation: msRest.CompositeMapper = { - serializedName: "Annotation", - type: { - name: "Composite", - className: "Annotation", - modelProperties: { - annotationName: { - serializedName: "AnnotationName", - type: { - name: "String" - } - }, - category: { - serializedName: "Category", - type: { - name: "String" - } - }, - eventTime: { - serializedName: "EventTime", - type: { - name: "DateTime" - } - }, - id: { - serializedName: "Id", - type: { - name: "String" - } - }, - properties: { - serializedName: "Properties", - type: { - name: "String" - } - }, - relatedAnnotation: { - serializedName: "RelatedAnnotation", - defaultValue: 'null', - type: { - name: "String" - } - } - } - } -}; - -export const InnerError: msRest.CompositeMapper = { - serializedName: "InnerError", - type: { - name: "Composite", - className: "InnerError", - modelProperties: { - diagnosticcontext: { - serializedName: "diagnosticcontext", - type: { - name: "String" - } - }, - time: { - serializedName: "time", - type: { - name: "DateTime" - } - } - } - } -}; - -export const AnnotationError: msRest.CompositeMapper = { - serializedName: "AnnotationError", - type: { - name: "Composite", - className: "AnnotationError", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - }, - innererror: { - serializedName: "innererror", - type: { - name: "Composite", - className: "InnerError" - } - } - } - } -}; - -export const APIKeyRequest: msRest.CompositeMapper = { - serializedName: "APIKeyRequest", - type: { - name: "Composite", - className: "APIKeyRequest", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - linkedReadProperties: { - serializedName: "linkedReadProperties", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - linkedWriteProperties: { - serializedName: "linkedWriteProperties", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const ApplicationInsightsComponentAPIKey: msRest.CompositeMapper = { - serializedName: "ApplicationInsightsComponentAPIKey", - type: { - name: "Composite", - className: "ApplicationInsightsComponentAPIKey", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - apiKey: { - readOnly: true, - serializedName: "apiKey", - type: { - name: "String" - } - }, - createdDate: { - serializedName: "createdDate", - type: { - name: "String" - } - }, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - linkedReadProperties: { - serializedName: "linkedReadProperties", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - linkedWriteProperties: { - serializedName: "linkedWriteProperties", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const ApplicationInsightsComponentExportRequest: msRest.CompositeMapper = { - serializedName: "ApplicationInsightsComponentExportRequest", - type: { - name: "Composite", - className: "ApplicationInsightsComponentExportRequest", - modelProperties: { - recordTypes: { - serializedName: "RecordTypes", - type: { - name: "String" - } - }, - destinationType: { - serializedName: "DestinationType", - type: { - name: "String" - } - }, - destinationAddress: { - serializedName: "DestinationAddress", - type: { - name: "String" - } - }, - isEnabled: { - serializedName: "IsEnabled", - type: { - name: "String" - } - }, - notificationQueueEnabled: { - serializedName: "NotificationQueueEnabled", - type: { - name: "String" - } - }, - notificationQueueUri: { - serializedName: "NotificationQueueUri", - type: { - name: "String" - } - }, - destinationStorageSubscriptionId: { - serializedName: "DestinationStorageSubscriptionId", - type: { - name: "String" - } - }, - destinationStorageLocationId: { - serializedName: "DestinationStorageLocationId", - type: { - name: "String" - } - }, - destinationAccountId: { - serializedName: "DestinationAccountId", - type: { - name: "String" - } - } - } - } -}; - -export const ApplicationInsightsComponentExportConfiguration: msRest.CompositeMapper = { - serializedName: "ApplicationInsightsComponentExportConfiguration", - type: { - name: "Composite", - className: "ApplicationInsightsComponentExportConfiguration", - modelProperties: { - exportId: { - readOnly: true, - serializedName: "ExportId", - type: { - name: "String" - } - }, - instrumentationKey: { - readOnly: true, - serializedName: "InstrumentationKey", - type: { - name: "String" - } - }, - recordTypes: { - serializedName: "RecordTypes", - type: { - name: "String" - } - }, - applicationName: { - readOnly: true, - serializedName: "ApplicationName", - type: { - name: "String" - } - }, - subscriptionId: { - readOnly: true, - serializedName: "SubscriptionId", - type: { - name: "String" - } - }, - resourceGroup: { - readOnly: true, - serializedName: "ResourceGroup", - type: { - name: "String" - } - }, - destinationStorageSubscriptionId: { - readOnly: true, - serializedName: "DestinationStorageSubscriptionId", - type: { - name: "String" - } - }, - destinationStorageLocationId: { - readOnly: true, - serializedName: "DestinationStorageLocationId", - type: { - name: "String" - } - }, - destinationAccountId: { - readOnly: true, - serializedName: "DestinationAccountId", - type: { - name: "String" - } - }, - destinationType: { - readOnly: true, - serializedName: "DestinationType", - type: { - name: "String" - } - }, - isUserEnabled: { - readOnly: true, - serializedName: "IsUserEnabled", - type: { - name: "String" - } - }, - lastUserUpdate: { - readOnly: true, - serializedName: "LastUserUpdate", - type: { - name: "String" - } - }, - notificationQueueEnabled: { - serializedName: "NotificationQueueEnabled", - type: { - name: "String" - } - }, - exportStatus: { - readOnly: true, - serializedName: "ExportStatus", - type: { - name: "String" - } - }, - lastSuccessTime: { - readOnly: true, - serializedName: "LastSuccessTime", - type: { - name: "String" - } - }, - lastGapTime: { - readOnly: true, - serializedName: "LastGapTime", - type: { - name: "String" - } - }, - permanentErrorReason: { - readOnly: true, - serializedName: "PermanentErrorReason", - type: { - name: "String" - } - }, - storageName: { - readOnly: true, - serializedName: "StorageName", - type: { - name: "String" - } - }, - containerName: { - readOnly: true, - serializedName: "ContainerName", - type: { - name: "String" - } - } - } - } -}; - -export const ApplicationInsightsComponentDataVolumeCap: msRest.CompositeMapper = { - serializedName: "ApplicationInsightsComponentDataVolumeCap", - type: { - name: "Composite", - className: "ApplicationInsightsComponentDataVolumeCap", - modelProperties: { - cap: { - serializedName: "Cap", - type: { - name: "Number" - } - }, - resetTime: { - readOnly: true, - serializedName: "ResetTime", - type: { - name: "Number" - } - }, - warningThreshold: { - serializedName: "WarningThreshold", - type: { - name: "Number" - } - }, - stopSendNotificationWhenHitThreshold: { - serializedName: "StopSendNotificationWhenHitThreshold", - type: { - name: "Boolean" - } - }, - stopSendNotificationWhenHitCap: { - serializedName: "StopSendNotificationWhenHitCap", - type: { - name: "Boolean" - } - }, - maxHistoryCap: { - readOnly: true, - serializedName: "MaxHistoryCap", - type: { - name: "Number" - } - } - } - } -}; - -export const ApplicationInsightsComponentBillingFeatures: msRest.CompositeMapper = { - serializedName: "ApplicationInsightsComponentBillingFeatures", - type: { - name: "Composite", - className: "ApplicationInsightsComponentBillingFeatures", - modelProperties: { - dataVolumeCap: { - serializedName: "DataVolumeCap", - type: { - name: "Composite", - className: "ApplicationInsightsComponentDataVolumeCap" - } - }, - currentBillingFeatures: { - serializedName: "CurrentBillingFeatures", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const ApplicationInsightsComponentQuotaStatus: msRest.CompositeMapper = { - serializedName: "ApplicationInsightsComponentQuotaStatus", - type: { - name: "Composite", - className: "ApplicationInsightsComponentQuotaStatus", - modelProperties: { - appId: { - readOnly: true, - serializedName: "AppId", - type: { - name: "String" - } - }, - shouldBeThrottled: { - readOnly: true, - serializedName: "ShouldBeThrottled", - type: { - name: "Boolean" - } - }, - expirationTime: { - readOnly: true, - serializedName: "ExpirationTime", - type: { - name: "String" - } - } - } - } -}; - -export const ApplicationInsightsComponentFeatureCapabilities: msRest.CompositeMapper = { - serializedName: "ApplicationInsightsComponentFeatureCapabilities", - type: { - name: "Composite", - className: "ApplicationInsightsComponentFeatureCapabilities", - modelProperties: { - supportExportData: { - readOnly: true, - serializedName: "SupportExportData", - type: { - name: "Boolean" - } - }, - burstThrottlePolicy: { - readOnly: true, - serializedName: "BurstThrottlePolicy", - type: { - name: "String" - } - }, - metadataClass: { - readOnly: true, - serializedName: "MetadataClass", - type: { - name: "String" - } - }, - liveStreamMetrics: { - readOnly: true, - serializedName: "LiveStreamMetrics", - type: { - name: "Boolean" - } - }, - applicationMap: { - readOnly: true, - serializedName: "ApplicationMap", - type: { - name: "Boolean" - } - }, - workItemIntegration: { - readOnly: true, - serializedName: "WorkItemIntegration", - type: { - name: "Boolean" - } - }, - powerBIIntegration: { - readOnly: true, - serializedName: "PowerBIIntegration", - type: { - name: "Boolean" - } - }, - openSchema: { - readOnly: true, - serializedName: "OpenSchema", - type: { - name: "Boolean" - } - }, - proactiveDetection: { - readOnly: true, - serializedName: "ProactiveDetection", - type: { - name: "Boolean" - } - }, - analyticsIntegration: { - readOnly: true, - serializedName: "AnalyticsIntegration", - type: { - name: "Boolean" - } - }, - multipleStepWebTest: { - readOnly: true, - serializedName: "MultipleStepWebTest", - type: { - name: "Boolean" - } - }, - apiAccessLevel: { - readOnly: true, - serializedName: "ApiAccessLevel", - type: { - name: "String" - } - }, - trackingType: { - readOnly: true, - serializedName: "TrackingType", - type: { - name: "String" - } - }, - dailyCap: { - readOnly: true, - serializedName: "DailyCap", - type: { - name: "Number" - } - }, - dailyCapResetTime: { - readOnly: true, - serializedName: "DailyCapResetTime", - type: { - name: "Number" - } - }, - throttleRate: { - readOnly: true, - serializedName: "ThrottleRate", - type: { - name: "Number" - } - } - } - } -}; - -export const ApplicationInsightsComponentFeatureCapability: msRest.CompositeMapper = { - serializedName: "ApplicationInsightsComponentFeatureCapability", - type: { - name: "Composite", - className: "ApplicationInsightsComponentFeatureCapability", - modelProperties: { - name: { - readOnly: true, - serializedName: "Name", - type: { - name: "String" - } - }, - description: { - readOnly: true, - serializedName: "Description", - type: { - name: "String" - } - }, - value: { - readOnly: true, - serializedName: "Value", - type: { - name: "String" - } - }, - unit: { - readOnly: true, - serializedName: "Unit", - type: { - name: "String" - } - }, - meterId: { - readOnly: true, - serializedName: "MeterId", - type: { - name: "String" - } - }, - meterRateFrequency: { - readOnly: true, - serializedName: "MeterRateFrequency", - type: { - name: "String" - } - } - } - } -}; - -export const ApplicationInsightsComponentFeature: msRest.CompositeMapper = { - serializedName: "ApplicationInsightsComponentFeature", - type: { - name: "Composite", - className: "ApplicationInsightsComponentFeature", - modelProperties: { - featureName: { - readOnly: true, - serializedName: "FeatureName", - type: { - name: "String" - } - }, - meterId: { - readOnly: true, - serializedName: "MeterId", - type: { - name: "String" - } - }, - meterRateFrequency: { - readOnly: true, - serializedName: "MeterRateFrequency", - type: { - name: "String" - } - }, - resouceId: { - readOnly: true, - serializedName: "ResouceId", - type: { - name: "String" - } - }, - isHidden: { - readOnly: true, - serializedName: "IsHidden", - type: { - name: "Boolean" - } - }, - capabilities: { - readOnly: true, - serializedName: "Capabilities", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationInsightsComponentFeatureCapability" - } - } - } - }, - title: { - readOnly: true, - serializedName: "Title", - type: { - name: "String" - } - }, - isMainFeature: { - readOnly: true, - serializedName: "IsMainFeature", - type: { - name: "Boolean" - } - }, - supportedAddonFeatures: { - readOnly: true, - serializedName: "SupportedAddonFeatures", - type: { - name: "String" - } - } - } - } -}; - -export const ApplicationInsightsComponentAvailableFeatures: msRest.CompositeMapper = { - serializedName: "ApplicationInsightsComponentAvailableFeatures", - type: { - name: "Composite", - className: "ApplicationInsightsComponentAvailableFeatures", - modelProperties: { - result: { - readOnly: true, - serializedName: "Result", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationInsightsComponentFeature" - } - } - } - } - } - } -}; - -export const ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions: msRest.CompositeMapper = { - serializedName: "ApplicationInsightsComponentProactiveDetectionConfiguration_RuleDefinitions", - type: { - name: "Composite", - className: "ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions", - modelProperties: { - name: { - serializedName: "Name", - type: { - name: "String" - } - }, - displayName: { - serializedName: "DisplayName", - type: { - name: "String" - } - }, - description: { - serializedName: "Description", - type: { - name: "String" - } - }, - helpUrl: { - serializedName: "HelpUrl", - type: { - name: "String" - } - }, - isHidden: { - serializedName: "IsHidden", - type: { - name: "Boolean" - } - }, - isEnabledByDefault: { - serializedName: "IsEnabledByDefault", - type: { - name: "Boolean" - } - }, - isInPreview: { - serializedName: "IsInPreview", - type: { - name: "Boolean" - } - }, - supportsEmailNotifications: { - serializedName: "SupportsEmailNotifications", - type: { - name: "Boolean" - } - } - } - } -}; - -export const ApplicationInsightsComponentProactiveDetectionConfiguration: msRest.CompositeMapper = { - serializedName: "ApplicationInsightsComponentProactiveDetectionConfiguration", - type: { - name: "Composite", - className: "ApplicationInsightsComponentProactiveDetectionConfiguration", - modelProperties: { - name: { - serializedName: "Name", - type: { - name: "String" - } - }, - enabled: { - serializedName: "Enabled", - type: { - name: "Boolean" - } - }, - sendEmailsToSubscriptionOwners: { - serializedName: "SendEmailsToSubscriptionOwners", - type: { - name: "Boolean" - } - }, - customEmails: { - serializedName: "CustomEmails", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - lastUpdatedTime: { - serializedName: "LastUpdatedTime", - type: { - name: "String" - } - }, - ruleDefinitions: { - serializedName: "RuleDefinitions", - type: { - name: "Composite", - className: "ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions" - } - } - } - } -}; - -export const ComponentsResource: msRest.CompositeMapper = { - serializedName: "ComponentsResource", - type: { - name: "Composite", - className: "ComponentsResource", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - location: { - required: true, - serializedName: "location", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const TagsResource: msRest.CompositeMapper = { - serializedName: "TagsResource", - type: { - name: "Composite", - className: "TagsResource", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const ApplicationInsightsComponent: msRest.CompositeMapper = { - serializedName: "ApplicationInsightsComponent", - type: { - name: "Composite", - className: "ApplicationInsightsComponent", - modelProperties: { - ...ComponentsResource.type.modelProperties, - kind: { - required: true, - serializedName: "kind", - type: { - name: "String" - } - }, - applicationId: { - readOnly: true, - serializedName: "properties.ApplicationId", - type: { - name: "String" - } - }, - appId: { - readOnly: true, - serializedName: "properties.AppId", - type: { - name: "String" - } - }, - applicationType: { - required: true, - serializedName: "properties.Application_Type", - defaultValue: 'web', - type: { - name: "String" - } - }, - flowType: { - serializedName: "properties.Flow_Type", - defaultValue: 'Bluefield', - type: { - name: "String" - } - }, - requestSource: { - serializedName: "properties.Request_Source", - defaultValue: 'rest', - type: { - name: "String" - } - }, - instrumentationKey: { - readOnly: true, - serializedName: "properties.InstrumentationKey", - type: { - name: "String" - } - }, - creationDate: { - readOnly: true, - serializedName: "properties.CreationDate", - type: { - name: "DateTime" - } - }, - tenantId: { - readOnly: true, - serializedName: "properties.TenantId", - type: { - name: "String" - } - }, - hockeyAppId: { - serializedName: "properties.HockeyAppId", - type: { - name: "String" - } - }, - hockeyAppToken: { - readOnly: true, - serializedName: "properties.HockeyAppToken", - type: { - name: "String" - } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", - type: { - name: "String" - } - }, - samplingPercentage: { - serializedName: "properties.SamplingPercentage", - type: { - name: "Number" - } - } - } - } -}; - -export const ComponentPurgeBodyFilters: msRest.CompositeMapper = { - serializedName: "ComponentPurgeBodyFilters", - type: { - name: "Composite", - className: "ComponentPurgeBodyFilters", - modelProperties: { - column: { - serializedName: "column", - type: { - name: "String" - } - }, - operator: { - serializedName: "operator", - type: { - name: "String" - } - }, - value: { - serializedName: "value", - type: { - name: "Object" - } - }, - key: { - serializedName: "key", - type: { - name: "String" - } - } - } - } -}; - -export const ComponentPurgeBody: msRest.CompositeMapper = { - serializedName: "ComponentPurgeBody", - type: { - name: "Composite", - className: "ComponentPurgeBody", - modelProperties: { - table: { - required: true, - serializedName: "table", - type: { - name: "String" - } - }, - filters: { - required: true, - serializedName: "filters", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComponentPurgeBodyFilters" - } - } - } - } - } - } -}; - -export const ComponentPurgeResponse: msRest.CompositeMapper = { - serializedName: "ComponentPurgeResponse", - type: { - name: "Composite", - className: "ComponentPurgeResponse", - modelProperties: { - operationId: { - required: true, - serializedName: "operationId", - type: { - name: "String" - } - } - } - } -}; - -export const ComponentPurgeStatusResponse: msRest.CompositeMapper = { - serializedName: "ComponentPurgeStatusResponse", - type: { - name: "Composite", - className: "ComponentPurgeStatusResponse", - modelProperties: { - status: { - required: true, - serializedName: "status", - type: { - name: "String" - } - } - } - } -}; - -export const WorkItemConfiguration: msRest.CompositeMapper = { - serializedName: "WorkItemConfiguration", - type: { - name: "Composite", - className: "WorkItemConfiguration", - modelProperties: { - connectorId: { - serializedName: "ConnectorId", - type: { - name: "String" - } - }, - configDisplayName: { - serializedName: "ConfigDisplayName", - type: { - name: "String" - } - }, - isDefault: { - serializedName: "IsDefault", - type: { - name: "Boolean" - } - }, - id: { - serializedName: "Id", - type: { - name: "String" - } - }, - configProperties: { - serializedName: "ConfigProperties", - type: { - name: "String" - } - } - } - } -}; - -export const WorkItemCreateConfiguration: msRest.CompositeMapper = { - serializedName: "WorkItemCreateConfiguration", - type: { - name: "Composite", - className: "WorkItemCreateConfiguration", - modelProperties: { - connectorId: { - serializedName: "ConnectorId", - type: { - name: "String" - } - }, - connectorDataConfiguration: { - serializedName: "ConnectorDataConfiguration", - type: { - name: "String" - } - }, - validateOnly: { - serializedName: "ValidateOnly", - type: { - name: "Boolean" - } - }, - workItemProperties: { - serializedName: "WorkItemProperties", - type: { - name: "String" - } - } - } - } -}; - -export const WorkItemConfigurationError: msRest.CompositeMapper = { - serializedName: "WorkItemConfigurationError", - type: { - name: "Composite", - className: "WorkItemConfigurationError", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - }, - innererror: { - serializedName: "innererror", - type: { - name: "Composite", - className: "InnerError" - } - } - } - } -}; - -export const ApplicationInsightsComponentFavorite: msRest.CompositeMapper = { - serializedName: "ApplicationInsightsComponentFavorite", - type: { - name: "Composite", - className: "ApplicationInsightsComponentFavorite", - modelProperties: { - name: { - serializedName: "Name", - type: { - name: "String" - } - }, - config: { - serializedName: "Config", - type: { - name: "String" - } - }, - version: { - serializedName: "Version", - type: { - name: "String" - } - }, - favoriteId: { - readOnly: true, - serializedName: "FavoriteId", - type: { - name: "String" - } - }, - favoriteType: { - serializedName: "FavoriteType", - type: { - name: "Enum", - allowedValues: [ - "shared", - "user" - ] - } - }, - sourceType: { - serializedName: "SourceType", - type: { - name: "String" - } - }, - timeModified: { - readOnly: true, - serializedName: "TimeModified", - type: { - name: "String" - } - }, - tags: { - serializedName: "Tags", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - category: { - serializedName: "Category", - type: { - name: "String" - } - }, - isGeneratedFromTemplate: { - serializedName: "IsGeneratedFromTemplate", - type: { - name: "Boolean" - } - }, - userId: { - readOnly: true, - serializedName: "UserId", - type: { - name: "String" - } - } - } - } -}; - -export const ApplicationInsightsComponentWebTestLocation: msRest.CompositeMapper = { - serializedName: "ApplicationInsightsComponentWebTestLocation", - type: { - name: "Composite", - className: "ApplicationInsightsComponentWebTestLocation", - modelProperties: { - displayName: { - readOnly: true, - serializedName: "DisplayName", - type: { - name: "String" - } - }, - tag: { - readOnly: true, - serializedName: "Tag", - type: { - name: "String" - } - } - } - } -}; - -export const WebtestsResource: msRest.CompositeMapper = { - serializedName: "WebtestsResource", - type: { - name: "Composite", - className: "WebtestsResource", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - location: { - required: true, - serializedName: "location", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const WebTestGeolocation: msRest.CompositeMapper = { - serializedName: "WebTestGeolocation", - type: { - name: "Composite", - className: "WebTestGeolocation", - modelProperties: { - location: { - serializedName: "Id", - type: { - name: "String" - } - } - } - } -}; - -export const WebTestPropertiesConfiguration: msRest.CompositeMapper = { - serializedName: "WebTestProperties_Configuration", - type: { - name: "Composite", - className: "WebTestPropertiesConfiguration", - modelProperties: { - webTest: { - serializedName: "WebTest", - type: { - name: "String" - } - } - } - } -}; - -export const WebTest: msRest.CompositeMapper = { - serializedName: "WebTest", - type: { - name: "Composite", - className: "WebTest", - modelProperties: { - ...WebtestsResource.type.modelProperties, - kind: { - serializedName: "kind", - defaultValue: 'ping', - type: { - name: "Enum", - allowedValues: [ - "ping", - "multistep" - ] - } - }, - syntheticMonitorId: { - required: true, - serializedName: "properties.SyntheticMonitorId", - type: { - name: "String" - } - }, - webTestName: { - required: true, - serializedName: "properties.Name", - type: { - name: "String" - } - }, - description: { - serializedName: "properties.Description", - type: { - name: "String" - } - }, - enabled: { - serializedName: "properties.Enabled", - type: { - name: "Boolean" - } - }, - frequency: { - serializedName: "properties.Frequency", - defaultValue: 300, - type: { - name: "Number" - } - }, - timeout: { - serializedName: "properties.Timeout", - defaultValue: 30, - type: { - name: "Number" - } - }, - webTestKind: { - required: true, - serializedName: "properties.Kind", - defaultValue: 'ping', - type: { - name: "Enum", - allowedValues: [ - "ping", - "multistep" - ] - } - }, - retryEnabled: { - serializedName: "properties.RetryEnabled", - type: { - name: "Boolean" - } - }, - locations: { - required: true, - serializedName: "properties.Locations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WebTestGeolocation" - } - } - } - }, - configuration: { - serializedName: "properties.Configuration", - type: { - name: "Composite", - className: "WebTestPropertiesConfiguration" - } - }, - provisioningState: { - readOnly: true, - serializedName: "properties.provisioningState", - type: { - name: "String" - } - } - } - } -}; - -export const ApplicationInsightsComponentAnalyticsItemProperties: msRest.CompositeMapper = { - serializedName: "ApplicationInsightsComponentAnalyticsItemProperties", - type: { - name: "Composite", - className: "ApplicationInsightsComponentAnalyticsItemProperties", - modelProperties: { - functionAlias: { - serializedName: "functionAlias", - type: { - name: "String" - } - } - } - } -}; - -export const ApplicationInsightsComponentAnalyticsItem: msRest.CompositeMapper = { - serializedName: "ApplicationInsightsComponentAnalyticsItem", - type: { - name: "Composite", - className: "ApplicationInsightsComponentAnalyticsItem", - modelProperties: { - id: { - serializedName: "Id", - type: { - name: "String" - } - }, - name: { - serializedName: "Name", - type: { - name: "String" - } - }, - content: { - serializedName: "Content", - type: { - name: "String" - } - }, - version: { - readOnly: true, - serializedName: "Version", - type: { - name: "String" - } - }, - scope: { - serializedName: "Scope", - type: { - name: "String" - } - }, - type: { - serializedName: "Type", - type: { - name: "String" - } - }, - timeCreated: { - readOnly: true, - serializedName: "TimeCreated", - type: { - name: "String" - } - }, - timeModified: { - readOnly: true, - serializedName: "TimeModified", - type: { - name: "String" - } - }, - properties: { - serializedName: "Properties", - type: { - name: "Composite", - className: "ApplicationInsightsComponentAnalyticsItemProperties" - } - } - } - } -}; - -export const WorkbookResource: msRest.CompositeMapper = { - serializedName: "WorkbookResource", - type: { - name: "Composite", - className: "WorkbookResource", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", + data: { + serializedName: "data", type: { name: "String" } }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - location: { - serializedName: "location", + nextLink: { + serializedName: "nextLink", type: { name: "String" } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } } } } }; -export const Workbook: msRest.CompositeMapper = { - serializedName: "Workbook", +export const OperationInfo: msRest.CompositeMapper = { + serializedName: "OperationInfo", type: { name: "Composite", - className: "Workbook", + className: "OperationInfo", modelProperties: { - ...WorkbookResource.type.modelProperties, - kind: { - serializedName: "kind", - type: { - name: "String" - } - }, - workbookName: { - required: true, - serializedName: "properties.name", - type: { - name: "String" - } - }, - serializedData: { - required: true, - serializedName: "properties.serializedData", - type: { - name: "String" - } - }, - version: { - serializedName: "properties.version", - type: { - name: "String" - } - }, - workbookId: { - required: true, - serializedName: "properties.workbookId", - type: { - name: "String" - } - }, - sharedTypeKind: { - required: true, - serializedName: "properties.kind", - defaultValue: 'shared', - type: { - name: "String" - } - }, - timeModified: { - readOnly: true, - serializedName: "properties.timeModified", - type: { - name: "String" - } - }, - category: { - required: true, - serializedName: "properties.category", - type: { - name: "String" - } - }, - workbookTags: { - serializedName: "properties.tags", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - userId: { - required: true, - serializedName: "properties.userId", + provider: { + serializedName: "provider", type: { name: "String" } }, - sourceResourceId: { - serializedName: "properties.sourceResourceId", - type: { - name: "String" - } - } - } - } -}; - -export const LinkProperties: msRest.CompositeMapper = { - serializedName: "LinkProperties", - type: { - name: "Composite", - className: "LinkProperties", - modelProperties: { - sourceId: { - serializedName: "sourceId", + resource: { + serializedName: "resource", type: { name: "String" } }, - targetId: { - serializedName: "targetId", + operation: { + serializedName: "operation", type: { name: "String" } }, - category: { - serializedName: "category", + description: { + serializedName: "description", type: { name: "String" } @@ -1901,73 +90,46 @@ export const LinkProperties: msRest.CompositeMapper = { } }; -export const ErrorFieldContract: msRest.CompositeMapper = { - serializedName: "ErrorFieldContract", +export const Operation: msRest.CompositeMapper = { + serializedName: "Operation", type: { name: "Composite", - className: "ErrorFieldContract", + className: "Operation", modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - message: { - serializedName: "message", + name: { + serializedName: "name", type: { name: "String" } }, - target: { - serializedName: "target", - type: { - name: "String" - } - } - } - } -}; - -export const WorkbookError: msRest.CompositeMapper = { - serializedName: "WorkbookError", - type: { - name: "Composite", - className: "WorkbookError", - modelProperties: { - code: { - serializedName: "code", + display: { + serializedName: "display", type: { - name: "String" + name: "Composite", + className: "OperationInfo" } }, - message: { - serializedName: "message", + origin: { + serializedName: "origin", type: { name: "String" } }, - details: { - serializedName: "details", + properties: { + serializedName: "properties", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorFieldContract" - } - } + name: "Object" } } } } }; -export const OperationListResult: msRest.CompositeMapper = { - serializedName: "OperationListResult", +export const OperationsListResult: msRest.CompositeMapper = { + serializedName: "OperationsListResult", type: { name: "Composite", - className: "OperationListResult", + className: "OperationsListResult", modelProperties: { value: { serializedName: "", @@ -1990,176 +152,3 @@ export const OperationListResult: msRest.CompositeMapper = { } } }; - -export const AnnotationsListResult: msRest.CompositeMapper = { - serializedName: "AnnotationsListResult", - type: { - name: "Composite", - className: "AnnotationsListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Annotation" - } - } - } - } - } - } -}; - -export const ApplicationInsightsComponentAPIKeyListResult: msRest.CompositeMapper = { - serializedName: "ApplicationInsightsComponentAPIKeyListResult", - type: { - name: "Composite", - className: "ApplicationInsightsComponentAPIKeyListResult", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationInsightsComponentAPIKey" - } - } - } - } - } - } -}; - -export const ApplicationInsightsComponentListResult: msRest.CompositeMapper = { - serializedName: "ApplicationInsightsComponentListResult", - type: { - name: "Composite", - className: "ApplicationInsightsComponentListResult", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationInsightsComponent" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const WorkItemConfigurationsListResult: msRest.CompositeMapper = { - serializedName: "WorkItemConfigurationsListResult", - type: { - name: "Composite", - className: "WorkItemConfigurationsListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WorkItemConfiguration" - } - } - } - } - } - } -}; - -export const ApplicationInsightsWebTestLocationsListResult: msRest.CompositeMapper = { - serializedName: "ApplicationInsightsWebTestLocationsListResult", - type: { - name: "Composite", - className: "ApplicationInsightsWebTestLocationsListResult", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationInsightsComponentWebTestLocation" - } - } - } - } - } - } -}; - -export const WebTestListResult: msRest.CompositeMapper = { - serializedName: "webTestListResult", - type: { - name: "Composite", - className: "WebTestListResult", - modelProperties: { - value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "WebTest" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const WorkbooksListResult: msRest.CompositeMapper = { - serializedName: "WorkbooksListResult", - type: { - name: "Composite", - className: "WorkbooksListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Workbook" - } - } - } - } - } - } -}; diff --git a/sdk/applicationinsights/arm-appinsights/src/models/operationsMappers.ts b/sdk/applicationinsights/arm-appinsights/src/models/operationsMappers.ts index 715467ec9522..e798e4bc430a 100644 --- a/sdk/applicationinsights/arm-appinsights/src/models/operationsMappers.ts +++ b/sdk/applicationinsights/arm-appinsights/src/models/operationsMappers.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 { - OperationListResult, + CloudError, Operation, - OperationDisplay, - ErrorResponse + OperationInfo, + OperationsListResult } from "../models/mappers"; - diff --git a/sdk/applicationinsights/arm-appinsights/src/models/parameters.ts b/sdk/applicationinsights/arm-appinsights/src/models/parameters.ts index 94e0087c4616..1c02e2a0b64a 100644 --- a/sdk/applicationinsights/arm-appinsights/src/models/parameters.ts +++ b/sdk/applicationinsights/arm-appinsights/src/models/parameters.ts @@ -20,156 +20,46 @@ export const acceptLanguage: msRest.OperationParameter = { } } }; -export const annotationId: msRest.OperationURLParameter = { - parameterPath: "annotationId", - mapper: { - required: true, - serializedName: "annotationId", - type: { - name: "String" - } - } -}; export const apiVersion: msRest.OperationQueryParameter = { parameterPath: "apiVersion", mapper: { required: true, serializedName: "api-version", + constraints: { + MinLength: 1 + }, type: { name: "String" } } }; -export const canFetchContent: msRest.OperationQueryParameter = { +export const continuationToken: msRest.OperationQueryParameter = { parameterPath: [ "options", - "canFetchContent" + "continuationToken" ], mapper: { - serializedName: "canFetchContent", - type: { - name: "Boolean" - } - } -}; -export const category: msRest.OperationQueryParameter = { - parameterPath: "category", - mapper: { - required: true, - serializedName: "category", - type: { - name: "String" - } - } -}; -export const componentName: msRest.OperationURLParameter = { - parameterPath: "componentName", - mapper: { - required: true, - serializedName: "componentName", - type: { - name: "String" - } - } -}; -export const configurationId: msRest.OperationURLParameter = { - parameterPath: "configurationId", - mapper: { - required: true, - serializedName: "ConfigurationId", - type: { - name: "String" - } - } -}; -export const end: msRest.OperationQueryParameter = { - parameterPath: "end", - mapper: { - required: true, - serializedName: "end", - type: { - name: "String" - } - } -}; -export const exportId: msRest.OperationURLParameter = { - parameterPath: "exportId", - mapper: { - required: true, - serializedName: "exportId", + serializedName: "continuationToken", type: { name: "String" } } }; -export const favoriteId: msRest.OperationURLParameter = { - parameterPath: "favoriteId", +export const downloadAs: msRest.OperationQueryParameter = { + parameterPath: "downloadAs", mapper: { required: true, - serializedName: "favoriteId", + serializedName: "downloadAs", type: { name: "String" } } }; -export const favoriteType: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "favoriteType" - ], - mapper: { - serializedName: "favoriteType", - defaultValue: 'shared', - type: { - name: "Enum", - allowedValues: [ - "shared", - "user" - ] - } - } -}; -export const id: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "id" - ], - mapper: { - serializedName: "id", - type: { - name: "String" - } - } -}; -export const includeContent: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "includeContent" - ], - mapper: { - serializedName: "includeContent", - type: { - name: "Boolean" - } - } -}; -export const keyId: msRest.OperationURLParameter = { - parameterPath: "keyId", +export const geoLocationId: msRest.OperationQueryParameter = { + parameterPath: "geoLocationId", mapper: { required: true, - serializedName: "keyId", - type: { - name: "String" - } - } -}; -export const name: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "name" - ], - mapper: { - serializedName: "name", + serializedName: "geoLocationId", type: { name: "String" } @@ -186,88 +76,16 @@ export const nextPageLink: msRest.OperationURLParameter = { }, skipEncoding: true }; -export const overrideItem: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "overrideItem" - ], - mapper: { - serializedName: "overrideItem", - type: { - name: "Boolean" - } - } -}; -export const purgeId: msRest.OperationURLParameter = { - parameterPath: "purgeId", - mapper: { - required: true, - serializedName: "purgeId", - type: { - name: "String" - } - } -}; export const resourceGroupName: msRest.OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { required: true, serializedName: "resourceGroupName", - type: { - name: "String" - } - } -}; -export const resourceName: msRest.OperationURLParameter = { - parameterPath: "resourceName", - mapper: { - required: true, - serializedName: "resourceName", - type: { - name: "String" - } - } -}; -export const scope: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "scope" - ], - mapper: { - serializedName: "scope", - defaultValue: 'shared', - type: { - name: "String" - } - } -}; -export const scopePath: msRest.OperationURLParameter = { - parameterPath: "scopePath", - mapper: { - required: true, - serializedName: "scopePath", - type: { - name: "String" - } - } -}; -export const sourceType: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "sourceType" - ], - mapper: { - serializedName: "sourceType", - type: { - name: "String" - } - } -}; -export const start: msRest.OperationQueryParameter = { - parameterPath: "start", - mapper: { - required: true, - serializedName: "start", + constraints: { + MaxLength: 90, + MinLength: 1, + Pattern: /^[-\w\._\(\)]+$/ + }, type: { name: "String" } @@ -278,39 +96,33 @@ export const subscriptionId: msRest.OperationURLParameter = { mapper: { required: true, serializedName: "subscriptionId", + constraints: { + MinLength: 1 + }, type: { name: "String" } } }; -export const tags: msRest.OperationQueryParameter = { +export const testSuccessfulCriteria: msRest.OperationQueryParameter = { parameterPath: [ "options", - "tags" + "testSuccessfulCriteria" ], mapper: { - serializedName: "tags", + serializedName: "testSuccessfulCriteria", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Boolean" } - }, - collectionFormat: msRest.QueryCollectionFormat.Csv + } }; -export const type: msRest.OperationQueryParameter = { - parameterPath: [ - "options", - "type" - ], +export const timeStamp: msRest.OperationQueryParameter = { + parameterPath: "timeStamp", mapper: { - serializedName: "type", - defaultValue: 'none', + required: true, + serializedName: "timeStamp", type: { - name: "String" + name: "Number" } } }; @@ -324,13 +136,3 @@ export const webTestName: msRest.OperationURLParameter = { } } }; -export const workItemConfigId: msRest.OperationURLParameter = { - parameterPath: "workItemConfigId", - mapper: { - required: true, - serializedName: "workItemConfigId", - type: { - name: "String" - } - } -}; diff --git a/sdk/applicationinsights/arm-appinsights/src/models/proactiveDetectionConfigurationsMappers.ts b/sdk/applicationinsights/arm-appinsights/src/models/proactiveDetectionConfigurationsMappers.ts deleted file mode 100644 index d8aa85c53a55..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/models/proactiveDetectionConfigurationsMappers.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* - * 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 { - ApplicationInsightsComponentProactiveDetectionConfiguration, - BaseResource, - ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions, - CloudError, - ComponentsResource, - ApplicationInsightsComponent, - WebtestsResource, - WebTest, - WebTestGeolocation, - WebTestPropertiesConfiguration, - WorkbookResource, - Workbook -} from "../models/mappers"; - diff --git a/sdk/applicationinsights/arm-appinsights/src/models/webTestLocationsMappers.ts b/sdk/applicationinsights/arm-appinsights/src/models/webTestLocationsMappers.ts deleted file mode 100644 index a00fd20461a7..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/models/webTestLocationsMappers.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* - * 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 { - ApplicationInsightsWebTestLocationsListResult, - ApplicationInsightsComponentWebTestLocation, - CloudError -} from "../models/mappers"; - diff --git a/sdk/applicationinsights/arm-appinsights/src/models/webTestsMappers.ts b/sdk/applicationinsights/arm-appinsights/src/models/webTestsMappers.ts deleted file mode 100644 index db9ef7a0aeec..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/models/webTestsMappers.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 { - WebTestListResult, - WebTest, - WebtestsResource, - BaseResource, - WebTestGeolocation, - WebTestPropertiesConfiguration, - CloudError, - TagsResource, - ApplicationInsightsComponentProactiveDetectionConfiguration, - ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions, - ComponentsResource, - ApplicationInsightsComponent, - WorkbookResource, - Workbook -} from "../models/mappers"; - diff --git a/sdk/applicationinsights/arm-appinsights/src/models/workItemConfigurationsMappers.ts b/sdk/applicationinsights/arm-appinsights/src/models/workItemConfigurationsMappers.ts deleted file mode 100644 index 52deefbfd72e..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/models/workItemConfigurationsMappers.ts +++ /dev/null @@ -1,19 +0,0 @@ -/* - * 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 { - WorkItemConfigurationsListResult, - WorkItemConfiguration, - WorkItemConfigurationError, - InnerError, - WorkItemCreateConfiguration, - CloudError -} from "../models/mappers"; - diff --git a/sdk/applicationinsights/arm-appinsights/src/models/workbooksMappers.ts b/sdk/applicationinsights/arm-appinsights/src/models/workbooksMappers.ts deleted file mode 100644 index 99a77bcb5f35..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/models/workbooksMappers.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 { - WorkbooksListResult, - Workbook, - WorkbookResource, - BaseResource, - WorkbookError, - ErrorFieldContract, - ApplicationInsightsComponentProactiveDetectionConfiguration, - ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions, - ComponentsResource, - ApplicationInsightsComponent, - WebtestsResource, - WebTest, - WebTestGeolocation, - WebTestPropertiesConfiguration -} from "../models/mappers"; - diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/aPIKeys.ts b/sdk/applicationinsights/arm-appinsights/src/operations/aPIKeys.ts deleted file mode 100644 index ecc23c0e2c01..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/operations/aPIKeys.ts +++ /dev/null @@ -1,282 +0,0 @@ -/* - * 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/aPIKeysMappers"; -import * as Parameters from "../models/parameters"; -import { ApplicationInsightsManagementClientContext } from "../applicationInsightsManagementClientContext"; - -/** Class representing a APIKeys. */ -export class APIKeys { - private readonly client: ApplicationInsightsManagementClientContext; - - /** - * Create a APIKeys. - * @param {ApplicationInsightsManagementClientContext} client Reference to the service client. - */ - constructor(client: ApplicationInsightsManagementClientContext) { - this.client = client; - } - - /** - * Gets a list of API keys of an Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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 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 resourceName The name of the Application Insights component resource. - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Create an API Key of an Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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. - * @param [options] The optional parameters - * @returns Promise - */ - create(resourceGroupName: string, resourceName: string, aPIKeyProperties: Models.APIKeyRequest, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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. - * @param callback The callback - */ - create(resourceGroupName: string, resourceName: string, aPIKeyProperties: Models.APIKeyRequest, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @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. - * @param options The optional parameters - * @param callback The callback - */ - create(resourceGroupName: string, resourceName: string, aPIKeyProperties: Models.APIKeyRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - create(resourceGroupName: string, resourceName: string, aPIKeyProperties: Models.APIKeyRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - aPIKeyProperties, - options - }, - createOperationSpec, - callback) as Promise; - } - - /** - * Delete an API Key of an Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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 - * @returns Promise - */ - deleteMethod(resourceGroupName: string, resourceName: string, keyId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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 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 - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, resourceName: string, keyId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, resourceName: string, keyId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - keyId, - options - }, - deleteMethodOperationSpec, - callback) as Promise; - } - - /** - * Get the API Key for this key id. - * @param resourceGroupName The name of the resource group. - * @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 - * @returns Promise - */ - get(resourceGroupName: string, resourceName: string, keyId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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 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 - * @param callback The callback - */ - get(resourceGroupName: string, resourceName: string, keyId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, resourceName: string, keyId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - keyId, - options - }, - getOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ApiKeys", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponentAPIKeyListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ApiKeys", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "aPIKeyProperties", - mapper: { - ...Mappers.APIKeyRequest, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponentAPIKey - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/APIKeys/{keyId}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName, - Parameters.keyId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponentAPIKey - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/APIKeys/{keyId}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName, - Parameters.keyId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponentAPIKey - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/analyticsItems.ts b/sdk/applicationinsights/arm-appinsights/src/operations/analyticsItems.ts deleted file mode 100644 index bafbaa9326ea..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/operations/analyticsItems.ts +++ /dev/null @@ -1,333 +0,0 @@ -/* - * 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/analyticsItemsMappers"; -import * as Parameters from "../models/parameters"; -import { ApplicationInsightsManagementClientContext } from "../applicationInsightsManagementClientContext"; - -/** Class representing a AnalyticsItems. */ -export class AnalyticsItems { - private readonly client: ApplicationInsightsManagementClientContext; - - /** - * Create a AnalyticsItems. - * @param {ApplicationInsightsManagementClientContext} client Reference to the service client. - */ - constructor(client: ApplicationInsightsManagementClientContext) { - this.client = client; - } - - /** - * Gets a list of Analytics Items defined within an Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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 - * include: 'analyticsItems', 'myanalyticsItems' - * @param [options] The optional parameters - * @returns Promise - */ - list(resourceGroupName: string, resourceName: string, scopePath: Models.ItemScopePath, options?: Models.AnalyticsItemsListOptionalParams): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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 - * include: 'analyticsItems', 'myanalyticsItems' - * @param callback The callback - */ - list(resourceGroupName: string, resourceName: string, scopePath: Models.ItemScopePath, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @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 - * include: 'analyticsItems', 'myanalyticsItems' - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, resourceName: string, scopePath: Models.ItemScopePath, options: Models.AnalyticsItemsListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, resourceName: string, scopePath: Models.ItemScopePath, options?: Models.AnalyticsItemsListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - scopePath, - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Gets a specific Analytics Items defined within an Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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 - * include: 'analyticsItems', 'myanalyticsItems' - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, resourceName: string, scopePath: Models.ItemScopePath, options?: Models.AnalyticsItemsGetOptionalParams): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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 - * include: 'analyticsItems', 'myanalyticsItems' - * @param callback The callback - */ - get(resourceGroupName: string, resourceName: string, scopePath: Models.ItemScopePath, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @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 - * include: 'analyticsItems', 'myanalyticsItems' - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, resourceName: string, scopePath: Models.ItemScopePath, options: Models.AnalyticsItemsGetOptionalParams, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, resourceName: string, scopePath: Models.ItemScopePath, options?: Models.AnalyticsItemsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - scopePath, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Adds or Updates a specific Analytics Item within an Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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 - * include: 'analyticsItems', 'myanalyticsItems' - * @param itemProperties Properties that need to be specified to create a new item and add it to an - * Application Insights component. - * @param [options] The optional parameters - * @returns Promise - */ - put(resourceGroupName: string, resourceName: string, scopePath: Models.ItemScopePath, itemProperties: Models.ApplicationInsightsComponentAnalyticsItem, options?: Models.AnalyticsItemsPutOptionalParams): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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 - * include: 'analyticsItems', 'myanalyticsItems' - * @param itemProperties Properties that need to be specified to create a new item and add it to an - * Application Insights component. - * @param callback The callback - */ - put(resourceGroupName: string, resourceName: string, scopePath: Models.ItemScopePath, itemProperties: Models.ApplicationInsightsComponentAnalyticsItem, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @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 - * include: 'analyticsItems', 'myanalyticsItems' - * @param itemProperties Properties that need to be specified to create a new item and add it to an - * Application Insights component. - * @param options The optional parameters - * @param callback The callback - */ - put(resourceGroupName: string, resourceName: string, scopePath: Models.ItemScopePath, itemProperties: Models.ApplicationInsightsComponentAnalyticsItem, options: Models.AnalyticsItemsPutOptionalParams, callback: msRest.ServiceCallback): void; - put(resourceGroupName: string, resourceName: string, scopePath: Models.ItemScopePath, itemProperties: Models.ApplicationInsightsComponentAnalyticsItem, options?: Models.AnalyticsItemsPutOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - scopePath, - itemProperties, - options - }, - putOperationSpec, - callback) as Promise; - } - - /** - * Deletes a specific Analytics Items defined within an Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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 - * include: 'analyticsItems', 'myanalyticsItems' - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, resourceName: string, scopePath: Models.ItemScopePath, options?: Models.AnalyticsItemsDeleteMethodOptionalParams): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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 - * include: 'analyticsItems', 'myanalyticsItems' - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, resourceName: string, scopePath: Models.ItemScopePath, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @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 - * include: 'analyticsItems', 'myanalyticsItems' - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, resourceName: string, scopePath: Models.ItemScopePath, options: Models.AnalyticsItemsDeleteMethodOptionalParams, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, resourceName: string, scopePath: Models.ItemScopePath, options?: Models.AnalyticsItemsDeleteMethodOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - scopePath, - options - }, - deleteMethodOperationSpec, - callback); - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.scopePath - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.scope, - Parameters.type, - Parameters.includeContent - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationInsightsComponentAnalyticsItem" - } - } - } - } - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.scopePath - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.id, - Parameters.name - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponentAnalyticsItem - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const putOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.scopePath - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.overrideItem - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "itemProperties", - mapper: { - ...Mappers.ApplicationInsightsComponentAnalyticsItem, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponentAnalyticsItem - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName, - Parameters.scopePath - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.id, - Parameters.name - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/annotations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/annotations.ts deleted file mode 100644 index f36ded7ddd78..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/operations/annotations.ts +++ /dev/null @@ -1,328 +0,0 @@ -/* - * 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/annotationsMappers"; -import * as Parameters from "../models/parameters"; -import { ApplicationInsightsManagementClientContext } from "../applicationInsightsManagementClientContext"; - -/** Class representing a Annotations. */ -export class Annotations { - private readonly client: ApplicationInsightsManagementClientContext; - - /** - * Create a Annotations. - * @param {ApplicationInsightsManagementClientContext} client Reference to the service client. - */ - constructor(client: ApplicationInsightsManagementClientContext) { - this.client = client; - } - - /** - * Gets the list of annotations for a component for given time range - * @param resourceGroupName The name of the resource group. - * @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. - * @param end The end time to query for annotations. - * @param [options] The optional parameters - * @returns Promise - */ - list(resourceGroupName: string, resourceName: string, start: string, end: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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. - * @param end The end time to query for annotations. - * @param callback The callback - */ - list(resourceGroupName: string, resourceName: string, start: string, end: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @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. - * @param end The end time to query for annotations. - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, resourceName: string, start: string, end: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, resourceName: string, start: string, end: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - start, - end, - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Create an Annotation of an Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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. - * @param [options] The optional parameters - * @returns Promise - */ - create(resourceGroupName: string, resourceName: string, annotationProperties: Models.Annotation, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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. - * @param callback The callback - */ - create(resourceGroupName: string, resourceName: string, annotationProperties: Models.Annotation, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @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. - * @param options The optional parameters - * @param callback The callback - */ - create(resourceGroupName: string, resourceName: string, annotationProperties: Models.Annotation, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - create(resourceGroupName: string, resourceName: string, annotationProperties: Models.Annotation, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - annotationProperties, - options - }, - createOperationSpec, - callback) as Promise; - } - - /** - * Delete an Annotation of an Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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 - */ - deleteMethod(resourceGroupName: string, resourceName: string, annotationId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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; - /** - * @param resourceGroupName The name of the resource group. - * @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 { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - annotationId, - options - }, - deleteMethodOperationSpec, - callback) as Promise; - } - - /** - * Get the annotation for given id. - * @param resourceGroupName The name of the resource group. - * @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 - */ - get(resourceGroupName: string, resourceName: string, annotationId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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 - */ - get(resourceGroupName: string, resourceName: string, annotationId: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @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 - */ - get(resourceGroupName: string, resourceName: string, annotationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, resourceName: string, annotationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - annotationId, - options - }, - getOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.start, - Parameters.end - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.AnnotationsListResult - }, - default: { - bodyMapper: Mappers.AnnotationError - } - }, - serializer -}; - -const createOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "annotationProperties", - mapper: { - ...Mappers.Annotation, - required: true - } - }, - responses: { - 200: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Annotation" - } - } - } - } - }, - default: { - bodyMapper: Mappers.AnnotationError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations/{annotationId}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName, - Parameters.annotationId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/Annotations/{annotationId}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName, - Parameters.annotationId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Annotation" - } - } - } - } - }, - default: { - bodyMapper: Mappers.AnnotationError - } - }, - serializer -}; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/componentAvailableFeatures.ts b/sdk/applicationinsights/arm-appinsights/src/operations/componentAvailableFeatures.ts deleted file mode 100644 index 84cc340da70b..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/operations/componentAvailableFeatures.ts +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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/componentAvailableFeaturesMappers"; -import * as Parameters from "../models/parameters"; -import { ApplicationInsightsManagementClientContext } from "../applicationInsightsManagementClientContext"; - -/** Class representing a ComponentAvailableFeatures. */ -export class ComponentAvailableFeatures { - private readonly client: ApplicationInsightsManagementClientContext; - - /** - * Create a ComponentAvailableFeatures. - * @param {ApplicationInsightsManagementClientContext} client Reference to the service client. - */ - constructor(client: ApplicationInsightsManagementClientContext) { - this.client = client; - } - - /** - * Returns all available features of the application insights component. - * @param resourceGroupName The name of the resource group. - * @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 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 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; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/getavailablebillingfeatures", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponentAvailableFeatures - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/componentCurrentBillingFeatures.ts b/sdk/applicationinsights/arm-appinsights/src/operations/componentCurrentBillingFeatures.ts deleted file mode 100644 index d4a36c61adb3..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/operations/componentCurrentBillingFeatures.ts +++ /dev/null @@ -1,158 +0,0 @@ -/* - * 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/componentCurrentBillingFeaturesMappers"; -import * as Parameters from "../models/parameters"; -import { ApplicationInsightsManagementClientContext } from "../applicationInsightsManagementClientContext"; - -/** Class representing a ComponentCurrentBillingFeatures. */ -export class ComponentCurrentBillingFeatures { - private readonly client: ApplicationInsightsManagementClientContext; - - /** - * Create a ComponentCurrentBillingFeatures. - * @param {ApplicationInsightsManagementClientContext} client Reference to the service client. - */ - constructor(client: ApplicationInsightsManagementClientContext) { - this.client = client; - } - - /** - * Returns current billing features for an Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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 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 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; - } - - /** - * Update current billing features for an Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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. - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, resourceName: string, billingFeaturesProperties: Models.ApplicationInsightsComponentBillingFeatures, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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. - * @param callback The callback - */ - update(resourceGroupName: string, resourceName: string, billingFeaturesProperties: Models.ApplicationInsightsComponentBillingFeatures, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @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. - * @param options The optional parameters - * @param callback The callback - */ - update(resourceGroupName: string, resourceName: string, billingFeaturesProperties: Models.ApplicationInsightsComponentBillingFeatures, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, resourceName: string, billingFeaturesProperties: Models.ApplicationInsightsComponentBillingFeatures, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - billingFeaturesProperties, - options - }, - updateOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/currentbillingfeatures", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponentBillingFeatures - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/currentbillingfeatures", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "billingFeaturesProperties", - mapper: { - ...Mappers.ApplicationInsightsComponentBillingFeatures, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponentBillingFeatures - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/componentFeatureCapabilities.ts b/sdk/applicationinsights/arm-appinsights/src/operations/componentFeatureCapabilities.ts deleted file mode 100644 index 26e06651a059..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/operations/componentFeatureCapabilities.ts +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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/componentFeatureCapabilitiesMappers"; -import * as Parameters from "../models/parameters"; -import { ApplicationInsightsManagementClientContext } from "../applicationInsightsManagementClientContext"; - -/** Class representing a ComponentFeatureCapabilities. */ -export class ComponentFeatureCapabilities { - private readonly client: ApplicationInsightsManagementClientContext; - - /** - * Create a ComponentFeatureCapabilities. - * @param {ApplicationInsightsManagementClientContext} client Reference to the service client. - */ - constructor(client: ApplicationInsightsManagementClientContext) { - this.client = client; - } - - /** - * Returns feature capabilites of the application insights component. - * @param resourceGroupName The name of the resource group. - * @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 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 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; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/featurecapabilities", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponentFeatureCapabilities - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/componentQuotaStatus.ts b/sdk/applicationinsights/arm-appinsights/src/operations/componentQuotaStatus.ts deleted file mode 100644 index 9c62a249142b..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/operations/componentQuotaStatus.ts +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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/componentQuotaStatusMappers"; -import * as Parameters from "../models/parameters"; -import { ApplicationInsightsManagementClientContext } from "../applicationInsightsManagementClientContext"; - -/** Class representing a ComponentQuotaStatus. */ -export class ComponentQuotaStatus { - private readonly client: ApplicationInsightsManagementClientContext; - - /** - * Create a ComponentQuotaStatus. - * @param {ApplicationInsightsManagementClientContext} client Reference to the service client. - */ - constructor(client: ApplicationInsightsManagementClientContext) { - this.client = client; - } - - /** - * Returns daily data volume cap (quota) status for an Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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 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 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; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/quotastatus", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponentQuotaStatus - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/components.ts b/sdk/applicationinsights/arm-appinsights/src/operations/components.ts deleted file mode 100644 index 5d5ab4a6b9c1..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/operations/components.ts +++ /dev/null @@ -1,616 +0,0 @@ -/* - * 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/componentsMappers"; -import * as Parameters from "../models/parameters"; -import { ApplicationInsightsManagementClientContext } from "../applicationInsightsManagementClientContext"; - -/** Class representing a Components. */ -export class Components { - private readonly client: ApplicationInsightsManagementClientContext; - - /** - * Create a Components. - * @param {ApplicationInsightsManagementClientContext} client Reference to the service client. - */ - constructor(client: ApplicationInsightsManagementClientContext) { - this.client = client; - } - - /** - * Gets a list of all Application Insights components within a subscription. - * @param [options] The optional parameters - * @returns Promise - */ - list(options?: msRest.RequestOptionsBase): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Gets a list of Application Insights components within a resource group. - * @param resourceGroupName The name of the resource group. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @param callback The callback - */ - listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @param options The optional parameters - * @param callback The callback - */ - listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - options - }, - listByResourceGroupOperationSpec, - callback) as Promise; - } - - /** - * Deletes an Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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 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 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); - } - - /** - * Returns an Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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 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 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; - } - - /** - * 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 resourceName The name of the Application Insights component resource. - * @param insightProperties Properties that need to be specified to create an Application Insights - * component. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, resourceName: string, insightProperties: Models.ApplicationInsightsComponent, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @param resourceName The name of the Application Insights component resource. - * @param insightProperties Properties that need to be specified to create an Application Insights - * component. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, resourceName: string, insightProperties: Models.ApplicationInsightsComponent, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @param resourceName The name of the Application Insights component resource. - * @param insightProperties Properties that need to be specified to create an Application Insights - * component. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, resourceName: string, insightProperties: Models.ApplicationInsightsComponent, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, resourceName: string, insightProperties: Models.ApplicationInsightsComponent, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - insightProperties, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * Updates an existing component's tags. To update other fields use the CreateOrUpdate method. - * @param resourceGroupName The name of the resource group. - * @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 - * @returns Promise - */ - updateTags(resourceGroupName: string, resourceName: string, componentTags: Models.TagsResource, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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 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 - * @param callback The callback - */ - updateTags(resourceGroupName: string, resourceName: string, componentTags: Models.TagsResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateTags(resourceGroupName: string, resourceName: string, componentTags: Models.TagsResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - componentTags, - options - }, - updateTagsOperationSpec, - callback) as Promise; - } - - /** - * Purges data in an Application Insights component by a set of user-defined filters. - * @param resourceGroupName The name of the resource group. - * @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 - * @param [options] The optional parameters - * @returns Promise - */ - purge(resourceGroupName: string, resourceName: string, body: Models.ComponentPurgeBody, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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 - * @param callback The callback - */ - purge(resourceGroupName: string, resourceName: string, body: Models.ComponentPurgeBody, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @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 - * @param options The optional parameters - * @param callback The callback - */ - purge(resourceGroupName: string, resourceName: string, body: Models.ComponentPurgeBody, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - purge(resourceGroupName: string, resourceName: string, body: Models.ComponentPurgeBody, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - body, - options - }, - purgeOperationSpec, - callback) as Promise; - } - - /** - * Get status for an ongoing purge operation. - * @param resourceGroupName The name of the resource group. - * @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. - * @param [options] The optional parameters - * @returns Promise - */ - getPurgeStatus(resourceGroupName: string, resourceName: string, purgeId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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. - * @param callback The callback - */ - getPurgeStatus(resourceGroupName: string, resourceName: string, purgeId: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @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. - * @param options The optional parameters - * @param callback The callback - */ - getPurgeStatus(resourceGroupName: string, resourceName: string, purgeId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getPurgeStatus(resourceGroupName: string, resourceName: string, purgeId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - purgeId, - options - }, - getPurgeStatusOperationSpec, - callback) as Promise; - } - - /** - * Gets a list of all Application Insights components within a subscription. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(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 - */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; - } - - /** - * Gets a list of Application Insights components within a resource group. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByResourceGroupNext(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 - */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByResourceGroupNextOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Insights/components", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponentListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponentListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponent - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "insightProperties", - mapper: { - ...Mappers.ApplicationInsightsComponent, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponent - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const updateTagsOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "componentTags", - mapper: { - ...Mappers.TagsResource, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponent - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const purgeOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/purge", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "body", - mapper: { - ...Mappers.ComponentPurgeBody, - required: true - } - }, - responses: { - 202: { - bodyMapper: Mappers.ComponentPurgeResponse - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getPurgeStatusOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/operations/{purgeId}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName, - Parameters.purgeId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ComponentPurgeStatusResponse - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponentListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponentListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/exportConfigurations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/exportConfigurations.ts deleted file mode 100644 index a7985ea6e265..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/operations/exportConfigurations.ts +++ /dev/null @@ -1,389 +0,0 @@ -/* - * 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/exportConfigurationsMappers"; -import * as Parameters from "../models/parameters"; -import { ApplicationInsightsManagementClientContext } from "../applicationInsightsManagementClientContext"; - -/** Class representing a ExportConfigurations. */ -export class ExportConfigurations { - private readonly client: ApplicationInsightsManagementClientContext; - - /** - * Create a ExportConfigurations. - * @param {ApplicationInsightsManagementClientContext} client Reference to the service client. - */ - constructor(client: ApplicationInsightsManagementClientContext) { - this.client = client; - } - - /** - * Gets a list of Continuous Export configuration of an Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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 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 resourceName The name of the Application Insights component resource. - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Create a Continuous Export configuration of an Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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. - * @param [options] The optional parameters - * @returns Promise - */ - create(resourceGroupName: string, resourceName: string, exportProperties: Models.ApplicationInsightsComponentExportRequest, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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. - * @param callback The callback - */ - create(resourceGroupName: string, resourceName: string, exportProperties: Models.ApplicationInsightsComponentExportRequest, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @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. - * @param options The optional parameters - * @param callback The callback - */ - create(resourceGroupName: string, resourceName: string, exportProperties: Models.ApplicationInsightsComponentExportRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - create(resourceGroupName: string, resourceName: string, exportProperties: Models.ApplicationInsightsComponentExportRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - exportProperties, - options - }, - createOperationSpec, - callback) as Promise; - } - - /** - * Delete a Continuous Export configuration of an Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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. - * @param [options] The optional parameters - * @returns Promise - */ - deleteMethod(resourceGroupName: string, resourceName: string, exportId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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. - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, resourceName: string, exportId: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @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. - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, resourceName: string, exportId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, resourceName: string, exportId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - exportId, - options - }, - deleteMethodOperationSpec, - callback) as Promise; - } - - /** - * Get the Continuous Export configuration for this export id. - * @param resourceGroupName The name of the resource group. - * @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. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, resourceName: string, exportId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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. - * @param callback The callback - */ - get(resourceGroupName: string, resourceName: string, exportId: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @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. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, resourceName: string, exportId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, resourceName: string, exportId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - exportId, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Update the Continuous Export configuration for this export id. - * @param resourceGroupName The name of the resource group. - * @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. - * @param exportProperties Properties that need to be specified to update the Continuous Export - * configuration. - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, resourceName: string, exportId: string, exportProperties: Models.ApplicationInsightsComponentExportRequest, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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. - * @param exportProperties Properties that need to be specified to update the Continuous Export - * configuration. - * @param callback The callback - */ - update(resourceGroupName: string, resourceName: string, exportId: string, exportProperties: Models.ApplicationInsightsComponentExportRequest, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @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. - * @param exportProperties Properties that need to be specified to update the Continuous Export - * configuration. - * @param options The optional parameters - * @param callback The callback - */ - update(resourceGroupName: string, resourceName: string, exportId: string, exportProperties: Models.ApplicationInsightsComponentExportRequest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, resourceName: string, exportId: string, exportProperties: Models.ApplicationInsightsComponentExportRequest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - exportId, - exportProperties, - options - }, - updateOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationInsightsComponentExportConfiguration" - } - } - } - } - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "exportProperties", - mapper: { - ...Mappers.ApplicationInsightsComponentExportRequest, - required: true - } - }, - responses: { - 200: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationInsightsComponentExportConfiguration" - } - } - } - } - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName, - Parameters.exportId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponentExportConfiguration - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName, - Parameters.exportId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponentExportConfiguration - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName, - Parameters.exportId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "exportProperties", - mapper: { - ...Mappers.ApplicationInsightsComponentExportRequest, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponentExportConfiguration - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/favorites.ts b/sdk/applicationinsights/arm-appinsights/src/operations/favorites.ts deleted file mode 100644 index b7d321659714..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/operations/favorites.ts +++ /dev/null @@ -1,373 +0,0 @@ -/* - * 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/favoritesMappers"; -import * as Parameters from "../models/parameters"; -import { ApplicationInsightsManagementClientContext } from "../applicationInsightsManagementClientContext"; - -/** Class representing a Favorites. */ -export class Favorites { - private readonly client: ApplicationInsightsManagementClientContext; - - /** - * Create a Favorites. - * @param {ApplicationInsightsManagementClientContext} client Reference to the service client. - */ - constructor(client: ApplicationInsightsManagementClientContext) { - this.client = client; - } - - /** - * Gets a list of favorites defined within an Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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 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 resourceName The name of the Application Insights component resource. - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, resourceName: string, options: Models.FavoritesListOptionalParams, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, resourceName: string, options?: Models.FavoritesListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Get a single favorite by its FavoriteId, defined within an Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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 - * @returns Promise - */ - get(resourceGroupName: string, resourceName: string, favoriteId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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 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 - * @param callback The callback - */ - get(resourceGroupName: string, resourceName: string, favoriteId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, resourceName: string, favoriteId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - favoriteId, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Adds a new favorites to an Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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 - * it to an Application Insights component. - * @param [options] The optional parameters - * @returns Promise - */ - add(resourceGroupName: string, resourceName: string, favoriteId: string, favoriteProperties: Models.ApplicationInsightsComponentFavorite, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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 - * it to an Application Insights component. - * @param callback The callback - */ - add(resourceGroupName: string, resourceName: string, favoriteId: string, favoriteProperties: Models.ApplicationInsightsComponentFavorite, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @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 - * it to an Application Insights component. - * @param options The optional parameters - * @param callback The callback - */ - add(resourceGroupName: string, resourceName: string, favoriteId: string, favoriteProperties: Models.ApplicationInsightsComponentFavorite, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - add(resourceGroupName: string, resourceName: string, favoriteId: string, favoriteProperties: Models.ApplicationInsightsComponentFavorite, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - favoriteId, - favoriteProperties, - options - }, - addOperationSpec, - callback) as Promise; - } - - /** - * Updates a favorite that has already been added to an Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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. - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, resourceName: string, favoriteId: string, favoriteProperties: Models.ApplicationInsightsComponentFavorite, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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. - * @param callback The callback - */ - update(resourceGroupName: string, resourceName: string, favoriteId: string, favoriteProperties: Models.ApplicationInsightsComponentFavorite, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @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. - * @param options The optional parameters - * @param callback The callback - */ - update(resourceGroupName: string, resourceName: string, favoriteId: string, favoriteProperties: Models.ApplicationInsightsComponentFavorite, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, resourceName: string, favoriteId: string, favoriteProperties: Models.ApplicationInsightsComponentFavorite, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - favoriteId, - favoriteProperties, - options - }, - updateOperationSpec, - callback) as Promise; - } - - /** - * Remove a favorite that is associated to an Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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 - * @returns Promise - */ - deleteMethod(resourceGroupName: string, resourceName: string, favoriteId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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 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 - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, resourceName: string, favoriteId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, resourceName: string, favoriteId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - favoriteId, - options - }, - deleteMethodOperationSpec, - callback); - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion, - Parameters.favoriteType, - Parameters.sourceType, - Parameters.canFetchContent, - Parameters.tags - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationInsightsComponentFavorite" - } - } - } - } - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName, - Parameters.favoriteId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponentFavorite - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const addOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName, - Parameters.favoriteId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "favoriteProperties", - mapper: { - ...Mappers.ApplicationInsightsComponentFavorite, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponentFavorite - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName, - Parameters.favoriteId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "favoriteProperties", - mapper: { - ...Mappers.ApplicationInsightsComponentFavorite, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponentFavorite - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/favorites/{favoriteId}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName, - Parameters.favoriteId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/index.ts b/sdk/applicationinsights/arm-appinsights/src/operations/index.ts index 081347db5f2d..8a723d22b1d6 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/index.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/index.ts @@ -9,18 +9,3 @@ */ export * from "./operations"; -export * from "./annotations"; -export * from "./aPIKeys"; -export * from "./exportConfigurations"; -export * from "./componentCurrentBillingFeatures"; -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"; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/operations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/operations.ts index 2b5a6ac42961..887407543415 100644 --- a/sdk/applicationinsights/arm-appinsights/src/operations/operations.ts +++ b/sdk/applicationinsights/arm-appinsights/src/operations/operations.ts @@ -27,7 +27,8 @@ export class Operations { } /** - * Lists all of the available insights REST API operations. + * List the available operations supported by the Microsoft.EventGrid resource provider. + * @summary List available operations. * @param [options] The optional parameters * @returns Promise */ @@ -35,13 +36,13 @@ export class Operations { /** * @param callback The callback */ - list(callback: msRest.ServiceCallback): void; + list(callback: msRest.ServiceCallback): void; /** * @param options The optional parameters * @param callback The callback */ - list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { options @@ -51,7 +52,8 @@ export class Operations { } /** - * Lists all of the available insights REST API operations. + * List the available operations supported by the Microsoft.EventGrid 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 @@ -61,14 +63,14 @@ export class Operations { * @param nextPageLink The NextLink from the previous successful call to List operation. * @param callback The callback */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; + listNext(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 */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { nextPageLink, @@ -83,7 +85,7 @@ export class Operations { const serializer = new msRest.Serializer(Mappers); const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", - path: "providers/Microsoft.Insights/operations", + path: "providers/microsoft.insights/operations", queryParameters: [ Parameters.apiVersion ], @@ -92,10 +94,10 @@ const listOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationsListResult }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.CloudError } }, serializer @@ -113,10 +115,10 @@ const listNextOperationSpec: msRest.OperationSpec = { ], responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationsListResult }, default: { - bodyMapper: Mappers.ErrorResponse + bodyMapper: Mappers.CloudError } }, serializer diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/proactiveDetectionConfigurations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/proactiveDetectionConfigurations.ts deleted file mode 100644 index ca6f6dcbe202..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/operations/proactiveDetectionConfigurations.ts +++ /dev/null @@ -1,242 +0,0 @@ -/* - * 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/proactiveDetectionConfigurationsMappers"; -import * as Parameters from "../models/parameters"; -import { ApplicationInsightsManagementClientContext } from "../applicationInsightsManagementClientContext"; - -/** Class representing a ProactiveDetectionConfigurations. */ -export class ProactiveDetectionConfigurations { - private readonly client: ApplicationInsightsManagementClientContext; - - /** - * Create a ProactiveDetectionConfigurations. - * @param {ApplicationInsightsManagementClientContext} client Reference to the service client. - */ - constructor(client: ApplicationInsightsManagementClientContext) { - this.client = client; - } - - /** - * Gets a list of ProactiveDetection configurations of an Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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 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 resourceName The name of the Application Insights component resource. - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Get the ProactiveDetection configuration for this configuration id. - * @param resourceGroupName The name of the resource group. - * @param resourceName The name of the Application Insights component resource. - * @param configurationId The ProactiveDetection configuration ID. This is unique within a - * Application Insights component. - * @param [options] The optional parameters - * @returns Promise - */ - get(resourceGroupName: string, resourceName: string, configurationId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @param resourceName The name of the Application Insights component resource. - * @param configurationId The ProactiveDetection configuration ID. This is unique within a - * Application Insights component. - * @param callback The callback - */ - get(resourceGroupName: string, resourceName: string, configurationId: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @param resourceName The name of the Application Insights component resource. - * @param configurationId The ProactiveDetection configuration ID. This is unique within a - * Application Insights component. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, resourceName: string, configurationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, resourceName: string, configurationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - configurationId, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Update the ProactiveDetection configuration for this configuration id. - * @param resourceGroupName The name of the resource group. - * @param resourceName The name of the Application Insights component resource. - * @param configurationId The ProactiveDetection configuration ID. This is unique within a - * Application Insights component. - * @param proactiveDetectionProperties Properties that need to be specified to update the - * ProactiveDetection configuration. - * @param [options] The optional parameters - * @returns Promise - */ - update(resourceGroupName: string, resourceName: string, configurationId: string, proactiveDetectionProperties: Models.ApplicationInsightsComponentProactiveDetectionConfiguration, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @param resourceName The name of the Application Insights component resource. - * @param configurationId The ProactiveDetection configuration ID. This is unique within a - * Application Insights component. - * @param proactiveDetectionProperties Properties that need to be specified to update the - * ProactiveDetection configuration. - * @param callback The callback - */ - update(resourceGroupName: string, resourceName: string, configurationId: string, proactiveDetectionProperties: Models.ApplicationInsightsComponentProactiveDetectionConfiguration, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @param resourceName The name of the Application Insights component resource. - * @param configurationId The ProactiveDetection configuration ID. This is unique within a - * Application Insights component. - * @param proactiveDetectionProperties Properties that need to be specified to update the - * ProactiveDetection configuration. - * @param options The optional parameters - * @param callback The callback - */ - update(resourceGroupName: string, resourceName: string, configurationId: string, proactiveDetectionProperties: Models.ApplicationInsightsComponentProactiveDetectionConfiguration, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, resourceName: string, configurationId: string, proactiveDetectionProperties: Models.ApplicationInsightsComponentProactiveDetectionConfiguration, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - configurationId, - proactiveDetectionProperties, - options - }, - updateOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationInsightsComponentProactiveDetectionConfiguration" - } - } - } - } - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs/{ConfigurationId}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName, - Parameters.configurationId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponentProactiveDetectionConfiguration - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs/{ConfigurationId}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName, - Parameters.configurationId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "proactiveDetectionProperties", - mapper: { - ...Mappers.ApplicationInsightsComponentProactiveDetectionConfiguration, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsComponentProactiveDetectionConfiguration - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/webTestLocations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/webTestLocations.ts deleted file mode 100644 index 95fbad790bb0..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/operations/webTestLocations.ts +++ /dev/null @@ -1,87 +0,0 @@ -/* - * 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/webTestLocationsMappers"; -import * as Parameters from "../models/parameters"; -import { ApplicationInsightsManagementClientContext } from "../applicationInsightsManagementClientContext"; - -/** Class representing a WebTestLocations. */ -export class WebTestLocations { - private readonly client: ApplicationInsightsManagementClientContext; - - /** - * Create a WebTestLocations. - * @param {ApplicationInsightsManagementClientContext} client Reference to the service client. - */ - constructor(client: ApplicationInsightsManagementClientContext) { - this.client = client; - } - - /** - * Gets a list of web test locations available to this Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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 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 resourceName The name of the Application Insights component resource. - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - options - }, - listOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/syntheticmonitorlocations", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.ApplicationInsightsWebTestLocationsListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/webTests.ts b/sdk/applicationinsights/arm-appinsights/src/operations/webTests.ts deleted file mode 100644 index 85311b4d629b..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/operations/webTests.ts +++ /dev/null @@ -1,585 +0,0 @@ -/* - * 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/webTestsMappers"; -import * as Parameters from "../models/parameters"; -import { ApplicationInsightsManagementClientContext } from "../applicationInsightsManagementClientContext"; - -/** Class representing a WebTests. */ -export class WebTests { - private readonly client: ApplicationInsightsManagementClientContext; - - /** - * Create a WebTests. - * @param {ApplicationInsightsManagementClientContext} client Reference to the service client. - */ - constructor(client: ApplicationInsightsManagementClientContext) { - this.client = client; - } - - /** - * Get all Application Insights web tests defined within a specified resource group. - * @param resourceGroupName The name of the resource group. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @param callback The callback - */ - listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @param options The optional parameters - * @param callback The callback - */ - listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - options - }, - listByResourceGroupOperationSpec, - callback) as Promise; - } - - /** - * Get a specific Application Insights web test definition. - * @param resourceGroupName The name of the resource group. - * @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 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 webTestName The name of the Application Insights webtest resource. - * @param options The optional parameters - * @param callback The callback - */ - get(resourceGroupName: string, webTestName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, webTestName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - webTestName, - options - }, - getOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates an Application Insights web test definition. - * @param resourceGroupName The name of the resource group. - * @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. - * @param [options] The optional parameters - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, webTestName: string, webTestDefinition: Models.WebTest, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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. - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, webTestName: string, webTestDefinition: Models.WebTest, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @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. - * @param options The optional parameters - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, webTestName: string, webTestDefinition: Models.WebTest, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, webTestName: string, webTestDefinition: Models.WebTest, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - webTestName, - webTestDefinition, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * Creates or updates an Application Insights web test definition. - * @param resourceGroupName The name of the resource group. - * @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 - * @returns Promise - */ - updateTags(resourceGroupName: string, webTestName: string, webTestTags: Models.TagsResource, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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 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 - * @param callback The callback - */ - updateTags(resourceGroupName: string, webTestName: string, webTestTags: Models.TagsResource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateTags(resourceGroupName: string, webTestName: string, webTestTags: Models.TagsResource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - webTestName, - webTestTags, - options - }, - updateTagsOperationSpec, - callback) as Promise; - } - - /** - * Deletes an Application Insights web test. - * @param resourceGroupName The name of the resource group. - * @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 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 webTestName The name of the Application Insights webtest resource. - * @param options The optional parameters - * @param callback The callback - */ - deleteMethod(resourceGroupName: string, webTestName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - deleteMethod(resourceGroupName: string, webTestName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - webTestName, - options - }, - deleteMethodOperationSpec, - callback); - } - - /** - * Get all Application Insights web test alerts definitioned within a subscription. - * @param [options] The optional parameters - * @returns Promise - */ - list(options?: msRest.RequestOptionsBase): Promise; - /** - * @param callback The callback - */ - list(callback: msRest.ServiceCallback): void; - /** - * @param options The optional parameters - * @param callback The callback - */ - list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * 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 [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 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 options The optional parameters - * @param callback The callback - */ - listByComponent(componentName: string, resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByComponent(componentName: string, resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - componentName, - resourceGroupName, - options - }, - listByComponentOperationSpec, - callback) as Promise; - } - - /** - * Get all Application Insights web tests defined within a specified resource group. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByResourceGroupNext(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 - */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByResourceGroupNextOperationSpec, - callback) as Promise; - } - - /** - * Get all Application Insights web test alerts definitioned within a subscription. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(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 - */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; - } - - /** - * Get all Application Insights web tests defined for the specified component. - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByComponentNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByComponentNext(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 - */ - listByComponentNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByComponentNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByComponentNextOperationSpec, - 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/webtests", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.WebTestListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.webTestName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.WebTest - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.webTestName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "webTestDefinition", - mapper: { - ...Mappers.WebTest, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.WebTest - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const updateTagsOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.webTestName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "webTestTags", - mapper: { - ...Mappers.TagsResource, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.WebTest - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/webtests/{webTestName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.webTestName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/providers/Microsoft.Insights/webtests", - urlParameters: [ - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.WebTestListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByComponentOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{componentName}/webtests", - urlParameters: [ - Parameters.componentName, - Parameters.resourceGroupName, - Parameters.subscriptionId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.WebTestListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.WebTestListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.WebTestListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByComponentNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.WebTestListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/workItemConfigurations.ts b/sdk/applicationinsights/arm-appinsights/src/operations/workItemConfigurations.ts deleted file mode 100644 index 5d8318641273..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/operations/workItemConfigurations.ts +++ /dev/null @@ -1,285 +0,0 @@ -/* - * 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/workItemConfigurationsMappers"; -import * as Parameters from "../models/parameters"; -import { ApplicationInsightsManagementClientContext } from "../applicationInsightsManagementClientContext"; - -/** Class representing a WorkItemConfigurations. */ -export class WorkItemConfigurations { - private readonly client: ApplicationInsightsManagementClientContext; - - /** - * Create a WorkItemConfigurations. - * @param {ApplicationInsightsManagementClientContext} client Reference to the service client. - */ - constructor(client: ApplicationInsightsManagementClientContext) { - this.client = client; - } - - /** - * Gets the list work item configurations that exist for the application - * @param resourceGroupName The name of the resource group. - * @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 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 resourceName The name of the Application Insights component resource. - * @param options The optional parameters - * @param callback The callback - */ - list(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - list(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - options - }, - listOperationSpec, - callback) as Promise; - } - - /** - * Create a work item configuration for an Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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. - * @param [options] The optional parameters - * @returns Promise - */ - create(resourceGroupName: string, resourceName: string, workItemConfigurationProperties: Models.WorkItemCreateConfiguration, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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. - * @param callback The callback - */ - create(resourceGroupName: string, resourceName: string, workItemConfigurationProperties: Models.WorkItemCreateConfiguration, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group. - * @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. - * @param options The optional parameters - * @param callback The callback - */ - create(resourceGroupName: string, resourceName: string, workItemConfigurationProperties: Models.WorkItemCreateConfiguration, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - create(resourceGroupName: string, resourceName: string, workItemConfigurationProperties: Models.WorkItemCreateConfiguration, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - workItemConfigurationProperties, - options - }, - createOperationSpec, - callback) as Promise; - } - - /** - * Gets default work item configurations that exist for the application - * @param resourceGroupName The name of the resource group. - * @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 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 resourceName The name of the Application Insights component resource. - * @param options The optional parameters - * @param callback The callback - */ - getDefault(resourceGroupName: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getDefault(resourceGroupName: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - options - }, - getDefaultOperationSpec, - callback) as Promise; - } - - /** - * Delete an workitem configuration of an Application Insights component. - * @param resourceGroupName The name of the resource group. - * @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 - */ - deleteMethod(resourceGroupName: string, resourceName: string, workItemConfigId: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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; - /** - * @param resourceGroupName The name of the resource group. - * @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 { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - workItemConfigId, - options - }, - deleteMethodOperationSpec, - callback) as Promise; - } -} - -// Operation Specifications -const serializer = new msRest.Serializer(Mappers); -const listOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.WorkItemConfigurationsListResult - }, - default: { - bodyMapper: Mappers.WorkItemConfigurationError - } - }, - serializer -}; - -const createOperationSpec: msRest.OperationSpec = { - httpMethod: "POST", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "workItemConfigurationProperties", - mapper: { - ...Mappers.WorkItemCreateConfiguration, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.WorkItemConfiguration - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getDefaultOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/DefaultWorkItemConfig", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.WorkItemConfiguration - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/WorkItemConfigs/{workItemConfigId}", - urlParameters: [ - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.resourceName, - Parameters.workItemConfigId - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: { - serializedName: "parsedResponse", - type: { - name: "Object" - } - } - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/sdk/applicationinsights/arm-appinsights/src/operations/workbooks.ts b/sdk/applicationinsights/arm-appinsights/src/operations/workbooks.ts deleted file mode 100644 index 7fa139f6e407..000000000000 --- a/sdk/applicationinsights/arm-appinsights/src/operations/workbooks.ts +++ /dev/null @@ -1,344 +0,0 @@ -/* - * 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/workbooksMappers"; -import * as Parameters from "../models/parameters"; -import { ApplicationInsightsManagementClientContext } from "../applicationInsightsManagementClientContext"; - -/** Class representing a Workbooks. */ -export class Workbooks { - private readonly client: ApplicationInsightsManagementClientContext; - - /** - * Create a Workbooks. - * @param {ApplicationInsightsManagementClientContext} client Reference to the service client. - */ - constructor(client: ApplicationInsightsManagementClientContext) { - this.client = client; - } - - /** - * Get all Workbooks defined within a specified resource group and category. - * @param resourceGroupName The name of the resource group. - * @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.WorkbooksListByResourceGroupOptionalParams): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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 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.WorkbooksListByResourceGroupOptionalParams, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, category: Models.CategoryType, options?: Models.WorkbooksListByResourceGroupOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - category, - options - }, - listByResourceGroupOperationSpec, - callback) as Promise; - } - - /** - * Get a single workbook by its resourceName. - * @param resourceGroupName The name of the resource group. - * @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 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 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 workbook. - * @param resourceGroupName The name of the resource group. - * @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 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 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 workbook. - * @param resourceGroupName The name of the resource group. - * @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 - * @returns Promise - */ - createOrUpdate(resourceGroupName: string, resourceName: string, workbookProperties: Models.Workbook, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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 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 - * @param callback The callback - */ - createOrUpdate(resourceGroupName: string, resourceName: string, workbookProperties: Models.Workbook, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdate(resourceGroupName: string, resourceName: string, workbookProperties: Models.Workbook, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceName, - workbookProperties, - options - }, - createOrUpdateOperationSpec, - callback) as Promise; - } - - /** - * Updates a workbook that has already been added. - * @param resourceGroupName The name of the resource group. - * @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 - * @returns Promise - */ - update(resourceGroupName: string, resourceName: string, workbookProperties: Models.Workbook, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group. - * @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 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 - * @param callback The callback - */ - update(resourceGroupName: string, resourceName: string, workbookProperties: Models.Workbook, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, resourceName: string, workbookProperties: Models.Workbook, 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}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - queryParameters: [ - Parameters.category, - Parameters.tags, - Parameters.canFetchContent, - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.WorkbooksListResult - }, - default: { - bodyMapper: Mappers.WorkbookError - } - }, - serializer -}; - -const getOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.Workbook - }, - default: { - bodyMapper: Mappers.WorkbookError - } - }, - serializer -}; - -const deleteMethodOperationSpec: msRest.OperationSpec = { - httpMethod: "DELETE", - path: "subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 201: {}, - 204: {}, - default: { - bodyMapper: Mappers.WorkbookError - } - }, - serializer -}; - -const createOrUpdateOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "workbookProperties", - mapper: { - ...Mappers.Workbook, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.Workbook - }, - 201: { - bodyMapper: Mappers.Workbook - }, - default: { - bodyMapper: Mappers.WorkbookError - } - }, - serializer -}; - -const updateOperationSpec: msRest.OperationSpec = { - httpMethod: "PATCH", - path: "subscriptions/{subscriptionId}/resourceGroup/{resourceGroupName}/providers/microsoft.insights/workbooks/{resourceName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceName - ], - queryParameters: [ - Parameters.apiVersion - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "workbookProperties", - mapper: { - ...Mappers.Workbook, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.Workbook - }, - default: { - bodyMapper: Mappers.WorkbookError - } - }, - serializer -}; 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