Skip to content

Commit

Permalink
regenerating application insights
Browse files Browse the repository at this point in the history
  • Loading branch information
amarzavery committed Nov 13, 2017
1 parent 184fc0a commit 6f0d398
Show file tree
Hide file tree
Showing 38 changed files with 5,767 additions and 197 deletions.
6 changes: 3 additions & 3 deletions codegen_mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
"source": "apimanagement/resource-manager/readme.md"
}
},
"appinsights": {
"applicationinsights": {
"resource-manager": {
"packageName": "azure-arm-appinsights",
"dir": "appinsights/lib",
"source": "appinsights/resource-manager/readme.md"
"dir": "applicationinsights/lib",
"source": "applicationinsights/resource-manager/readme.md"
}
},
"authorization": {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Microsoft Azure SDK for Node.js - AppInsightsManagement
# Microsoft Azure SDK for Node.js - AppLocationInsightsManagement

This project provides a Node.js package for accessing the Azure PAS. Right now it supports:
- **Node.js version: 6.x.x or higher**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ import { ServiceClientCredentials } from 'ms-rest';
import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure';
import * as operations from "./operations";

declare class AppInsightsManagementClient extends AzureServiceClient {
declare class ApplicationInsightsManagementClient extends AzureServiceClient {
/**
* Initializes a new instance of the AppInsightsManagementClient class.
* Initializes a new instance of the ApplicationInsightsManagementClient class.
* @constructor
*
* @class
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
*
* @param {string} subscriptionId - The Azure subscription Id.
* @param {string} subscriptionId - The Azure subscription ID.
*
* @param {string} [baseUri] - The base URI of the service.
*
Expand Down Expand Up @@ -58,6 +58,10 @@ declare class AppInsightsManagementClient extends AzureServiceClient {
operations: operations.Operations;
components: operations.Components;
webTests: operations.WebTests;
exportConfigurations: operations.ExportConfigurations;
componentCurrentBillingFeatures: operations.ComponentCurrentBillingFeatures;
componentQuotaStatus: operations.ComponentQuotaStatus;
aPIKeys: operations.APIKeys;
}

export = AppInsightsManagementClient;
export = ApplicationInsightsManagementClient;
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ const models = require('./models');
const operations = require('./operations');


/** Class representing a AppInsightsManagementClient. */
class AppInsightsManagementClient extends ServiceClient {
/** Class representing a ApplicationInsightsManagementClient. */
class ApplicationInsightsManagementClient extends ServiceClient {
/**
* Create a AppInsightsManagementClient.
* Create a ApplicationInsightsManagementClient.
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
* @param {string} subscriptionId - The Azure subscription Id.
* @param {string} subscriptionId - The Azure subscription ID.
* @param {string} [baseUri] - The base URI of the service.
* @param {object} [options] - The parameter options
* @param {Array} [options.filters] - Filters to be added to the request pipeline
Expand Down Expand Up @@ -75,10 +75,14 @@ class AppInsightsManagementClient extends ServiceClient {
this.operations = new operations.Operations(this);
this.components = new operations.Components(this);
this.webTests = new operations.WebTests(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.models = models;
msRest.addSerializationMixin(this);
}

}

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

/**
* An Application Insights component API Key createion request definition.
*
*/
class APIKeyRequest {
/**
* Create a APIKeyRequest.
* @member {string} [name] The name of the API Key.
* @member {array} [linkedReadProperties] The read access rights of this API
* Key.
* @member {array} [linkedWriteProperties] The write access rights of this
* API Key.
*/
constructor() {
}

/**
* Defines the metadata of APIKeyRequest
*
* @returns {object} metadata of APIKeyRequest
*
*/
mapper() {
return {
required: false,
serializedName: 'APIKeyRequest',
type: {
name: 'Composite',
className: 'APIKeyRequest',
modelProperties: {
name: {
required: false,
serializedName: 'name',
type: {
name: 'String'
}
},
linkedReadProperties: {
required: false,
serializedName: 'linkedReadProperties',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
linkedWriteProperties: {
required: false,
serializedName: 'linkedWriteProperties',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
};
}
}

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

/**
* Properties that define an API key of an Application Insights Component.
*
*/
class ApplicationInsightsComponentAPIKey {
/**
* Create a 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.
* @member {string} [apiKey] The API key value. It will be only return once
* when the API Key was created.
* @member {string} [createdDate] The create date of this API key.
* @member {string} [name] The name of the API key.
* @member {array} [linkedReadProperties] The read access rights of this API
* Key.
* @member {array} [linkedWriteProperties] The write access rights of this
* API Key.
*/
constructor() {
}

/**
* Defines the metadata of ApplicationInsightsComponentAPIKey
*
* @returns {object} metadata of ApplicationInsightsComponentAPIKey
*
*/
mapper() {
return {
required: false,
serializedName: 'ApplicationInsightsComponentAPIKey',
type: {
name: 'Composite',
className: 'ApplicationInsightsComponentAPIKey',
modelProperties: {
id: {
required: false,
readOnly: true,
serializedName: 'id',
type: {
name: 'String'
}
},
apiKey: {
required: false,
readOnly: true,
serializedName: 'apiKey',
type: {
name: 'String'
}
},
createdDate: {
required: false,
serializedName: 'createdDate',
type: {
name: 'String'
}
},
name: {
required: false,
serializedName: 'name',
type: {
name: 'String'
}
},
linkedReadProperties: {
required: false,
serializedName: 'linkedReadProperties',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
linkedWriteProperties: {
required: false,
serializedName: 'linkedWriteProperties',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
};
}
}

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

/**
* Describes the list of API Keys of an Application Insights Component.
*/
class ApplicationInsightsComponentAPIKeyListResult extends Array {
/**
* Create a ApplicationInsightsComponentAPIKeyListResult.
*/
constructor() {
super();
}

/**
* Defines the metadata of ApplicationInsightsComponentAPIKeyListResult
*
* @returns {object} metadata of ApplicationInsightsComponentAPIKeyListResult
*
*/
mapper() {
return {
required: false,
serializedName: 'ApplicationInsightsComponentAPIKeyListResult',
type: {
name: 'Composite',
className: 'ApplicationInsightsComponentAPIKeyListResult',
modelProperties: {
value: {
required: true,
serializedName: '',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'ApplicationInsightsComponentAPIKeyElementType',
type: {
name: 'Composite',
className: 'ApplicationInsightsComponentAPIKey'
}
}
}
}
}
}
};
}
}

module.exports = ApplicationInsightsComponentAPIKeyListResult;
Loading

0 comments on commit 6f0d398

Please sign in to comment.