Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Merged
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 @@ -10,9 +10,10 @@

import { ServiceClientCredentials } from 'ms-rest';
import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure';
import * as models from "./models";
import * as operations from "./operations";

declare class ApplicationInsightsManagementClient extends AzureServiceClient {
export default class ApplicationInsightsManagementClient extends AzureServiceClient {
/**
* Initializes a new instance of the ApplicationInsightsManagementClient class.
* @constructor
Expand Down Expand Up @@ -56,12 +57,20 @@ declare class ApplicationInsightsManagementClient extends AzureServiceClient {

// Operation groups
operations: operations.Operations;
components: operations.Components;
webTests: operations.WebTests;
annotations: operations.Annotations;
aPIKeys: operations.APIKeys;
exportConfigurations: operations.ExportConfigurations;
componentCurrentBillingFeatures: operations.ComponentCurrentBillingFeatures;
componentQuotaStatus: operations.ComponentQuotaStatus;
aPIKeys: operations.APIKeys;
componentFeatureCapabilities: operations.ComponentFeatureCapabilities;
componentAvailableFeatures: operations.ComponentAvailableFeatures;
proactiveDetectionConfigurations: operations.ProactiveDetectionConfigurations;
components: operations.Components;
workItemConfigurations: operations.WorkItemConfigurations;
favorites: operations.Favorites;
favorite: operations.Favorite;
webTestLocations: operations.WebTestLocations;
webTests: operations.WebTests;
}

export = ApplicationInsightsManagementClient;
export { ApplicationInsightsManagementClient, models as ApplicationInsightsManagementModels };
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,27 @@ class ApplicationInsightsManagementClient extends ServiceClient {
this.generateClientRequestId = options.generateClientRequestId;
}
this.operations = new operations.Operations(this);
this.components = new operations.Components(this);
this.webTests = new operations.WebTests(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.aPIKeys = new operations.APIKeys(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.favorite = new operations.Favorite(this);
this.webTestLocations = new operations.WebTestLocations(this);
this.webTests = new operations.WebTests(this);
this.models = models;
msRest.addSerializationMixin(this);
}

}

module.exports = ApplicationInsightsManagementClient;
module.exports['default'] = ApplicationInsightsManagementClient;
module.exports.ApplicationInsightsManagementClient = ApplicationInsightsManagementClient;
module.exports.ApplicationInsightsManagementModels = models;
95 changes: 95 additions & 0 deletions lib/services/applicationinsights/lib/models/annotation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
/*
* 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.
*/

'use strict';

/**
* Annotation associated with an application insights resource.
*
*/
class Annotation {
/**
* Create a Annotation.
* @member {string} [annotationName] Name of annotation
* @member {string} [category] Category of annotation, free form
* @member {date} [eventTime] Time when event occurred
* @member {string} [id] Unique Id for annotation
* @member {string} [properties] Serialized JSON object for detailed
* properties
* @member {string} [relatedAnnotation] Related parent annotation if any.
* Default value: 'null' .
*/
constructor() {
}

/**
* Defines the metadata of Annotation
*
* @returns {object} metadata of Annotation
*
*/
mapper() {
return {
required: false,
serializedName: 'Annotation',
type: {
name: 'Composite',
className: 'Annotation',
modelProperties: {
annotationName: {
required: false,
serializedName: 'AnnotationName',
type: {
name: 'String'
}
},
category: {
required: false,
serializedName: 'Category',
type: {
name: 'String'
}
},
eventTime: {
required: false,
serializedName: 'EventTime',
type: {
name: 'DateTime'
}
},
id: {
required: false,
serializedName: 'Id',
type: {
name: 'String'
}
},
properties: {
required: false,
serializedName: 'Properties',
type: {
name: 'String'
}
},
relatedAnnotation: {
required: false,
serializedName: 'RelatedAnnotation',
defaultValue: 'null',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = Annotation;
74 changes: 74 additions & 0 deletions lib/services/applicationinsights/lib/models/annotationError.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
/*
* 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.
*/

'use strict';

const models = require('./index');

/**
* Error associated with trying to create annotation with Id that already exist
*
*/
class AnnotationError {
/**
* Create a AnnotationError.
* @member {string} [code] Error detail code and explanation
* @member {string} [message] Error message
* @member {object} [innererror]
* @member {string} [innererror.diagnosticcontext] Provides correlation for
* request
* @member {date} [innererror.time] Request time
*/
constructor() {
}

/**
* Defines the metadata of AnnotationError
*
* @returns {object} metadata of AnnotationError
*
*/
mapper() {
return {
required: false,
serializedName: 'AnnotationError',
type: {
name: 'Composite',
className: 'AnnotationError',
modelProperties: {
code: {
required: false,
serializedName: 'code',
type: {
name: 'String'
}
},
message: {
required: false,
serializedName: 'message',
type: {
name: 'String'
}
},
innererror: {
required: false,
serializedName: 'innererror',
type: {
name: 'Composite',
className: 'InnerError'
}
}
}
}
};
}
}

module.exports = AnnotationError;
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/*
* 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.
*/

'use strict';

const models = require('./index');

/**
* An Application Insights component available features.
*
*/
class ApplicationInsightsComponentAvailableFeatures {
/**
* Create a ApplicationInsightsComponentAvailableFeatures.
* @member {array} [result] A list of Application Insigths component feature.
*/
constructor() {
}

/**
* Defines the metadata of ApplicationInsightsComponentAvailableFeatures
*
* @returns {object} metadata of ApplicationInsightsComponentAvailableFeatures
*
*/
mapper() {
return {
required: false,
serializedName: 'ApplicationInsightsComponentAvailableFeatures',
type: {
name: 'Composite',
className: 'ApplicationInsightsComponentAvailableFeatures',
modelProperties: {
result: {
required: false,
readOnly: true,
serializedName: 'Result',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'ApplicationInsightsComponentFeatureElementType',
type: {
name: 'Composite',
className: 'ApplicationInsightsComponentFeature'
}
}
}
}
}
}
};
}
}

module.exports = ApplicationInsightsComponentAvailableFeatures;
Loading