Skip to content

Commit

Permalink
Generated from 0e6cd9b2602fd4e10a5b3dd6227fb327d2f3f37d
Browse files Browse the repository at this point in the history
  • Loading branch information
SDK Automation committed Nov 5, 2020
1 parent 526de1e commit d537d99
Show file tree
Hide file tree
Showing 48 changed files with 309 additions and 11,728 deletions.
9 changes: 4 additions & 5 deletions sdk/applicationinsights/arm-appinsights/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install @azure/arm-appinsights

### How to use

#### nodejs - Authentication, client creation and list operations as an example written in TypeScript.
#### nodejs - client creation and list operations as an example written in TypeScript.

##### Install @azure/ms-rest-nodeauth

Expand All @@ -26,11 +26,10 @@ npm install @azure/ms-rest-nodeauth@"^3.0.0"

##### Sample code

While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
```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";
import { ApplicationInsightsManagementClient, ApplicationInsightsManagementModels, ApplicationInsightsManagementMappers } from "@azure/arm-appinsights";
const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
const { ApplicationInsightsManagementClient } = require("@azure/arm-appinsights");
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];

msRestNodeAuth.interactiveLogin().then((creds) => {
Expand Down
4 changes: 2 additions & 2 deletions sdk/applicationinsights/arm-appinsights/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const config = {
"@azure/ms-rest-azure-js": "msRestAzure"
},
banner: `/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand All @@ -18,52 +17,17 @@ 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;
workItemConfigurations: operations.WorkItemConfigurations;
favorites: operations.Favorites;
webTestLocations: operations.WebTestLocations;
webTests: operations.WebTests;
analyticsItems: operations.AnalyticsItems;
workbooks: operations.Workbooks;
myWorkbooks: operations.MyWorkbooks;
components: operations.Components;
componentLinkedStorageAccounts: operations.ComponentLinkedStorageAccountsOperations;
liveToken: operations.LiveToken;
diagnosticServiceToken: operations.DiagnosticServiceToken;

/**
* Initializes a new instance of the ApplicationInsightsManagementClient class.
* @param credentials Credentials needed for the client to connect to Azure.
* @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);
constructor(credentials: msRest.ServiceClientCredentials, options?: Models.ApplicationInsightsManagementClientOptions) {
super(credentials, 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.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.myWorkbooks = new operations.MyWorkbooks(this);
this.components = new operations.Components(this);
this.componentLinkedStorageAccounts = new operations.ComponentLinkedStorageAccountsOperations(this);
this.liveToken = new operations.LiveToken(this);
this.diagnosticServiceToken = new operations.DiagnosticServiceToken(this);
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
Expand All @@ -17,21 +16,17 @@ const packageVersion = "3.0.0";

export class ApplicationInsightsManagementClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
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 ID of the target subscription.
* @param [options] The parameter options
*/
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, options?: Models.ApplicationInsightsManagementClientOptions) {
constructor(credentials: msRest.ServiceClientCredentials, options?: Models.ApplicationInsightsManagementClientOptions) {
if (credentials == undefined) {
throw new Error('\'credentials\' cannot be null.');
}
if (subscriptionId == undefined) {
throw new Error('\'subscriptionId\' cannot be null.');
}

if (!options) {
options = {};
Expand All @@ -43,12 +38,12 @@ export class ApplicationInsightsManagementClientContext extends msRestAzure.Azur

super(credentials, options);

this.apiVersion = '2020-10-26-preview';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
this.requestContentType = "application/json; charset=utf-8";
this.credentials = credentials;
this.subscriptionId = subscriptionId;

if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export {
DiagnosticServicesTokenResponse,
ErrorAdditionalInfo,
ErrorResponse
} from "../models/mappers";

This file was deleted.

This file was deleted.

Loading

0 comments on commit d537d99

Please sign in to comment.