regenerated @azure/arm-timeseriesinsights to fix polymorphic mapper lookup issues (#4465)
* fix serialization issues in kusto * regenerated @azure/arm-timeseriesinsights to fix polymorphic mapper lookup
This commit is contained in:
Родитель
717ccc4797
Коммит
a0d9d6e04d
|
@ -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
|
||||
|
|
|
@ -9,7 +9,7 @@ This package contains an isomorphic SDK for TimeSeriesInsightsClient.
|
|||
|
||||
### How to Install
|
||||
|
||||
```
|
||||
```bash
|
||||
npm install @azure/arm-timeseriesinsights
|
||||
```
|
||||
|
||||
|
@ -19,13 +19,13 @@ npm install @azure/arm-timeseriesinsights
|
|||
|
||||
##### 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";
|
||||
|
@ -47,7 +47,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => {
|
|||
|
||||
##### Install @azure/ms-rest-browserauth
|
||||
|
||||
```
|
||||
```bash
|
||||
npm install @azure/ms-rest-browserauth
|
||||
```
|
||||
|
||||
|
@ -95,5 +95,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to
|
|||
|
||||
- [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/timeseriesinsights/arm-timeseriesinsights/README.png)
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
"name": "@azure/arm-timeseriesinsights",
|
||||
"author": "Microsoft Corporation",
|
||||
"description": "TimeSeriesInsightsClient Library with typescript type definitions for node.js and browser.",
|
||||
"version": "1.1.0",
|
||||
"version": "1.2.0",
|
||||
"dependencies": {
|
||||
"@azure/ms-rest-azure-js": "^1.1.0",
|
||||
"@azure/ms-rest-js": "^1.1.0",
|
||||
"tslib": "^1.9.3"
|
||||
"@azure/ms-rest-azure-js": "^2.0.0",
|
||||
"@azure/ms-rest-js": "^2.0.3",
|
||||
"tslib": "^1.10.0"
|
||||
},
|
||||
"keywords": [
|
||||
"node",
|
||||
|
@ -23,15 +23,16 @@
|
|||
"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/timeseriesinsights/arm-timeseriesinsights",
|
||||
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/timeseriesinsights/arm-timeseriesinsights",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/azure/azure-sdk-for-js.git"
|
||||
"url": "https://github.com/Azure/azure-sdk-for-js.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/azure/azure-sdk-for-js/issues"
|
||||
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
||||
},
|
||||
"files": [
|
||||
"dist/**/*.js",
|
||||
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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/timeSeriesInsightsClient.js',
|
||||
external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"],
|
||||
input: "./esm/timeSeriesInsightsClient.js",
|
||||
external: [
|
||||
"@azure/ms-rest-js",
|
||||
"@azure/ms-rest-azure-js"
|
||||
],
|
||||
output: {
|
||||
file: "./dist/arm-timeseriesinsights.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;
|
||||
|
|
|
@ -1,33 +1,30 @@
|
|||
/*
|
||||
* 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 {
|
||||
discriminators,
|
||||
AccessPolicyCreateOrUpdateParameters,
|
||||
AccessPolicyListResponse,
|
||||
AccessPolicyResource,
|
||||
Resource,
|
||||
AccessPolicyUpdateParameters,
|
||||
BaseResource,
|
||||
CloudError,
|
||||
AccessPolicyUpdateParameters,
|
||||
AccessPolicyListResponse,
|
||||
TrackedResource,
|
||||
EnvironmentResource,
|
||||
Sku,
|
||||
PartitionKeyProperty,
|
||||
EnvironmentStatus,
|
||||
IngressEnvironmentStatus,
|
||||
EnvironmentStateDetails,
|
||||
EventSourceResource,
|
||||
EnvironmentStatus,
|
||||
EventHubEventSourceResource,
|
||||
EventSourceResource,
|
||||
IngressEnvironmentStatus,
|
||||
IoTHubEventSourceResource,
|
||||
PartitionKeyProperty,
|
||||
ReferenceDataSetKeyProperty,
|
||||
ReferenceDataSetResource,
|
||||
ReferenceDataSetKeyProperty
|
||||
Resource,
|
||||
Sku,
|
||||
TrackedResource
|
||||
} from "../models/mappers";
|
||||
|
||||
|
|
|
@ -1,38 +1,35 @@
|
|||
/*
|
||||
* 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 {
|
||||
discriminators,
|
||||
EnvironmentCreateOrUpdateParameters,
|
||||
CreateOrUpdateTrackedResourceProperties,
|
||||
Sku,
|
||||
PartitionKeyProperty,
|
||||
EnvironmentResource,
|
||||
TrackedResource,
|
||||
Resource,
|
||||
AccessPolicyResource,
|
||||
BaseResource,
|
||||
EnvironmentStatus,
|
||||
IngressEnvironmentStatus,
|
||||
EnvironmentStateDetails,
|
||||
CloudError,
|
||||
EnvironmentUpdateParameters,
|
||||
CreateOrUpdateTrackedResourceProperties,
|
||||
EnvironmentCreateOrUpdateParameters,
|
||||
EnvironmentListResponse,
|
||||
EventSourceCreateOrUpdateParameters,
|
||||
EnvironmentResource,
|
||||
EnvironmentStateDetails,
|
||||
EnvironmentStatus,
|
||||
EnvironmentUpdateParameters,
|
||||
EventHubEventSourceCreateOrUpdateParameters,
|
||||
IoTHubEventSourceCreateOrUpdateParameters,
|
||||
EventSourceResource,
|
||||
EventHubEventSourceResource,
|
||||
EventSourceCreateOrUpdateParameters,
|
||||
EventSourceResource,
|
||||
IngressEnvironmentStatus,
|
||||
IoTHubEventSourceCreateOrUpdateParameters,
|
||||
IoTHubEventSourceResource,
|
||||
PartitionKeyProperty,
|
||||
ReferenceDataSetCreateOrUpdateParameters,
|
||||
ReferenceDataSetKeyProperty,
|
||||
ReferenceDataSetResource,
|
||||
AccessPolicyResource
|
||||
Resource,
|
||||
Sku,
|
||||
TrackedResource
|
||||
} from "../models/mappers";
|
||||
|
||||
|
|
|
@ -1,42 +1,39 @@
|
|||
/*
|
||||
* 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 {
|
||||
discriminators,
|
||||
EventSourceCreateOrUpdateParameters,
|
||||
CreateOrUpdateTrackedResourceProperties,
|
||||
EventSourceResource,
|
||||
TrackedResource,
|
||||
Resource,
|
||||
AccessPolicyResource,
|
||||
BaseResource,
|
||||
CloudError,
|
||||
EventSourceUpdateParameters,
|
||||
EventSourceListResponse,
|
||||
CreateOrUpdateTrackedResourceProperties,
|
||||
EnvironmentCreateOrUpdateParameters,
|
||||
Sku,
|
||||
PartitionKeyProperty,
|
||||
EnvironmentResource,
|
||||
EnvironmentStatus,
|
||||
IngressEnvironmentStatus,
|
||||
EnvironmentStateDetails,
|
||||
EnvironmentStatus,
|
||||
EventHubEventSourceCreateOrUpdateParameters,
|
||||
IoTHubEventSourceCreateOrUpdateParameters,
|
||||
EventHubEventSourceResource,
|
||||
EventHubEventSourceUpdateParameters,
|
||||
EventSourceCreateOrUpdateParameters,
|
||||
EventSourceListResponse,
|
||||
EventSourceResource,
|
||||
EventSourceUpdateParameters,
|
||||
IngressEnvironmentStatus,
|
||||
IoTHubEventSourceCreateOrUpdateParameters,
|
||||
IoTHubEventSourceResource,
|
||||
IoTHubEventSourceUpdateParameters,
|
||||
LocalTimestamp,
|
||||
LocalTimestampTimeZoneOffset,
|
||||
IoTHubEventSourceUpdateParameters,
|
||||
EventHubEventSourceResource,
|
||||
IoTHubEventSourceResource,
|
||||
PartitionKeyProperty,
|
||||
ReferenceDataSetCreateOrUpdateParameters,
|
||||
ReferenceDataSetKeyProperty,
|
||||
ReferenceDataSetResource,
|
||||
AccessPolicyResource
|
||||
Resource,
|
||||
Sku,
|
||||
TrackedResource
|
||||
} from "../models/mappers";
|
||||
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -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";
|
||||
|
@ -542,7 +540,7 @@ export const EventSourceCreateOrUpdateParameters: msRest.CompositeMapper = {
|
|||
serializedName: "kind",
|
||||
clientName: "kind"
|
||||
},
|
||||
uberParent: "EventSourceCreateOrUpdateParameters",
|
||||
uberParent: "CreateOrUpdateTrackedResourceProperties",
|
||||
className: "EventSourceCreateOrUpdateParameters",
|
||||
modelProperties: {
|
||||
...CreateOrUpdateTrackedResourceProperties.type.modelProperties,
|
||||
|
@ -799,7 +797,7 @@ export const EventSourceResource: msRest.CompositeMapper = {
|
|||
serializedName: "kind",
|
||||
clientName: "kind"
|
||||
},
|
||||
uberParent: "EventSourceResource",
|
||||
uberParent: "BaseResource",
|
||||
className: "EventSourceResource",
|
||||
modelProperties: {
|
||||
...TrackedResource.type.modelProperties,
|
||||
|
@ -1473,4 +1471,5 @@ export const discriminators = {
|
|||
'BaseResource.EventSourceResource' : EventSourceResource,
|
||||
'BaseResource.Microsoft.EventHub' : EventHubEventSourceResource,
|
||||
'BaseResource.Microsoft.IotHub' : IoTHubEventSourceResource
|
||||
|
||||
};
|
||||
|
|
|
@ -1,18 +1,15 @@
|
|||
/*
|
||||
* 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 {
|
||||
discriminators,
|
||||
OperationListResult,
|
||||
CloudError,
|
||||
Operation,
|
||||
OperationDisplay,
|
||||
CloudError
|
||||
OperationListResult
|
||||
} from "../models/mappers";
|
||||
|
||||
|
|
|
@ -1,38 +1,35 @@
|
|||
/*
|
||||
* 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 {
|
||||
discriminators,
|
||||
ReferenceDataSetCreateOrUpdateParameters,
|
||||
CreateOrUpdateTrackedResourceProperties,
|
||||
ReferenceDataSetKeyProperty,
|
||||
ReferenceDataSetResource,
|
||||
TrackedResource,
|
||||
Resource,
|
||||
AccessPolicyResource,
|
||||
BaseResource,
|
||||
CloudError,
|
||||
ReferenceDataSetUpdateParameters,
|
||||
ReferenceDataSetListResponse,
|
||||
CreateOrUpdateTrackedResourceProperties,
|
||||
EnvironmentCreateOrUpdateParameters,
|
||||
Sku,
|
||||
PartitionKeyProperty,
|
||||
EnvironmentResource,
|
||||
EnvironmentStatus,
|
||||
IngressEnvironmentStatus,
|
||||
EnvironmentStateDetails,
|
||||
EventSourceCreateOrUpdateParameters,
|
||||
EnvironmentStatus,
|
||||
EventHubEventSourceCreateOrUpdateParameters,
|
||||
IoTHubEventSourceCreateOrUpdateParameters,
|
||||
EventSourceResource,
|
||||
EventHubEventSourceResource,
|
||||
EventSourceCreateOrUpdateParameters,
|
||||
EventSourceResource,
|
||||
IngressEnvironmentStatus,
|
||||
IoTHubEventSourceCreateOrUpdateParameters,
|
||||
IoTHubEventSourceResource,
|
||||
AccessPolicyResource
|
||||
PartitionKeyProperty,
|
||||
ReferenceDataSetCreateOrUpdateParameters,
|
||||
ReferenceDataSetKeyProperty,
|
||||
ReferenceDataSetListResponse,
|
||||
ReferenceDataSetResource,
|
||||
ReferenceDataSetUpdateParameters,
|
||||
Resource,
|
||||
Sku,
|
||||
TrackedResource
|
||||
} from "../models/mappers";
|
||||
|
||||
|
|
|
@ -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-timeseriesinsights";
|
||||
const packageVersion = "0.1.0";
|
||||
const packageVersion = "1.2.0";
|
||||
|
||||
export class TimeSeriesInsightsClientContext extends msRestAzure.AzureServiceClient {
|
||||
credentials: msRest.ServiceClientCredentials;
|
||||
|
@ -37,7 +37,7 @@ export class TimeSeriesInsightsClientContext extends msRestAzure.AzureServiceCli
|
|||
if (!options) {
|
||||
options = {};
|
||||
}
|
||||
if(!options.userAgent) {
|
||||
if (!options.userAgent) {
|
||||
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
|
||||
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
|
||||
}
|
||||
|
@ -52,10 +52,10 @@ export class TimeSeriesInsightsClientContext extends msRestAzure.AzureServiceCli
|
|||
this.credentials = credentials;
|
||||
this.subscriptionId = subscriptionId;
|
||||
|
||||
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
|
||||
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
|
||||
this.acceptLanguage = options.acceptLanguage;
|
||||
}
|
||||
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
|
||||
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
|
||||
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"lib": ["es6"],
|
||||
"lib": ["es6", "dom"],
|
||||
"declaration": true,
|
||||
"outDir": "./esm",
|
||||
"importHelpers": true
|
||||
|
|
Загрузка…
Ссылка в новой задаче