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
@@ -1,21 +1,21 @@
The MIT License (MIT)

Copyright (c) 2018 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
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
The MIT License (MIT)
Copyright (c) 2018 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
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ export default class ApplicationInsightsManagementClient extends AzureServiceCli
*
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @param {string} [options.acceptLanguage] - The preferred language for the response.
*
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
* @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
*/
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions);
Expand Down Expand Up @@ -68,12 +68,10 @@ export default class ApplicationInsightsManagementClient extends AzureServiceCli
components: operations.Components;
workItemConfigurations: operations.WorkItemConfigurations;
favorites: operations.Favorites;
favorite: operations.Favorite;
webTestLocations: operations.WebTestLocations;
webTests: operations.WebTests;
analyticsItem: operations.AnalyticsItem;
workbooksOperations: operations.WorkbooksOperations;
workbookOperations: operations.WorkbookOperations;
analyticsItems: operations.AnalyticsItems;
workbooks: operations.Workbooks;
}

export { ApplicationInsightsManagementClient, models as ApplicationInsightsManagementModels };
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ class ApplicationInsightsManagementClient extends ServiceClient {
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
* @param {string} [options.acceptLanguage] - The preferred language for the response.
* @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*/
constructor(credentials, subscriptionId, baseUri, options) {
if (credentials === null || credentials === undefined) {
Expand Down Expand Up @@ -84,12 +84,10 @@ class ApplicationInsightsManagementClient extends ServiceClient {
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.analyticsItem = new operations.AnalyticsItem(this);
this.workbooksOperations = new operations.WorkbooksOperations(this);
this.workbookOperations = new operations.WorkbookOperations(this);
this.analyticsItems = new operations.AnalyticsItems(this);
this.workbooks = new operations.Workbooks(this);
this.models = models;
msRest.addSerializationMixin(this);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
/*
* 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 { ServiceClientCredentials } from 'ms-rest';
import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure';
import * as models from "./models";
import * as operations from "./operations";

export default class ApplicationInsightsManagementClient extends AzureServiceClient {
/**
* 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} [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
*
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
*
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
*
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
*/
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions);

credentials: ServiceClientCredentials;

apiVersion: string;

subscriptionId: string;

acceptLanguage: string;

longRunningOperationRetryTimeout: number;

generateClientRequestId: boolean;

// 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;
favorite: operations.Favorite;
webTestLocations: operations.WebTestLocations;
webTests: operations.WebTests;
workbooksOperations: operations.WorkbooksOperations;
workbookOperations: operations.WorkbookOperations;
}

export { ApplicationInsightsManagementClient, models as ApplicationInsightsManagementModels };
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
/*
* 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.
*/

/* jshint latedef:false */
/* jshint forin:false */
/* jshint noempty:false */

'use strict';

const msRest = require('ms-rest');
const msRestAzure = require('ms-rest-azure');
const ServiceClient = msRestAzure.AzureServiceClient;

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


/** Class representing a ApplicationInsightsManagementClient. */
class ApplicationInsightsManagementClient extends ServiceClient {
/**
* Create a ApplicationInsightsManagementClient.
* @param {credentials} credentials - Credentials needed for the client to connect to Azure.
* @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
* @param {object} [options.requestOptions] - Options for the underlying request object
* {@link https://github.com/request/request#requestoptions-callback Options doc}
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*/
constructor(credentials, subscriptionId, baseUri, options) {
if (credentials === null || credentials === undefined) {
throw new Error('\'credentials\' cannot be null.');
}
if (subscriptionId === null || subscriptionId === undefined) {
throw new Error('\'subscriptionId\' cannot be null.');
}

if (!options) options = {};

super(credentials, options);

this.apiVersion = '2015-05-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.generateClientRequestId = true;
this.baseUri = baseUri;
if (!this.baseUri) {
this.baseUri = 'https://management.azure.com';
}
this.credentials = credentials;
this.subscriptionId = subscriptionId;

let packageInfo = this.getPackageJsonInfo(__dirname);
this.addUserAgentInfo(`${packageInfo.name}/${packageInfo.version}`);
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
}
if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) {
this.generateClientRequestId = options.generateClientRequestId;
}
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.favorite = new operations.Favorite(this);
this.webTestLocations = new operations.WebTestLocations(this);
this.webTests = new operations.WebTests(this);
this.workbooksOperations = new operations.WorkbooksOperations(this);
this.workbookOperations = new operations.WorkbookOperations(this);
this.models = models;
msRest.addSerializationMixin(this);
}

}

module.exports = ApplicationInsightsManagementClient;
module.exports['default'] = ApplicationInsightsManagementClient;
module.exports.ApplicationInsightsManagementClient = ApplicationInsightsManagementClient;
module.exports.ApplicationInsightsManagementModels = models;
84 changes: 84 additions & 0 deletions lib/services/applicationinsights/lib/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;
Loading