From ba7cb60e9047c690fc864cf0f0e81f7bef3aff7d Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Thu, 15 Jul 2021 02:30:25 +0000 Subject: [PATCH] CodeGen from PR 15206 in Azure/azure-rest-api-specs [Hub Generated] Review request for Microsoft.TimeSeriesInsights to add version stable/2020-05-15 (#15206) * Update Operations example and definition * Fix MetricAvailabilities path * Run prettier --- .../arm-timeseriesinsights/LICENSE.txt | 2 +- .../arm-timeseriesinsights/README.md | 9 +- .../arm-timeseriesinsights/package.json | 2 +- .../arm-timeseriesinsights/rollup.config.js | 4 +- .../src/models/accessPoliciesMappers.ts | 15 +- .../src/models/environmentsMappers.ts | 21 +- .../src/models/eventSourcesMappers.ts | 16 +- .../src/models/index.ts | 829 +++++++++++-- .../src/models/mappers.ts | 1070 +++++++++++++---- .../src/models/operationsMappers.ts | 11 +- .../src/models/parameters.ts | 5 +- .../src/models/referenceDataSetsMappers.ts | 18 +- .../src/operations/accessPolicies.ts | 5 +- .../src/operations/environments.ts | 19 +- .../src/operations/eventSources.ts | 13 +- .../src/operations/index.ts | 5 +- .../src/operations/operations.ts | 8 +- .../src/operations/referenceDataSets.ts | 5 +- .../src/timeSeriesInsightsClient.ts | 5 +- .../src/timeSeriesInsightsClientContext.ts | 15 +- 20 files changed, 1627 insertions(+), 450 deletions(-) diff --git a/sdk/timeseriesinsights/arm-timeseriesinsights/LICENSE.txt b/sdk/timeseriesinsights/arm-timeseriesinsights/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/timeseriesinsights/arm-timeseriesinsights/LICENSE.txt +++ b/sdk/timeseriesinsights/arm-timeseriesinsights/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Microsoft +Copyright (c) 2021 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/timeseriesinsights/arm-timeseriesinsights/README.md b/sdk/timeseriesinsights/arm-timeseriesinsights/README.md index 6076933bd31b..3cb6d458f3c6 100644 --- a/sdk/timeseriesinsights/arm-timeseriesinsights/README.md +++ b/sdk/timeseriesinsights/arm-timeseriesinsights/README.md @@ -1,11 +1,11 @@ ## Azure TimeSeriesInsightsClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for TimeSeriesInsightsClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for TimeSeriesInsightsClient. ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -21,7 +21,6 @@ Install both packages using the below command: ```bash npm install --save @azure/arm-timeseriesinsights @azure/identity ``` - > **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. @@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/ In the below samples, we pass the credential and the Azure subscription id to instantiate the client. Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. - #### nodejs - Authentication, client creation, and list operations as an example written in JavaScript. ##### Sample code @@ -51,7 +49,6 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; // Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. const creds = new DefaultAzureCredential(); const client = new TimeSeriesInsightsClient(creds, subscriptionId); - client.operations.list().then((result) => { console.log("The result is:"); console.log(result); @@ -86,7 +83,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const credential = new InteractiveBrowserCredential( { clientId: "", - tenantId: "" + tenant: "" }); const client = new Azure.ArmTimeseriesinsights.TimeSeriesInsightsClient(creds, subscriptionId); client.operations.list().then((result) => { diff --git a/sdk/timeseriesinsights/arm-timeseriesinsights/package.json b/sdk/timeseriesinsights/arm-timeseriesinsights/package.json index 2d7985567227..3019a85df225 100644 --- a/sdk/timeseriesinsights/arm-timeseriesinsights/package.json +++ b/sdk/timeseriesinsights/arm-timeseriesinsights/package.json @@ -27,7 +27,7 @@ "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/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" diff --git a/sdk/timeseriesinsights/arm-timeseriesinsights/rollup.config.js b/sdk/timeseriesinsights/arm-timeseriesinsights/rollup.config.js index 04a56329ade2..5066e1cd6530 100644 --- a/sdk/timeseriesinsights/arm-timeseriesinsights/rollup.config.js +++ b/sdk/timeseriesinsights/arm-timeseriesinsights/rollup.config.js @@ -21,8 +21,8 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. diff --git a/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/accessPoliciesMappers.ts b/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/accessPoliciesMappers.ts index b095b795dd22..8ddcd6e03213 100644 --- a/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/accessPoliciesMappers.ts +++ b/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/accessPoliciesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -19,12 +19,19 @@ export { EnvironmentStatus, EventHubEventSourceResource, EventSourceResource, + Gen1EnvironmentResource, + Gen2EnvironmentResource, + Gen2StorageConfigurationOutput, IngressEnvironmentStatus, IoTHubEventSourceResource, - PartitionKeyProperty, + LocalTimestamp, + LocalTimestampTimeZoneOffset, ReferenceDataSetKeyProperty, ReferenceDataSetResource, Resource, Sku, - TrackedResource + TimeSeriesIdProperty, + TrackedResource, + WarmStorageEnvironmentStatus, + WarmStoreConfigurationProperties } from "../models/mappers"; diff --git a/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/environmentsMappers.ts b/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/environmentsMappers.ts index 9c64265aaa1d..c3d4ac5aadf7 100644 --- a/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/environmentsMappers.ts +++ b/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/environmentsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -22,14 +22,27 @@ export { EventHubEventSourceResource, EventSourceCreateOrUpdateParameters, EventSourceResource, + Gen1EnvironmentCreateOrUpdateParameters, + Gen1EnvironmentResource, + Gen1EnvironmentUpdateParameters, + Gen2EnvironmentCreateOrUpdateParameters, + Gen2EnvironmentResource, + Gen2EnvironmentUpdateParameters, + Gen2StorageConfigurationInput, + Gen2StorageConfigurationMutableProperties, + Gen2StorageConfigurationOutput, IngressEnvironmentStatus, IoTHubEventSourceCreateOrUpdateParameters, IoTHubEventSourceResource, - PartitionKeyProperty, + LocalTimestamp, + LocalTimestampTimeZoneOffset, ReferenceDataSetCreateOrUpdateParameters, ReferenceDataSetKeyProperty, ReferenceDataSetResource, Resource, Sku, - TrackedResource + TimeSeriesIdProperty, + TrackedResource, + WarmStorageEnvironmentStatus, + WarmStoreConfigurationProperties } from "../models/mappers"; diff --git a/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/eventSourcesMappers.ts b/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/eventSourcesMappers.ts index 6131d4200cdc..f5a3d3fc034b 100644 --- a/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/eventSourcesMappers.ts +++ b/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/eventSourcesMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -23,17 +23,25 @@ export { EventSourceListResponse, EventSourceResource, EventSourceUpdateParameters, + Gen1EnvironmentCreateOrUpdateParameters, + Gen1EnvironmentResource, + Gen2EnvironmentCreateOrUpdateParameters, + Gen2EnvironmentResource, + Gen2StorageConfigurationInput, + Gen2StorageConfigurationOutput, IngressEnvironmentStatus, IoTHubEventSourceCreateOrUpdateParameters, IoTHubEventSourceResource, IoTHubEventSourceUpdateParameters, LocalTimestamp, LocalTimestampTimeZoneOffset, - PartitionKeyProperty, ReferenceDataSetCreateOrUpdateParameters, ReferenceDataSetKeyProperty, ReferenceDataSetResource, Resource, Sku, - TrackedResource + TimeSeriesIdProperty, + TrackedResource, + WarmStorageEnvironmentStatus, + WarmStoreConfigurationProperties } from "../models/mappers"; diff --git a/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/index.ts b/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/index.ts index 9793e4c43827..50678d7f2a07 100644 --- a/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/index.ts +++ b/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/index.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -37,6 +37,98 @@ export interface OperationDisplay { readonly description?: string; } +/** + * Dimension of blobs, possibly be blob type or access tier. + */ +export interface Dimension { + /** + * Display name of dimension. + */ + name?: string; + /** + * Display name of dimension. + */ + displayName?: string; +} + +/** + * Retention policy of a resource metric. + */ +export interface MetricAvailability { + timeGrain?: string; + blobDuration?: string; +} + +/** + * Metric specification of operation. + */ +export interface MetricSpecification { + /** + * Name of metric specification. + */ + name?: string; + /** + * Display name of metric specification. + */ + displayName?: string; + /** + * Display description of metric specification. + */ + displayDescription?: string; + /** + * Unit could be Bytes or Count. + */ + unit?: string; + /** + * Dimensions of blobs, including blob type and access tier. + */ + dimensions?: Dimension[]; + /** + * Aggregation type could be Average. + */ + aggregationType?: string; + /** + * Retention policies of a resource metric. + */ + availabilities?: MetricAvailability[]; + /** + * The category this metric specification belong to, could be Capacity. + */ + category?: string; + /** + * Account Resource Id. + */ + resourceIdDimensionNameOverride?: string; +} + +/** + * The specification of an Azure Monitoring log. + */ +export interface LogSpecification { + /** + * Log name. + */ + name?: string; + /** + * Log display name. + */ + displayName?: string; +} + +/** + * One property of operation, include metric specifications. + */ +export interface ServiceSpecification { + /** + * Metric specifications of operation. + */ + metricSpecifications?: MetricSpecification[]; + /** + * A list of Azure Monitoring log definitions. + */ + logSpecifications?: LogSpecification[]; +} + /** * A Time Series Insights REST API operation */ @@ -51,6 +143,14 @@ export interface Operation { * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly display?: OperationDisplay; + /** + * The intended executor of the operation. + */ + origin?: string; + /** + * One property of operation, include metric specifications. + */ + serviceSpecification?: ServiceSpecification; } /** @@ -105,21 +205,73 @@ export interface ResourceProperties { } /** - * The sku determines the capacity of the environment, the SLA (in queries-per-minute and total - * capacity), and the billing rate. + * The sku determines the type of environment, either Gen1 (S1 or S2) or Gen2 (L1). For Gen1 + * environments the sku determines the capacity of the environment, the ingress rate, and the + * billing rate. */ export interface Sku { /** - * The name of this SKU. Possible values include: 'S1', 'S2' + * The name of this SKU. Possible values include: 'S1', 'S2', 'P1', 'L1' */ name: SkuName; /** - * The capacity of the sku. This value can be changed to support scale out of environments after - * they have been created. + * The capacity of the sku. For Gen1 environments, this value can be changed to support scale out + * of environments after they have been created. */ capacity: number; } +/** + * The warm store configuration provides the details to create a warm store cache that will retain + * a copy of the environment's data available for faster query. + */ +export interface WarmStoreConfigurationProperties { + /** + * ISO8601 timespan specifying the number of days the environment's events will be available for + * query from the warm store. + */ + dataRetention: string; +} + +/** + * The storage configuration provides the connection details that allows the Time Series Insights + * service to connect to the customer storage account that is used to store the environment's data. + */ +export interface Gen2StorageConfigurationInput { + /** + * The name of the storage account that will hold the environment's Gen2 data. + */ + accountName: string; + /** + * The value of the management key that grants the Time Series Insights service write access to + * the storage account. This property is not shown in environment responses. + */ + managementKey: string; +} + +/** + * The storage configuration provides the non-secret connection details about the customer storage + * account that is used to store the environment's data. + */ +export interface Gen2StorageConfigurationOutput { + /** + * The name of the storage account that will hold the environment's Gen2 data. + */ + accountName: string; +} + +/** + * The storage configuration provides the connection details that allows the Time Series Insights + * service to connect to the customer storage account that is used to store the environment's data. + */ +export interface Gen2StorageConfigurationMutableProperties { + /** + * The value of the management key that grants the Time Series Insights service write access to + * the storage account. This property is not shown in environment responses. + */ + managementKey: string; +} + /** * Properties required to create any resource tracked by Azure Resource Manager. */ @@ -135,10 +287,39 @@ export interface CreateOrUpdateTrackedResourceProperties { } /** - * The structure of the property that a partition key can have. An environment can have multiple + * Contains the possible cases for EnvironmentCreateOrUpdateParameters. + */ +export type EnvironmentCreateOrUpdateParametersUnion = EnvironmentCreateOrUpdateParameters | Gen1EnvironmentCreateOrUpdateParameters | Gen2EnvironmentCreateOrUpdateParameters; + +/** + * Parameters supplied to the CreateOrUpdate Environment operation. + */ +export interface EnvironmentCreateOrUpdateParameters { + /** + * Polymorphic Discriminator + */ + kind: "EnvironmentCreateOrUpdateParameters"; + /** + * The location of the resource. + */ + location: string; + /** + * Key-value pairs of additional properties for the resource. + */ + tags?: { [propertyName: string]: string }; + /** + * The sku determines the type of environment, either Gen1 (S1 or S2) or Gen2 (L1). For Gen1 + * environments the sku determines the capacity of the environment, the ingress rate, and the + * billing rate. + */ + sku: Sku; +} + +/** + * The structure of the property that a time series id can have. An environment can have multiple * such properties. */ -export interface PartitionKeyProperty { +export interface TimeSeriesIdProperty { /** * The name of the property. */ @@ -150,12 +331,25 @@ export interface PartitionKeyProperty { } /** - * Parameters supplied to the CreateOrUpdate Environment operation. + * Parameters supplied to the Create or Update Environment operation for a Gen1 environment. */ -export interface EnvironmentCreateOrUpdateParameters extends CreateOrUpdateTrackedResourceProperties { +export interface Gen1EnvironmentCreateOrUpdateParameters { /** - * The sku determines the capacity of the environment, the SLA (in queries-per-minute and total - * capacity), and the billing rate. + * Polymorphic Discriminator + */ + kind: "Gen1"; + /** + * The location of the resource. + */ + location: string; + /** + * Key-value pairs of additional properties for the resource. + */ + tags?: { [propertyName: string]: string }; + /** + * The sku determines the type of environment, either Gen1 (S1 or S2) or Gen2 (L1). For Gen1 + * environments the sku determines the capacity of the environment, the ingress rate, and the + * billing rate. */ sku: Sku; /** @@ -172,23 +366,86 @@ export interface EnvironmentCreateOrUpdateParameters extends CreateOrUpdateTrack */ storageLimitExceededBehavior?: StorageLimitExceededBehavior; /** - * The list of partition keys according to which the data in the environment will be ordered. + * The list of event properties which will be used to partition data in the environment. + * Currently, only a single partition key property is supported. */ - partitionKeyProperties?: PartitionKeyProperty[]; + partitionKeyProperties?: TimeSeriesIdProperty[]; } +/** + * Parameters supplied to the Create or Update Environment operation for a Gen2 environment. + */ +export interface Gen2EnvironmentCreateOrUpdateParameters { + /** + * Polymorphic Discriminator + */ + kind: "Gen2"; + /** + * The location of the resource. + */ + location: string; + /** + * Key-value pairs of additional properties for the resource. + */ + tags?: { [propertyName: string]: string }; + /** + * The sku determines the type of environment, either Gen1 (S1 or S2) or Gen2 (L1). For Gen1 + * environments the sku determines the capacity of the environment, the ingress rate, and the + * billing rate. + */ + sku: Sku; + /** + * The list of event properties which will be used to define the environment's time series id. + */ + timeSeriesIdProperties: TimeSeriesIdProperty[]; + /** + * The storage configuration provides the connection details that allows the Time Series Insights + * service to connect to the customer storage account that is used to store the environment's + * data. + */ + storageConfiguration: Gen2StorageConfigurationInput; + /** + * The warm store configuration provides the details to create a warm store cache that will + * retain a copy of the environment's data available for faster query. + */ + warmStoreConfiguration?: WarmStoreConfigurationProperties; +} + +/** + * Contains the possible cases for EnvironmentUpdateParameters. + */ +export type EnvironmentUpdateParametersUnion = EnvironmentUpdateParameters | Gen1EnvironmentUpdateParameters | Gen2EnvironmentUpdateParameters; + /** * Parameters supplied to the Update Environment operation. */ export interface EnvironmentUpdateParameters { /** - * The sku of the environment. + * Polymorphic Discriminator */ - sku?: Sku; + kind: "EnvironmentUpdateParameters"; + /** + * Key-value pairs of additional properties for the environment. + */ + tags?: { [propertyName: string]: string }; +} + +/** + * Parameters supplied to the Update Environment operation to update a Gen1 environment. + */ +export interface Gen1EnvironmentUpdateParameters { + /** + * Polymorphic Discriminator + */ + kind: "Gen1"; /** * Key-value pairs of additional properties for the environment. */ tags?: { [propertyName: string]: string }; + /** + * The sku of the environment. + */ + sku?: Sku; /** * ISO8601 timespan specifying the minimum number of days the environment's events will be * available for query. @@ -202,10 +459,86 @@ export interface EnvironmentUpdateParameters { * include: 'PurgeOldData', 'PauseIngress' */ storageLimitExceededBehavior?: StorageLimitExceededBehavior; +} + +/** + * Parameters supplied to the Update Environment operation to update a Gen2 environment. + */ +export interface Gen2EnvironmentUpdateParameters { /** - * The list of event properties which will be used to partition data in the environment. + * Polymorphic Discriminator + */ + kind: "Gen2"; + /** + * Key-value pairs of additional properties for the environment. + */ + tags?: { [propertyName: string]: string }; + /** + * The storage configuration provides the connection details that allows the Time Series Insights + * service to connect to the customer storage account that is used to store the environment's + * data. */ - partitionKeyProperties?: PartitionKeyProperty[]; + storageConfiguration?: Gen2StorageConfigurationMutableProperties; + /** + * The warm store configuration provides the details to create a warm store cache that will + * retain a copy of the environment's data available for faster query. + */ + warmStoreConfiguration?: WarmStoreConfigurationProperties; +} + +/** + * Contains the possible cases for EnvironmentResource. + */ +export type EnvironmentResourceUnion = EnvironmentResource | Gen1EnvironmentResource | Gen2EnvironmentResource; + +/** + * An environment is a set of time-series data available for query, and is the top level Azure Time + * Series Insights resource. + */ +export interface EnvironmentResource { + /** + * Polymorphic Discriminator + */ + kind: "EnvironmentResource"; + /** + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Resource location + */ + location: string; + /** + * Resource tags + */ + tags?: { [propertyName: string]: string }; + /** + * The sku determines the type of environment, either Gen1 (S1 or S2) or Gen2 (L1). For Gen1 + * environments the sku determines the capacity of the environment, the ingress rate, and the + * billing rate. + */ + sku: Sku; +} + +/** + * The response of the List Environments operation. + */ +export interface EnvironmentListResponse { + /** + * Result of the List Environments operation. + */ + value?: EnvironmentResourceUnion[]; } /** @@ -239,44 +572,155 @@ export interface IngressEnvironmentStatus { stateDetails?: EnvironmentStateDetails; } +/** + * An object that represents the status of warm storage on an environment. + */ +export interface WarmStorageEnvironmentStatus { + /** + * This string represents the state of warm storage properties usage. It can be "Ok", "Error", + * "Unknown". Possible values include: 'Ok', 'Error', 'Unknown' + */ + state?: WarmStoragePropertiesState; + /** + * A value that represents the number of properties used by the environment for S1/S2 SKU and + * number of properties used by Warm Store for PAYG SKU + */ + currentCount?: number; + /** + * A value that represents the maximum number of properties used allowed by the environment for + * S1/S2 SKU and maximum number of properties allowed by Warm Store for PAYG SKU. + */ + maxCount?: number; +} + /** * An object that represents the status of the environment, and its internal state in the Time * Series Insights service. */ export interface EnvironmentStatus { /** - * An object that represents the status of ingress on an environment. + * An object that represents the status of ingress on an environment. + */ + ingress?: IngressEnvironmentStatus; + /** + * An object that represents the status of warm storage on an environment. + */ + warmStorage?: WarmStorageEnvironmentStatus; +} + +/** + * An environment is a set of time-series data available for query, and is the top level Azure Time + * Series Insights resource. Gen1 environments have data retention limits. + */ +export interface Gen1EnvironmentResource { + /** + * Polymorphic Discriminator + */ + kind: "Gen1"; + /** + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; + /** + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly name?: string; + /** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Resource location + */ + location: string; + /** + * Resource tags + */ + tags?: { [propertyName: string]: string }; + /** + * The sku determines the type of environment, either Gen1 (S1 or S2) or Gen2 (L1). For Gen1 + * environments the sku determines the capacity of the environment, the ingress rate, and the + * billing rate. + */ + sku: Sku; + /** + * ISO8601 timespan specifying the minimum number of days the environment's events will be + * available for query. + */ + dataRetentionTime: string; + /** + * The behavior the Time Series Insights service should take when the environment's capacity has + * been exceeded. If "PauseIngress" is specified, new events will not be read from the event + * source. If "PurgeOldData" is specified, new events will continue to be read and old events + * will be deleted from the environment. The default behavior is PurgeOldData. Possible values + * include: 'PurgeOldData', 'PauseIngress' + */ + storageLimitExceededBehavior?: StorageLimitExceededBehavior; + /** + * The list of event properties which will be used to partition data in the environment. + * Currently, only a single partition key property is supported. + */ + partitionKeyProperties?: TimeSeriesIdProperty[]; + /** + * An id used to access the environment data, e.g. to query the environment's events or upload + * reference data for the environment. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataAccessId?: string; + /** + * The fully qualified domain name used to access the environment data, e.g. to query the + * environment's events or upload reference data for the environment. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataAccessFqdn?: string; + /** + * An object that represents the status of the environment, and its internal state in the Time + * Series Insights service. */ - ingress?: IngressEnvironmentStatus; + status?: EnvironmentStatus; } /** * An environment is a set of time-series data available for query, and is the top level Azure Time - * Series Insights resource. + * Series Insights resource. Gen2 environments do not have set data retention limits. */ -export interface EnvironmentResource extends TrackedResource { +export interface Gen2EnvironmentResource { /** - * The sku determines the capacity of the environment, the SLA (in queries-per-minute and total - * capacity), and the billing rate. + * Polymorphic Discriminator */ - sku?: Sku; + kind: "Gen2"; /** - * ISO8601 timespan specifying the minimum number of days the environment's events will be - * available for query. + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - dataRetentionTime: string; + readonly id?: string; /** - * The behavior the Time Series Insights service should take when the environment's capacity has - * been exceeded. If "PauseIngress" is specified, new events will not be read from the event - * source. If "PurgeOldData" is specified, new events will continue to be read and old events - * will be deleted from the environment. The default behavior is PurgeOldData. Possible values - * include: 'PurgeOldData', 'PauseIngress' + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - storageLimitExceededBehavior?: StorageLimitExceededBehavior; + readonly name?: string; + /** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * Resource location + */ + location: string; + /** + * Resource tags + */ + tags?: { [propertyName: string]: string }; /** - * The list of partition keys according to which the data in the environment will be ordered. + * The sku determines the type of environment, either Gen1 (S1 or S2) or Gen2 (L1). For Gen1 + * environments the sku determines the capacity of the environment, the ingress rate, and the + * billing rate. */ - partitionKeyProperties?: PartitionKeyProperty[]; + sku: Sku; /** * Provisioning state of the resource. Possible values include: 'Accepted', 'Creating', * 'Updating', 'Succeeded', 'Failed', 'Deleting' @@ -304,16 +748,78 @@ export interface EnvironmentResource extends TrackedResource { * Series Insights service. */ status?: EnvironmentStatus; + /** + * The list of event properties which will be used to define the environment's time series id. + */ + timeSeriesIdProperties: TimeSeriesIdProperty[]; + /** + * The storage configuration provides the connection details that allows the Time Series Insights + * service to connect to the customer storage account that is used to store the environment's + * data. + */ + storageConfiguration: Gen2StorageConfigurationOutput; + /** + * The warm store configuration provides the details to create a warm store cache that will + * retain a copy of the environment's data available for faster query. + */ + warmStoreConfiguration?: WarmStoreConfigurationProperties; } /** - * The response of the List Environments operation. + * Properties of the environment. */ -export interface EnvironmentListResponse { +export interface EnvironmentResourceProperties extends ResourceProperties { /** - * Result of the List Environments operation. + * An id used to access the environment data, e.g. to query the environment's events or upload + * reference data for the environment. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataAccessId?: string; + /** + * The fully qualified domain name used to access the environment data, e.g. to query the + * environment's events or upload reference data for the environment. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly dataAccessFqdn?: string; + /** + * An object that represents the status of the environment, and its internal state in the Time + * Series Insights service. + */ + status?: EnvironmentStatus; +} + +/** + * An object that represents the offset information for the local timestamp format specified. + * Should not be specified for LocalTimestampFormat - Embedded. + */ +export interface LocalTimestampTimeZoneOffset { + /** + * The event property that will be contain the offset information to calculate the local + * timestamp. When the LocalTimestampFormat is Iana, the property name will contain the name of + * the column which contains IANA Timezone Name (eg: Americas/Los Angeles). When + * LocalTimestampFormat is Timespan, it contains the name of property which contains values + * representing the offset (eg: P1D or 1.00:00:00) + */ + propertyName?: string; +} + +/** + * An object that represents the local timestamp property. It contains the format of local + * timestamp that needs to be used and the corresponding timezone offset information. If a value + * isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed + * with the events. + */ +export interface LocalTimestamp { + /** + * An enum that represents the format of the local timestamp property that needs to be set. + * Possible values include: 'Embedded' + */ + format?: LocalTimestampFormat; + /** + * An object that represents the offset information for the local timestamp format specified. + * Should not be specified for LocalTimestampFormat - Embedded. */ - value?: EnvironmentResource[]; + timeZoneOffset?: LocalTimestampTimeZoneOffset; } /** @@ -337,6 +843,13 @@ export interface EventSourceCreateOrUpdateParameters { * Key-value pairs of additional properties for the resource. */ tags?: { [propertyName: string]: string }; + /** + * An object that represents the local timestamp property. It contains the format of local + * timestamp that needs to be used and the corresponding timezone offset information. If a value + * isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed + * with the events. + */ + localTimestamp?: LocalTimestamp; } /** @@ -355,6 +868,13 @@ export interface EventHubEventSourceCreateOrUpdateParameters { * Key-value pairs of additional properties for the resource. */ tags?: { [propertyName: string]: string }; + /** + * An object that represents the local timestamp property. It contains the format of local + * timestamp that needs to be used and the corresponding timezone offset information. If a value + * isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed + * with the events. + */ + localTimestamp?: LocalTimestamp; /** * Provisioning state of the resource. Possible values include: 'Accepted', 'Creating', * 'Updating', 'Succeeded', 'Failed', 'Deleting' @@ -371,6 +891,24 @@ export interface EventHubEventSourceCreateOrUpdateParameters { * creation time will be used. */ timestampPropertyName?: string; + /** + * An object that represents the local timestamp property. It contains the format of local + * timestamp that needs to be used and the corresponding timezone offset information. If a value + * isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed + * with the events. + */ + eventHubEventSourceCreateOrUpdateParametersLocalTimestamp?: LocalTimestamp; + /** + * The type of the ingressStartAt, It can be "EarliestAvailable", "EventSourceCreationTime", + * "CustomEnqueuedTime". Possible values include: 'EarliestAvailable', 'EventSourceCreationTime', + * 'CustomEnqueuedTime' + */ + type?: IngressStartAtType; + /** + * ISO8601 UTC datetime with seconds precision (milliseconds are optional), specifying the date + * and time that will be the starting point for Events to be consumed. + */ + time?: string; /** * The resource id of the event source in Azure Resource Manager. */ @@ -416,6 +954,13 @@ export interface IoTHubEventSourceCreateOrUpdateParameters { * Key-value pairs of additional properties for the resource. */ tags?: { [propertyName: string]: string }; + /** + * An object that represents the local timestamp property. It contains the format of local + * timestamp that needs to be used and the corresponding timezone offset information. If a value + * isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed + * with the events. + */ + localTimestamp?: LocalTimestamp; /** * Provisioning state of the resource. Possible values include: 'Accepted', 'Creating', * 'Updating', 'Succeeded', 'Failed', 'Deleting' @@ -432,6 +977,24 @@ export interface IoTHubEventSourceCreateOrUpdateParameters { * creation time will be used. */ timestampPropertyName?: string; + /** + * An object that represents the local timestamp property. It contains the format of local + * timestamp that needs to be used and the corresponding timezone offset information. If a value + * isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed + * with the events. + */ + ioTHubEventSourceCreateOrUpdateParametersLocalTimestamp?: LocalTimestamp; + /** + * The type of the ingressStartAt, It can be "EarliestAvailable", "EventSourceCreationTime", + * "CustomEnqueuedTime". Possible values include: 'EarliestAvailable', 'EventSourceCreationTime', + * 'CustomEnqueuedTime' + */ + type?: IngressStartAtType; + /** + * ISO8601 UTC datetime with seconds precision (milliseconds are optional), specifying the date + * and time that will be the starting point for Events to be consumed. + */ + time?: string; /** * The resource id of the event source in Azure Resource Manager. */ @@ -458,10 +1021,19 @@ export interface IoTHubEventSourceCreateOrUpdateParameters { sharedAccessKey: string; } +/** + * Contains the possible cases for EventSourceUpdateParameters. + */ +export type EventSourceUpdateParametersUnion = EventSourceUpdateParameters | EventHubEventSourceUpdateParameters | IoTHubEventSourceUpdateParameters; + /** * Parameters supplied to the Update Event Source operation. */ export interface EventSourceUpdateParameters { + /** + * Polymorphic Discriminator + */ + kind: "EventSourceUpdateParameters"; /** * Key-value pairs of additional properties for the event source. */ @@ -471,20 +1043,21 @@ export interface EventSourceUpdateParameters { /** * Parameters supplied to the Update Event Source operation to update an EventHub event source. */ -export interface EventHubEventSourceUpdateParameters extends EventSourceUpdateParameters { +export interface EventHubEventSourceUpdateParameters { + /** + * Polymorphic Discriminator + */ + kind: "Microsoft.EventHub"; + /** + * Key-value pairs of additional properties for the event source. + */ + tags?: { [propertyName: string]: string }; /** * The event property that will be used as the event source's timestamp. If a value isn't * specified for timestampPropertyName, or if null or empty-string is specified, the event * creation time will be used. */ timestampPropertyName?: string; - /** - * An object that represents the local timestamp property. It contains the format of local - * timestamp that needs to be used and the corresponding timezone offset information. If a value - * isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed - * with the events. - */ - localTimestamp?: LocalTimestamp; /** * The value of the shared access key that grants the Time Series Insights service read access to * the event hub. This property is not shown in event source responses. @@ -495,20 +1068,21 @@ export interface EventHubEventSourceUpdateParameters extends EventSourceUpdatePa /** * Parameters supplied to the Update Event Source operation to update an IoTHub event source. */ -export interface IoTHubEventSourceUpdateParameters extends EventSourceUpdateParameters { +export interface IoTHubEventSourceUpdateParameters { + /** + * Polymorphic Discriminator + */ + kind: "Microsoft.IoTHub"; + /** + * Key-value pairs of additional properties for the event source. + */ + tags?: { [propertyName: string]: string }; /** * The event property that will be used as the event source's timestamp. If a value isn't * specified for timestampPropertyName, or if null or empty-string is specified, the event * creation time will be used. */ timestampPropertyName?: string; - /** - * An object that represents the local timestamp property. It contains the format of local - * timestamp that needs to be used and the corresponding timezone offset information. If a value - * isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed - * with the events. - */ - localTimestamp?: LocalTimestamp; /** * The value of the shared access key that grants the Time Series Insights service read access to * the iot hub. This property is not shown in event source responses. @@ -613,6 +1187,24 @@ export interface EventHubEventSourceResource { * creation time will be used. */ timestampPropertyName?: string; + /** + * An object that represents the local timestamp property. It contains the format of local + * timestamp that needs to be used and the corresponding timezone offset information. If a value + * isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed + * with the events. + */ + localTimestamp?: LocalTimestamp; + /** + * The type of the ingressStartAt, It can be "EarliestAvailable", "EventSourceCreationTime", + * "CustomEnqueuedTime". Possible values include: 'EarliestAvailable', 'EventSourceCreationTime', + * 'CustomEnqueuedTime' + */ + eventHubEventSourceResourceType?: IngressStartAtType; + /** + * ISO8601 UTC datetime with seconds precision (milliseconds are optional), specifying the date + * and time that will be the starting point for Events to be consumed. + */ + time?: string; /** * The resource id of the event source in Azure Resource Manager. */ @@ -644,7 +1236,7 @@ export interface IoTHubEventSourceResource { /** * Polymorphic Discriminator */ - kind: "Microsoft.IotHub"; + kind: "Microsoft.IoTHub"; /** * Resource Id * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -684,6 +1276,24 @@ export interface IoTHubEventSourceResource { * creation time will be used. */ timestampPropertyName?: string; + /** + * An object that represents the local timestamp property. It contains the format of local + * timestamp that needs to be used and the corresponding timezone offset information. If a value + * isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed + * with the events. + */ + localTimestamp?: LocalTimestamp; + /** + * The type of the ingressStartAt, It can be "EarliestAvailable", "EventSourceCreationTime", + * "CustomEnqueuedTime". Possible values include: 'EarliestAvailable', 'EventSourceCreationTime', + * 'CustomEnqueuedTime' + */ + ioTHubEventSourceResourceType?: IngressStartAtType; + /** + * ISO8601 UTC datetime with seconds precision (milliseconds are optional), specifying the date + * and time that will be the starting point for Events to be consumed. + */ + time?: string; /** * The resource id of the event source in Azure Resource Manager. */ @@ -715,6 +1325,24 @@ export interface EventSourceCommonProperties extends ResourceProperties { * creation time will be used. */ timestampPropertyName?: string; + /** + * An object that represents the local timestamp property. It contains the format of local + * timestamp that needs to be used and the corresponding timezone offset information. If a value + * isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed + * with the events. + */ + localTimestamp?: LocalTimestamp; + /** + * The type of the ingressStartAt, It can be "EarliestAvailable", "EventSourceCreationTime", + * "CustomEnqueuedTime". Possible values include: 'EarliestAvailable', 'EventSourceCreationTime', + * 'CustomEnqueuedTime' + */ + type?: IngressStartAtType; + /** + * ISO8601 UTC datetime with seconds precision (milliseconds are optional), specifying the date + * and time that will be the starting point for Events to be consumed. + */ + time?: string; } /** @@ -772,40 +1400,6 @@ export interface IoTHubEventSourceCommonProperties extends AzureEventSourcePrope keyName: string; } -/** - * An object that represents the offset information for the local timestamp format specified. - * Should not be specified for LocalTimestampFormat - Embedded. - */ -export interface LocalTimestampTimeZoneOffset { - /** - * The event property that will be contain the offset information to calculate the local - * timestamp. When the LocalTimestampFormat is Iana, the property name will contain the name of - * the column which contains IANA Timezone Name (eg: Americas/Los Angeles). When - * LocalTimestampFormat is Timespan, it contains the name of property which contains values - * representing the offset (eg: P1D or 1.00:00:00) - */ - propertyName?: string; -} - -/** - * An object that represents the local timestamp property. It contains the format of local - * timestamp that needs to be used and the corresponding timezone offset information. If a value - * isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed - * with the events. - */ -export interface LocalTimestamp { - /** - * An enum that represents the format of the local timestamp property that needs to be set. - * Possible values include: 'Embedded', 'Iana', 'TimeSpan' - */ - format?: LocalTimestampFormat; - /** - * An object that represents the offset information for the local timestamp format specified. - * Should not be specified for LocalTimestampFormat - Embedded. - */ - timeZoneOffset?: LocalTimestampTimeZoneOffset; -} - /** * An object that represents a set of mutable event source resource properties. */ @@ -816,13 +1410,6 @@ export interface EventSourceMutableProperties { * creation time will be used. */ timestampPropertyName?: string; - /** - * An object that represents the local timestamp property. It contains the format of local - * timestamp that needs to be used and the corresponding timezone offset information. If a value - * isn't specified for localTimestamp, or if null, then the local timestamp will not be ingressed - * with the events. - */ - localTimestamp?: LocalTimestamp; } /** @@ -1013,11 +1600,11 @@ export type ProvisioningState = 'Accepted' | 'Creating' | 'Updating' | 'Succeede /** * Defines values for SkuName. - * Possible values include: 'S1', 'S2' + * Possible values include: 'S1', 'S2', 'P1', 'L1' * @readonly * @enum {string} */ -export type SkuName = 'S1' | 'S2'; +export type SkuName = 'S1' | 'S2' | 'P1' | 'L1'; /** * Defines values for StorageLimitExceededBehavior. @@ -1043,13 +1630,29 @@ export type PropertyType = 'String'; */ export type IngressState = 'Disabled' | 'Ready' | 'Running' | 'Paused' | 'Unknown'; +/** + * Defines values for WarmStoragePropertiesState. + * Possible values include: 'Ok', 'Error', 'Unknown' + * @readonly + * @enum {string} + */ +export type WarmStoragePropertiesState = 'Ok' | 'Error' | 'Unknown'; + +/** + * Defines values for IngressStartAtType. + * Possible values include: 'EarliestAvailable', 'EventSourceCreationTime', 'CustomEnqueuedTime' + * @readonly + * @enum {string} + */ +export type IngressStartAtType = 'EarliestAvailable' | 'EventSourceCreationTime' | 'CustomEnqueuedTime'; + /** * Defines values for LocalTimestampFormat. - * Possible values include: 'Embedded', 'Iana', 'TimeSpan' + * Possible values include: 'Embedded' * @readonly * @enum {string} */ -export type LocalTimestampFormat = 'Embedded' | 'Iana' | 'TimeSpan'; +export type LocalTimestampFormat = 'Embedded'; /** * Defines values for ReferenceDataKeyPropertyType. @@ -1118,7 +1721,7 @@ export type OperationsListNextResponse = OperationListResult & { /** * Contains response data for the createOrUpdate operation. */ -export type EnvironmentsCreateOrUpdateResponse = EnvironmentResource & { +export type EnvironmentsCreateOrUpdateResponse = EnvironmentResourceUnion & { /** * The underlying HTTP response. */ @@ -1131,14 +1734,14 @@ export type EnvironmentsCreateOrUpdateResponse = EnvironmentResource & { /** * The response body as parsed JSON or XML */ - parsedBody: EnvironmentResource; + parsedBody: EnvironmentResourceUnion; }; }; /** * Contains response data for the get operation. */ -export type EnvironmentsGetResponse = EnvironmentResource & { +export type EnvironmentsGetResponse = EnvironmentResourceUnion & { /** * The underlying HTTP response. */ @@ -1151,14 +1754,14 @@ export type EnvironmentsGetResponse = EnvironmentResource & { /** * The response body as parsed JSON or XML */ - parsedBody: EnvironmentResource; + parsedBody: EnvironmentResourceUnion; }; }; /** * Contains response data for the update operation. */ -export type EnvironmentsUpdateResponse = EnvironmentResource & { +export type EnvironmentsUpdateResponse = EnvironmentResourceUnion & { /** * The underlying HTTP response. */ @@ -1171,7 +1774,7 @@ export type EnvironmentsUpdateResponse = EnvironmentResource & { /** * The response body as parsed JSON or XML */ - parsedBody: EnvironmentResource; + parsedBody: EnvironmentResourceUnion; }; }; @@ -1218,7 +1821,7 @@ export type EnvironmentsListBySubscriptionResponse = EnvironmentListResponse & { /** * Contains response data for the beginCreateOrUpdate operation. */ -export type EnvironmentsBeginCreateOrUpdateResponse = EnvironmentResource & { +export type EnvironmentsBeginCreateOrUpdateResponse = EnvironmentResourceUnion & { /** * The underlying HTTP response. */ @@ -1231,14 +1834,14 @@ export type EnvironmentsBeginCreateOrUpdateResponse = EnvironmentResource & { /** * The response body as parsed JSON or XML */ - parsedBody: EnvironmentResource; + parsedBody: EnvironmentResourceUnion; }; }; /** * Contains response data for the beginUpdate operation. */ -export type EnvironmentsBeginUpdateResponse = EnvironmentResource & { +export type EnvironmentsBeginUpdateResponse = EnvironmentResourceUnion & { /** * The underlying HTTP response. */ @@ -1251,7 +1854,7 @@ export type EnvironmentsBeginUpdateResponse = EnvironmentResource & { /** * The response body as parsed JSON or XML */ - parsedBody: EnvironmentResource; + parsedBody: EnvironmentResourceUnion; }; }; diff --git a/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/mappers.ts b/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/mappers.ts index d3731702df83..68dee49640fb 100644 --- a/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/mappers.ts +++ b/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/mappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -50,6 +50,182 @@ export const OperationDisplay: msRest.CompositeMapper = { } }; +export const Dimension: msRest.CompositeMapper = { + serializedName: "Dimension", + type: { + name: "Composite", + className: "Dimension", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + } + } + } +}; + +export const MetricAvailability: msRest.CompositeMapper = { + serializedName: "MetricAvailability", + type: { + name: "Composite", + className: "MetricAvailability", + modelProperties: { + timeGrain: { + serializedName: "timeGrain", + type: { + name: "String" + } + }, + blobDuration: { + serializedName: "blobDuration", + type: { + name: "String" + } + } + } + } +}; + +export const MetricSpecification: msRest.CompositeMapper = { + serializedName: "MetricSpecification", + type: { + name: "Composite", + className: "MetricSpecification", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + displayDescription: { + serializedName: "displayDescription", + type: { + name: "String" + } + }, + unit: { + serializedName: "unit", + type: { + name: "String" + } + }, + dimensions: { + serializedName: "dimensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Dimension" + } + } + } + }, + aggregationType: { + serializedName: "aggregationType", + type: { + name: "String" + } + }, + availabilities: { + serializedName: "availabilities", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricAvailability" + } + } + } + }, + category: { + serializedName: "category", + type: { + name: "String" + } + }, + resourceIdDimensionNameOverride: { + serializedName: "resourceIdDimensionNameOverride", + type: { + name: "String" + } + } + } + } +}; + +export const LogSpecification: msRest.CompositeMapper = { + serializedName: "LogSpecification", + type: { + name: "Composite", + className: "LogSpecification", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + } + } + } +}; + +export const ServiceSpecification: msRest.CompositeMapper = { + serializedName: "ServiceSpecification", + type: { + name: "Composite", + className: "ServiceSpecification", + modelProperties: { + metricSpecifications: { + serializedName: "metricSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MetricSpecification" + } + } + } + }, + logSpecifications: { + serializedName: "logSpecifications", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LogSpecification" + } + } + } + } + } + } +}; + export const Operation: msRest.CompositeMapper = { serializedName: "Operation", type: { @@ -70,6 +246,19 @@ export const Operation: msRest.CompositeMapper = { name: "Composite", className: "OperationDisplay" } + }, + origin: { + serializedName: "origin", + type: { + name: "String" + } + }, + serviceSpecification: { + serializedName: "properties.serviceSpecification", + type: { + name: "Composite", + className: "ServiceSpecification" + } } } } @@ -144,15 +333,7 @@ export const ResourceProperties: msRest.CompositeMapper = { provisioningState: { serializedName: "provisioningState", type: { - name: "Enum", - allowedValues: [ - "Accepted", - "Creating", - "Updating", - "Succeeded", - "Failed", - "Deleting" - ] + name: "String" } }, creationTime: { @@ -176,11 +357,7 @@ export const Sku: msRest.CompositeMapper = { required: true, serializedName: "name", type: { - name: "Enum", - allowedValues: [ - "S1", - "S2" - ] + name: "String" } }, capacity: { @@ -198,6 +375,81 @@ export const Sku: msRest.CompositeMapper = { } }; +export const WarmStoreConfigurationProperties: msRest.CompositeMapper = { + serializedName: "WarmStoreConfigurationProperties", + type: { + name: "Composite", + className: "WarmStoreConfigurationProperties", + modelProperties: { + dataRetention: { + required: true, + serializedName: "dataRetention", + type: { + name: "TimeSpan" + } + } + } + } +}; + +export const Gen2StorageConfigurationInput: msRest.CompositeMapper = { + serializedName: "Gen2StorageConfigurationInput", + type: { + name: "Composite", + className: "Gen2StorageConfigurationInput", + modelProperties: { + accountName: { + required: true, + serializedName: "accountName", + type: { + name: "String" + } + }, + managementKey: { + required: true, + serializedName: "managementKey", + type: { + name: "String" + } + } + } + } +}; + +export const Gen2StorageConfigurationOutput: msRest.CompositeMapper = { + serializedName: "Gen2StorageConfigurationOutput", + type: { + name: "Composite", + className: "Gen2StorageConfigurationOutput", + modelProperties: { + accountName: { + required: true, + serializedName: "accountName", + type: { + name: "String" + } + } + } + } +}; + +export const Gen2StorageConfigurationMutableProperties: msRest.CompositeMapper = { + serializedName: "Gen2StorageConfigurationMutableProperties", + type: { + name: "Composite", + className: "Gen2StorageConfigurationMutableProperties", + modelProperties: { + managementKey: { + required: true, + serializedName: "managementKey", + type: { + name: "String" + } + } + } + } +}; + export const CreateOrUpdateTrackedResourceProperties: msRest.CompositeMapper = { serializedName: "CreateOrUpdateTrackedResourceProperties", type: { @@ -226,11 +478,42 @@ export const CreateOrUpdateTrackedResourceProperties: msRest.CompositeMapper = { } }; -export const PartitionKeyProperty: msRest.CompositeMapper = { - serializedName: "PartitionKeyProperty", +export const EnvironmentCreateOrUpdateParameters: msRest.CompositeMapper = { + serializedName: "EnvironmentCreateOrUpdateParameters", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "EnvironmentCreateOrUpdateParameters", + className: "EnvironmentCreateOrUpdateParameters", + modelProperties: { + ...CreateOrUpdateTrackedResourceProperties.type.modelProperties, + sku: { + required: true, + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + kind: { + required: true, + serializedName: "kind", + type: { + name: "String" + } + } + } + } +}; + +export const TimeSeriesIdProperty: msRest.CompositeMapper = { + serializedName: "TimeSeriesIdProperty", type: { name: "Composite", - className: "PartitionKeyProperty", + className: "TimeSeriesIdProperty", modelProperties: { name: { serializedName: "name", @@ -248,21 +531,15 @@ export const PartitionKeyProperty: msRest.CompositeMapper = { } }; -export const EnvironmentCreateOrUpdateParameters: msRest.CompositeMapper = { - serializedName: "EnvironmentCreateOrUpdateParameters", +export const Gen1EnvironmentCreateOrUpdateParameters: msRest.CompositeMapper = { + serializedName: "Gen1", type: { name: "Composite", - className: "EnvironmentCreateOrUpdateParameters", + polymorphicDiscriminator: EnvironmentCreateOrUpdateParameters.type.polymorphicDiscriminator, + uberParent: "EnvironmentCreateOrUpdateParameters", + className: "Gen1EnvironmentCreateOrUpdateParameters", modelProperties: { - ...CreateOrUpdateTrackedResourceProperties.type.modelProperties, - sku: { - required: true, - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, + ...EnvironmentCreateOrUpdateParameters.type.modelProperties, dataRetentionTime: { required: true, serializedName: "properties.dataRetentionTime", @@ -273,11 +550,7 @@ export const EnvironmentCreateOrUpdateParameters: msRest.CompositeMapper = { storageLimitExceededBehavior: { serializedName: "properties.storageLimitExceededBehavior", type: { - name: "Enum", - allowedValues: [ - "PurgeOldData", - "PauseIngress" - ] + name: "String" } }, partitionKeyProperties: { @@ -287,7 +560,7 @@ export const EnvironmentCreateOrUpdateParameters: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "PartitionKeyProperty" + className: "TimeSeriesIdProperty" } } } @@ -296,19 +569,58 @@ export const EnvironmentCreateOrUpdateParameters: msRest.CompositeMapper = { } }; -export const EnvironmentUpdateParameters: msRest.CompositeMapper = { - serializedName: "EnvironmentUpdateParameters", +export const Gen2EnvironmentCreateOrUpdateParameters: msRest.CompositeMapper = { + serializedName: "Gen2", type: { name: "Composite", - className: "EnvironmentUpdateParameters", + polymorphicDiscriminator: EnvironmentCreateOrUpdateParameters.type.polymorphicDiscriminator, + uberParent: "EnvironmentCreateOrUpdateParameters", + className: "Gen2EnvironmentCreateOrUpdateParameters", modelProperties: { - sku: { - serializedName: "sku", + ...EnvironmentCreateOrUpdateParameters.type.modelProperties, + timeSeriesIdProperties: { + required: true, + serializedName: "properties.timeSeriesIdProperties", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TimeSeriesIdProperty" + } + } + } + }, + storageConfiguration: { + required: true, + serializedName: "properties.storageConfiguration", type: { name: "Composite", - className: "Sku" + className: "Gen2StorageConfigurationInput" } }, + warmStoreConfiguration: { + serializedName: "properties.warmStoreConfiguration", + type: { + name: "Composite", + className: "WarmStoreConfigurationProperties" + } + } + } + } +}; + +export const EnvironmentUpdateParameters: msRest.CompositeMapper = { + serializedName: "EnvironmentUpdateParameters", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "EnvironmentUpdateParameters", + className: "EnvironmentUpdateParameters", + modelProperties: { tags: { serializedName: "tags", type: { @@ -320,6 +632,33 @@ export const EnvironmentUpdateParameters: msRest.CompositeMapper = { } } }, + kind: { + required: true, + serializedName: "kind", + type: { + name: "String" + } + } + } + } +}; + +export const Gen1EnvironmentUpdateParameters: msRest.CompositeMapper = { + serializedName: "Gen1", + type: { + name: "Composite", + polymorphicDiscriminator: EnvironmentUpdateParameters.type.polymorphicDiscriminator, + uberParent: "EnvironmentUpdateParameters", + className: "Gen1EnvironmentUpdateParameters", + modelProperties: { + ...EnvironmentUpdateParameters.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, dataRetentionTime: { serializedName: "properties.dataRetentionTime", type: { @@ -329,21 +668,85 @@ export const EnvironmentUpdateParameters: msRest.CompositeMapper = { storageLimitExceededBehavior: { serializedName: "properties.storageLimitExceededBehavior", type: { - name: "Enum", - allowedValues: [ - "PurgeOldData", - "PauseIngress" - ] + name: "String" + } + } + } + } +}; + +export const Gen2EnvironmentUpdateParameters: msRest.CompositeMapper = { + serializedName: "Gen2", + type: { + name: "Composite", + polymorphicDiscriminator: EnvironmentUpdateParameters.type.polymorphicDiscriminator, + uberParent: "EnvironmentUpdateParameters", + className: "Gen2EnvironmentUpdateParameters", + modelProperties: { + ...EnvironmentUpdateParameters.type.modelProperties, + storageConfiguration: { + serializedName: "properties.storageConfiguration", + type: { + name: "Composite", + className: "Gen2StorageConfigurationMutableProperties" } }, - partitionKeyProperties: { - serializedName: "properties.partitionKeyProperties", + warmStoreConfiguration: { + serializedName: "properties.warmStoreConfiguration", + type: { + name: "Composite", + className: "WarmStoreConfigurationProperties" + } + } + } + } +}; + +export const EnvironmentResource: msRest.CompositeMapper = { + serializedName: "EnvironmentResource", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "EnvironmentResource", + className: "EnvironmentResource", + modelProperties: { + ...TrackedResource.type.modelProperties, + sku: { + required: true, + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + kind: { + required: true, + serializedName: "kind", + type: { + name: "String" + } + } + } + } +}; + +export const EnvironmentListResponse: msRest.CompositeMapper = { + serializedName: "EnvironmentListResponse", + type: { + name: "Composite", + className: "EnvironmentListResponse", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PartitionKeyProperty" + className: "EnvironmentResource" } } } @@ -383,14 +786,7 @@ export const IngressEnvironmentStatus: msRest.CompositeMapper = { state: { serializedName: "state", type: { - name: "Enum", - allowedValues: [ - "Disabled", - "Ready", - "Running", - "Paused", - "Unknown" - ] + name: "String" } }, stateDetails: { @@ -404,6 +800,42 @@ export const IngressEnvironmentStatus: msRest.CompositeMapper = { } }; +export const WarmStorageEnvironmentStatus: msRest.CompositeMapper = { + serializedName: "WarmStorageEnvironmentStatus", + type: { + name: "Composite", + className: "WarmStorageEnvironmentStatus", + modelProperties: { + state: { + serializedName: "propertiesUsage.state", + type: { + name: "String" + } + }, + currentCount: { + serializedName: "propertiesUsage.stateDetails.currentCount", + constraints: { + InclusiveMaximum: 10, + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + }, + maxCount: { + serializedName: "propertiesUsage.stateDetails.maxCount", + constraints: { + InclusiveMaximum: 10, + InclusiveMinimum: 1 + }, + type: { + name: "Number" + } + } + } + } +}; + export const EnvironmentStatus: msRest.CompositeMapper = { serializedName: "EnvironmentStatus", type: { @@ -416,91 +848,175 @@ export const EnvironmentStatus: msRest.CompositeMapper = { name: "Composite", className: "IngressEnvironmentStatus" } + }, + warmStorage: { + serializedName: "warmStorage", + type: { + name: "Composite", + className: "WarmStorageEnvironmentStatus" + } } } } }; -export const EnvironmentResource: msRest.CompositeMapper = { - serializedName: "EnvironmentResource", +export const Gen1EnvironmentResource: msRest.CompositeMapper = { + serializedName: "Gen1", type: { name: "Composite", - className: "EnvironmentResource", + polymorphicDiscriminator: EnvironmentResource.type.polymorphicDiscriminator, + uberParent: "EnvironmentResource", + className: "Gen1EnvironmentResource", modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", + ...EnvironmentResource.type.modelProperties, + dataRetentionTime: { + required: true, + serializedName: "properties.dataRetentionTime", + type: { + name: "TimeSpan" + } + }, + storageLimitExceededBehavior: { + serializedName: "properties.storageLimitExceededBehavior", + type: { + name: "String" + } + }, + partitionKeyProperties: { + serializedName: "properties.partitionKeyProperties", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TimeSeriesIdProperty" + } + } + } + }, + dataAccessId: { + readOnly: true, + serializedName: "properties.dataAccessId", + type: { + name: "Uuid" + } + }, + dataAccessFqdn: { + readOnly: true, + serializedName: "properties.dataAccessFqdn", + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + type: { + name: "Composite", + className: "EnvironmentStatus" + } + } + } + } +}; + +export const Gen2EnvironmentResource: msRest.CompositeMapper = { + serializedName: "Gen2", + type: { + name: "Composite", + polymorphicDiscriminator: EnvironmentResource.type.polymorphicDiscriminator, + uberParent: "EnvironmentResource", + className: "Gen2EnvironmentResource", + modelProperties: { + ...EnvironmentResource.type.modelProperties, + provisioningState: { + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + creationTime: { + readOnly: true, + serializedName: "properties.creationTime", + type: { + name: "DateTime" + } + }, + dataAccessId: { + readOnly: true, + serializedName: "properties.dataAccessId", type: { - name: "Composite", - className: "Sku" + name: "Uuid" } }, - dataRetentionTime: { - required: true, - serializedName: "properties.dataRetentionTime", + dataAccessFqdn: { + readOnly: true, + serializedName: "properties.dataAccessFqdn", type: { - name: "TimeSpan" + name: "String" } }, - storageLimitExceededBehavior: { - serializedName: "properties.storageLimitExceededBehavior", + status: { + serializedName: "properties.status", type: { - name: "Enum", - allowedValues: [ - "PurgeOldData", - "PauseIngress" - ] + name: "Composite", + className: "EnvironmentStatus" } }, - partitionKeyProperties: { - serializedName: "properties.partitionKeyProperties", + timeSeriesIdProperties: { + required: true, + serializedName: "properties.timeSeriesIdProperties", type: { name: "Sequence", element: { type: { name: "Composite", - className: "PartitionKeyProperty" + className: "TimeSeriesIdProperty" } } } }, - provisioningState: { - serializedName: "properties.provisioningState", + storageConfiguration: { + required: true, + serializedName: "properties.storageConfiguration", type: { - name: "Enum", - allowedValues: [ - "Accepted", - "Creating", - "Updating", - "Succeeded", - "Failed", - "Deleting" - ] + name: "Composite", + className: "Gen2StorageConfigurationOutput" } }, - creationTime: { - readOnly: true, - serializedName: "properties.creationTime", + warmStoreConfiguration: { + serializedName: "properties.warmStoreConfiguration", type: { - name: "DateTime" + name: "Composite", + className: "WarmStoreConfigurationProperties" } - }, + } + } + } +}; + +export const EnvironmentResourceProperties: msRest.CompositeMapper = { + serializedName: "EnvironmentResourceProperties", + type: { + name: "Composite", + className: "EnvironmentResourceProperties", + modelProperties: { + ...ResourceProperties.type.modelProperties, dataAccessId: { readOnly: true, - serializedName: "properties.dataAccessId", + serializedName: "dataAccessId", type: { name: "Uuid" } }, dataAccessFqdn: { readOnly: true, - serializedName: "properties.dataAccessFqdn", + serializedName: "dataAccessFqdn", type: { name: "String" } }, status: { - serializedName: "properties.status", + serializedName: "status", type: { name: "Composite", className: "EnvironmentStatus" @@ -510,22 +1026,39 @@ export const EnvironmentResource: msRest.CompositeMapper = { } }; -export const EnvironmentListResponse: msRest.CompositeMapper = { - serializedName: "EnvironmentListResponse", +export const LocalTimestampTimeZoneOffset: msRest.CompositeMapper = { + serializedName: "LocalTimestamp_timeZoneOffset", type: { name: "Composite", - className: "EnvironmentListResponse", + className: "LocalTimestampTimeZoneOffset", modelProperties: { - value: { - serializedName: "value", + propertyName: { + serializedName: "propertyName", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EnvironmentResource" - } - } + name: "String" + } + } + } + } +}; + +export const LocalTimestamp: msRest.CompositeMapper = { + serializedName: "LocalTimestamp", + type: { + name: "Composite", + className: "LocalTimestamp", + modelProperties: { + format: { + serializedName: "format", + type: { + name: "String" + } + }, + timeZoneOffset: { + serializedName: "timeZoneOffset", + type: { + name: "Composite", + className: "LocalTimestampTimeZoneOffset" } } } @@ -540,10 +1073,17 @@ export const EventSourceCreateOrUpdateParameters: msRest.CompositeMapper = { serializedName: "kind", clientName: "kind" }, - uberParent: "CreateOrUpdateTrackedResourceProperties", + uberParent: "EventSourceCreateOrUpdateParameters", className: "EventSourceCreateOrUpdateParameters", modelProperties: { ...CreateOrUpdateTrackedResourceProperties.type.modelProperties, + localTimestamp: { + serializedName: "localTimestamp", + type: { + name: "Composite", + className: "LocalTimestamp" + } + }, kind: { required: true, serializedName: "kind", @@ -559,21 +1099,15 @@ export const EventHubEventSourceCreateOrUpdateParameters: msRest.CompositeMapper serializedName: "Microsoft.EventHub", type: { name: "Composite", + polymorphicDiscriminator: EventSourceCreateOrUpdateParameters.type.polymorphicDiscriminator, + uberParent: "EventSourceCreateOrUpdateParameters", className: "EventHubEventSourceCreateOrUpdateParameters", modelProperties: { ...EventSourceCreateOrUpdateParameters.type.modelProperties, provisioningState: { serializedName: "properties.provisioningState", type: { - name: "Enum", - allowedValues: [ - "Accepted", - "Creating", - "Updating", - "Succeeded", - "Failed", - "Deleting" - ] + name: "String" } }, creationTime: { @@ -589,6 +1123,25 @@ export const EventHubEventSourceCreateOrUpdateParameters: msRest.CompositeMapper name: "String" } }, + eventHubEventSourceCreateOrUpdateParametersLocalTimestamp: { + serializedName: "properties.localTimestamp", + type: { + name: "Composite", + className: "LocalTimestamp" + } + }, + type: { + serializedName: "properties.ingressStartAt.type", + type: { + name: "String" + } + }, + time: { + serializedName: "properties.ingressStartAt.time", + type: { + name: "String" + } + }, eventSourceResourceId: { required: true, serializedName: "properties.eventSourceResourceId", @@ -639,21 +1192,15 @@ export const IoTHubEventSourceCreateOrUpdateParameters: msRest.CompositeMapper = serializedName: "Microsoft.IoTHub", type: { name: "Composite", + polymorphicDiscriminator: EventSourceCreateOrUpdateParameters.type.polymorphicDiscriminator, + uberParent: "EventSourceCreateOrUpdateParameters", className: "IoTHubEventSourceCreateOrUpdateParameters", modelProperties: { ...EventSourceCreateOrUpdateParameters.type.modelProperties, provisioningState: { serializedName: "properties.provisioningState", type: { - name: "Enum", - allowedValues: [ - "Accepted", - "Creating", - "Updating", - "Succeeded", - "Failed", - "Deleting" - ] + name: "String" } }, creationTime: { @@ -669,6 +1216,25 @@ export const IoTHubEventSourceCreateOrUpdateParameters: msRest.CompositeMapper = name: "String" } }, + ioTHubEventSourceCreateOrUpdateParametersLocalTimestamp: { + serializedName: "properties.localTimestamp", + type: { + name: "Composite", + className: "LocalTimestamp" + } + }, + type: { + serializedName: "properties.ingressStartAt.type", + type: { + name: "String" + } + }, + time: { + serializedName: "properties.ingressStartAt.time", + type: { + name: "String" + } + }, eventSourceResourceId: { required: true, serializedName: "properties.eventSourceResourceId", @@ -712,6 +1278,11 @@ export const EventSourceUpdateParameters: msRest.CompositeMapper = { serializedName: "EventSourceUpdateParameters", type: { name: "Composite", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind" + }, + uberParent: "EventSourceUpdateParameters", className: "EventSourceUpdateParameters", modelProperties: { tags: { @@ -724,15 +1295,24 @@ export const EventSourceUpdateParameters: msRest.CompositeMapper = { } } } + }, + kind: { + required: true, + serializedName: "kind", + type: { + name: "String" + } } } } }; export const EventHubEventSourceUpdateParameters: msRest.CompositeMapper = { - serializedName: "EventHubEventSourceUpdateParameters", + serializedName: "Microsoft.EventHub", type: { name: "Composite", + polymorphicDiscriminator: EventSourceUpdateParameters.type.polymorphicDiscriminator, + uberParent: "EventSourceUpdateParameters", className: "EventHubEventSourceUpdateParameters", modelProperties: { ...EventSourceUpdateParameters.type.modelProperties, @@ -742,13 +1322,6 @@ export const EventHubEventSourceUpdateParameters: msRest.CompositeMapper = { name: "String" } }, - localTimestamp: { - serializedName: "properties.localTimestamp", - type: { - name: "Composite", - className: "LocalTimestamp" - } - }, sharedAccessKey: { serializedName: "properties.sharedAccessKey", type: { @@ -760,9 +1333,11 @@ export const EventHubEventSourceUpdateParameters: msRest.CompositeMapper = { }; export const IoTHubEventSourceUpdateParameters: msRest.CompositeMapper = { - serializedName: "IoTHubEventSourceUpdateParameters", + serializedName: "Microsoft.IoTHub", type: { name: "Composite", + polymorphicDiscriminator: EventSourceUpdateParameters.type.polymorphicDiscriminator, + uberParent: "EventSourceUpdateParameters", className: "IoTHubEventSourceUpdateParameters", modelProperties: { ...EventSourceUpdateParameters.type.modelProperties, @@ -772,13 +1347,6 @@ export const IoTHubEventSourceUpdateParameters: msRest.CompositeMapper = { name: "String" } }, - localTimestamp: { - serializedName: "properties.localTimestamp", - type: { - name: "Composite", - className: "LocalTimestamp" - } - }, sharedAccessKey: { serializedName: "properties.sharedAccessKey", type: { @@ -797,7 +1365,7 @@ export const EventSourceResource: msRest.CompositeMapper = { serializedName: "kind", clientName: "kind" }, - uberParent: "BaseResource", + uberParent: "EventSourceResource", className: "EventSourceResource", modelProperties: { ...TrackedResource.type.modelProperties, @@ -838,21 +1406,15 @@ export const EventHubEventSourceResource: msRest.CompositeMapper = { serializedName: "Microsoft.EventHub", type: { name: "Composite", + polymorphicDiscriminator: EventSourceResource.type.polymorphicDiscriminator, + uberParent: "EventSourceResource", className: "EventHubEventSourceResource", modelProperties: { ...EventSourceResource.type.modelProperties, provisioningState: { serializedName: "properties.provisioningState", type: { - name: "Enum", - allowedValues: [ - "Accepted", - "Creating", - "Updating", - "Succeeded", - "Failed", - "Deleting" - ] + name: "String" } }, creationTime: { @@ -868,6 +1430,25 @@ export const EventHubEventSourceResource: msRest.CompositeMapper = { name: "String" } }, + localTimestamp: { + serializedName: "properties.localTimestamp", + type: { + name: "Composite", + className: "LocalTimestamp" + } + }, + eventHubEventSourceResourceType: { + serializedName: "properties.ingressStartAt.type", + type: { + name: "String" + } + }, + time: { + serializedName: "properties.ingressStartAt.time", + type: { + name: "String" + } + }, eventSourceResourceId: { required: true, serializedName: "properties.eventSourceResourceId", @@ -908,24 +1489,18 @@ export const EventHubEventSourceResource: msRest.CompositeMapper = { }; export const IoTHubEventSourceResource: msRest.CompositeMapper = { - serializedName: "Microsoft.IotHub", + serializedName: "Microsoft.IoTHub", type: { name: "Composite", + polymorphicDiscriminator: EventSourceResource.type.polymorphicDiscriminator, + uberParent: "EventSourceResource", className: "IoTHubEventSourceResource", modelProperties: { ...EventSourceResource.type.modelProperties, provisioningState: { serializedName: "properties.provisioningState", type: { - name: "Enum", - allowedValues: [ - "Accepted", - "Creating", - "Updating", - "Succeeded", - "Failed", - "Deleting" - ] + name: "String" } }, creationTime: { @@ -941,6 +1516,25 @@ export const IoTHubEventSourceResource: msRest.CompositeMapper = { name: "String" } }, + localTimestamp: { + serializedName: "properties.localTimestamp", + type: { + name: "Composite", + className: "LocalTimestamp" + } + }, + ioTHubEventSourceResourceType: { + serializedName: "properties.ingressStartAt.type", + type: { + name: "String" + } + }, + time: { + serializedName: "properties.ingressStartAt.time", + type: { + name: "String" + } + }, eventSourceResourceId: { required: true, serializedName: "properties.eventSourceResourceId", @@ -985,6 +1579,25 @@ export const EventSourceCommonProperties: msRest.CompositeMapper = { type: { name: "String" } + }, + localTimestamp: { + serializedName: "localTimestamp", + type: { + name: "Composite", + className: "LocalTimestamp" + } + }, + type: { + serializedName: "ingressStartAt.type", + type: { + name: "String" + } + }, + time: { + serializedName: "ingressStartAt.time", + type: { + name: "String" + } } } } @@ -1079,50 +1692,6 @@ export const IoTHubEventSourceCommonProperties: msRest.CompositeMapper = { } }; -export const LocalTimestampTimeZoneOffset: msRest.CompositeMapper = { - serializedName: "LocalTimestamp_timeZoneOffset", - type: { - name: "Composite", - className: "LocalTimestampTimeZoneOffset", - modelProperties: { - propertyName: { - serializedName: "propertyName", - type: { - name: "String" - } - } - } - } -}; - -export const LocalTimestamp: msRest.CompositeMapper = { - serializedName: "LocalTimestamp", - type: { - name: "Composite", - className: "LocalTimestamp", - modelProperties: { - format: { - serializedName: "format", - type: { - name: "Enum", - allowedValues: [ - "Embedded", - "Iana", - "TimeSpan" - ] - } - }, - timeZoneOffset: { - serializedName: "timeZoneOffset", - type: { - name: "Composite", - className: "LocalTimestampTimeZoneOffset" - } - } - } - } -}; - export const EventSourceMutableProperties: msRest.CompositeMapper = { serializedName: "EventSourceMutableProperties", type: { @@ -1134,13 +1703,6 @@ export const EventSourceMutableProperties: msRest.CompositeMapper = { type: { name: "String" } - }, - localTimestamp: { - serializedName: "localTimestamp", - type: { - name: "Composite", - className: "LocalTimestamp" - } } } } @@ -1161,13 +1723,7 @@ export const ReferenceDataSetKeyProperty: msRest.CompositeMapper = { type: { serializedName: "type", type: { - name: "Enum", - allowedValues: [ - "String", - "Double", - "Bool", - "DateTime" - ] + name: "String" } } } @@ -1197,11 +1753,7 @@ export const ReferenceDataSetCreateOrUpdateParameters: msRest.CompositeMapper = dataStringComparisonBehavior: { serializedName: "properties.dataStringComparisonBehavior", type: { - name: "Enum", - allowedValues: [ - "Ordinal", - "OrdinalIgnoreCase" - ] + name: "String" } } } @@ -1252,25 +1804,13 @@ export const ReferenceDataSetResource: msRest.CompositeMapper = { dataStringComparisonBehavior: { serializedName: "properties.dataStringComparisonBehavior", type: { - name: "Enum", - allowedValues: [ - "Ordinal", - "OrdinalIgnoreCase" - ] + name: "String" } }, provisioningState: { serializedName: "properties.provisioningState", type: { - name: "Enum", - allowedValues: [ - "Accepted", - "Creating", - "Updating", - "Succeeded", - "Failed", - "Deleting" - ] + name: "String" } }, creationTime: { @@ -1330,11 +1870,7 @@ export const AccessPolicyCreateOrUpdateParameters: msRest.CompositeMapper = { name: "Sequence", element: { type: { - name: "Enum", - allowedValues: [ - "Reader", - "Contributor" - ] + name: "String" } } } @@ -1361,11 +1897,7 @@ export const AccessPolicyUpdateParameters: msRest.CompositeMapper = { name: "Sequence", element: { type: { - name: "Enum", - allowedValues: [ - "Reader", - "Contributor" - ] + name: "String" } } } @@ -1399,11 +1931,7 @@ export const AccessPolicyResource: msRest.CompositeMapper = { name: "Sequence", element: { type: { - name: "Enum", - allowedValues: [ - "Reader", - "Contributor" - ] + name: "String" } } } @@ -1465,11 +1993,23 @@ export const OperationListResult: msRest.CompositeMapper = { }; export const discriminators = { - 'CreateOrUpdateTrackedResourceProperties.EventSourceCreateOrUpdateParameters' : EventSourceCreateOrUpdateParameters, - 'CreateOrUpdateTrackedResourceProperties.Microsoft.EventHub' : EventHubEventSourceCreateOrUpdateParameters, - 'CreateOrUpdateTrackedResourceProperties.Microsoft.IoTHub' : IoTHubEventSourceCreateOrUpdateParameters, - 'BaseResource.EventSourceResource' : EventSourceResource, - 'BaseResource.Microsoft.EventHub' : EventHubEventSourceResource, - 'BaseResource.Microsoft.IotHub' : IoTHubEventSourceResource + 'EnvironmentCreateOrUpdateParameters' : EnvironmentCreateOrUpdateParameters, + 'EnvironmentCreateOrUpdateParameters.Gen1' : Gen1EnvironmentCreateOrUpdateParameters, + 'EnvironmentCreateOrUpdateParameters.Gen2' : Gen2EnvironmentCreateOrUpdateParameters, + 'EnvironmentUpdateParameters' : EnvironmentUpdateParameters, + 'EnvironmentUpdateParameters.Gen1' : Gen1EnvironmentUpdateParameters, + 'EnvironmentUpdateParameters.Gen2' : Gen2EnvironmentUpdateParameters, + 'EnvironmentResource' : EnvironmentResource, + 'EnvironmentResource.Gen1' : Gen1EnvironmentResource, + 'EnvironmentResource.Gen2' : Gen2EnvironmentResource, + 'EventSourceCreateOrUpdateParameters' : EventSourceCreateOrUpdateParameters, + 'EventSourceCreateOrUpdateParameters.Microsoft.EventHub' : EventHubEventSourceCreateOrUpdateParameters, + 'EventSourceCreateOrUpdateParameters.Microsoft.IoTHub' : IoTHubEventSourceCreateOrUpdateParameters, + 'EventSourceUpdateParameters' : EventSourceUpdateParameters, + 'EventSourceUpdateParameters.Microsoft.EventHub' : EventHubEventSourceUpdateParameters, + 'EventSourceUpdateParameters.Microsoft.IoTHub' : IoTHubEventSourceUpdateParameters, + 'EventSourceResource' : EventSourceResource, + 'EventSourceResource.Microsoft.EventHub' : EventHubEventSourceResource, + 'EventSourceResource.Microsoft.IoTHub' : IoTHubEventSourceResource }; diff --git a/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/operationsMappers.ts b/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/operationsMappers.ts index 65fc7dd1800a..7173e2885911 100644 --- a/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/operationsMappers.ts +++ b/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/operationsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -9,7 +9,12 @@ export { discriminators, CloudError, + Dimension, + LogSpecification, + MetricAvailability, + MetricSpecification, Operation, OperationDisplay, - OperationListResult + OperationListResult, + ServiceSpecification } from "../models/mappers"; diff --git a/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/parameters.ts b/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/parameters.ts index eda54e0771b8..a0358a465cea 100644 --- a/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/parameters.ts +++ b/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/referenceDataSetsMappers.ts b/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/referenceDataSetsMappers.ts index 26490d10e27f..156b839cb359 100644 --- a/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/referenceDataSetsMappers.ts +++ b/sdk/timeseriesinsights/arm-timeseriesinsights/src/models/referenceDataSetsMappers.ts @@ -1,6 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. @@ -20,10 +20,17 @@ export { EventHubEventSourceResource, EventSourceCreateOrUpdateParameters, EventSourceResource, + Gen1EnvironmentCreateOrUpdateParameters, + Gen1EnvironmentResource, + Gen2EnvironmentCreateOrUpdateParameters, + Gen2EnvironmentResource, + Gen2StorageConfigurationInput, + Gen2StorageConfigurationOutput, IngressEnvironmentStatus, IoTHubEventSourceCreateOrUpdateParameters, IoTHubEventSourceResource, - PartitionKeyProperty, + LocalTimestamp, + LocalTimestampTimeZoneOffset, ReferenceDataSetCreateOrUpdateParameters, ReferenceDataSetKeyProperty, ReferenceDataSetListResponse, @@ -31,5 +38,8 @@ export { ReferenceDataSetUpdateParameters, Resource, Sku, - TrackedResource + TimeSeriesIdProperty, + TrackedResource, + WarmStorageEnvironmentStatus, + WarmStoreConfigurationProperties } from "../models/mappers"; diff --git a/sdk/timeseriesinsights/arm-timeseriesinsights/src/operations/accessPolicies.ts b/sdk/timeseriesinsights/arm-timeseriesinsights/src/operations/accessPolicies.ts index 801834bf6530..5a5f91367ba8 100644 --- a/sdk/timeseriesinsights/arm-timeseriesinsights/src/operations/accessPolicies.ts +++ b/sdk/timeseriesinsights/arm-timeseriesinsights/src/operations/accessPolicies.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/timeseriesinsights/arm-timeseriesinsights/src/operations/environments.ts b/sdk/timeseriesinsights/arm-timeseriesinsights/src/operations/environments.ts index 375c717d8539..bd0259123c76 100644 --- a/sdk/timeseriesinsights/arm-timeseriesinsights/src/operations/environments.ts +++ b/sdk/timeseriesinsights/arm-timeseriesinsights/src/operations/environments.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -35,7 +34,7 @@ export class Environments { * @param [options] The optional parameters * @returns Promise */ - createOrUpdate(resourceGroupName: string, environmentName: string, parameters: Models.EnvironmentCreateOrUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + createOrUpdate(resourceGroupName: string, environmentName: string, parameters: Models.EnvironmentCreateOrUpdateParametersUnion, options?: msRest.RequestOptionsBase): Promise { return this.beginCreateOrUpdate(resourceGroupName,environmentName,parameters,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } @@ -55,7 +54,7 @@ export class Environments { * specified resource group. * @param callback The callback */ - get(resourceGroupName: string, environmentName: string, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, environmentName: string, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of an Azure Resource group. * @param environmentName The name of the Time Series Insights environment associated with the @@ -63,8 +62,8 @@ export class Environments { * @param options The optional parameters * @param callback The callback */ - get(resourceGroupName: string, environmentName: string, options: Models.EnvironmentsGetOptionalParams, callback: msRest.ServiceCallback): void; - get(resourceGroupName: string, environmentName: string, options?: Models.EnvironmentsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(resourceGroupName: string, environmentName: string, options: Models.EnvironmentsGetOptionalParams, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, environmentName: string, options?: Models.EnvironmentsGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, @@ -86,7 +85,7 @@ export class Environments { * @param [options] The optional parameters * @returns Promise */ - update(resourceGroupName: string, environmentName: string, environmentUpdateParameters: Models.EnvironmentUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + update(resourceGroupName: string, environmentName: string, environmentUpdateParameters: Models.EnvironmentUpdateParametersUnion, options?: msRest.RequestOptionsBase): Promise { return this.beginUpdate(resourceGroupName,environmentName,environmentUpdateParameters,options) .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } @@ -188,7 +187,7 @@ export class Environments { * @param [options] The optional parameters * @returns Promise */ - beginCreateOrUpdate(resourceGroupName: string, environmentName: string, parameters: Models.EnvironmentCreateOrUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + beginCreateOrUpdate(resourceGroupName: string, environmentName: string, parameters: Models.EnvironmentCreateOrUpdateParametersUnion, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, @@ -211,7 +210,7 @@ export class Environments { * @param [options] The optional parameters * @returns Promise */ - beginUpdate(resourceGroupName: string, environmentName: string, environmentUpdateParameters: Models.EnvironmentUpdateParameters, options?: msRest.RequestOptionsBase): Promise { + beginUpdate(resourceGroupName: string, environmentName: string, environmentUpdateParameters: Models.EnvironmentUpdateParametersUnion, options?: msRest.RequestOptionsBase): Promise { return this.client.sendLRORequest( { resourceGroupName, diff --git a/sdk/timeseriesinsights/arm-timeseriesinsights/src/operations/eventSources.ts b/sdk/timeseriesinsights/arm-timeseriesinsights/src/operations/eventSources.ts index dfef5b520b67..affc8c1eb4fe 100644 --- a/sdk/timeseriesinsights/arm-timeseriesinsights/src/operations/eventSources.ts +++ b/sdk/timeseriesinsights/arm-timeseriesinsights/src/operations/eventSources.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -124,7 +123,7 @@ export class EventSources { * @param [options] The optional parameters * @returns Promise */ - update(resourceGroupName: string, environmentName: string, eventSourceName: string, eventSourceUpdateParameters: Models.EventSourceUpdateParameters, options?: msRest.RequestOptionsBase): Promise; + update(resourceGroupName: string, environmentName: string, eventSourceName: string, eventSourceUpdateParameters: Models.EventSourceUpdateParametersUnion, options?: msRest.RequestOptionsBase): Promise; /** * @param resourceGroupName Name of an Azure Resource group. * @param environmentName The name of the Time Series Insights environment associated with the @@ -135,7 +134,7 @@ export class EventSources { * event source. * @param callback The callback */ - update(resourceGroupName: string, environmentName: string, eventSourceName: string, eventSourceUpdateParameters: Models.EventSourceUpdateParameters, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, environmentName: string, eventSourceName: string, eventSourceUpdateParameters: Models.EventSourceUpdateParametersUnion, callback: msRest.ServiceCallback): void; /** * @param resourceGroupName Name of an Azure Resource group. * @param environmentName The name of the Time Series Insights environment associated with the @@ -147,8 +146,8 @@ export class EventSources { * @param options The optional parameters * @param callback The callback */ - update(resourceGroupName: string, environmentName: string, eventSourceName: string, eventSourceUpdateParameters: Models.EventSourceUpdateParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(resourceGroupName: string, environmentName: string, eventSourceName: string, eventSourceUpdateParameters: Models.EventSourceUpdateParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update(resourceGroupName: string, environmentName: string, eventSourceName: string, eventSourceUpdateParameters: Models.EventSourceUpdateParametersUnion, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(resourceGroupName: string, environmentName: string, eventSourceName: string, eventSourceUpdateParameters: Models.EventSourceUpdateParametersUnion, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { resourceGroupName, diff --git a/sdk/timeseriesinsights/arm-timeseriesinsights/src/operations/index.ts b/sdk/timeseriesinsights/arm-timeseriesinsights/src/operations/index.ts index 2ad013779b5f..427fd275ab86 100644 --- a/sdk/timeseriesinsights/arm-timeseriesinsights/src/operations/index.ts +++ b/sdk/timeseriesinsights/arm-timeseriesinsights/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/timeseriesinsights/arm-timeseriesinsights/src/operations/operations.ts b/sdk/timeseriesinsights/arm-timeseriesinsights/src/operations/operations.ts index 966ed9c30e3d..31893278a76d 100644 --- a/sdk/timeseriesinsights/arm-timeseriesinsights/src/operations/operations.ts +++ b/sdk/timeseriesinsights/arm-timeseriesinsights/src/operations/operations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -108,6 +107,9 @@ const listNextOperationSpec: msRest.OperationSpec = { urlParameters: [ Parameters.nextPageLink ], + queryParameters: [ + Parameters.apiVersion + ], headerParameters: [ Parameters.acceptLanguage ], diff --git a/sdk/timeseriesinsights/arm-timeseriesinsights/src/operations/referenceDataSets.ts b/sdk/timeseriesinsights/arm-timeseriesinsights/src/operations/referenceDataSets.ts index 274c8d939f1b..e1e4195875e3 100644 --- a/sdk/timeseriesinsights/arm-timeseriesinsights/src/operations/referenceDataSets.ts +++ b/sdk/timeseriesinsights/arm-timeseriesinsights/src/operations/referenceDataSets.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/timeseriesinsights/arm-timeseriesinsights/src/timeSeriesInsightsClient.ts b/sdk/timeseriesinsights/arm-timeseriesinsights/src/timeSeriesInsightsClient.ts index 92bd53330bd6..037a5711748b 100644 --- a/sdk/timeseriesinsights/arm-timeseriesinsights/src/timeSeriesInsightsClient.ts +++ b/sdk/timeseriesinsights/arm-timeseriesinsights/src/timeSeriesInsightsClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is diff --git a/sdk/timeseriesinsights/arm-timeseriesinsights/src/timeSeriesInsightsClientContext.ts b/sdk/timeseriesinsights/arm-timeseriesinsights/src/timeSeriesInsightsClientContext.ts index 7a3cc5a196fb..94ca2380e4ef 100644 --- a/sdk/timeseriesinsights/arm-timeseriesinsights/src/timeSeriesInsightsClientContext.ts +++ b/sdk/timeseriesinsights/arm-timeseriesinsights/src/timeSeriesInsightsClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is @@ -10,8 +9,8 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; -import { TokenCredential } from "@azure/core-auth"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-timeseriesinsights"; const packageVersion = "1.3.0"; @@ -43,14 +42,14 @@ export class TimeSeriesInsightsClientContext extends msRestAzure.AzureServiceCli if (!options) { options = {}; } - if(!options.userAgent) { + if (!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } super(credentials, options); - this.apiVersion = '2017-11-15'; + this.apiVersion = '2020-05-15'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com"; @@ -58,10 +57,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; } }