diff --git a/packages/@azure/arm-operationalinsights/LICENSE.txt b/packages/@azure/arm-operationalinsights/LICENSE.txt
index a70e8cf66038..8f3d856145c5 100644
--- a/packages/@azure/arm-operationalinsights/LICENSE.txt
+++ b/packages/@azure/arm-operationalinsights/LICENSE.txt
@@ -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) 2019 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.
diff --git a/packages/@azure/arm-operationalinsights/README.md b/packages/@azure/arm-operationalinsights/README.md
index 39bf994ed86e..804b1779192e 100644
--- a/packages/@azure/arm-operationalinsights/README.md
+++ b/packages/@azure/arm-operationalinsights/README.md
@@ -1,83 +1,83 @@
-# Azure OperationalInsightsManagementClient SDK for JavaScript
-This package contains an isomorphic SDK for OperationalInsightsManagementClient.
-
-## Currently supported environments
-- Node.js version 6.x.x or higher
-- Browser JavaScript
-
-## How to Install
-```
-npm install @azure/arm-operationalinsights
-```
-
-
-## How to use
-
-### nodejs - Authentication, client creation and get linkedServices as an example written in TypeScript.
-
-```ts
-import * as msRest from "ms-rest-js";
-import * as msRestAzure from "ms-rest-azure-js";
-import * as msRestNodeAuth from "ms-rest-nodeauth";
-import { OperationalInsightsManagementClient, OperationalInsightsManagementModels, OperationalInsightsManagementMappers } from "@azure/arm-operationalinsights";
-const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
-
-msRestNodeAuth.interactiveLogin().then((creds) => {
- const client = new OperationalInsightsManagementClient(creds, subscriptionId);
- const resourceGroupName = "testresourceGroupName";
- const workspaceName = "testworkspaceName";
- const linkedServiceName = "testlinkedServiceName";
- client.linkedServices.get(resourceGroupName, workspaceName, linkedServiceName).then((result) => {
- console.log("The result is:");
- console.log(result);
- });
-}).catch((err) => {
- console.error(err);
-});
-```
-
-### browser - Authentication, client creation and get linkedServices as an example written in JavaScript.
-See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
-
-- index.html
-```html
-
-
-
- @azure/arm-operationalinsights sample
-
-
-
-
-
-
-
-
-
-```
-
-# Related projects
- - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
+# Azure OperationalInsightsManagementClient SDK for JavaScript
+This package contains an isomorphic SDK for OperationalInsightsManagementClient.
+
+## Currently supported environments
+- Node.js version 6.x.x or higher
+- Browser JavaScript
+
+## How to Install
+```
+npm install @azure/arm-operationalinsights
+```
+
+
+## How to use
+
+### nodejs - Authentication, client creation and get linkedServices as an example written in TypeScript.
+
+```ts
+import * as msRest from "ms-rest-js";
+import * as msRestAzure from "ms-rest-azure-js";
+import * as msRestNodeAuth from "ms-rest-nodeauth";
+import { OperationalInsightsManagementClient, OperationalInsightsManagementModels, OperationalInsightsManagementMappers } from "@azure/arm-operationalinsights";
+const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
+
+msRestNodeAuth.interactiveLogin().then((creds) => {
+ const client = new OperationalInsightsManagementClient(creds, subscriptionId);
+ const resourceGroupName = "testresourceGroupName";
+ const workspaceName = "testworkspaceName";
+ const linkedServiceName = "testlinkedServiceName";
+ client.linkedServices.get(resourceGroupName, workspaceName, linkedServiceName).then((result) => {
+ console.log("The result is:");
+ console.log(result);
+ });
+}).catch((err) => {
+ console.error(err);
+});
+```
+
+### browser - Authentication, client creation and get linkedServices as an example written in JavaScript.
+See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
+
+- index.html
+```html
+
+
+
+ @azure/arm-operationalinsights sample
+
+
+
+
+
+
+
+
+
+```
+
+# Related projects
+ - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
diff --git a/packages/@azure/arm-operationalinsights/lib/models/index.ts b/packages/@azure/arm-operationalinsights/lib/models/index.ts
index 246fb91c7350..6a4b924498eb 100644
--- a/packages/@azure/arm-operationalinsights/lib/models/index.ts
+++ b/packages/@azure/arm-operationalinsights/lib/models/index.ts
@@ -452,7 +452,7 @@ export interface WorkspaceListUsagesResult extends Array {
/**
* @interface
* An interface representing the WorkspaceListManagementGroupsResult.
- * The list workspace managmement groups operation response.
+ * The list workspace management groups operation response.
*
* @extends Array
*/
@@ -488,80 +488,33 @@ export interface OperationListResult extends Array {
/**
* Defines values for DataSourceKind.
- * Possible values include: 'AzureActivityLog', 'ChangeTrackingPath',
- * 'ChangeTrackingDefaultPath', 'ChangeTrackingDefaultRegistry',
- * 'ChangeTrackingCustomRegistry', 'CustomLog', 'CustomLogCollection',
- * 'GenericDataSource', 'IISLogs', 'LinuxPerformanceObject',
- * 'LinuxPerformanceCollection', 'LinuxSyslog', 'LinuxSyslogCollection',
- * 'WindowsEvent', 'WindowsPerformanceCounter'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: DataSourceKind =
- * "someUnknownValueThatWillStillBeValid";
+ * Possible values include: 'AzureActivityLog', 'ChangeTrackingPath', 'ChangeTrackingDefaultPath',
+ * 'ChangeTrackingDefaultRegistry', 'ChangeTrackingCustomRegistry', 'CustomLog',
+ * 'CustomLogCollection', 'GenericDataSource', 'IISLogs', 'LinuxPerformanceObject',
+ * 'LinuxPerformanceCollection', 'LinuxSyslog', 'LinuxSyslogCollection', 'WindowsEvent',
+ * 'WindowsPerformanceCounter'
* @readonly
* @enum {string}
*/
-export enum DataSourceKind {
- AzureActivityLog = 'AzureActivityLog',
- ChangeTrackingPath = 'ChangeTrackingPath',
- ChangeTrackingDefaultPath = 'ChangeTrackingDefaultPath',
- ChangeTrackingDefaultRegistry = 'ChangeTrackingDefaultRegistry',
- ChangeTrackingCustomRegistry = 'ChangeTrackingCustomRegistry',
- CustomLog = 'CustomLog',
- CustomLogCollection = 'CustomLogCollection',
- GenericDataSource = 'GenericDataSource',
- IISLogs = 'IISLogs',
- LinuxPerformanceObject = 'LinuxPerformanceObject',
- LinuxPerformanceCollection = 'LinuxPerformanceCollection',
- LinuxSyslog = 'LinuxSyslog',
- LinuxSyslogCollection = 'LinuxSyslogCollection',
- WindowsEvent = 'WindowsEvent',
- WindowsPerformanceCounter = 'WindowsPerformanceCounter',
-}
+export type DataSourceKind = 'AzureActivityLog' | 'ChangeTrackingPath' | 'ChangeTrackingDefaultPath' | 'ChangeTrackingDefaultRegistry' | 'ChangeTrackingCustomRegistry' | 'CustomLog' | 'CustomLogCollection' | 'GenericDataSource' | 'IISLogs' | 'LinuxPerformanceObject' | 'LinuxPerformanceCollection' | 'LinuxSyslog' | 'LinuxSyslogCollection' | 'WindowsEvent' | 'WindowsPerformanceCounter';
/**
* Defines values for SkuNameEnum.
- * Possible values include: 'Free', 'Standard', 'Premium', 'Unlimited',
- * 'PerNode', 'PerGB2018', 'Standalone'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: SkuNameEnum =
- * "someUnknownValueThatWillStillBeValid";
+ * Possible values include: 'Free', 'Standard', 'Premium', 'Unlimited', 'PerNode', 'PerGB2018',
+ * 'Standalone'
* @readonly
* @enum {string}
*/
-export enum SkuNameEnum {
- Free = 'Free',
- Standard = 'Standard',
- Premium = 'Premium',
- Unlimited = 'Unlimited',
- PerNode = 'PerNode',
- PerGB2018 = 'PerGB2018',
- Standalone = 'Standalone',
-}
+export type SkuNameEnum = 'Free' | 'Standard' | 'Premium' | 'Unlimited' | 'PerNode' | 'PerGB2018' | 'Standalone';
/**
* Defines values for EntityStatus.
- * Possible values include: 'Creating', 'Succeeded', 'Failed', 'Canceled',
- * 'Deleting', 'ProvisioningAccount'
- * There could be more values for this enum apart from the ones defined here.If
- * you want to set a value that is not from the known values then you can do
- * the following:
- * let param: EntityStatus =
- * "someUnknownValueThatWillStillBeValid";
+ * Possible values include: 'Creating', 'Succeeded', 'Failed', 'Canceled', 'Deleting',
+ * 'ProvisioningAccount'
* @readonly
* @enum {string}
*/
-export enum EntityStatus {
- Creating = 'Creating',
- Succeeded = 'Succeeded',
- Failed = 'Failed',
- Canceled = 'Canceled',
- Deleting = 'Deleting',
- ProvisioningAccount = 'ProvisioningAccount',
-}
+export type EntityStatus = 'Creating' | 'Succeeded' | 'Failed' | 'Canceled' | 'Deleting' | 'ProvisioningAccount';
/**
* Contains response data for the createOrUpdate operation.
diff --git a/packages/@azure/arm-operationalinsights/lib/operationalInsightsManagementClientContext.ts b/packages/@azure/arm-operationalinsights/lib/operationalInsightsManagementClientContext.ts
index 691afd61653a..62b3cf3d107c 100644
--- a/packages/@azure/arm-operationalinsights/lib/operationalInsightsManagementClientContext.ts
+++ b/packages/@azure/arm-operationalinsights/lib/operationalInsightsManagementClientContext.ts
@@ -13,19 +13,12 @@ import * as msRest from "ms-rest-js";
import * as msRestAzure from "ms-rest-azure-js";
const packageName = "@azure/arm-operationalinsights";
-const packageVersion = "1.0.0-preview";
+const packageVersion = "0.1.0";
export class OperationalInsightsManagementClientContext extends msRestAzure.AzureServiceClient {
-
credentials: msRest.ServiceClientCredentials;
-
subscriptionId: string;
-
- apiVersion: string;
-
- acceptLanguage: string;
-
- longRunningOperationRetryTimeout: number;
+ apiVersion?: string;
/**
* Initializes a new instance of the OperationalInsightsManagementClient class.
@@ -45,6 +38,11 @@ export class OperationalInsightsManagementClientContext extends msRestAzure.Azur
if (!options) {
options = {};
}
+ if(!options.userAgent) {
+ const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
+ options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
+ }
+
super(credentials, options);
this.apiVersion = '2015-11-01-preview';
@@ -55,7 +53,6 @@ export class OperationalInsightsManagementClientContext extends msRestAzure.Azur
this.credentials = credentials;
this.subscriptionId = subscriptionId;
- this.addUserAgentInfo(`${packageName}/${packageVersion}`);
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
diff --git a/packages/@azure/arm-operationalinsights/lib/operations/dataSources.ts b/packages/@azure/arm-operationalinsights/lib/operations/dataSources.ts
index 67a6975c127e..eea01150f903 100644
--- a/packages/@azure/arm-operationalinsights/lib/operations/dataSources.ts
+++ b/packages/@azure/arm-operationalinsights/lib/operations/dataSources.ts
@@ -53,7 +53,7 @@ export class DataSources {
* @param callback The callback
*/
createOrUpdate(resourceGroupName: string, workspaceName: string, dataSourceName: string, parameters: Models.DataSource, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- createOrUpdate(resourceGroupName: string, workspaceName: string, dataSourceName: string, parameters: Models.DataSource, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ createOrUpdate(resourceGroupName: string, workspaceName: string, dataSourceName: string, parameters: Models.DataSource, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -90,7 +90,7 @@ export class DataSources {
* @param callback The callback
*/
deleteMethod(resourceGroupName: string, workspaceName: string, dataSourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- deleteMethod(resourceGroupName: string, workspaceName: string, dataSourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ deleteMethod(resourceGroupName: string, workspaceName: string, dataSourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -126,7 +126,7 @@ export class DataSources {
* @param callback The callback
*/
get(resourceGroupName: string, workspaceName: string, dataSourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- get(resourceGroupName: string, workspaceName: string, dataSourceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ get(resourceGroupName: string, workspaceName: string, dataSourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -162,7 +162,7 @@ export class DataSources {
* @param callback The callback
*/
listByWorkspace(resourceGroupName: string, workspaceName: string, filter: string, options: Models.DataSourcesListByWorkspaceOptionalParams, callback: msRest.ServiceCallback): void;
- listByWorkspace(resourceGroupName: string, workspaceName: string, filter: string, options?: Models.DataSourcesListByWorkspaceOptionalParams, callback?: msRest.ServiceCallback): Promise {
+ listByWorkspace(resourceGroupName: string, workspaceName: string, filter: string, options?: Models.DataSourcesListByWorkspaceOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -192,7 +192,7 @@ export class DataSources {
* @param callback The callback
*/
listByWorkspaceNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listByWorkspaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ listByWorkspaceNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
nextPageLink,
diff --git a/packages/@azure/arm-operationalinsights/lib/operations/linkedServices.ts b/packages/@azure/arm-operationalinsights/lib/operations/linkedServices.ts
index 1bbaa5498c14..7ddcb1c44af9 100644
--- a/packages/@azure/arm-operationalinsights/lib/operations/linkedServices.ts
+++ b/packages/@azure/arm-operationalinsights/lib/operations/linkedServices.ts
@@ -56,7 +56,7 @@ export class LinkedServices {
* @param callback The callback
*/
createOrUpdate(resourceGroupName: string, workspaceName: string, linkedServiceName: string, parameters: Models.LinkedService, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- createOrUpdate(resourceGroupName: string, workspaceName: string, linkedServiceName: string, parameters: Models.LinkedService, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ createOrUpdate(resourceGroupName: string, workspaceName: string, linkedServiceName: string, parameters: Models.LinkedService, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -96,7 +96,7 @@ export class LinkedServices {
* @param callback The callback
*/
deleteMethod(resourceGroupName: string, workspaceName: string, linkedServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- deleteMethod(resourceGroupName: string, workspaceName: string, linkedServiceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ deleteMethod(resourceGroupName: string, workspaceName: string, linkedServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -135,7 +135,7 @@ export class LinkedServices {
* @param callback The callback
*/
get(resourceGroupName: string, workspaceName: string, linkedServiceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- get(resourceGroupName: string, workspaceName: string, linkedServiceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ get(resourceGroupName: string, workspaceName: string, linkedServiceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -168,7 +168,7 @@ export class LinkedServices {
* @param callback The callback
*/
listByWorkspace(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ listByWorkspace(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
diff --git a/packages/@azure/arm-operationalinsights/lib/operations/operations.ts b/packages/@azure/arm-operationalinsights/lib/operations/operations.ts
index 01bf1e1088a2..2739edde61ac 100644
--- a/packages/@azure/arm-operationalinsights/lib/operations/operations.ts
+++ b/packages/@azure/arm-operationalinsights/lib/operations/operations.ts
@@ -41,7 +41,7 @@ export class Operations {
* @param callback The callback
*/
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
@@ -68,7 +68,7 @@ export class Operations {
* @param callback The callback
*/
listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
nextPageLink,
diff --git a/packages/@azure/arm-operationalinsights/lib/operations/workspaces.ts b/packages/@azure/arm-operationalinsights/lib/operations/workspaces.ts
index fb0c66edcd71..e02e35e09da1 100644
--- a/packages/@azure/arm-operationalinsights/lib/operations/workspaces.ts
+++ b/packages/@azure/arm-operationalinsights/lib/operations/workspaces.ts
@@ -51,7 +51,7 @@ export class Workspaces {
* @param callback The callback
*/
disableIntelligencePack(resourceGroupName: string, workspaceName: string, intelligencePackName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- disableIntelligencePack(resourceGroupName: string, workspaceName: string, intelligencePackName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ disableIntelligencePack(resourceGroupName: string, workspaceName: string, intelligencePackName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -87,7 +87,7 @@ export class Workspaces {
* @param callback The callback
*/
enableIntelligencePack(resourceGroupName: string, workspaceName: string, intelligencePackName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- enableIntelligencePack(resourceGroupName: string, workspaceName: string, intelligencePackName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ enableIntelligencePack(resourceGroupName: string, workspaceName: string, intelligencePackName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -121,7 +121,7 @@ export class Workspaces {
* @param callback The callback
*/
listIntelligencePacks(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listIntelligencePacks(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ listIntelligencePacks(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -153,7 +153,7 @@ export class Workspaces {
* @param callback The callback
*/
getSharedKeys(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- getSharedKeys(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ getSharedKeys(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -185,7 +185,7 @@ export class Workspaces {
* @param callback The callback
*/
listUsages(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listUsages(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ listUsages(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -217,7 +217,7 @@ export class Workspaces {
* @param callback The callback
*/
listManagementGroups(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listManagementGroups(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ listManagementGroups(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -246,7 +246,7 @@ export class Workspaces {
* @param callback The callback
*/
listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -271,7 +271,7 @@ export class Workspaces {
* @param callback The callback
*/
list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- list(options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
options
@@ -314,7 +314,7 @@ export class Workspaces {
* @param callback The callback
*/
deleteMethod(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- deleteMethod(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ deleteMethod(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -346,7 +346,7 @@ export class Workspaces {
* @param callback The callback
*/
get(resourceGroupName: string, workspaceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ get(resourceGroupName: string, workspaceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
@@ -381,7 +381,7 @@ export class Workspaces {
* @param callback The callback
*/
update(resourceGroupName: string, workspaceName: string, parameters: Models.Workspace, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- update(resourceGroupName: string, workspaceName: string, parameters: Models.Workspace, options?: msRest.RequestOptionsBase, callback?: msRest.ServiceCallback): Promise {
+ update(resourceGroupName: string, workspaceName: string, parameters: Models.Workspace, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
return this.client.sendOperationRequest(
{
resourceGroupName,
diff --git a/packages/@azure/arm-operationalinsights/package.json b/packages/@azure/arm-operationalinsights/package.json
index ec87419da8e0..e49c1ce31f8b 100644
--- a/packages/@azure/arm-operationalinsights/package.json
+++ b/packages/@azure/arm-operationalinsights/package.json
@@ -4,8 +4,8 @@
"description": "OperationalInsightsManagementClient Library with typescript type definitions for node.js and browser.",
"version": "0.1.0",
"dependencies": {
- "ms-rest-azure-js": "^1.0.176",
- "ms-rest-js": "^1.0.455",
+ "ms-rest-azure-js": "^1.0.181",
+ "ms-rest-js": "^1.0.460",
"tslib": "^1.9.3"
},
"keywords": [
@@ -33,10 +33,23 @@
"bugs": {
"url": "https://github.com/azure/azure-sdk-for-js/issues"
},
+ "files": [
+ "dist/**/*.js",
+ "dist/**/*.js.map",
+ "dist/**/*.d.ts",
+ "dist/**/*.d.ts.map",
+ "esm/**/*.js",
+ "esm/**/*.js.map",
+ "esm/**/*.d.ts",
+ "esm/**/*.d.ts.map",
+ "lib/**/*.ts",
+ "rollup.config.js",
+ "tsconfig.json"
+ ],
"scripts": {
"build": "tsc && rollup -c rollup.config.js && npm run minify",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-operationalinsights.js.map'\" -o ./dist/arm-operationalinsights.min.js ./dist/arm-operationalinsights.js",
- "prepare": "npm run build"
+ "prepack": "npm install && npm run build"
},
"sideEffects": false
-}
\ No newline at end of file
+}