Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,30 @@
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";


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;
workItemConfigurations: operations.WorkItemConfigurations;
favorites: operations.Favorites;
webTestLocations: operations.WebTestLocations;
webTests: operations.WebTests;
analyticsItems: operations.AnalyticsItems;
workbooks: operations.Workbooks;
components: operations.Components;
componentLinkedStorageAccounts: operations.ComponentLinkedStorageAccountsOperations;
liveToken: operations.LiveToken;

/**
* Initializes a new instance of the ApplicationInsightsManagementClient class.
Expand All @@ -29,87 +45,27 @@ class ApplicationInsightsManagementClient extends ApplicationInsightsManagementC
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ApplicationInsightsManagementClientOptions) {
super(credentials, subscriptionId, options);
this.operations = new operations.Operations(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<Models.GetTestResultFileResponse>
*/
getTestResultFile(resourceGroupName: string, webTestName: string, geoLocationId: string, timeStamp: number, downloadAs: Models.DownloadAs, options?: Models.ApplicationInsightsManagementClientGetTestResultFileOptionalParams): Promise<Models.GetTestResultFileResponse>;
/**
* @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<Models.TestResultFileResponse>): 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<Models.TestResultFileResponse>): void;
getTestResultFile(resourceGroupName: string, webTestName: string, geoLocationId: string, timeStamp: number, downloadAs: Models.DownloadAs, options?: Models.ApplicationInsightsManagementClientGetTestResultFileOptionalParams | msRest.ServiceCallback<Models.TestResultFileResponse>, callback?: msRest.ServiceCallback<Models.TestResultFileResponse>): Promise<Models.GetTestResultFileResponse> {
return this.sendOperationRequest(
{
resourceGroupName,
webTestName,
geoLocationId,
timeStamp,
downloadAs,
options
},
getTestResultFileOperationSpec,
callback) as Promise<Models.GetTestResultFileResponse>;
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.workItemConfigurations = new operations.WorkItemConfigurations(this);
this.favorites = new operations.Favorites(this);
this.webTestLocations = new operations.WebTestLocations(this);
this.webTests = new operations.WebTests(this);
this.analyticsItems = new operations.AnalyticsItems(this);
this.workbooks = new operations.Workbooks(this);
this.components = new operations.Components(this);
this.componentLinkedStorageAccounts = new operations.ComponentLinkedStorageAccountsOperations(this);
this.liveToken = new operations.LiveToken(this);
}
}

// 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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const packageVersion = "2.1.0";
export class ApplicationInsightsManagementClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
subscriptionId: string;
apiVersion?: string;

/**
* Initializes a new instance of the ApplicationInsightsManagementClient class.
Expand All @@ -44,7 +43,6 @@ export class ApplicationInsightsManagementClientContext extends msRestAzure.Azur

super(credentials, options);

this.apiVersion = '2020-02-10-preview';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* 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 {
APIKeyRequest,
ApplicationInsightsComponentAPIKey,
ApplicationInsightsComponentAPIKeyListResult,
CloudError
} from "../models/mappers";
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* 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";
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* 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 {
Annotation,
AnnotationError,
AnnotationsListResult,
CloudError,
InnerError
} from "../models/mappers";
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* 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";
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* 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";
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* 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";
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
ApplicationInsightsComponent,
ApplicationInsightsComponentProactiveDetectionConfiguration,
ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions,
AzureEntityResource,
BaseResource,
ComponentLinkedStorageAccounts,
ComponentLinkedStorageAccountsPatch,
ComponentsResource,
ErrorResponse,
PrivateLinkScopedResource,
ProxyResource,
Resource,
TrackedResource,
WebTest,
WebTestGeolocation,
WebTestPropertiesConfiguration,
WebtestsResource,
Workbook,
WorkbookResource
} from "../models/mappers";
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* 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";
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
ApplicationInsightsComponent,
ApplicationInsightsComponentListResult,
ApplicationInsightsComponentProactiveDetectionConfiguration,
ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions,
AzureEntityResource,
BaseResource,
CloudError,
ComponentLinkedStorageAccounts,
ComponentPurgeBody,
ComponentPurgeBodyFilters,
ComponentPurgeResponse,
ComponentPurgeStatusResponse,
ComponentsResource,
PrivateLinkScopedResource,
ProxyResource,
Resource,
TagsResource,
TrackedResource,
WebTest,
WebTestGeolocation,
WebTestPropertiesConfiguration,
WebtestsResource,
Workbook,
WorkbookResource
} from "../models/mappers";
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* 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,
ApplicationInsightsComponentExportRequest,
CloudError
} from "../models/mappers";
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* 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";
Loading