diff --git a/sdk/operationalinsights/arm-operationalinsights/LICENSE.txt b/sdk/operationalinsights/arm-operationalinsights/LICENSE.txt index a70e8cf66038..b73b4a1293c3 100644 --- a/sdk/operationalinsights/arm-operationalinsights/LICENSE.txt +++ b/sdk/operationalinsights/arm-operationalinsights/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +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 diff --git a/sdk/operationalinsights/arm-operationalinsights/README.md b/sdk/operationalinsights/arm-operationalinsights/README.md index 19140b3ef64a..14368b86f3f8 100644 --- a/sdk/operationalinsights/arm-operationalinsights/README.md +++ b/sdk/operationalinsights/arm-operationalinsights/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for OperationalInsightsManagementClient. ### How to Install -``` +```bash npm install @azure/arm-operationalinsights ``` @@ -19,13 +19,13 @@ npm install @azure/arm-operationalinsights ##### Install @azure/ms-rest-nodeauth -``` +```bash npm install @azure/ms-rest-nodeauth ``` ##### Sample code -```ts +```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"; @@ -50,7 +50,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -100,6 +100,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/operationalinsights/arm-operationalinsights/README.png) diff --git a/sdk/operationalinsights/arm-operationalinsights/package.json b/sdk/operationalinsights/arm-operationalinsights/package.json index edc87b3967b5..cf53a275cd87 100644 --- a/sdk/operationalinsights/arm-operationalinsights/package.json +++ b/sdk/operationalinsights/arm-operationalinsights/package.json @@ -4,8 +4,8 @@ "description": "OperationalInsightsManagementClient Library with typescript type definitions for node.js and browser.", "version": "1.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.3.2", + "@azure/ms-rest-js": "^1.8.1", "tslib": "^1.9.3" }, "keywords": [ @@ -23,9 +23,10 @@ "typescript": "^3.1.1", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/operationalinsights/arm-operationalinsights", + "homepage": "https://github.com/azure/azure-sdk-for-js", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-js.git" @@ -43,6 +44,7 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "src/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], @@ -52,5 +54,5 @@ "prepack": "npm install && npm run build" }, "sideEffects": false, - "authPublish": true + "autoPublish": true } diff --git a/sdk/operationalinsights/arm-operationalinsights/rollup.config.js b/sdk/operationalinsights/arm-operationalinsights/rollup.config.js index d21129e749d0..2f15fafd3a48 100644 --- a/sdk/operationalinsights/arm-operationalinsights/rollup.config.js +++ b/sdk/operationalinsights/arm-operationalinsights/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/operationalInsightsManagementClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/operationalInsightsManagementClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-operationalinsights.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ module: true }), + sourcemaps() ] }; + export default config; diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/dataSourcesMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/dataSourcesMappers.ts index aee58af1b707..1c13b474ebb2 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/dataSourcesMappers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/dataSourcesMappers.ts @@ -1,21 +1,18 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - DataSource, BaseResource, CloudError, + DataSource, DataSourceListResult, LinkedService, - Workspace, + Resource, Sku, - Resource + Workspace } from "../models/mappers"; - diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts index f0b2fa91cae0..05814c1d60bc 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,412 +11,323 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing OperationDisplay. * Display metadata associated with the operation. - * */ export interface OperationDisplay { /** - * @member {string} [provider] Service provider: Microsoft - * OperationsManagement. + * Service provider: Microsoft OperationsManagement. */ provider?: string; /** - * @member {string} [resource] Resource on which the operation is performed - * etc. + * Resource on which the operation is performed etc. */ resource?: string; /** - * @member {string} [operation] Type of operation: get, read, delete, etc. + * Type of operation: get, read, delete, etc. */ operation?: string; } /** - * @interface - * An interface representing Operation. * Supported operation of OperationalInsights resource provider. - * */ export interface Operation { /** - * @member {string} [name] Operation name: {provider}/{resource}/{operation} + * Operation name: {provider}/{resource}/{operation} */ name?: string; /** - * @member {OperationDisplay} [display] Display metadata associated with the - * operation. + * Display metadata associated with the operation. */ display?: OperationDisplay; } /** - * @interface - * An interface representing LinkedService. * The top level Linked service resource container. - * - * @extends BaseResource */ export interface LinkedService extends BaseResource { /** - * @member {string} resourceId The resource id of the resource that will be - * linked to the workspace. + * The resource id of the resource that will be linked to the workspace. */ resourceId: string; } /** - * @interface - * An interface representing DataSource. * Datasources under OMS Workspace. - * - * @extends BaseResource */ export interface DataSource extends BaseResource { /** - * @member {any} properties The data source properties in raw json format, - * each kind of data source have it's own schema. + * The data source properties in raw json format, each kind of data source have it's own schema. */ properties: any; /** - * @member {string} [eTag] The ETag of the data source. + * The ETag of the data source. */ eTag?: string; /** - * @member {DataSourceKind} kind Possible values include: 'AzureActivityLog', - * 'ChangeTrackingPath', 'ChangeTrackingDefaultPath', - * 'ChangeTrackingDefaultRegistry', 'ChangeTrackingCustomRegistry', - * 'CustomLog', 'CustomLogCollection', 'GenericDataSource', 'IISLogs', - * 'LinuxPerformanceObject', 'LinuxPerformanceCollection', 'LinuxSyslog', - * 'LinuxSyslogCollection', 'WindowsEvent', 'WindowsPerformanceCounter' + * Possible values include: 'AzureActivityLog', 'ChangeTrackingPath', + * 'ChangeTrackingDefaultPath', 'ChangeTrackingDefaultRegistry', 'ChangeTrackingCustomRegistry', + * 'CustomLog', 'CustomLogCollection', 'GenericDataSource', 'IISLogs', 'LinuxPerformanceObject', + * 'LinuxPerformanceCollection', 'LinuxSyslog', 'LinuxSyslogCollection', 'WindowsEvent', + * 'WindowsPerformanceCounter' */ kind: DataSourceKind; } /** - * @interface - * An interface representing DataSourceFilter. * DataSource filter. Right now, only filter by kind is supported. - * */ export interface DataSourceFilter { /** - * @member {DataSourceKind} [kind] Possible values include: - * 'AzureActivityLog', 'ChangeTrackingPath', 'ChangeTrackingDefaultPath', - * 'ChangeTrackingDefaultRegistry', 'ChangeTrackingCustomRegistry', - * 'CustomLog', 'CustomLogCollection', 'GenericDataSource', 'IISLogs', - * 'LinuxPerformanceObject', 'LinuxPerformanceCollection', 'LinuxSyslog', - * 'LinuxSyslogCollection', 'WindowsEvent', 'WindowsPerformanceCounter' + * Possible values include: 'AzureActivityLog', 'ChangeTrackingPath', + * 'ChangeTrackingDefaultPath', 'ChangeTrackingDefaultRegistry', 'ChangeTrackingCustomRegistry', + * 'CustomLog', 'CustomLogCollection', 'GenericDataSource', 'IISLogs', 'LinuxPerformanceObject', + * 'LinuxPerformanceCollection', 'LinuxSyslog', 'LinuxSyslogCollection', 'WindowsEvent', + * 'WindowsPerformanceCounter' */ kind?: DataSourceKind; } /** - * @interface - * An interface representing IntelligencePack. - * Intelligence Pack containing a string name and boolean indicating if it's - * enabled. - * + * Intelligence Pack containing a string name and boolean indicating if it's enabled. */ export interface IntelligencePack { /** - * @member {string} [name] The name of the intelligence pack. + * The name of the intelligence pack. */ name?: string; /** - * @member {boolean} [enabled] The enabled boolean for the intelligence pack. + * The enabled boolean for the intelligence pack. */ enabled?: boolean; /** - * @member {string} [displayName] The display name of the intelligence pack. + * The display name of the intelligence pack. */ displayName?: string; } /** - * @interface - * An interface representing SharedKeys. * The shared keys for a workspace. - * */ export interface SharedKeys { /** - * @member {string} [primarySharedKey] The primary shared key of a workspace. + * The primary shared key of a workspace. */ primarySharedKey?: string; /** - * @member {string} [secondarySharedKey] The secondary shared key of a - * workspace. + * The secondary shared key of a workspace. */ secondarySharedKey?: string; } /** - * @interface - * An interface representing MetricName. * The name of a metric. - * */ export interface MetricName { /** - * @member {string} [value] The system name of the metric. + * The system name of the metric. */ value?: string; /** - * @member {string} [localizedValue] The localized name of the metric. + * The localized name of the metric. */ localizedValue?: string; } /** - * @interface - * An interface representing UsageMetric. * A metric describing the usage of a resource. - * */ export interface UsageMetric { /** - * @member {MetricName} [name] The name of the metric. + * The name of the metric. */ name?: MetricName; /** - * @member {string} [unit] The units used for the metric. + * The units used for the metric. */ unit?: string; /** - * @member {number} [currentValue] The current value of the metric. + * The current value of the metric. */ currentValue?: number; /** - * @member {number} [limit] The quota limit for the metric. + * The quota limit for the metric. */ limit?: number; /** - * @member {Date} [nextResetTime] The time that the metric's value will - * reset. + * The time that the metric's value will reset. */ nextResetTime?: Date; /** - * @member {string} [quotaPeriod] The quota period that determines the length - * of time between value resets. + * The quota period that determines the length of time between value resets. */ quotaPeriod?: string; } /** - * @interface - * An interface representing ManagementGroup. * A management group that is connected to a workspace - * */ export interface ManagementGroup { /** - * @member {number} [serverCount] The number of servers connected to the - * management group. + * The number of servers connected to the management group. */ serverCount?: number; /** - * @member {boolean} [isGateway] Gets or sets a value indicating whether the - * management group is a gateway. + * Gets or sets a value indicating whether the management group is a gateway. */ isGateway?: boolean; /** - * @member {string} [name] The name of the management group. + * The name of the management group. */ name?: string; /** - * @member {string} [id] The unique ID of the management group. + * The unique ID of the management group. */ id?: string; /** - * @member {Date} [created] The datetime that the management group was - * created. + * The datetime that the management group was created. */ created?: Date; /** - * @member {Date} [dataReceived] The last datetime that the management group - * received data. + * The last datetime that the management group received data. */ dataReceived?: Date; /** - * @member {string} [version] The version of System Center that is managing - * the management group. + * The version of System Center that is managing the management group. */ version?: string; /** - * @member {string} [sku] The SKU of System Center that is managing the - * management group. + * The SKU of System Center that is managing the management group. */ sku?: string; } /** - * @interface - * An interface representing Sku. * The SKU (tier) of a workspace. - * */ export interface Sku { /** - * @member {SkuNameEnum} name The name of the SKU. Possible values include: - * 'Free', 'Standard', 'Premium', 'Unlimited', 'PerNode', 'PerGB2018', - * 'Standalone' + * The name of the SKU. Possible values include: 'Free', 'Standard', 'Premium', 'PerNode', + * 'PerGB2018', 'Standalone' */ name: SkuNameEnum; } /** - * @interface - * An interface representing Workspace. * The top level Workspace resource container. - * - * @extends BaseResource */ export interface Workspace extends BaseResource { /** - * @member {EntityStatus} [provisioningState] The provisioning state of the - * workspace. Possible values include: 'Creating', 'Succeeded', 'Failed', - * 'Canceled', 'Deleting', 'ProvisioningAccount' + * The provisioning state of the workspace. Possible values include: 'Creating', 'Succeeded', + * 'Failed', 'Canceled', 'Deleting', 'ProvisioningAccount' */ provisioningState?: EntityStatus; /** - * @member {string} [source] The source of the workspace. Source defines - * where the workspace was created. 'Azure' implies it was created in Azure. - * 'External' implies it was created via the Operational Insights Portal. - * This value is set on the service side and read-only on the client side. + * The source of the workspace. Source defines where the workspace was created. 'Azure' implies + * it was created in Azure. 'External' implies it was created via the Operational Insights + * Portal. This value is set on the service side and read-only on the client side. */ source?: string; /** - * @member {string} [customerId] The ID associated with the workspace. - * Setting this value at creation time allows the workspace being created to - * be linked to an existing workspace. + * The ID associated with the workspace. Setting this value at creation time allows the + * workspace being created to be linked to an existing workspace. */ customerId?: string; /** - * @member {string} [portalUrl] The URL of the Operational Insights portal - * for this workspace. This value is set on the service side and read-only - * on the client side. + * The URL of the Operational Insights portal for this workspace. This value is set on the + * service side and read-only on the client side. */ portalUrl?: string; /** - * @member {Sku} [sku] The SKU of the workspace. + * The SKU of the workspace. */ sku?: Sku; /** - * @member {number} [retentionInDays] The workspace data retention in days. - * -1 means Unlimited retention for the Unlimited Sku. 730 days is the - * maximum allowed for all other Skus. + * The workspace data retention in days. -1 means Unlimited retention for the Unlimited Sku. 730 + * days is the maximum allowed for all other Skus. */ retentionInDays?: number; /** - * @member {string} [eTag] The ETag of the workspace. + * The ETag of the workspace. */ eTag?: string; } /** - * @interface - * An interface representing Resource. * The resource definition. - * - * @extends BaseResource */ export interface Resource extends BaseResource { /** - * @member {string} [id] Resource Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Resource name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] Resource type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {string} [location] Resource location + * Resource location */ location?: string; /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags + * Resource tags */ tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing ProxyResource. * Common properties of proxy resource. - * */ export interface ProxyResource { /** - * @member {string} [id] Resource ID. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource ID. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Resource name. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] Resource type. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags + * Resource tags */ tags?: { [propertyName: string]: string }; } /** - * @interface - * An interface representing DataSourcesListByWorkspaceOptionalParams. * Optional Parameters. - * - * @extends RequestOptionsBase */ export interface DataSourcesListByWorkspaceOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [skiptoken] Starting point of the collection of data - * source instances. + * Starting point of the collection of data source instances. */ skiptoken?: string; } /** - * @interface * An interface representing OperationalInsightsManagementClientOptions. - * @extends AzureServiceClientOptions */ export interface OperationalInsightsManagementClientOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ baseUri?: string; } - /** * @interface - * An interface representing the LinkedServiceListResult. * The list linked service operation response. - * * @extends Array */ export interface LinkedServiceListResult extends Array { @@ -426,24 +335,19 @@ export interface LinkedServiceListResult extends Array { /** * @interface - * An interface representing the DataSourceListResult. * The list data source by workspace operation response. - * * @extends Array */ export interface DataSourceListResult extends Array { /** - * @member {string} [nextLink] The link (url) to the next page of - * datasources. + * The link (url) to the next page of datasources. */ nextLink?: string; } /** * @interface - * An interface representing the WorkspaceListUsagesResult. * The list workspace usages operation response. - * * @extends Array */ export interface WorkspaceListUsagesResult extends Array { @@ -451,9 +355,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 */ export interface WorkspaceListManagementGroupsResult extends Array { @@ -461,9 +363,7 @@ export interface WorkspaceListManagementGroupsResult extends Array */ export interface WorkspaceListResult extends Array { @@ -471,17 +371,13 @@ export interface WorkspaceListResult extends Array { /** * @interface - * An interface representing the OperationListResult. * Result of the request to list solution operations. - * * @extends Array */ export interface OperationListResult extends Array { /** - * @member {string} [nextLink] URL to get the next set of operation list - * results if there are any. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * URL to get the next set of operation list results if there are any. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly nextLink?: string; } @@ -500,12 +396,11 @@ export type DataSourceKind = 'AzureActivityLog' | 'ChangeTrackingPath' | 'Change /** * Defines values for SkuNameEnum. - * Possible values include: 'Free', 'Standard', 'Premium', 'Unlimited', 'PerNode', 'PerGB2018', - * 'Standalone' + * Possible values include: 'Free', 'Standard', 'Premium', 'PerNode', 'PerGB2018', 'Standalone' * @readonly * @enum {string} */ -export type SkuNameEnum = 'Free' | 'Standard' | 'Premium' | 'Unlimited' | 'PerNode' | 'PerGB2018' | 'Standalone'; +export type SkuNameEnum = 'Free' | 'Standard' | 'Premium' | 'PerNode' | 'PerGB2018' | 'Standalone'; /** * Defines values for EntityStatus. @@ -528,6 +423,7 @@ export type LinkedServicesCreateOrUpdateResponse = LinkedService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -547,6 +443,7 @@ export type LinkedServicesGetResponse = LinkedService & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -566,6 +463,7 @@ export type LinkedServicesListByWorkspaceResponse = LinkedServiceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -585,6 +483,7 @@ export type DataSourcesCreateOrUpdateResponse = DataSource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -604,6 +503,7 @@ export type DataSourcesGetResponse = DataSource & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -623,6 +523,7 @@ export type DataSourcesListByWorkspaceResponse = DataSourceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -642,6 +543,7 @@ export type DataSourcesListByWorkspaceNextResponse = DataSourceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -661,6 +563,7 @@ export type WorkspacesListIntelligencePacksResponse = Array & * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -680,6 +583,7 @@ export type WorkspacesGetSharedKeysResponse = SharedKeys & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -699,6 +603,7 @@ export type WorkspacesListUsagesResponse = WorkspaceListUsagesResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -718,6 +623,7 @@ export type WorkspacesListManagementGroupsResponse = WorkspaceListManagementGrou * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -737,6 +643,7 @@ export type WorkspacesListByResourceGroupResponse = WorkspaceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -756,6 +663,7 @@ export type WorkspacesListResponse = WorkspaceListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -775,6 +683,7 @@ export type WorkspacesCreateOrUpdateResponse = Workspace & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -794,6 +703,7 @@ export type WorkspacesGetResponse = Workspace & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -813,6 +723,7 @@ export type WorkspacesUpdateResponse = Workspace & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -832,6 +743,7 @@ export type WorkspacesBeginCreateOrUpdateResponse = Workspace & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -851,6 +763,7 @@ export type OperationsListResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -870,6 +783,7 @@ export type OperationsListNextResponse = OperationListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/linkedServicesMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/linkedServicesMappers.ts index 3dc8e75684e0..94f4e3d950cb 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/linkedServicesMappers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/linkedServicesMappers.ts @@ -1,21 +1,18 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - LinkedService, BaseResource, CloudError, - LinkedServiceListResult, DataSource, - Workspace, + LinkedService, + LinkedServiceListResult, + Resource, Sku, - Resource + Workspace } from "../models/mappers"; - diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts index 8ecc014974bd..4a3ce40c40fd 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/operationsMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/operationsMappers.ts index 2edcc577920e..689688180be7 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/operationsMappers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/operationsMappers.ts @@ -1,17 +1,14 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - OperationListResult, + CloudError, Operation, OperationDisplay, - CloudError + OperationListResult } from "../models/mappers"; - diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/workspacesMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/workspacesMappers.ts index 1d18205a1490..d796529ead79 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/workspacesMappers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/workspacesMappers.ts @@ -1,28 +1,25 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { + BaseResource, CloudError, + DataSource, IntelligencePack, + LinkedService, + ManagementGroup, + MetricName, + Resource, SharedKeys, - WorkspaceListUsagesResult, + Sku, UsageMetric, - MetricName, + Workspace, WorkspaceListManagementGroupsResult, - ManagementGroup, WorkspaceListResult, - Workspace, - BaseResource, - Sku, - LinkedService, - DataSource, - Resource + WorkspaceListUsagesResult } from "../models/mappers"; - diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClientContext.ts b/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClientContext.ts index b7e62e1ece9f..600ca4f4919b 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClientContext.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-operationalinsights"; -const packageVersion = "0.1.0"; +const packageVersion = "1.2.0"; export class OperationalInsightsManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; diff --git a/sdk/operationalinsights/loganalytics/LICENSE.txt b/sdk/operationalinsights/loganalytics/LICENSE.txt index a70e8cf66038..b73b4a1293c3 100644 --- a/sdk/operationalinsights/loganalytics/LICENSE.txt +++ b/sdk/operationalinsights/loganalytics/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +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 diff --git a/sdk/operationalinsights/loganalytics/README.md b/sdk/operationalinsights/loganalytics/README.md index da2255e05789..103cfa29b7c3 100644 --- a/sdk/operationalinsights/loganalytics/README.md +++ b/sdk/operationalinsights/loganalytics/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for LogAnalyticsClient. ### How to Install -``` +```bash npm install @azure/loganalytics ``` @@ -19,13 +19,13 @@ npm install @azure/loganalytics ##### Install @azure/ms-rest-nodeauth -``` +```bash npm install @azure/ms-rest-nodeauth ``` ##### Sample code -```ts +```typescript import * as msRest from "@azure/ms-rest-js"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; import { LogAnalyticsClient, LogAnalyticsModels, LogAnalyticsMappers } from "@azure/loganalytics"; @@ -52,7 +52,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -104,6 +104,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/operationalinsights/loganalytics/README.png) diff --git a/sdk/operationalinsights/loganalytics/package.json b/sdk/operationalinsights/loganalytics/package.json index 7804498f6507..ffec859d59db 100644 --- a/sdk/operationalinsights/loganalytics/package.json +++ b/sdk/operationalinsights/loganalytics/package.json @@ -4,7 +4,7 @@ "description": "LogAnalyticsClient Library with typescript type definitions for node.js and browser.", "version": "0.2.0", "dependencies": { - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-js": "^1.8.1", "tslib": "^1.9.3" }, "keywords": [ @@ -22,9 +22,10 @@ "typescript": "^3.1.1", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/operationalinsights/loganalytics", + "homepage": "https://github.com/azure/azure-sdk-for-js", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-js.git" @@ -42,6 +43,7 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "src/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], @@ -51,5 +53,5 @@ "prepack": "npm install && npm run build" }, "sideEffects": false, - "authPublish": true + "autoPublish": true } diff --git a/sdk/operationalinsights/loganalytics/rollup.config.js b/sdk/operationalinsights/loganalytics/rollup.config.js index a25a9cc464b5..10e41afe31c7 100644 --- a/sdk/operationalinsights/loganalytics/rollup.config.js +++ b/sdk/operationalinsights/loganalytics/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/logAnalyticsClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/logAnalyticsClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/loganalytics.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ module: true }), + sourcemaps() ] }; + export default config; diff --git a/sdk/operationalinsights/loganalytics/src/logAnalyticsClientContext.ts b/sdk/operationalinsights/loganalytics/src/logAnalyticsClientContext.ts index ff55138f8c26..113846fa9a75 100644 --- a/sdk/operationalinsights/loganalytics/src/logAnalyticsClientContext.ts +++ b/sdk/operationalinsights/loganalytics/src/logAnalyticsClientContext.ts @@ -12,7 +12,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as Models from "./models"; const packageName = "@azure/loganalytics"; -const packageVersion = "0.1.0"; +const packageVersion = "0.2.0"; export class LogAnalyticsClientContext extends msRest.ServiceClient { credentials: msRest.ServiceClientCredentials; @@ -23,23 +23,23 @@ export class LogAnalyticsClientContext extends msRest.ServiceClient { * @param [options] The parameter options */ constructor(credentials: msRest.ServiceClientCredentials, options?: Models.LogAnalyticsClientOptions) { - if (credentials === null || credentials === undefined) { - throw new Error('\'credentials\' cannot be null.'); + if (credentials == undefined) { + throw new Error("'credentials' cannot be null."); } if (!options) { options = {}; } - if(!options.userAgent) { + + if (!options.userAgent) { const defaultUserAgent = msRest.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } super(credentials, options); - this.baseUri = options.baseUri || this.baseUri || "https://api.loganalytics.io"; + this.baseUri = options.baseUri || this.baseUri || "https://api.loganalytics.io/v1"; this.requestContentType = "application/json; charset=utf-8"; this.credentials = credentials; - } } diff --git a/sdk/operationalinsights/loganalytics/src/models/index.ts b/sdk/operationalinsights/loganalytics/src/models/index.ts index 52da54ffbedb..b6bc8c769cd2 100644 --- a/sdk/operationalinsights/loganalytics/src/models/index.ts +++ b/sdk/operationalinsights/loganalytics/src/models/index.ts @@ -1,188 +1,146 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { ServiceClientOptions } from "@azure/ms-rest-js"; import * as msRest from "@azure/ms-rest-js"; - /** - * @interface - * An interface representing QueryBody. * The Analytics query. Learn more about the [Analytics query * syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/) - * */ export interface QueryBody { /** - * @member {string} query The query to execute. + * The query to execute. */ query: string; /** - * @member {string} [timespan] Optional. The timespan over which to query - * data. This is an ISO8601 time period value. This timespan is applied in - * addition to any that are specified in the query expression. + * Optional. The timespan over which to query data. This is an ISO8601 time period value. This + * timespan is applied in addition to any that are specified in the query expression. */ timespan?: string; /** - * @member {string[]} [workspaces] A list of workspaces that are included in - * the query. + * A list of workspaces that are included in the query. */ workspaces?: string[]; } /** - * @interface - * An interface representing Column. - * @summary A table column. - * * A column in a table. - * + * @summary A table column. */ export interface Column { /** - * @member {string} [name] The name of this column. + * The name of this column. */ name?: string; /** - * @member {string} [type] The data type of this column. + * The data type of this column. */ type?: string; } /** - * @interface - * An interface representing Table. - * @summary A query response table. - * * Contains the columns and rows for one table in a query response. - * + * @summary A query response table. */ export interface Table { /** - * @member {string} name The name of the table. + * The name of the table. */ name: string; /** - * @member {Column[]} columns The list of columns in this table. + * The list of columns in this table. */ columns: Column[]; /** - * @member {string[][]} rows The resulting rows from this query. + * The resulting rows from this query. */ rows: string[][]; } /** - * @interface - * An interface representing QueryResults. - * @summary A query response. - * * Contains the tables, columns & rows resulting from a query. - * + * @summary A query response. */ export interface QueryResults { /** - * @member {Table[]} tables The list of tables, columns and rows. + * The list of tables, columns and rows. */ tables: Table[]; } /** - * @interface * An interface representing ErrorDetail. * @summary Error details. - * */ export interface ErrorDetail { /** - * @member {string} code The error's code. + * The error's code. */ code: string; /** - * @member {string} message A human readable error message. + * A human readable error message. */ message: string; /** - * @member {string} [target] Indicates which property in the request is - * responsible for the error. + * Indicates which property in the request is responsible for the error. */ target?: string; /** - * @member {string} [value] Indicates which value in 'target' is responsible - * for the error. + * Indicates which value in 'target' is responsible for the error. */ value?: string; /** - * @member {string[]} [resources] Indicates resources which were responsible - * for the error. + * Indicates resources which were responsible for the error. */ resources?: string[]; - /** - * @member {any} [additionalProperties] - */ additionalProperties?: any; } /** - * @interface * An interface representing ErrorInfo. * @summary The code and message for an error. - * */ export interface ErrorInfo { /** - * @member {string} code A machine readable error code. + * A machine readable error code. */ code: string; /** - * @member {string} message A human readable error message. + * A human readable error message. */ message: string; /** - * @member {ErrorDetail[]} [details] error details. + * error details. */ details?: ErrorDetail[]; /** - * @member {ErrorInfo} [innererror] Inner error details if they exist. + * Inner error details if they exist. */ innererror?: ErrorInfo; - /** - * @member {any} [additionalProperties] - */ additionalProperties?: any; } /** - * @interface - * An interface representing ErrorResponse. - * @summary Error details. - * * Contains details when the response code indicates an error. - * + * @summary Error details. */ export interface ErrorResponse { /** - * @member {ErrorInfo} error The error details. + * The error details. */ error: ErrorInfo; } /** - * @interface * An interface representing LogAnalyticsClientOptions. - * @extends ServiceClientOptions */ export interface LogAnalyticsClientOptions extends ServiceClientOptions { - /** - * @member {string} [baseUri] - */ baseUri?: string; } @@ -198,6 +156,7 @@ export type QueryExecuteResponse = QueryResults & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ diff --git a/sdk/operationalinsights/loganalytics/src/models/mappers.ts b/sdk/operationalinsights/loganalytics/src/models/mappers.ts index cd3f848e53c8..94019dfc6fd7 100644 --- a/sdk/operationalinsights/loganalytics/src/models/mappers.ts +++ b/sdk/operationalinsights/loganalytics/src/models/mappers.ts @@ -1,11 +1,9 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import * as msRest from "@azure/ms-rest-js"; diff --git a/sdk/operationalinsights/loganalytics/src/models/queryMappers.ts b/sdk/operationalinsights/loganalytics/src/models/queryMappers.ts index 6add1a2ffa64..8b4dd8b0ef1d 100644 --- a/sdk/operationalinsights/loganalytics/src/models/queryMappers.ts +++ b/sdk/operationalinsights/loganalytics/src/models/queryMappers.ts @@ -1,20 +1,17 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - QueryBody, - QueryResults, - Table, Column, - ErrorResponse, + ErrorDetail, ErrorInfo, - ErrorDetail + ErrorResponse, + QueryBody, + QueryResults, + Table } from "../models/mappers"; -