diff --git a/README.md b/README.md index 09a69c4..bee5f23 100644 --- a/README.md +++ b/README.md @@ -10,20 +10,20 @@ urlFragment: Azure-Time-Series-Insights # Azure Time Series Insights Samples -[![TSI: GA](https://img.shields.io/badge/TSI-GA-blue.svg)](https://docs.microsoft.com/azure/time-series-insights/time-series-insights-overview) [![TSI: Preview](https://img.shields.io/badge/TSI-Preview-blue.svg)](https://docs.microsoft.com/azure/time-series-insights/time-series-insights-update-overview) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Contribute](https://img.shields.io/badge/PR%27s-welcome-brightgreen.svg)](CONTRIBUTING.md) +[![TSI: Gen1](https://img.shields.io/badge/TSI-Gen1-blue.svg)](https://docs.microsoft.com/azure/time-series-insights/time-series-insights-overview) [![TSI: Gen2](https://img.shields.io/badge/TSI-Gen2-blue.svg)](https://docs.microsoft.com/azure/time-series-insights/overview-what-is-tsi) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Contribute](https://img.shields.io/badge/PR%27s-welcome-brightgreen.svg)](CONTRIBUTING.md) These are samples that use the [Azure Time Series Insights](https://azure.microsoft.com/services/time-series-insights/) data plane APIs. ## Samples -### TSI Preview -* [C# Sample App](https://github.com/Azure-Samples/Azure-Time-Series-Insights/tree/master/csharp-tsi-preview-sample) +### TSI Gen2 +* [C# Sample App](https://github.com/Azure-Samples/Azure-Time-Series-Insights/tree/master/gen2-sample/csharp-tsi-gen2-sample) -### TSI General Availability +### TSI Gen1 -* [C# Sample App](https://github.com/Azure-Samples/Azure-Time-Series-Insights/tree/master/csharp-tsi-ga-sample) -* [C# Sample App using MSAL.NET](https://github.com/Azure-Samples/Azure-Time-Series-Insights/tree/master/csharp-tsi-msal-ga-sample) -* [JavaScript Sample App](https://github.com/Azure-Samples/Azure-Time-Series-Insights/tree/master/javascript-tsi-ga-sample) +* [C# Sample App](https://github.com/Azure-Samples/Azure-Time-Series-Insights/tree/master/gen1-sample/csharp-tsi-gen1-sample) +* [C# Sample App using MSAL.NET](https://github.com/Azure-Samples/Azure-Time-Series-Insights/tree/master/gen1-sample/csharp-tsi-gen1-msal-sample) +* [JavaScript Sample App](https://github.com/Azure-Samples/Azure-Time-Series-Insights/tree/master/gen1-sample/javascript-tsi-gen1-sample) * [JavaScript Hosted Samples](https://tsiclientsample.azurewebsites.net/) ## Getting Started @@ -32,13 +32,13 @@ To get started, refer to the README.md and the [Authentication and authorization ## Documentation -* [Product documentation](https://docs.microsoft.com/azure/time-series-insights/) and [Reference documentation](https://docs.microsoft.com/rest/api/time-series-insights/) are available for both Azure Time Series Insights General Availability and Preview. +* [Product documentation](https://docs.microsoft.com/azure/time-series-insights/) and [Reference documentation](https://docs.microsoft.com/rest/api/time-series-insights/) are available for Azure Time Series Insights Gen1 and Gen2. ## Resources * See the [TSI JavaScript Client SDK API Reference](https://github.com/microsoft/tsiclient/blob/master/docs/API.md) and [hosted samples](https://tsiclientsample.azurewebsites.net/). * See how to build apps in C# with minimal dependencies: - * [Query Data in General Availability Environments](https://docs.microsoft.com/azure/time-series-insights/time-series-insights-query-data-csharp) - * [Query Data in Preview Environments](https://docs.microsoft.com/azure/time-series-insights/time-series-insights-update-query-data-csharp) - * [Manage Reference Data in General Availability Environment](https://docs.microsoft.com/azure/time-series-insights/time-series-insights-manage-reference-data-csharp) + * [Query Data in Gen1 Environments](https://docs.microsoft.com/azure/time-series-insights/time-series-insights-query-data-csharp) + * [Query Data in Gen2 Environments](https://docs.microsoft.com/azure/time-series-insights/time-series-insights-update-query-data-csharp) + * [Manage Reference Data in Gen1 Environment](https://docs.microsoft.com/azure/time-series-insights/time-series-insights-manage-reference-data-csharp) diff --git a/csharp-tsi-preview-sample/DataPlaneClient/App.config b/csharp-tsi-preview-sample/DataPlaneClient/App.config deleted file mode 100644 index d4a69cf..0000000 --- a/csharp-tsi-preview-sample/DataPlaneClient/App.config +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Readme.md b/csharp-tsi-preview-sample/DataPlaneClient/Readme.md deleted file mode 100644 index 90be867..0000000 --- a/csharp-tsi-preview-sample/DataPlaneClient/Readme.md +++ /dev/null @@ -1,15 +0,0 @@ -# Time Series Insights (Preview) - Data Plane Client - -The [Generated](Generated/) folder contains an example client for Time Series Insights (Preview). - -## Instructions - -1. Update [timeseriesinsights.json](https://github.com/Azure/azure-rest-api-specs/tree/master/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json) as needed. - -1. Run `GenerateCode.bat` to generate the new client. - -This will generate the necessary Azure Time Series Insight dependencies to compile the DataPlaneClientSampleApp. - -## See also - -See [Readme](azure-rest-api-specs/specification/timeseriesinsights/data-plane/readme.md) for more details on generation. diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage1.json b/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage1.json deleted file mode 100644 index 1b1b9c3..0000000 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage1.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "parameters": { - "api-version": "2018-11-01-preview", - "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", - "parameters": { - "searchString": "floor 100" - } - }, - "responses": { - "200": { - "body": { - "instances": [ - { - "timeSeriesId": [ - "006dfc2d-0324-4937-998c-d16f3b4f1952", - "T1" - ], - "highlights": { - "timeSeriesIds": [ - "006dfc2d-0324-4937-998c-d16f3b4f1952", - "T1" - ], - "type": "DefaultType", - "name": "instance1", - "description": "floor 100", - "hierarchyIds": [ - "1643004c-0a84-48a5-80e5-7688c5ae9295" - ], - "instanceFieldNames": [ - "state", - "city" - ], - "instanceFieldValues": [ - "California", - "Los Angeles" - ] - } - } - ], - "instancesContinuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=" - } - } - } -} \ No newline at end of file diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage2.json b/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage2.json deleted file mode 100644 index 0dc8584..0000000 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage2.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "parameters": { - "api-version": "2018-11-01-preview", - "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", - "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", - "parameters": { - "searchString": "floor 100" - } - }, - "responses": { - "200": { - "body": { - "instances": [ - { - "timeSeriesId": [ - "18672e3d-2beb-4007-9846-042b09ef3c72", - "T1" - ], - "highlights": { - "timeSeriesIds": [ - "18672e3d-2beb-4007-9846-042b09ef3c72", - "T1" - ], - "type": "DefaultType", - "name": "instance1", - "description": "floor 100", - "hierarchyIds": [ - "1643004c-0a84-48a5-80e5-7688c5ae9295" - ], - "instanceFieldNames": [ - "state", - "city" - ], - "instanceFieldValues": [ - "California", - "Los Angeles" - ] - } - } - ], - "instancesContinuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=" - } - } - } -} \ No newline at end of file diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage3.json b/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage3.json deleted file mode 100644 index a6f82d0..0000000 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSearchPage3.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "parameters": { - "api-version": "2018-11-01-preview", - "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", - "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", - "parameters": { - "searchString": "floor 100" - } - }, - "responses": { - "200": { - "body": { - "instances": [] - } - } - } -} \ No newline at end of file diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesWithCategoricalInterpolatedVariable.json b/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesWithCategoricalInterpolatedVariable.json deleted file mode 100644 index 2dd30b2..0000000 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesWithCategoricalInterpolatedVariable.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "parameters": { - "api-version": "2018-11-01-preview", - "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", - "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", - "parameters": { - "aggregateSeries": { - "searchSpan": { - "from": "2019-10-10T23:41:04.021Z", - "to": "2019-10-10T23:42:22.846Z" - }, - "timeSeriesId": [ "Sensor_58" ], - "interval": "PT2S", - "inlineVariables": { - "Status_String": { - "kind": "categorical", - "value": { "tsx": "$event.[Status].String" }, - "interpolation": { - "kind": "Step", - "boundary": { "span": "PT5S" } - }, - "categories": [ - { - "label": "Good", - "values": [ "Good", "Very Good", "Excellent" ] - }, - { - "label": "Bad", - "values": [ "Bad", "OK" ] - }, - { - "label": "Other", - "values": [ "Other" ] - } - ], - "defaultCategory": { "label": "Unknown" } - }, - "Status_Long": { - "kind": "categorical", - "value": { "tsx": "tolong($event.[Status].Double)" }, - "interpolation": { - "kind": "Step", - "boundary": { "span": "PT5S" } - }, - "categories": [ - { - "label": "Good", - "values": [ 0, 1, 2 ] - }, - { - "label": "Bad", - "values": [ 3, 4 ] - }, - { - "label": "Other", - "values": [ 5 ] - } - ], - "defaultCategory": { "label": "Unknown" } - } - }, - "projectedVariables": [ "Status_String", "Status_Long" ] - } - } - }, - "responses": { - "200": { - "body": { - "timestamps": [ "2019-10-10T23:41:04Z", "2019-10-10T23:41:06Z", "2019-10-10T23:41:08Z", "2019-10-10T23:41:10Z", "2019-10-10T23:41:12Z", "2019-10-10T23:41:14Z", "2019-10-10T23:41:16Z", "2019-10-10T23:41:18Z", "2019-10-10T23:41:20Z", "2019-10-10T23:41:22Z"], - "properties": [ - { - "values": [ 0.203, 0.141, 0.268, 0.398, 0.402, 0.047, 0.1245, 0.75, 0.206, 0.2635], - "name": "Status_String[Good]", - "type": "Double" - }, - { - "values": [ 0.266, 0.1955, 0.242, 0.148, 0.25, 0.055, 0.6295, 0.109, 0.41, 0.2125], - "name": "Status_String[Bad]", - "type": "Double" - }, - { - "values": [ 0.5205, 0.6635, 0.49, 0.454, 0.348, 0.898, 0.246, 0.141, 0.384, 0.524], - "name": "Status_String[Other]", - "type": "Double" - }, - { - "values": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], - "name": "Status_String[Unknown]", - "type": "Double" - }, - { - "values": [ 0.203, 0.141, 0.268, 0.398, 0.402, 0.047, 0.1245, 0.75, 0.206, 0.2635], - "name": "Status_Long[Good]", - "type": "Double" - }, - { - "values": [ 0.266, 0.1955, 0.242, 0.148, 0.25, 0.055, 0.6295, 0.109, 0.41, 0.2125], - "name": "Status_Long[Bad]", - "type": "Double" - }, - { - "values": [ 0.5205, 0.6635, 0.49, 0.454, 0.348, 0.898, 0.246, 0.141, 0.384, 0.524], - "name": "Status_Long[Other]", - "type": "Double" - }, - { - "values": [ 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], - "name": "Status_Long[Unknown]", - "type": "Double" - } - ], - "progress": 100.0 - } - } - } -} diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesWithCategoricalVariable.json b/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesWithCategoricalVariable.json deleted file mode 100644 index 7d37d0d..0000000 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesWithCategoricalVariable.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "parameters": { - "api-version": "2018-11-01-preview", - "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", - "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", - "parameters": { - "aggregateSeries": { - "searchSpan": { - "from": "2019-10-10T23:42:00.000Z", - "to": "2019-10-10T23:42:20.000Z" - }, - "timeSeriesId": [ "Sensor_58" ], - "interval": "PT2S", - "inlineVariables": { - "Status_String": { - "kind": "categorical", - "value": { "tsx": "$event.[Status].String" }, - "categories": [ - { - "label": "Good", - "values": [ "Good", "Very Good", "Excellent" ] - }, - { - "label": "Bad", - "values": [ "Bad", "OK" ] - }, - { - "label": "Other", - "values": [ "Other" ] - } - ], - "defaultCategory": { "label": "Unknown" } - }, - "Status_Long": { - "kind": "categorical", - "value": { "tsx": "tolong($event.[Status].Double)" }, - "categories": [ - { - "label": "Good", - "values": [ 0, 1, 2 ] - }, - { - "label": "Bad", - "values": [ 3, 4 ] - }, - { - "label": "Other", - "values": [ 5 ] - } - ], - "defaultCategory": { "label": "Unknown" } - } - }, - "projectedVariables": [ "Status_String", "Status_Long" ] - } - } - }, - "responses": { - "200": { - "body": { - "timestamps": [ "2019-10-10T23:42:00Z", "2019-10-10T23:42:02Z", "2019-10-10T23:42:04Z", "2019-10-10T23:42:06Z", "2019-10-10T23:42:08Z", "2019-10-10T23:42:10Z", "2019-10-10T23:42:12Z", "2019-10-10T23:42:14Z", "2019-10-10T23:42:16Z", "2019-10-10T23:42:18Z" ], - "properties": [ - { - "values": [ 5, 8, 4, 6, 9, 8, 3, 6, 5, 8 ], - "name": "Status_String[Good]", - "type": "Long" - }, - { - "values": [ 4, 3, 3, 5, 5, 3, 9, 7, 7, 7 ], - "name": "Status_String[Bad]", - "type": "Long" - }, - { - "values": [ 11, 9, 13, 9, 6, 9, 8, 7, 8, 5 ], - "name": "Status_String[Other]", - "type": "Long" - }, - { - "values": [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], - "name": "Status_String[Unknown]", - "type": "Long" - }, - { - "values": [ 5, 8, 4, 6, 9, 8, 3, 6, 5, 8 ], - "name": "Status_Long[Good]", - "type": "Long" - }, - { - "values": [ 4, 3, 3, 5, 5, 3, 9, 7, 7, 7 ], - "name": "Status_Long[Bad]", - "type": "Long" - }, - { - "values": [ 11, 9, 13, 9, 6, 9, 8, 7, 8, 5 ], - "name": "Status_Long[Other]", - "type": "Long" - }, - { - "values": [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], - "name": "Status_Long[Unknown]", - "type": "Long" - } - ], - "progress": 100.0 - } - } - } -} diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/readme.md b/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/readme.md deleted file mode 100644 index 20a88ca..0000000 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/readme.md +++ /dev/null @@ -1,72 +0,0 @@ - -# TimeSeriesInsights - -> see https://aka.ms/autorest - -This is the AutoRest configuration file for Azure Time Series Insights Data Plane API. - ---- - -## Getting Started - -To build the SDK for Azure Time Series Insights Data Plane API, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: - -> `autorest` - -To see additional help and options, run: - -> `autorest --help` ---- - -## Configuration - -### Basic Information - -These are the global settings for Azure Time Series Insights Data Plane API. - -``` yaml -openapi-type: data-plane -add-credentials: true -license-header: MICROSOFT_MIT -tag: package-2018-11-01-preview -``` - -### Tag: package-2018-11-01-preview - -These settings apply only when `--tag=package-2018-11-01-preview` is specified on the command line. - -``` yaml $(tag) == 'package-2018-11-01-preview' -input-file: -- Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json -``` - -## Suppression - -``` yaml -directive: - - suppress: R2001 - reason: Adding flattening does not improve the code - array of properties is not supported by flattening. See https://github.com/Azure/oav/issues/416 -``` - -``` yaml -directive: - - suppress: R3017 - reason: GUIDs are required to enforce referential constraints and reduce number of updates. -``` - ---- -# Code Generation - -## C# - -These settings apply only when `--csharp` is specified on the command line. -Please also specify `--csharp-sdks-folder=`. - -``` yaml $(csharp) -csharp: - sync-methods: none - azure-arm: false - license-header: MICROSOFT_MIT_NO_VERSION - namespace: Microsoft.Azure.TimeSeriesInsights - output-folder: $(csharp-sdks-folder)/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated -``` diff --git a/csharp-tsi-preview-sample/DataPlaneClientSampleApp/App.config b/csharp-tsi-preview-sample/DataPlaneClientSampleApp/App.config deleted file mode 100644 index d4a69cf..0000000 --- a/csharp-tsi-preview-sample/DataPlaneClientSampleApp/App.config +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/csharp-tsi-preview-sample/DataPlaneClientSampleApp/Properties/AssemblyInfo.cs b/csharp-tsi-preview-sample/DataPlaneClientSampleApp/Properties/AssemblyInfo.cs deleted file mode 100644 index 6041984..0000000 --- a/csharp-tsi-preview-sample/DataPlaneClientSampleApp/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("DataPlaneClientSampleApp")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("DataPlaneClientSampleApp")] -[assembly: AssemblyCopyright("Copyright © 2019")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("f24742e1-1a2e-4047-82f3-b6f37a04e231")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/csharp-tsi-preview-sample/Readme.md b/csharp-tsi-preview-sample/Readme.md deleted file mode 100644 index 03fbcb4..0000000 --- a/csharp-tsi-preview-sample/Readme.md +++ /dev/null @@ -1,19 +0,0 @@ -# Azure Time Series Insights Preview - Data Plane Client Sample App - -This C# example demonstrates how to query data from the [Preview Data Access APIs](https://docs.microsoft.com/rest/api/time-series-insights/preview) in Azure Time Series Insights Preview environments as described in [Query data from the Azure Time Series Insights Preview environment using C#](https://docs.microsoft.com/azure/time-series-insights/time-series-insights-update-query-data-csharp). - -## Prerequisites - -1. [Visual Studio 2019](https://visualstudio.microsoft.com/vs/) - Version 16.4.2+ is recommended (Visual Studio 2015+). -1. Open the `TSIPreviewDataPlaneclient.sln` solution and set `DataPlaneClientSampleApp` as the default project -1. Run the [GenerateCode.bat](https://github.com/Azure-Samples/Azure-Time-Series-Insights/blob/master/csharp-tsi-preview-sample/DataPlaneClient/GenerateCode.bat) as specified in the [Readme.md](https://github.com/Azure-Samples/Azure-Time-Series-Insights/blob/master/csharp-tsi-preview-sample/DataPlaneClient/Readme.md) to generate the Time Series Insights Preview client dependencies. -1. Compile the example to an executable `.exe` file. -1. Run the `.exe` file by double-clicking on it. - -## See also - -* The [Azure Time Series Insights API reference](https://docs.microsoft.com/rest/api/time-series-insights/preview) documentation for all Preview REST APIs. - -* Follow the [Authentication and authorization](https://docs.microsoft.com/azure/time-series-insights/time-series-insights-authentication-and-authorization#summary-and-best-practices) documentation to register your application in Azure Active Directory. - -* The [TSI JS client SDK](https://github.com/microsoft/tsiclient/blob/master/docs/API.md). diff --git a/csharp-tsi-msal-ga-sample/Program.cs b/gen1-sample/csharp-tsi-gen1-msal-sample/Program.cs similarity index 97% rename from csharp-tsi-msal-ga-sample/Program.cs rename to gen1-sample/csharp-tsi-gen1-msal-sample/Program.cs index 32ee54b..e63dd66 100644 --- a/csharp-tsi-msal-ga-sample/Program.cs +++ b/gen1-sample/csharp-tsi-gen1-msal-sample/Program.cs @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. -namespace CsharpTsiMsalGaSample +namespace CsharpTsiGen1MsalSample { using Microsoft.Identity.Client; using Newtonsoft.Json; @@ -58,7 +58,7 @@ private static async Task AcquireAccessTokenAsync() return result.AccessToken; } - // System.Net.HttpClient helper to wrap HTTP POST made to the GA Reference Data API + // System.Net.HttpClient helper to wrap HTTP POST made to the Gen1 Reference Data API private static async Task AsyncHttpPostRequestHelper(HttpClient httpClient, string input) { if (EnvironmentFqdn.StartsWith("#PLACEHOLDER#") || EnvironmentReferenceDataSetName == "#PLACEHOLDER#") @@ -92,7 +92,7 @@ private static async Task AsyncHttpPostRequestHelper(HttpCl return null; } - private static async Task TsiMsalGaSample() + private static async Task TsiGen1MsalSample() { Console.WriteLine("Beginning demo..."); Console.WriteLine(""); @@ -202,7 +202,7 @@ private static async Task TsiMsalGaSample() internal static void Main(string[] args) { - Task.Run(async () => await TsiMsalGaSample()).Wait(); + Task.Run(async () => await TsiGen1MsalSample()).Wait(); } } } diff --git a/csharp-tsi-msal-ga-sample/README.md b/gen1-sample/csharp-tsi-gen1-msal-sample/README.md similarity index 78% rename from csharp-tsi-msal-ga-sample/README.md rename to gen1-sample/csharp-tsi-gen1-msal-sample/README.md index 0303910..3530944 100644 --- a/csharp-tsi-msal-ga-sample/README.md +++ b/gen1-sample/csharp-tsi-gen1-msal-sample/README.md @@ -1,11 +1,11 @@ --- -title: Query the Reference Data Management API from Azure Time Series Insights GA environments using C# and MSAL.NET -description: This sample covers how to query the Reference Data Management API from Azure Time Series Insights GA environments using C# and MSAL.NET. +title: Query the Reference Data Management API from Azure Time Series Insights Gen1 environments using C# and MSAL.NET +description: This sample covers how to query the Reference Data Management API from Azure Time Series Insights Gen1 environments using C# and MSAL.NET. --- -# Query the GA Reference Data Management API from Azure Time Series Insights using C# and MSAL.NET +# Query the Gen1 Reference Data Management API from Azure Time Series Insights using C# and MSAL.NET -This C# example demonstrates how to query the Reference Data Management API from Azure Time Series Insights GA environments using [MSAL.NET](https://github.com/AzureAD/microsoft-authentication-library-for-dotnet) as described in the [Manage GA reference data for an Azure Time Series Insights environment by using C#](https://docs.microsoft.com/azure/time-series-insights/time-series-insights-manage-reference-data-csharp) article. +This C# example demonstrates how to query the Reference Data Management API from Azure Time Series Insights Gen1 environments using [MSAL.NET](https://github.com/AzureAD/microsoft-authentication-library-for-dotnet) as described in the [Manage Gen1 reference data for an Azure Time Series Insights environment by using C#](https://docs.microsoft.com/azure/time-series-insights/time-series-insights-manage-reference-data-csharp) article. ## Recommended development environment @@ -26,7 +26,7 @@ This C# example demonstrates how to query the Reference Data Management API from This example demonstrates a few important Azure Active Directory and Azure Time Series Insights features: 1. Acquiring an access token using MSAL.NET **PublicClientApplication**. -1. Sequential CREATE, READ, UPDATE, and DELETE operations against the [GA Reference Data Management API](https://docs.microsoft.com/rest/api/time-series-insights/ga-reference-data-api). +1. Sequential CREATE, READ, UPDATE, and DELETE operations against the [Gen1 Reference Data Management API](https://docs.microsoft.com/rest/api/time-series-insights/ga-reference-data-api). 1. Common response codes including [common error codes](https://docs.microsoft.com/rest/api/time-series-insights/ga-reference-data-api#validation-and-error-handling). The Reference Data Management API processes each item individually and an error with one item does not prevent the others from successfully completing. For example, if your request has 100 items and one item has an error, then 99 items are written and one is rejected. @@ -41,7 +41,7 @@ Read [Create a reference data set for your Time Series Insights environment usin ## See also -* The [Azure Time Series Insights API reference](https://docs.microsoft.com/rest/api/time-series-insights/ga) documentation for all General Availability REST APIs. +* The [Azure Time Series Insights API reference](https://docs.microsoft.com/rest/api/time-series-insights/ga) documentation for all Gen1 REST APIs. * Follow the [Authentication and authorization](https://docs.microsoft.com/azure/time-series-insights/time-series-insights-authentication-and-authorization#summary-and-best-practices) documentation to register your application in Azure Active Directory. diff --git a/csharp-tsi-msal-ga-sample/csharp-tsi-msal-ga-sample.csproj b/gen1-sample/csharp-tsi-gen1-msal-sample/csharp-tsi-gen1-msal-sample.csproj similarity index 89% rename from csharp-tsi-msal-ga-sample/csharp-tsi-msal-ga-sample.csproj rename to gen1-sample/csharp-tsi-gen1-msal-sample/csharp-tsi-gen1-msal-sample.csproj index 805016b..d77c8a4 100644 --- a/csharp-tsi-msal-ga-sample/csharp-tsi-msal-ga-sample.csproj +++ b/gen1-sample/csharp-tsi-gen1-msal-sample/csharp-tsi-gen1-msal-sample.csproj @@ -3,7 +3,7 @@ Exe netcoreapp2.1 latest - csharp-tsi-msal-ga-sample + csharp-tsi-gen1-msal-sample $(MSBuildThisFileDirectory) diff --git a/csharp-tsi-ga-sample/App.config b/gen1-sample/csharp-tsi-gen1-sample/App.config similarity index 100% rename from csharp-tsi-ga-sample/App.config rename to gen1-sample/csharp-tsi-gen1-sample/App.config diff --git a/csharp-tsi-ga-sample/Program.cs b/gen1-sample/csharp-tsi-gen1-sample/Program.cs similarity index 100% rename from csharp-tsi-ga-sample/Program.cs rename to gen1-sample/csharp-tsi-gen1-sample/Program.cs diff --git a/csharp-tsi-ga-sample/Properties/AssemblyInfo.cs b/gen1-sample/csharp-tsi-gen1-sample/Properties/AssemblyInfo.cs similarity index 100% rename from csharp-tsi-ga-sample/Properties/AssemblyInfo.cs rename to gen1-sample/csharp-tsi-gen1-sample/Properties/AssemblyInfo.cs diff --git a/csharp-tsi-ga-sample/README.md b/gen1-sample/csharp-tsi-gen1-sample/README.md similarity index 73% rename from csharp-tsi-ga-sample/README.md rename to gen1-sample/csharp-tsi-gen1-sample/README.md index 979732a..bd1e959 100644 --- a/csharp-tsi-ga-sample/README.md +++ b/gen1-sample/csharp-tsi-gen1-sample/README.md @@ -1,15 +1,15 @@ --- -title: Query data from Azure Time Series Insights GA environments using C# -description: This sample covers how to query data from Azure Time Series Insights GA environments using C#. +title: Query data from Azure Time Series Insights Gen1 environments using C# +description: This sample covers how to query data from Azure Time Series Insights Gen1 environments using C#. --- -# Query data from Azure Time Series Insights GA environments using C# +# Query data from Azure Time Series Insights Gen1 environments using C# -This C# example demonstrates how to use the [GA Query APIs](https://docs.microsoft.com/rest/api/time-series-insights/ga-query) to query data from Azure Time Series Insights GA environments as described in [Query data from the Azure Time Series Insights GA environment using C#](https://docs.microsoft.com/azure/time-series-insights/time-series-insights-query-data-csharp). +This C# example demonstrates how to use the [Gen1 Query APIs](https://docs.microsoft.com/rest/api/time-series-insights/ga-query) to query data from Azure Time Series Insights Gen1 environments as described in [Query data from the Azure Time Series Insights Gen1 environment using C#](https://docs.microsoft.com/azure/time-series-insights/time-series-insights-query-data-csharp). Set up steps: -1. [Provision a GA Azure Time Series Insights](https://docs.microsoft.com/azure/time-series-insights/time-series-insights-get-started) environment. +1. [Provision a Gen1 Azure Time Series Insights](https://docs.microsoft.com/azure/time-series-insights/time-series-insights-get-started) environment. 1. Configure your Azure Time Series Insights environment for Azure Active Directory as described in [Authentication and authorization](https://docs.microsoft.com/azure/time-series-insights/time-series-insights-authentication-and-authorization). 1. Install the required project dependencies. 1. Edit the sample code below by replacing each **#DUMMY#** with the appropriate environment identifier. @@ -21,21 +21,21 @@ The sample shows several basic examples of Query API usage: * How to pass that acquired access token in the `Authorization` header of subsequent Query API requests. -* The sample calls each of the GA Query APIs demonstrating how HTTP requests are made to the: +* The sample calls each of the Gen1 Query APIs demonstrating how HTTP requests are made to the: * [Get Environments API](https://docs.microsoft.com/rest/api/time-series-insights/ga-query-api#get-environments-api) to return the environments the user has access to * [Get Environment Availability API](https://docs.microsoft.com/rest/api/time-series-insights/ga-query-api#get-environment-availability-api) * [Get Environment Metadata API](https://docs.microsoft.com/rest/api/time-series-insights/ga-query-api#get-environment-metadata-api) to retrieve environment metadata * [Get Environments Events API](https://docs.microsoft.com/rest/api/time-series-insights/ga-query-api#get-environment-events-api) * [Get Environment Aggregates API](https://docs.microsoft.com/rest/api/time-series-insights/ga-query-api#get-environment-aggregates-api) -* How to interact with the GA Query APIs using WSS to message the: +* How to interact with the Gen1 Query APIs using WSS to message the: * [Get Environment Events Streamed API](https://docs.microsoft.com/rest/api/time-series-insights/ga-query-api#get-environment-events-streamed-api) * [Get Environment Aggregates Streamed API](https://docs.microsoft.com/rest/api/time-series-insights/ga-query-api#get-environment-aggregates-streamed-api) ## See also -* The [Azure Time Series Insights API reference](https://docs.microsoft.com/rest/api/time-series-insights/ga) documentation for all General Availability REST APIs. +* The [Azure Time Series Insights API reference](https://docs.microsoft.com/rest/api/time-series-insights/ga) documentation for all Gen1 REST APIs. * Follow the [Authentication and authorization](https://docs.microsoft.com/azure/time-series-insights/time-series-insights-authentication-and-authorization#summary-and-best-practices) documentation to register your application in Azure Active Directory. diff --git a/csharp-tsi-ga-sample/TimeSeriesInsightsQuerySample.csproj b/gen1-sample/csharp-tsi-gen1-sample/TSIGen1QuerySample.csproj similarity index 100% rename from csharp-tsi-ga-sample/TimeSeriesInsightsQuerySample.csproj rename to gen1-sample/csharp-tsi-gen1-sample/TSIGen1QuerySample.csproj diff --git a/csharp-tsi-ga-sample/packages.config b/gen1-sample/csharp-tsi-gen1-sample/packages.config similarity index 100% rename from csharp-tsi-ga-sample/packages.config rename to gen1-sample/csharp-tsi-gen1-sample/packages.config diff --git a/javascript-tsi-ga-sample/JS App b/gen1-sample/javascript-tsi-gen1-sample/JS App similarity index 100% rename from javascript-tsi-ga-sample/JS App rename to gen1-sample/javascript-tsi-gen1-sample/JS App diff --git a/javascript-tsi-ga-sample/README.md b/gen1-sample/javascript-tsi-gen1-sample/README.md similarity index 91% rename from javascript-tsi-ga-sample/README.md rename to gen1-sample/javascript-tsi-gen1-sample/README.md index 2756341..9b26baa 100644 --- a/javascript-tsi-ga-sample/README.md +++ b/gen1-sample/javascript-tsi-gen1-sample/README.md @@ -5,11 +5,11 @@ description: # Introduction -This sample shows how to create a simple single page web application in JavaScript that uses Time Series Insights Query API and does not require any server-side code. +This sample shows how to create a simple single page web application in JavaScript that uses Time Series Insights Gen1 Query API and does not require any server-side code. # Setup -This article explains how to configure a custom application that calls the Azure Time Series Insights API. +This article explains how to configure a custom application that calls the Azure Time Series Insights Gen1 API. ## Create Azure Active Directory Application @@ -35,7 +35,7 @@ Follow the [Authentication and authorization](https://docs.microsoft.com/azure/t ## See also -* The [Azure Time Series Insights API reference](https://docs.microsoft.com/rest/api/time-series-insights/ga) documentation for all General Availability REST APIs. +* The [Azure Time Series Insights API reference](https://docs.microsoft.com/rest/api/time-series-insights/ga) documentation for all Gen1 REST APIs. * Follow the [Authentication and authorization](https://docs.microsoft.com/azure/time-series-insights/time-series-insights-authentication-and-authorization#summary-and-best-practices) documentation to register your application in Azure Active Directory. diff --git a/javascript-tsi-ga-sample/iis-add-website.png b/gen1-sample/javascript-tsi-gen1-sample/iis-add-website.png similarity index 100% rename from javascript-tsi-ga-sample/iis-add-website.png rename to gen1-sample/javascript-tsi-gen1-sample/iis-add-website.png diff --git a/javascript-tsi-ga-sample/index.html b/gen1-sample/javascript-tsi-gen1-sample/index.html similarity index 100% rename from javascript-tsi-ga-sample/index.html rename to gen1-sample/javascript-tsi-gen1-sample/index.html diff --git a/csharp-tsi-preview-sample/DataPlaneClient/DataPlaneClient.csproj b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/DataPlaneClient.csproj similarity index 67% rename from csharp-tsi-preview-sample/DataPlaneClient/DataPlaneClient.csproj rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/DataPlaneClient.csproj index 98e605a..4e8aee6 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/DataPlaneClient.csproj +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/DataPlaneClient.csproj @@ -1,260 +1,257 @@ - - - - - Debug - AnyCPU - {FC0A4165-E69E-4D9A-9C3F-D8062010D697} - Library - Properties - DataPlaneClient - DataPlaneClient - v4.5.2 - 512 - true - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - ..\packages\Microsoft.Rest.ClientRuntime.2.3.20\lib\net452\Microsoft.Rest.ClientRuntime.dll - True - - - ..\packages\Microsoft.Rest.ClientRuntime.Azure.3.3.19\lib\net452\Microsoft.Rest.ClientRuntime.Azure.dll - True - - - ..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll - True - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + Debug + AnyCPU + {FC0A4165-E69E-4D9A-9C3F-D8062010D697} + Library + Properties + DataPlaneClient + DataPlaneClient + v4.7.2 + 512 + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + ..\packages\Microsoft.Rest.ClientRuntime.2.3.20\lib\net452\Microsoft.Rest.ClientRuntime.dll + True + + + ..\packages\Microsoft.Rest.ClientRuntime.Azure.3.3.19\lib\net452\Microsoft.Rest.ClientRuntime.Azure.dll + True + + + ..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll + True + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/csharp-tsi-preview-sample/DataPlaneClient/GenerateCode.bat b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/GenerateCode.bat similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/GenerateCode.bat rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/GenerateCode.bat diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/IModelSettings.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/IModelSettings.cs similarity index 96% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/IModelSettings.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/IModelSettings.cs index b5b5d9d..d90e118 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/IModelSettings.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/IModelSettings.cs @@ -24,8 +24,8 @@ public partial interface IModelSettings { /// /// Returns the model settings which includes model display name, Time - /// Series ID properties and default type ID. Every pay-as-you-go - /// environment has a model that is automatically created. + /// Series ID properties and default type ID. Every Gen2 environment + /// has a model that is automatically created. /// /// /// Optional client request ID. Service records this value. Allows the diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/IQuery.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/IQuery.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/IQuery.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/IQuery.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ITimeSeriesHierarchies.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ITimeSeriesHierarchies.cs similarity index 93% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ITimeSeriesHierarchies.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ITimeSeriesHierarchies.cs index 6d6543b..8dda713 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ITimeSeriesHierarchies.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ITimeSeriesHierarchies.cs @@ -58,7 +58,7 @@ public partial interface ITimeSeriesHierarchies /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string continuationToken = default(string), string clientRequestId = default(string), string clientSessionId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListWithHttpMessagesAsync(string continuationToken = default(string), string clientRequestId = default(string), string clientSessionId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Executes a batch get, create, update, delete operation on multiple /// time series hierarchy definitions. diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ITimeSeriesInsightsClient.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ITimeSeriesInsightsClient.cs similarity index 93% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ITimeSeriesInsightsClient.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ITimeSeriesInsightsClient.cs index e7e856f..a801ef6 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ITimeSeriesInsightsClient.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ITimeSeriesInsightsClient.cs @@ -15,8 +15,8 @@ namespace Microsoft.Azure.TimeSeriesInsights using Newtonsoft.Json; /// - /// Time Series Insights environment data plane client for PAYG (Preview L1 - /// SKU) environments. + /// Time Series Insights environment data plane client for Gen2 (GA L1 SKU) + /// environments. /// public partial interface ITimeSeriesInsightsClient : System.IDisposable { @@ -36,7 +36,7 @@ public partial interface ITimeSeriesInsightsClient : System.IDisposable /// /// Version of the API to be used with the client request. Currently - /// supported version is "2018-11-01-preview". + /// supported version is "2020-07-31". /// string ApiVersion { get; set; } diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ITimeSeriesInstances.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ITimeSeriesInstances.cs similarity index 96% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ITimeSeriesInstances.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ITimeSeriesInstances.cs index 61735c8..b53362a 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ITimeSeriesInstances.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ITimeSeriesInstances.cs @@ -58,7 +58,7 @@ public partial interface ITimeSeriesInstances /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string continuationToken = default(string), string clientRequestId = default(string), string clientSessionId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListWithHttpMessagesAsync(string continuationToken = default(string), string clientRequestId = default(string), string clientSessionId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Executes a batch get, create, update, delete operation on multiple /// time series instances. diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ITimeSeriesTypes.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ITimeSeriesTypes.cs similarity index 92% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ITimeSeriesTypes.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ITimeSeriesTypes.cs index aa5a8b9..b52c868 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ITimeSeriesTypes.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ITimeSeriesTypes.cs @@ -58,7 +58,7 @@ public partial interface ITimeSeriesTypes /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(string continuationToken = default(string), string clientRequestId = default(string), string clientSessionId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListWithHttpMessagesAsync(string continuationToken = default(string), string clientRequestId = default(string), string clientSessionId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Executes a batch get, create, update, delete operation on multiple /// time series types. diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ModelSettings.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ModelSettings.cs similarity index 99% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ModelSettings.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ModelSettings.cs index e35fde7..dd86c2b 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ModelSettings.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ModelSettings.cs @@ -52,8 +52,8 @@ public ModelSettings(TimeSeriesInsightsClient client) /// /// Returns the model settings which includes model display name, Time Series - /// ID properties and default type ID. Every pay-as-you-go environment has a - /// model that is automatically created. + /// ID properties and default type ID. Every Gen2 environment has a model that + /// is automatically created. /// /// /// Optional client request ID. Service records this value. Allows the service diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ModelSettingsExtensions.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ModelSettingsExtensions.cs similarity index 96% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ModelSettingsExtensions.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ModelSettingsExtensions.cs index 6e88299..f8f1f8b 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ModelSettingsExtensions.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/ModelSettingsExtensions.cs @@ -21,8 +21,8 @@ public static partial class ModelSettingsExtensions { /// /// Returns the model settings which includes model display name, Time Series - /// ID properties and default type ID. Every pay-as-you-go environment has a - /// model that is automatically created. + /// ID properties and default type ID. Every Gen2 environment has a model that + /// is automatically created. /// /// /// The operations group for this extension method. diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/AggregateSeries.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/AggregateSeries.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/AggregateSeries.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/AggregateSeries.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/AggregateVariable.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/AggregateVariable.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/AggregateVariable.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/AggregateVariable.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/Availability.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/Availability.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/Availability.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/Availability.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/AvailabilityResponse.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/AvailabilityResponse.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/AvailabilityResponse.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/AvailabilityResponse.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/CategoricalVariable.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/CategoricalVariable.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/CategoricalVariable.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/CategoricalVariable.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/DateTimeRange.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/DateTimeRange.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/DateTimeRange.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/DateTimeRange.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/EventProperty.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/EventProperty.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/EventProperty.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/EventProperty.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/EventSchema.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/EventSchema.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/EventSchema.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/EventSchema.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/GetEventSchemaRequest.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/GetEventSchemaRequest.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/GetEventSchemaRequest.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/GetEventSchemaRequest.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/GetEvents.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/GetEvents.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/GetEvents.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/GetEvents.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/GetHierarchiesPage.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/GetHierarchiesPage.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/GetHierarchiesPage.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/GetHierarchiesPage.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/GetInstancesPage.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/GetInstancesPage.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/GetInstancesPage.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/GetInstancesPage.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/GetSeries.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/GetSeries.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/GetSeries.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/GetSeries.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/GetTypesPage.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/GetTypesPage.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/GetTypesPage.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/GetTypesPage.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesBatchRequest.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesBatchRequest.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesBatchRequest.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesBatchRequest.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesBatchResponse.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesBatchResponse.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesBatchResponse.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesBatchResponse.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesExpandKind.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesExpandKind.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesExpandKind.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesExpandKind.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesExpandParameter.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesExpandParameter.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesExpandParameter.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesExpandParameter.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesRequestBatchGetDelete.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesRequestBatchGetDelete.cs similarity index 89% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesRequestBatchGetDelete.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesRequestBatchGetDelete.cs index a14443c..0aa0b99 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesRequestBatchGetDelete.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesRequestBatchGetDelete.cs @@ -36,7 +36,7 @@ public HierarchiesRequestBatchGetDelete() /// /// List of hierarchy IDs. /// List of hierarchy names. - public HierarchiesRequestBatchGetDelete(IList hierarchyIds = default(IList), IList names = default(IList)) + public HierarchiesRequestBatchGetDelete(IList hierarchyIds = default(IList), IList names = default(IList)) { HierarchyIds = hierarchyIds; Names = names; @@ -52,7 +52,7 @@ public HierarchiesRequestBatchGetDelete() /// Gets or sets list of hierarchy IDs. /// [JsonProperty(PropertyName = "hierarchyIds")] - public IList HierarchyIds { get; set; } + public IList HierarchyIds { get; set; } /// /// Gets or sets list of hierarchy names. diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesSortBy.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesSortBy.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesSortBy.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesSortBy.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesSortParameter.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesSortParameter.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesSortParameter.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchiesSortParameter.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchyHit.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchyHit.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchyHit.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/HierarchyHit.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstanceHit.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstanceHit.cs similarity index 92% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstanceHit.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstanceHit.cs index 16781d5..a5b7388 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstanceHit.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstanceHit.cs @@ -47,7 +47,7 @@ public InstanceHit() /// </hit> tags in the portions of text that matched the search /// string. Do not use any of the highlighted properties to do further /// API calls. - public InstanceHit(IList timeSeriesId = default(IList), string name = default(string), System.Guid? typeId = default(System.Guid?), IList hierarchyIds = default(IList), InstanceHitHighlights highlights = default(InstanceHitHighlights)) + public InstanceHit(IList timeSeriesId = default(IList), string name = default(string), string typeId = default(string), IList hierarchyIds = default(IList), InstanceHitHighlights highlights = default(InstanceHitHighlights)) { TimeSeriesId = timeSeriesId; Name = name; @@ -81,7 +81,7 @@ public InstanceHit() /// the search request belongs to. Never null. /// [JsonProperty(PropertyName = "typeId")] - public System.Guid? TypeId { get; private set; } + public string TypeId { get; private set; } /// /// Gets list of time series hierarchy IDs that time series instance @@ -89,7 +89,7 @@ public InstanceHit() /// lookup hierarchies. May be null. /// [JsonProperty(PropertyName = "hierarchyIds")] - public IList HierarchyIds { get; private set; } + public IList HierarchyIds { get; private set; } /// /// Gets highlighted text of time series instance to be displayed to diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstanceHitHighlights.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstanceHitHighlights.cs similarity index 94% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstanceHitHighlights.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstanceHitHighlights.cs index a20dae3..17cfdae 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstanceHitHighlights.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstanceHitHighlights.cs @@ -53,7 +53,7 @@ public InstanceHitHighlights() /// instance field names. May be null. /// List of highlighted time series /// instance field values. May be null. - public InstanceHitHighlights(IList timeSeriesId = default(IList), string typeName = default(string), string name = default(string), string description = default(string), IList hierarchyIds = default(IList), IList hierarchyNames = default(IList), IList instanceFieldNames = default(IList), IList instanceFieldValues = default(IList)) + public InstanceHitHighlights(IList timeSeriesId = default(IList), string typeName = default(string), string name = default(string), string description = default(string), IList hierarchyIds = default(IList), IList hierarchyNames = default(IList), IList instanceFieldNames = default(IList), IList instanceFieldValues = default(IList)) { TimeSeriesId = timeSeriesId; TypeName = typeName; @@ -103,7 +103,7 @@ public InstanceHitHighlights() /// null. /// [JsonProperty(PropertyName = "hierarchyIds")] - public IList HierarchyIds { get; private set; } + public IList HierarchyIds { get; private set; } /// /// Gets list of highlighted time series hierarchy names that time diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstanceOrError.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstanceOrError.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstanceOrError.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstanceOrError.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesBatchRequest.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesBatchRequest.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesBatchRequest.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesBatchRequest.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesBatchResponse.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesBatchResponse.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesBatchResponse.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesBatchResponse.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesRequestBatchGetOrDelete.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesRequestBatchGetOrDelete.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesRequestBatchGetOrDelete.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesRequestBatchGetOrDelete.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesSearchStringSuggestion.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesSearchStringSuggestion.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesSearchStringSuggestion.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesSearchStringSuggestion.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesSortBy.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesSortBy.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesSortBy.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesSortBy.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesSortParameter.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesSortParameter.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesSortParameter.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesSortParameter.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesSuggestRequest.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesSuggestRequest.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesSuggestRequest.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesSuggestRequest.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesSuggestResponse.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesSuggestResponse.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesSuggestResponse.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InstancesSuggestResponse.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/Interpolation.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/Interpolation.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/Interpolation.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/Interpolation.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InterpolationBoundary.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InterpolationBoundary.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InterpolationBoundary.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InterpolationBoundary.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InterpolationKind.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InterpolationKind.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InterpolationKind.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/InterpolationKind.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/ModelSettingsGetHeaders.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/ModelSettingsGetHeaders.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/ModelSettingsGetHeaders.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/ModelSettingsGetHeaders.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/ModelSettingsResponse.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/ModelSettingsResponse.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/ModelSettingsResponse.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/ModelSettingsResponse.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/ModelSettingsUpdateHeaders.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/ModelSettingsUpdateHeaders.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/ModelSettingsUpdateHeaders.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/ModelSettingsUpdateHeaders.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/NumericVariable.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/NumericVariable.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/NumericVariable.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/NumericVariable.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/PagedResponse.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/PagedResponse.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/PagedResponse.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/PagedResponse.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/PropertyTypes.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/PropertyTypes.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/PropertyTypes.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/PropertyTypes.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/PropertyValues.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/PropertyValues.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/PropertyValues.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/PropertyValues.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/QueryExecuteHeaders.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/QueryExecuteHeaders.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/QueryExecuteHeaders.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/QueryExecuteHeaders.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/QueryGetAvailabilityHeaders.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/QueryGetAvailabilityHeaders.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/QueryGetAvailabilityHeaders.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/QueryGetAvailabilityHeaders.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/QueryGetEventSchemaHeaders.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/QueryGetEventSchemaHeaders.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/QueryGetEventSchemaHeaders.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/QueryGetEventSchemaHeaders.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/QueryRequest.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/QueryRequest.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/QueryRequest.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/QueryRequest.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/QueryResultPage.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/QueryResultPage.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/QueryResultPage.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/QueryResultPage.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/SearchHierarchyNodesResponse.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/SearchHierarchyNodesResponse.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/SearchHierarchyNodesResponse.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/SearchHierarchyNodesResponse.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/SearchInstancesHierarchiesParameters.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/SearchInstancesHierarchiesParameters.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/SearchInstancesHierarchiesParameters.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/SearchInstancesHierarchiesParameters.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/SearchInstancesParameters.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/SearchInstancesParameters.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/SearchInstancesParameters.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/SearchInstancesParameters.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/SearchInstancesRequest.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/SearchInstancesRequest.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/SearchInstancesRequest.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/SearchInstancesRequest.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/SearchInstancesResponse.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/SearchInstancesResponse.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/SearchInstancesResponse.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/SearchInstancesResponse.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/SearchInstancesResponsePage.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/SearchInstancesResponsePage.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/SearchInstancesResponsePage.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/SearchInstancesResponsePage.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesAggregateCategory.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesAggregateCategory.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesAggregateCategory.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesAggregateCategory.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesDefaultCategory.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesDefaultCategory.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesDefaultCategory.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesDefaultCategory.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesHierarchiesExecuteBatchHeaders.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesHierarchiesExecuteBatchHeaders.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesHierarchiesExecuteBatchHeaders.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesHierarchiesExecuteBatchHeaders.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesHierarchiesGetHeaders.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesHierarchiesListHeaders.cs similarity index 84% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesHierarchiesGetHeaders.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesHierarchiesListHeaders.cs index 18e8364..fb0eea3 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesHierarchiesGetHeaders.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesHierarchiesListHeaders.cs @@ -14,26 +14,26 @@ namespace Microsoft.Azure.TimeSeriesInsights.Models using System.Linq; /// - /// Defines headers for Get operation. + /// Defines headers for List operation. /// - public partial class TimeSeriesHierarchiesGetHeaders + public partial class TimeSeriesHierarchiesListHeaders { /// - /// Initializes a new instance of the TimeSeriesHierarchiesGetHeaders + /// Initializes a new instance of the TimeSeriesHierarchiesListHeaders /// class. /// - public TimeSeriesHierarchiesGetHeaders() + public TimeSeriesHierarchiesListHeaders() { CustomInit(); } /// - /// Initializes a new instance of the TimeSeriesHierarchiesGetHeaders + /// Initializes a new instance of the TimeSeriesHierarchiesListHeaders /// class. /// /// Server-generated request ID. Can be /// used to contact support to investigate a request. - public TimeSeriesHierarchiesGetHeaders(string serverRequestId = default(string)) + public TimeSeriesHierarchiesListHeaders(string serverRequestId = default(string)) { ServerRequestId = serverRequestId; CustomInit(); diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesHierarchy.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesHierarchy.cs similarity index 82% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesHierarchy.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesHierarchy.cs index 78aef62..138342b 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesHierarchy.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesHierarchy.cs @@ -34,10 +34,10 @@ public TimeSeriesHierarchy() /// mutable and not null. /// Definition of how time series hierarchy tree /// levels are created. - /// Unique hierarchy identifier that is a immutable - /// GUID. Can be null while creating hierarchy objects and then server - /// generates the id, not null on get and delete operations. - public TimeSeriesHierarchy(string name, TimeSeriesHierarchySource source, System.Guid? id = default(System.Guid?)) + /// Case-sensitive unique hierarchy identifier. Can be + /// null while creating hierarchy objects and then server generates the + /// id, not null on get and delete operations. + public TimeSeriesHierarchy(string name, TimeSeriesHierarchySource source, string id = default(string)) { Id = id; Name = name; @@ -51,12 +51,12 @@ public TimeSeriesHierarchy() partial void CustomInit(); /// - /// Gets or sets unique hierarchy identifier that is a immutable GUID. - /// Can be null while creating hierarchy objects and then server - /// generates the id, not null on get and delete operations. + /// Gets or sets case-sensitive unique hierarchy identifier. Can be + /// null while creating hierarchy objects and then server generates the + /// id, not null on get and delete operations. /// [JsonProperty(PropertyName = "id")] - public System.Guid? Id { get; set; } + public string Id { get; set; } /// /// Gets or sets user-given unique name for the type. It is mutable and diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesHierarchyOrError.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesHierarchyOrError.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesHierarchyOrError.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesHierarchyOrError.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesHierarchySource.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesHierarchySource.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesHierarchySource.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesHierarchySource.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesIdProperty.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesIdProperty.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesIdProperty.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesIdProperty.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesIdPropertyTypes.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesIdPropertyTypes.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesIdPropertyTypes.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesIdPropertyTypes.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesInstance.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesInstance.cs similarity index 90% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesInstance.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesInstance.cs index 5cc0ff0..3fefda8 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesInstance.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesInstance.cs @@ -51,7 +51,7 @@ public TimeSeriesInstance() /// the instance belong to. May be null. /// Set of key-value pairs that contain /// user-defined instance properties. May be null. - public TimeSeriesInstance(IList timeSeriesId, System.Guid typeId, string name = default(string), string description = default(string), IList hierarchyIds = default(IList), IDictionary instanceFields = default(IDictionary)) + public TimeSeriesInstance(IList timeSeriesId, string typeId, string name = default(string), string description = default(string), IList hierarchyIds = default(IList), IDictionary instanceFields = default(IDictionary)) { TimeSeriesId = timeSeriesId; TypeId = typeId; @@ -80,7 +80,7 @@ public TimeSeriesInstance() /// to. Never null. /// [JsonProperty(PropertyName = "typeId")] - public System.Guid TypeId { get; set; } + public string TypeId { get; set; } /// /// Gets or sets optional name of the instance which is unique in an @@ -102,7 +102,7 @@ public TimeSeriesInstance() /// belong to. May be null. /// [JsonProperty(PropertyName = "hierarchyIds")] - public IList HierarchyIds { get; set; } + public IList HierarchyIds { get; set; } /// /// Gets or sets set of key-value pairs that contain user-defined @@ -123,6 +123,10 @@ public virtual void Validate() { throw new ValidationException(ValidationRules.CannotBeNull, "TimeSeriesId"); } + if (TypeId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "TypeId"); + } } } } diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesInstancesExecuteBatchHeaders.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesInstancesExecuteBatchHeaders.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesInstancesExecuteBatchHeaders.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesInstancesExecuteBatchHeaders.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesInstancesGetHeaders.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesInstancesListHeaders.cs similarity index 85% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesInstancesGetHeaders.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesInstancesListHeaders.cs index 1d2a976..37a0de3 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesInstancesGetHeaders.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesInstancesListHeaders.cs @@ -14,26 +14,26 @@ namespace Microsoft.Azure.TimeSeriesInsights.Models using System.Linq; /// - /// Defines headers for Get operation. + /// Defines headers for List operation. /// - public partial class TimeSeriesInstancesGetHeaders + public partial class TimeSeriesInstancesListHeaders { /// - /// Initializes a new instance of the TimeSeriesInstancesGetHeaders + /// Initializes a new instance of the TimeSeriesInstancesListHeaders /// class. /// - public TimeSeriesInstancesGetHeaders() + public TimeSeriesInstancesListHeaders() { CustomInit(); } /// - /// Initializes a new instance of the TimeSeriesInstancesGetHeaders + /// Initializes a new instance of the TimeSeriesInstancesListHeaders /// class. /// /// Server-generated request ID. Can be /// used to contact support to investigate a request. - public TimeSeriesInstancesGetHeaders(string serverRequestId = default(string)) + public TimeSeriesInstancesListHeaders(string serverRequestId = default(string)) { ServerRequestId = serverRequestId; CustomInit(); diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesInstancesSearchHeaders.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesInstancesSearchHeaders.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesInstancesSearchHeaders.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesInstancesSearchHeaders.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesInstancesSuggestHeaders.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesInstancesSuggestHeaders.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesInstancesSuggestHeaders.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesInstancesSuggestHeaders.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesModelSettings.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesModelSettings.cs similarity index 94% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesModelSettings.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesModelSettings.cs index 809e142..1ed1736 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesModelSettings.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesModelSettings.cs @@ -38,7 +38,7 @@ public TimeSeriesModelSettings() /// defined during environment creation. /// Default type ID of the model that new /// time series instances will automatically belong to. - public TimeSeriesModelSettings(string name = default(string), IList timeSeriesIdProperties = default(IList), System.Guid? defaultTypeId = default(System.Guid?)) + public TimeSeriesModelSettings(string name = default(string), IList timeSeriesIdProperties = default(IList), string defaultTypeId = default(string)) { Name = name; TimeSeriesIdProperties = timeSeriesIdProperties; @@ -69,7 +69,7 @@ public TimeSeriesModelSettings() /// will automatically belong to. /// [JsonProperty(PropertyName = "defaultTypeId")] - public System.Guid? DefaultTypeId { get; private set; } + public string DefaultTypeId { get; private set; } } } diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesType.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesType.cs similarity index 86% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesType.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesType.cs index 36685c1..2041462 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesType.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesType.cs @@ -41,12 +41,13 @@ public TimeSeriesType() /// not null. /// Different variables associated with the /// type. Not empty, not null. - /// Unique type identifier that is immutable. Can be - /// null on create or update requests, and then server generates the - /// ID. Not null on get and delete operations. + /// Case-sensitive unique type identifier that is + /// immutable. Can be null on create or update requests, and then + /// server generates the ID. Not null on get and delete + /// operations. /// Description of the type. May be /// null. - public TimeSeriesType(string name, IDictionary variables, System.Guid? id = default(System.Guid?), string description = default(string)) + public TimeSeriesType(string name, IDictionary variables, string id = default(string), string description = default(string)) { Id = id; Name = name; @@ -61,12 +62,12 @@ public TimeSeriesType() partial void CustomInit(); /// - /// Gets or sets unique type identifier that is immutable. Can be null - /// on create or update requests, and then server generates the ID. Not - /// null on get and delete operations. + /// Gets or sets case-sensitive unique type identifier that is + /// immutable. Can be null on create or update requests, and then + /// server generates the ID. Not null on get and delete operations. /// [JsonProperty(PropertyName = "id")] - public System.Guid? Id { get; set; } + public string Id { get; set; } /// /// Gets or sets user-given unique name for the type. Mutable, not diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesTypeOrError.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesTypeOrError.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesTypeOrError.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesTypeOrError.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesTypesExecuteBatchHeaders.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesTypesExecuteBatchHeaders.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesTypesExecuteBatchHeaders.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesTypesExecuteBatchHeaders.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesTypesGetHeaders.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesTypesListHeaders.cs similarity index 77% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesTypesGetHeaders.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesTypesListHeaders.cs index fd982ea..0905d9d 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesTypesGetHeaders.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TimeSeriesTypesListHeaders.cs @@ -14,24 +14,24 @@ namespace Microsoft.Azure.TimeSeriesInsights.Models using System.Linq; /// - /// Defines headers for Get operation. + /// Defines headers for List operation. /// - public partial class TimeSeriesTypesGetHeaders + public partial class TimeSeriesTypesListHeaders { /// - /// Initializes a new instance of the TimeSeriesTypesGetHeaders class. + /// Initializes a new instance of the TimeSeriesTypesListHeaders class. /// - public TimeSeriesTypesGetHeaders() + public TimeSeriesTypesListHeaders() { CustomInit(); } /// - /// Initializes a new instance of the TimeSeriesTypesGetHeaders class. + /// Initializes a new instance of the TimeSeriesTypesListHeaders class. /// /// Server-generated request ID. Can be /// used to contact support to investigate a request. - public TimeSeriesTypesGetHeaders(string serverRequestId = default(string)) + public TimeSeriesTypesListHeaders(string serverRequestId = default(string)) { ServerRequestId = serverRequestId; CustomInit(); diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TsiError.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TsiError.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TsiError.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TsiError.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TsiErrorBody.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TsiErrorBody.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TsiErrorBody.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TsiErrorBody.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TsiErrorDetails.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TsiErrorDetails.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TsiErrorDetails.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TsiErrorDetails.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TsiErrorException.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TsiErrorException.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TsiErrorException.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TsiErrorException.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/Tsx.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/Tsx.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/Tsx.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/Tsx.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TypesBatchRequest.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TypesBatchRequest.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TypesBatchRequest.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TypesBatchRequest.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TypesBatchResponse.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TypesBatchResponse.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TypesBatchResponse.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TypesBatchResponse.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TypesRequestBatchGetOrDelete.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TypesRequestBatchGetOrDelete.cs similarity index 90% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TypesRequestBatchGetOrDelete.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TypesRequestBatchGetOrDelete.cs index a0b0f60..02be50a 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TypesRequestBatchGetOrDelete.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/TypesRequestBatchGetOrDelete.cs @@ -38,7 +38,7 @@ public TypesRequestBatchGetOrDelete() /// delete. /// List of names of time series types to return or /// delete. - public TypesRequestBatchGetOrDelete(IList typeIds = default(IList), IList names = default(IList)) + public TypesRequestBatchGetOrDelete(IList typeIds = default(IList), IList names = default(IList)) { TypeIds = typeIds; Names = names; @@ -54,7 +54,7 @@ public TypesRequestBatchGetOrDelete() /// Gets or sets list of IDs of time series types to return or delete. /// [JsonProperty(PropertyName = "typeIds")] - public IList TypeIds { get; set; } + public IList TypeIds { get; set; } /// /// Gets or sets list of names of time series types to return or diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/UpdateModelSettingsRequest.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/UpdateModelSettingsRequest.cs similarity index 94% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/UpdateModelSettingsRequest.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/UpdateModelSettingsRequest.cs index ae09511..5a77491 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/UpdateModelSettingsRequest.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/UpdateModelSettingsRequest.cs @@ -34,7 +34,7 @@ public UpdateModelSettingsRequest() /// mutable by the user. Initial value is "DefaultModel". /// Default type id of the model that new /// instances will automatically belong to. - public UpdateModelSettingsRequest(string name = default(string), System.Guid? defaultTypeId = default(System.Guid?)) + public UpdateModelSettingsRequest(string name = default(string), string defaultTypeId = default(string)) { Name = name; DefaultTypeId = defaultTypeId; @@ -58,7 +58,7 @@ public UpdateModelSettingsRequest() /// automatically belong to. /// [JsonProperty(PropertyName = "defaultTypeId")] - public System.Guid? DefaultTypeId { get; set; } + public string DefaultTypeId { get; set; } } } diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/Variable.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/Variable.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/Variable.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Models/Variable.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Query.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Query.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Query.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/Query.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/QueryExtensions.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/QueryExtensions.cs similarity index 100% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/QueryExtensions.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/QueryExtensions.cs diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesHierarchies.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesHierarchies.cs similarity index 97% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesHierarchies.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesHierarchies.cs index 8bb12e8..40ce2cb 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesHierarchies.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesHierarchies.cs @@ -91,7 +91,7 @@ public TimeSeriesHierarchies(TimeSeriesInsightsClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string continuationToken = default(string), string clientRequestId = default(string), string clientSessionId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListWithHttpMessagesAsync(string continuationToken = default(string), string clientRequestId = default(string), string clientSessionId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.EnvironmentFqdn == null) { @@ -112,7 +112,7 @@ public TimeSeriesHierarchies(TimeSeriesInsightsClient client) tracingParameters.Add("clientRequestId", clientRequestId); tracingParameters.Add("clientSessionId", clientSessionId); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri; @@ -223,7 +223,7 @@ public TimeSeriesHierarchies(TimeSeriesInsightsClient client) throw ex; } // Create Result - var _result = new HttpOperationResponse(); + var _result = new HttpOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; // Deserialize Response @@ -246,7 +246,7 @@ public TimeSeriesHierarchies(TimeSeriesInsightsClient client) } try { - _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); } catch (JsonException ex) { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesHierarchiesExtensions.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesHierarchiesExtensions.cs similarity index 89% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesHierarchiesExtensions.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesHierarchiesExtensions.cs index efac7be..add86d7 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesHierarchiesExtensions.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesHierarchiesExtensions.cs @@ -45,9 +45,9 @@ public static partial class TimeSeriesHierarchiesExtensions /// /// The cancellation token. /// - public static async Task GetAsync(this ITimeSeriesHierarchies operations, string continuationToken = default(string), string clientRequestId = default(string), string clientSessionId = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListAsync(this ITimeSeriesHierarchies operations, string continuationToken = default(string), string clientRequestId = default(string), string clientSessionId = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(continuationToken, clientRequestId, clientSessionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(continuationToken, clientRequestId, clientSessionId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesInsightsClient.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesInsightsClient.cs similarity index 98% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesInsightsClient.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesInsightsClient.cs index 9aaaf5b..39d8a7a 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesInsightsClient.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesInsightsClient.cs @@ -20,8 +20,8 @@ namespace Microsoft.Azure.TimeSeriesInsights using System.Net.Http; /// - /// Time Series Insights environment data plane client for PAYG (Preview L1 - /// SKU) environments. + /// Time Series Insights environment data plane client for Gen2 (GA L1 SKU) + /// environments. /// public partial class TimeSeriesInsightsClient : ServiceClient, ITimeSeriesInsightsClient { @@ -42,7 +42,7 @@ public partial class TimeSeriesInsightsClient : ServiceClient /// Version of the API to be used with the client request. Currently supported - /// version is "2018-11-01-preview". + /// version is "2020-07-31". /// public string ApiVersion { get; set; } @@ -217,7 +217,7 @@ private void Initialize() TimeSeriesTypes = new TimeSeriesTypes(this); TimeSeriesHierarchies = new TimeSeriesHierarchies(this); BaseUri = "https://{environmentFqdn}"; - ApiVersion = "2018-11-01-preview"; + ApiVersion = "2020-07-31"; SerializationSettings = new JsonSerializerSettings { Formatting = Newtonsoft.Json.Formatting.Indented, diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesInstances.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesInstances.cs similarity index 98% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesInstances.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesInstances.cs index 36c66ea..db33ac7 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesInstances.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesInstances.cs @@ -91,7 +91,7 @@ public TimeSeriesInstances(TimeSeriesInsightsClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string continuationToken = default(string), string clientRequestId = default(string), string clientSessionId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListWithHttpMessagesAsync(string continuationToken = default(string), string clientRequestId = default(string), string clientSessionId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.EnvironmentFqdn == null) { @@ -112,7 +112,7 @@ public TimeSeriesInstances(TimeSeriesInsightsClient client) tracingParameters.Add("clientRequestId", clientRequestId); tracingParameters.Add("clientSessionId", clientSessionId); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri; @@ -223,7 +223,7 @@ public TimeSeriesInstances(TimeSeriesInsightsClient client) throw ex; } // Create Result - var _result = new HttpOperationResponse(); + var _result = new HttpOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; // Deserialize Response @@ -246,7 +246,7 @@ public TimeSeriesInstances(TimeSeriesInsightsClient client) } try { - _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); } catch (JsonException ex) { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesInstancesExtensions.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesInstancesExtensions.cs similarity index 94% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesInstancesExtensions.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesInstancesExtensions.cs index 311f654..394a313 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesInstancesExtensions.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesInstancesExtensions.cs @@ -45,9 +45,9 @@ public static partial class TimeSeriesInstancesExtensions /// /// The cancellation token. /// - public static async Task GetAsync(this ITimeSeriesInstances operations, string continuationToken = default(string), string clientRequestId = default(string), string clientSessionId = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListAsync(this ITimeSeriesInstances operations, string continuationToken = default(string), string clientRequestId = default(string), string clientSessionId = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(continuationToken, clientRequestId, clientSessionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(continuationToken, clientRequestId, clientSessionId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesTypes.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesTypes.cs similarity index 97% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesTypes.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesTypes.cs index 85c2d77..f71d50f 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesTypes.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesTypes.cs @@ -91,7 +91,7 @@ public TimeSeriesTypes(TimeSeriesInsightsClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string continuationToken = default(string), string clientRequestId = default(string), string clientSessionId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListWithHttpMessagesAsync(string continuationToken = default(string), string clientRequestId = default(string), string clientSessionId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.EnvironmentFqdn == null) { @@ -112,7 +112,7 @@ public TimeSeriesTypes(TimeSeriesInsightsClient client) tracingParameters.Add("clientRequestId", clientRequestId); tracingParameters.Add("clientSessionId", clientSessionId); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri; @@ -223,7 +223,7 @@ public TimeSeriesTypes(TimeSeriesInsightsClient client) throw ex; } // Create Result - var _result = new HttpOperationResponse(); + var _result = new HttpOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; // Deserialize Response @@ -246,7 +246,7 @@ public TimeSeriesTypes(TimeSeriesInsightsClient client) } try { - _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings)); } catch (JsonException ex) { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesTypesExtensions.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesTypesExtensions.cs similarity index 89% rename from csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesTypesExtensions.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesTypesExtensions.cs index f0f33d6..06c6bfc 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesTypesExtensions.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Generated/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated/TimeSeriesTypesExtensions.cs @@ -45,9 +45,9 @@ public static partial class TimeSeriesTypesExtensions /// /// The cancellation token. /// - public static async Task GetAsync(this ITimeSeriesTypes operations, string continuationToken = default(string), string clientRequestId = default(string), string clientSessionId = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListAsync(this ITimeSeriesTypes operations, string continuationToken = default(string), string clientRequestId = default(string), string clientSessionId = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(continuationToken, clientRequestId, clientSessionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(continuationToken, clientRequestId, clientSessionId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/csharp-tsi-preview-sample/DataPlaneClient/Properties/AssemblyInfo.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Properties/AssemblyInfo.cs similarity index 97% rename from csharp-tsi-preview-sample/DataPlaneClient/Properties/AssemblyInfo.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Properties/AssemblyInfo.cs index ddc4909..59e1495 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/Properties/AssemblyInfo.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Properties/AssemblyInfo.cs @@ -1,36 +1,36 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("DataPlaneClient")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("DataPlaneClient")] -[assembly: AssemblyCopyright("Copyright © 2019")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("13f49a0b-68eb-4afe-bbf9-575e352ffe2f")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("DataPlaneClient")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("DataPlaneClient")] +[assembly: AssemblyCopyright("Copyright © 2019")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("13f49a0b-68eb-4afe-bbf9-575e352ffe2f")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Readme.md b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Readme.md new file mode 100644 index 0000000..ec4c961 --- /dev/null +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/Readme.md @@ -0,0 +1,7 @@ +# Time Series Insights (Gen2) - Data Plane Client + +The [Generated](Generated/) folder contains an example client for Azure Time Series Insights (Gen2). + +Update `timeseriesinsights.json` from [here](https://github.com/Azure/azure-rest-api-specs/tree/master/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/timeseriesinsights.json) and run `GenerateCode.bat` to generate the new client. + +See [Readme](azure-rest-api-specs/specification/timeseriesinsights/data-plane/readme.md) for more details on generation. diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/AvailabilityGet.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/AvailabilityGet.json similarity index 95% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/AvailabilityGet.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/AvailabilityGet.json index 6d33f53..e35b777 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/AvailabilityGet.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/AvailabilityGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "clientRequestId": "A72703F6-C0B1-49EF-854A-59F1994F54E7", "clientSessionId": "AlertCalculation_W7" diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/AvailabilityGetEmpty.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/AvailabilityGetEmpty.json similarity index 80% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/AvailabilityGetEmpty.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/AvailabilityGetEmpty.json index 45512b7..02a63f2 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/AvailabilityGetEmpty.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/AvailabilityGetEmpty.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com" }, "responses": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreAvailabilityGet.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreAvailabilityGet.json similarity index 93% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreAvailabilityGet.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreAvailabilityGet.json index ba7137c..1d5a5a6 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreAvailabilityGet.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreAvailabilityGet.json @@ -1,7 +1,7 @@ { "parameters": { - "api-version": "2018-11-01-preview", - "storeType": "coldstore", + "api-version": "2020-07-31", + "storeType": "coldstore", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "clientRequestId": "A72703F6-C0B1-49EF-854A-59F1994F54E7", "clientSessionId": "AlertCalculation_W7" diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreEventSchemaGet.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreEventSchemaGet.json similarity index 92% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreEventSchemaGet.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreEventSchemaGet.json index a36ff34..facc465 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreEventSchemaGet.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreEventSchemaGet.json @@ -1,7 +1,7 @@ { "parameters": { - "api-version": "2018-11-01-preview", - "storeType": "coldstore", + "api-version": "2020-07-31", + "storeType": "coldstore", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "searchSpan": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryAggregateSeriesPage1.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryAggregateSeriesPage1.json similarity index 97% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryAggregateSeriesPage1.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryAggregateSeriesPage1.json index 7359328..d345efb 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryAggregateSeriesPage1.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryAggregateSeriesPage1.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "storeType": "coldstore", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryAggregateSeriesPage2.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryAggregateSeriesPage2.json similarity index 98% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryAggregateSeriesPage2.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryAggregateSeriesPage2.json index a775125..48fc490 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryAggregateSeriesPage2.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryAggregateSeriesPage2.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "storeType": "coldstore", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryGetEventsPage1.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryGetEventsPage1.json similarity index 95% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryGetEventsPage1.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryGetEventsPage1.json index 490978a..37529ae 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryGetEventsPage1.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryGetEventsPage1.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "storeType": "coldstore", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryGetEventsPage2.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryGetEventsPage2.json similarity index 98% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryGetEventsPage2.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryGetEventsPage2.json index 5a56e4a..5268716 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryGetEventsPage2.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryGetEventsPage2.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "storeType": "coldstore", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryGetEventsPage3.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryGetEventsPage3.json similarity index 97% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryGetEventsPage3.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryGetEventsPage3.json index 0bc2757..49fa1ae 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryGetEventsPage3.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryGetEventsPage3.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "storeType": "coldstore", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAxYZwidGFrZSI6MTAwMH0=", diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryGetEventsPage4.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryGetEventsPage4.json similarity index 95% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryGetEventsPage4.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryGetEventsPage4.json index db20c0b..969da41 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryGetEventsPage4.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryGetEventsPage4.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "storeType": "coldstore", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAbCDewidGFrZSI6MTAwMH0=", diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryGetSeriesPage1.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryGetSeriesPage1.json similarity index 95% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryGetSeriesPage1.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryGetSeriesPage1.json index c5b75b0..c7cbf05 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryGetSeriesPage1.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryGetSeriesPage1.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "storeType": "coldstore", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryGetSeriesPage2.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryGetSeriesPage2.json similarity index 97% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryGetSeriesPage2.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryGetSeriesPage2.json index 0f98a24..187c988 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryGetSeriesPage2.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryGetSeriesPage2.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "storeType": "coldstore", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryGetSeriesPage3.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryGetSeriesPage3.json similarity index 96% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryGetSeriesPage3.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryGetSeriesPage3.json index 6e8e106..f364724 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ColdStoreQueryGetSeriesPage3.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ColdStoreQueryGetSeriesPage3.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "storeType": "coldstore", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAxYZwidGFrZSI6MTAwMH0=", diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/EventSchemaGet.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/EventSchemaGet.json similarity index 80% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/EventSchemaGet.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/EventSchemaGet.json index bacda9f..1656183 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/EventSchemaGet.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/EventSchemaGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "searchSpan": { @@ -29,6 +29,14 @@ "name": "Temperature", "type": "Double" }, + { + "name": "Temperature", + "type": "Long" + }, + { + "name": "RGBArray", + "type": "Dynamic" + }, { "name": "Pressure", "type": "Double" diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/EventSchemaGetEmpty.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/EventSchemaGetEmpty.json similarity index 89% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/EventSchemaGetEmpty.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/EventSchemaGetEmpty.json index 798e8c3..e7010af 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/EventSchemaGetEmpty.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/EventSchemaGetEmpty.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "searchSpan": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchDeleteByIds.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/HierarchiesBatchDeleteByIds.json similarity index 89% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchDeleteByIds.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/HierarchiesBatchDeleteByIds.json index 9d625e2..05f5a95 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchDeleteByIds.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/HierarchiesBatchDeleteByIds.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "delete": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchDeleteByNames.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/HierarchiesBatchDeleteByNames.json similarity index 88% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchDeleteByNames.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/HierarchiesBatchDeleteByNames.json index e8f1c10..2e45d04 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchDeleteByNames.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/HierarchiesBatchDeleteByNames.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "delete": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchGetByIds.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/HierarchiesBatchGetByIds.json similarity index 96% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchGetByIds.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/HierarchiesBatchGetByIds.json index dd235ac..b3b26c6 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchGetByIds.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/HierarchiesBatchGetByIds.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "get": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchGetByNames.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/HierarchiesBatchGetByNames.json similarity index 95% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchGetByNames.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/HierarchiesBatchGetByNames.json index 12f91a5..f111f85 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchGetByNames.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/HierarchiesBatchGetByNames.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "get": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchPut.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/HierarchiesBatchPut.json similarity index 97% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchPut.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/HierarchiesBatchPut.json index f721d4f..931ca0a 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesBatchPut.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/HierarchiesBatchPut.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "put": [ diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesGetPage1.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/HierarchiesListPage1.json similarity index 92% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesGetPage1.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/HierarchiesListPage1.json index 8e9cd4c..8dfb82e 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesGetPage1.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/HierarchiesListPage1.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com" }, "responses": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesGetPage2.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/HierarchiesListPage2.json similarity index 93% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesGetPage2.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/HierarchiesListPage2.json index ee899ea..a49d1ae 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesGetPage2.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/HierarchiesListPage2.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=" }, diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesGetPage3.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/HierarchiesListPage3.json similarity index 86% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesGetPage3.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/HierarchiesListPage3.json index 0efe910..1b74797 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/HierarchiesGetPage3.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/HierarchiesListPage3.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrASI6MTAwMH0=" }, diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchDeleteByIds.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesBatchDeleteByIds.json similarity index 95% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchDeleteByIds.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesBatchDeleteByIds.json index d0039bc..30f202f 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchDeleteByIds.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesBatchDeleteByIds.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "delete": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchDeleteByNames.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesBatchDeleteByNames.json similarity index 94% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchDeleteByNames.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesBatchDeleteByNames.json index d8302aa..bc6efe5 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchDeleteByNames.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesBatchDeleteByNames.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "delete": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchGetByIds.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesBatchGetByIds.json similarity index 96% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchGetByIds.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesBatchGetByIds.json index 707f18d..d3384ff 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchGetByIds.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesBatchGetByIds.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "get": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchGetByNames.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesBatchGetByNames.json similarity index 95% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchGetByNames.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesBatchGetByNames.json index 4d7e870..5203b15 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchGetByNames.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesBatchGetByNames.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "get": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchPut.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesBatchPut.json similarity index 95% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchPut.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesBatchPut.json index 96b3c76..6e51a98 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchPut.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesBatchPut.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "put": [ diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchUpdate.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesBatchUpdate.json similarity index 95% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchUpdate.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesBatchUpdate.json index cef18e9..a52bd9e 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesBatchUpdate.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesBatchUpdate.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "update": [ diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesGetPage1.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesListPage1.json similarity index 95% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesGetPage1.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesListPage1.json index 6228d4d..f58bccb 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesGetPage1.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesListPage1.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com" }, "responses": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesGetPage2.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesListPage2.json similarity index 95% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesGetPage2.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesListPage2.json index e073f5a..353140e 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesGetPage2.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesListPage2.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=" }, diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesGetPage3.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesListPage3.json similarity index 86% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesGetPage3.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesListPage3.json index 49b39f0..cef5975 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesGetPage3.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesListPage3.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrASI6MTAwMH0=" }, diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSuggest.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesSuggest.json similarity index 94% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSuggest.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesSuggest.json index 3f6783e..aaa6985 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/InstancesSuggest.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/InstancesSuggest.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "searchString": "flo", diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ModelSettingsGet.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ModelSettingsGet.json similarity index 91% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ModelSettingsGet.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ModelSettingsGet.json index 33be629..51947ff 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ModelSettingsGet.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ModelSettingsGet.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com" }, "responses": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ModelSettingsUpdateName.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ModelSettingsUpdateName.json similarity index 92% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ModelSettingsUpdateName.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ModelSettingsUpdateName.json index a293f2d..84b703f 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/ModelSettingsUpdateName.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/ModelSettingsUpdateName.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "name": "Thermostats" diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage1.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryAggregateSeriesPage1.json similarity index 97% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage1.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryAggregateSeriesPage1.json index 927530c..997acfa 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage1.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryAggregateSeriesPage1.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "aggregateSeries": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage2.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryAggregateSeriesPage2.json similarity index 98% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage2.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryAggregateSeriesPage2.json index 9c0424d..2af045d 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesPage2.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryAggregateSeriesPage2.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", "parameters": { diff --git a/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryAggregateSeriesWithCategoricalInterpolatedVariable.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryAggregateSeriesWithCategoricalInterpolatedVariable.json new file mode 100644 index 0000000..8e8bf97 --- /dev/null +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryAggregateSeriesWithCategoricalInterpolatedVariable.json @@ -0,0 +1,250 @@ +{ + "parameters": { + "api-version": "2020-07-31", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", + "parameters": { + "aggregateSeries": { + "searchSpan": { + "from": "2019-10-10T23:41:04.021Z", + "to": "2019-10-10T23:42:22.846Z" + }, + "timeSeriesId": [ + "Sensor_58" + ], + "interval": "PT2S", + "inlineVariables": { + "Status_String": { + "kind": "categorical", + "value": { + "tsx": "$event['Status'].String" + }, + "interpolation": { + "kind": "Step", + "boundary": { + "span": "PT5S" + } + }, + "categories": [ + { + "label": "Good", + "values": [ + "Good", + "Very Good", + "Excellent" + ] + }, + { + "label": "Bad", + "values": [ + "Bad", + "OK" + ] + }, + { + "label": "Other", + "values": [ + "Other" + ] + } + ], + "defaultCategory": { + "label": "Unknown" + } + }, + "Status_Long": { + "kind": "categorical", + "value": { + "tsx": "tolong($event['Status'].Double)" + }, + "interpolation": { + "kind": "Step", + "boundary": { + "span": "PT5S" + } + }, + "categories": [ + { + "label": "Good", + "values": [ + 0, + 1, + 2 + ] + }, + { + "label": "Bad", + "values": [ + 3, + 4 + ] + }, + { + "label": "Other", + "values": [ + 5 + ] + } + ], + "defaultCategory": { + "label": "Unknown" + } + } + }, + "projectedVariables": [ + "Status_String", + "Status_Long" + ] + } + } + }, + "responses": { + "200": { + "body": { + "timestamps": [ + "2019-10-10T23:41:04Z", + "2019-10-10T23:41:06Z", + "2019-10-10T23:41:08Z", + "2019-10-10T23:41:10Z", + "2019-10-10T23:41:12Z", + "2019-10-10T23:41:14Z", + "2019-10-10T23:41:16Z", + "2019-10-10T23:41:18Z", + "2019-10-10T23:41:20Z", + "2019-10-10T23:41:22Z" + ], + "properties": [ + { + "values": [ + 0.203, + 0.141, + 0.268, + 0.398, + 0.402, + 0.047, + 0.1245, + 0.75, + 0.206, + 0.2635 + ], + "name": "Status_String[Good]", + "type": "Double" + }, + { + "values": [ + 0.266, + 0.1955, + 0.242, + 0.148, + 0.25, + 0.055, + 0.6295, + 0.109, + 0.41, + 0.2125 + ], + "name": "Status_String[Bad]", + "type": "Double" + }, + { + "values": [ + 0.5205, + 0.6635, + 0.49, + 0.454, + 0.348, + 0.898, + 0.246, + 0.141, + 0.384, + 0.524 + ], + "name": "Status_String[Other]", + "type": "Double" + }, + { + "values": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "name": "Status_String[Unknown]", + "type": "Double" + }, + { + "values": [ + 0.203, + 0.141, + 0.268, + 0.398, + 0.402, + 0.047, + 0.1245, + 0.75, + 0.206, + 0.2635 + ], + "name": "Status_Long[Good]", + "type": "Double" + }, + { + "values": [ + 0.266, + 0.1955, + 0.242, + 0.148, + 0.25, + 0.055, + 0.6295, + 0.109, + 0.41, + 0.2125 + ], + "name": "Status_Long[Bad]", + "type": "Double" + }, + { + "values": [ + 0.5205, + 0.6635, + 0.49, + 0.454, + 0.348, + 0.898, + 0.246, + 0.141, + 0.384, + 0.524 + ], + "name": "Status_Long[Other]", + "type": "Double" + }, + { + "values": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "name": "Status_Long[Unknown]", + "type": "Double" + } + ], + "progress": 100.0 + } + } + } +} diff --git a/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryAggregateSeriesWithCategoricalVariable.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryAggregateSeriesWithCategoricalVariable.json new file mode 100644 index 0000000..324fa81 --- /dev/null +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryAggregateSeriesWithCategoricalVariable.json @@ -0,0 +1,238 @@ +{ + "parameters": { + "api-version": "2020-07-31", + "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", + "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", + "parameters": { + "aggregateSeries": { + "searchSpan": { + "from": "2019-10-10T23:42:00.000Z", + "to": "2019-10-10T23:42:20.000Z" + }, + "timeSeriesId": [ + "Sensor_58" + ], + "interval": "PT2S", + "inlineVariables": { + "Status_String": { + "kind": "categorical", + "value": { + "tsx": "$event['Status'].String" + }, + "categories": [ + { + "label": "Good", + "values": [ + "Good", + "Very Good", + "Excellent" + ] + }, + { + "label": "Bad", + "values": [ + "Bad", + "OK" + ] + }, + { + "label": "Other", + "values": [ + "Other" + ] + } + ], + "defaultCategory": { + "label": "Unknown" + } + }, + "Status_Long": { + "kind": "categorical", + "value": { + "tsx": "tolong($event['Status'].Double)" + }, + "categories": [ + { + "label": "Good", + "values": [ + 0, + 1, + 2 + ] + }, + { + "label": "Bad", + "values": [ + 3, + 4 + ] + }, + { + "label": "Other", + "values": [ + 5 + ] + } + ], + "defaultCategory": { + "label": "Unknown" + } + } + }, + "projectedVariables": [ + "Status_String", + "Status_Long" + ] + } + } + }, + "responses": { + "200": { + "body": { + "timestamps": [ + "2019-10-10T23:42:00Z", + "2019-10-10T23:42:02Z", + "2019-10-10T23:42:04Z", + "2019-10-10T23:42:06Z", + "2019-10-10T23:42:08Z", + "2019-10-10T23:42:10Z", + "2019-10-10T23:42:12Z", + "2019-10-10T23:42:14Z", + "2019-10-10T23:42:16Z", + "2019-10-10T23:42:18Z" + ], + "properties": [ + { + "values": [ + 5, + 8, + 4, + 6, + 9, + 8, + 3, + 6, + 5, + 8 + ], + "name": "Status_String[Good]", + "type": "Long" + }, + { + "values": [ + 4, + 3, + 3, + 5, + 5, + 3, + 9, + 7, + 7, + 7 + ], + "name": "Status_String[Bad]", + "type": "Long" + }, + { + "values": [ + 11, + 9, + 13, + 9, + 6, + 9, + 8, + 7, + 8, + 5 + ], + "name": "Status_String[Other]", + "type": "Long" + }, + { + "values": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "name": "Status_String[Unknown]", + "type": "Long" + }, + { + "values": [ + 5, + 8, + 4, + 6, + 9, + 8, + 3, + 6, + 5, + 8 + ], + "name": "Status_Long[Good]", + "type": "Long" + }, + { + "values": [ + 4, + 3, + 3, + 5, + 5, + 3, + 9, + 7, + 7, + 7 + ], + "name": "Status_Long[Bad]", + "type": "Long" + }, + { + "values": [ + 11, + 9, + 13, + 9, + 6, + 9, + 8, + 7, + 8, + 5 + ], + "name": "Status_Long[Other]", + "type": "Long" + }, + { + "values": [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ], + "name": "Status_Long[Unknown]", + "type": "Long" + } + ], + "progress": 100.0 + } + } + } +} diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesWithSampleInterpolation.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryAggregateSeriesWithSampleInterpolation.json similarity index 98% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesWithSampleInterpolation.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryAggregateSeriesWithSampleInterpolation.json index 907d909..6a017b3 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryAggregateSeriesWithSampleInterpolation.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryAggregateSeriesWithSampleInterpolation.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", "parameters": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage1.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetEventsPage1.json similarity index 95% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage1.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetEventsPage1.json index a67cee0..8c28ab0 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage1.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetEventsPage1.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "getEvents": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage2.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetEventsPage2.json similarity index 98% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage2.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetEventsPage2.json index 482e6a1..c3652a1 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage2.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetEventsPage2.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", "parameters": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage3.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetEventsPage3.json similarity index 97% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage3.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetEventsPage3.json index 8a42d4e..d384332 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage3.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetEventsPage3.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAxYZwidGFrZSI6MTAwMH0=", "parameters": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage4.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetEventsPage4.json similarity index 95% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage4.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetEventsPage4.json index 1dc95e8..72e4084 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsPage4.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetEventsPage4.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAbCDewidGFrZSI6MTAwMH0=", "parameters": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsWithTakePage1.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetEventsWithTakePage1.json similarity index 95% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsWithTakePage1.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetEventsWithTakePage1.json index 759c1a3..650521a 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsWithTakePage1.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetEventsWithTakePage1.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "getEvents": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsWithTakePage2.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetEventsWithTakePage2.json similarity index 98% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsWithTakePage2.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetEventsWithTakePage2.json index 0ffea83..ad97907 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetEventsWithTakePage2.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetEventsWithTakePage2.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", "parameters": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage1.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetSeriesPage1.json similarity index 95% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage1.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetSeriesPage1.json index 768d288..1f35b4a 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage1.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetSeriesPage1.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "getSeries": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage2.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetSeriesPage2.json similarity index 97% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage2.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetSeriesPage2.json index d795bd8..e71d289 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage2.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetSeriesPage2.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", "parameters": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage3.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetSeriesPage3.json similarity index 96% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage3.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetSeriesPage3.json index a138be6..f8e062a 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesPage3.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetSeriesPage3.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAxYZwidGFrZSI6MTAwMH0=", "parameters": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesWithTakePage1.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetSeriesWithTakePage1.json similarity index 95% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesWithTakePage1.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetSeriesWithTakePage1.json index 380fd2a..0ac165a 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesWithTakePage1.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetSeriesWithTakePage1.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "getSeries": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesWithTakePage2.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetSeriesWithTakePage2.json similarity index 97% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesWithTakePage2.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetSeriesWithTakePage2.json index 881ca18..ffce880 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/QueryGetSeriesWithTakePage2.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/QueryGetSeriesWithTakePage2.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", "parameters": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesDefault.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/SearchInstancesDefault.json similarity index 96% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesDefault.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/SearchInstancesDefault.json index a1e12a7..6df5ad3 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesDefault.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/SearchInstancesDefault.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "searchString": "floor 100" diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesExpandHierarchiesOnly.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/SearchInstancesExpandHierarchiesOnly.json similarity index 97% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesExpandHierarchiesOnly.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/SearchInstancesExpandHierarchiesOnly.json index c2443f2..c8ffe26 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesExpandHierarchiesOnly.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/SearchInstancesExpandHierarchiesOnly.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "searchString": "floor 100", diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesHierarchiesDefaultInputPage1.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/SearchInstancesHierarchiesDefaultInputPage1.json similarity index 98% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesHierarchiesDefaultInputPage1.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/SearchInstancesHierarchiesDefaultInputPage1.json index a4053f0..4948caf 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesHierarchiesDefaultInputPage1.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/SearchInstancesHierarchiesDefaultInputPage1.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "searchString": "floor 100", diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesHierarchiesDefaultInputPage2.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/SearchInstancesHierarchiesDefaultInputPage2.json similarity index 98% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesHierarchiesDefaultInputPage2.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/SearchInstancesHierarchiesDefaultInputPage2.json index 0557d31..38e5334 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesHierarchiesDefaultInputPage2.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/SearchInstancesHierarchiesDefaultInputPage2.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "c3sic2tpcCI6MiwidGFrZSI6MiwicmVxdWVzdEhhc2hDb2RlIjotNTE3MDUxOTg0LCJlbnZpcm9ubWVudElkIjoiYmY0M2YxMzMtM2Y2OC00ZWMwLWJjYjQtZmQ2NDUzMGU0MjU2In0=", "parameters": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesHierarchiesDefaultInputPage3.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/SearchInstancesHierarchiesDefaultInputPage3.json similarity index 97% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesHierarchiesDefaultInputPage3.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/SearchInstancesHierarchiesDefaultInputPage3.json index f3aa770..0f93212 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesHierarchiesDefaultInputPage3.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/SearchInstancesHierarchiesDefaultInputPage3.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aHsic2tpcCI6MiwidGFrZSI6MiwicmVxdWVzdEhhc2hDb2RlIjotNzA4NTgyODU0LCJlbnZpcm9ubWVudElkIjoiYmY0M2YxMzMtM2Y2OC00ZWMwLWJjYjQtZmQ2NDUzMGU0MjU2In0=", "parameters": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesOneLevel.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/SearchInstancesOneLevel.json similarity index 96% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesOneLevel.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/SearchInstancesOneLevel.json index f59e6e7..7d98d6a 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesOneLevel.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/SearchInstancesOneLevel.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "searchString": "floor 100", diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesRecursive.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/SearchInstancesRecursive.json similarity index 97% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesRecursive.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/SearchInstancesRecursive.json index 7473260..9cccb4d 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesRecursive.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/SearchInstancesRecursive.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "searchString": "floor 100", diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesUntilChildren.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/SearchInstancesUntilChildren.json similarity index 97% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesUntilChildren.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/SearchInstancesUntilChildren.json index 5f7b15f..5375c7c 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/SearchInstancesUntilChildren.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/SearchInstancesUntilChildren.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "searchString": "floor 100", diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchDeleteByIds.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/TypesBatchDeleteByIds.json similarity index 89% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchDeleteByIds.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/TypesBatchDeleteByIds.json index 06cffe0..08f9e11 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchDeleteByIds.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/TypesBatchDeleteByIds.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "delete": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchDeleteByNames.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/TypesBatchDeleteByNames.json similarity index 89% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchDeleteByNames.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/TypesBatchDeleteByNames.json index 048590e..322f784 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchDeleteByNames.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/TypesBatchDeleteByNames.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "delete": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchGetByIds.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/TypesBatchGetByIds.json similarity index 97% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchGetByIds.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/TypesBatchGetByIds.json index 7970842..142255a 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchGetByIds.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/TypesBatchGetByIds.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "get": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchGetByNames.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/TypesBatchGetByNames.json similarity index 97% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchGetByNames.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/TypesBatchGetByNames.json index 09ba068..15adb49 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchGetByNames.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/TypesBatchGetByNames.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "get": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchPut.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/TypesBatchPut.json similarity index 98% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchPut.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/TypesBatchPut.json index cfce86f..477cf91 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesBatchPut.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/TypesBatchPut.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "put": [ diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesGetPage1.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/TypesListPage1.json similarity index 94% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesGetPage1.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/TypesListPage1.json index 204a4d9..ac645e3 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesGetPage1.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/TypesListPage1.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com" }, "responses": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesGetPage2.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/TypesListPage2.json similarity index 95% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesGetPage2.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/TypesListPage2.json index dacfd9d..429eaa2 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesGetPage2.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/TypesListPage2.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=" }, diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesGetPage3.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/TypesListPage3.json similarity index 86% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesGetPage3.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/TypesListPage3.json index 65be4bc..fcc38d7 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/TypesGetPage3.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/TypesListPage3.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrASI6MTAwMH0=" }, diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreAvailabilityGet.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreAvailabilityGet.json similarity index 93% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreAvailabilityGet.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreAvailabilityGet.json index df5dc1e..5f6118a 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreAvailabilityGet.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreAvailabilityGet.json @@ -1,7 +1,7 @@ { "parameters": { - "api-version": "2018-11-01-preview", - "storeType": "warmstore", + "api-version": "2020-07-31", + "storeType": "warmstore", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "clientRequestId": "A72703F6-C0B1-49EF-854A-59F1994F54E7", "clientSessionId": "AlertCalculation_W7" diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreEventSchemaGet.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreEventSchemaGet.json similarity index 92% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreEventSchemaGet.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreEventSchemaGet.json index 3224057..65f5a8a 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreEventSchemaGet.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreEventSchemaGet.json @@ -1,7 +1,7 @@ { "parameters": { - "api-version": "2018-11-01-preview", - "storeType": "warmstore", + "api-version": "2020-07-31", + "storeType": "warmstore", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "searchSpan": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreQueryAggregateSeriesPage.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreQueryAggregateSeriesPage.json similarity index 97% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreQueryAggregateSeriesPage.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreQueryAggregateSeriesPage.json index ec779d7..77fbd8d 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreQueryAggregateSeriesPage.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreQueryAggregateSeriesPage.json @@ -1,7 +1,7 @@ { "parameters": { - "api-version": "2018-11-01-preview", - "storeType": "warmstore", + "api-version": "2020-07-31", + "storeType": "warmstore", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { "aggregateSeries": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreQueryGetEventsPage1.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreQueryGetEventsPage1.json similarity index 95% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreQueryGetEventsPage1.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreQueryGetEventsPage1.json index b24cbf9..c0a3fb5 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreQueryGetEventsPage1.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreQueryGetEventsPage1.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "storeType": "warmstore", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreQueryGetEventsPage2.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreQueryGetEventsPage2.json similarity index 98% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreQueryGetEventsPage2.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreQueryGetEventsPage2.json index 4059db5..0aaf5fe 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreQueryGetEventsPage2.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreQueryGetEventsPage2.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "storeType": "warmstore", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreQueryGetEventsPage3.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreQueryGetEventsPage3.json similarity index 97% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreQueryGetEventsPage3.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreQueryGetEventsPage3.json index 09c3e5b..2e40d47 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreQueryGetEventsPage3.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreQueryGetEventsPage3.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "storeType": "warmstore", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAxYZwidGFrZSI6MTAwMH0=", diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreQueryGetEventsPage4.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreQueryGetEventsPage4.json similarity index 95% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreQueryGetEventsPage4.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreQueryGetEventsPage4.json index fc3e00c..a0d8ca7 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreQueryGetEventsPage4.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreQueryGetEventsPage4.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "storeType": "warmstore", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAbCDewidGFrZSI6MTAwMH0=", diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreQueryGetSeriesPage1.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreQueryGetSeriesPage1.json similarity index 95% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreQueryGetSeriesPage1.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreQueryGetSeriesPage1.json index 5c719a8..2fa6c4d 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreQueryGetSeriesPage1.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreQueryGetSeriesPage1.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "storeType": "warmstore", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "parameters": { diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreQueryGetSeriesPage2.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreQueryGetSeriesPage2.json similarity index 97% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreQueryGetSeriesPage2.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreQueryGetSeriesPage2.json index 7f8c824..cc16082 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreQueryGetSeriesPage2.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreQueryGetSeriesPage2.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "storeType": "warmstore", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAwMCwidGFrZSI6MTAwMH0=", diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreQueryGetSeriesPage3.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreQueryGetSeriesPage3.json similarity index 96% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreQueryGetSeriesPage3.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreQueryGetSeriesPage3.json index fb0e7a6..82709af 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/examples/WarmStoreQueryGetSeriesPage3.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/examples/WarmStoreQueryGetSeriesPage3.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2018-11-01-preview", + "api-version": "2020-07-31", "storeType": "warmstore", "environmentFqdn": "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com", "continuationToken": "aXsic2tpcCI6MTAxYZwidGFrZSI6MTAwMH0=", diff --git a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/timeseriesinsights.json similarity index 97% rename from csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/timeseriesinsights.json index 18913cc..b808bae 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/preview/2018-11-01-preview/timeseriesinsights.json +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/Microsoft.TimeSeriesInsights/stable/2020-07-31/timeseriesinsights.json @@ -2,8 +2,8 @@ "swagger": "2.0", "info": { "title": "TimeSeriesInsightsClient", - "description": "Time Series Insights environment data plane client for PAYG (Preview L1 SKU) environments.", - "version": "2018-11-01-preview" + "description": "Time Series Insights environment data plane client for Gen2 (GA L1 SKU) environments.", + "version": "2020-07-31" }, "x-ms-parameterized-host": { "hostTemplate": "{environmentFqdn}", @@ -51,7 +51,7 @@ "operationId": "Query_GetAvailability", "description": "Returns the time range and distribution of event count over the event timestamp ($ts). This API can be used to provide landing experience of navigating to the environment.", "x-ms-examples": { - "AvailabilityGet":{ + "AvailabilityGet": { "$ref": "./examples/AvailabilityGet.json" }, "ColdStoreAvailabilityGet": { @@ -188,7 +188,7 @@ "ModelSettings" ], "operationId": "ModelSettings_Get", - "description": "Returns the model settings which includes model display name, Time Series ID properties and default type ID. Every pay-as-you-go environment has a model that is automatically created.", + "description": "Returns the model settings which includes model display name, Time Series ID properties and default type ID. Every Gen2 environment has a model that is automatically created.", "x-ms-examples": { "ModelSettingsGet": { "$ref": "./examples/ModelSettingsGet.json" @@ -464,17 +464,17 @@ "tags": [ "TimeSeriesInstances" ], - "operationId": "TimeSeriesInstances_Get", + "operationId": "TimeSeriesInstances_List", "description": "Gets time series instances in pages.", "x-ms-examples": { - "InstancesGetPage1": { - "$ref": "./examples/InstancesGetPage1.json" + "InstancesListPage1": { + "$ref": "./examples/InstancesListPage1.json" }, - "InstancesGetPage2": { - "$ref": "./examples/InstancesGetPage2.json" + "InstancesListPage2": { + "$ref": "./examples/InstancesListPage2.json" }, - "InstancesGetPage3": { - "$ref": "./examples/InstancesGetPage3.json" + "InstancesListPage3": { + "$ref": "./examples/InstancesListPage3.json" } }, "parameters": [ @@ -539,7 +539,7 @@ "$ref": "./examples/InstancesBatchGetByIds.json" }, "InstancesBatchGetByNames": { - "$ref": "./examples/InstancesBatchGetByIds.json" + "$ref": "./examples/InstancesBatchGetByNames.json" }, "InstancesBatchUpdate": { "$ref": "./examples/InstancesBatchUpdate.json" @@ -751,17 +751,17 @@ "tags": [ "TimeSeriesTypes" ], - "operationId": "TimeSeriesTypes_Get", + "operationId": "TimeSeriesTypes_List", "description": "Gets time series types in pages.", "x-ms-examples": { - "TypesGetPage1": { - "$ref": "./examples/TypesGetPage1.json" + "TypesListPage1": { + "$ref": "./examples/TypesListPage1.json" }, - "TypesGetPage2": { - "$ref": "./examples/TypesGetPage2.json" + "TypesListPage2": { + "$ref": "./examples/TypesListPage2.json" }, - "TypesGetPage3": { - "$ref": "./examples/TypesGetPage3.json" + "TypesListPage3": { + "$ref": "./examples/TypesListPage3.json" } }, "parameters": [ @@ -887,17 +887,17 @@ "tags": [ "TimeSeriesHierarchies" ], - "operationId": "TimeSeriesHierarchies_Get", + "operationId": "TimeSeriesHierarchies_List", "description": "Returns time series hierarchies definitions in pages.", "x-ms-examples": { - "HierarchiesGetPage1": { - "$ref": "./examples/HierarchiesGetPage1.json" + "HierarchiesListPage1": { + "$ref": "./examples/HierarchiesListPage1.json" }, - "HierarchiesGetPage2": { - "$ref": "./examples/HierarchiesGetPage2.json" + "HierarchiesListPage2": { + "$ref": "./examples/HierarchiesListPage2.json" }, - "HierarchiesGetPage3": { - "$ref": "./examples/HierarchiesGetPage3.json" + "HierarchiesListPage3": { + "$ref": "./examples/HierarchiesListPage3.json" } }, "parameters": [ @@ -1396,7 +1396,7 @@ "values" ] }, - "TimeSeriesDefaultCategory" : { + "TimeSeriesDefaultCategory": { "description": "Represents the default category.", "type": "object", "properties": { @@ -1512,8 +1512,7 @@ }, "typeId": { "description": "This represents the type that this instance belongs to. Never null.", - "type": "string", - "format": "uuid" + "type": "string" }, "name": { "description": "Optional name of the instance which is unique in an environment. Names acts as a mutable alias or display name of the time series instance. Mutable, may be null.", @@ -1527,8 +1526,7 @@ "description": "Set of time series hierarchy IDs that the instance belong to. May be null.", "type": "array", "items": { - "type": "string", - "format": "uuid" + "type": "string" } }, "instanceFields": { @@ -1670,9 +1668,8 @@ "type": "object", "properties": { "id": { - "description": "Unique type identifier that is immutable. Can be null on create or update requests, and then server generates the ID. Not null on get and delete operations.", - "type": "string", - "format": "uuid" + "description": "Case-sensitive unique type identifier that is immutable. Can be null on create or update requests, and then server generates the ID. Not null on get and delete operations.", + "type": "string" }, "name": { "description": "User-given unique name for the type. Mutable, not null.", @@ -1723,8 +1720,7 @@ "description": "List of IDs of time series types to return or delete.", "type": "array", "items": { - "type": "string", - "format": "uuid" + "type": "string" } }, "names": { @@ -1808,9 +1804,8 @@ "type": "object", "properties": { "id": { - "description": "Unique hierarchy identifier that is a immutable GUID. Can be null while creating hierarchy objects and then server generates the id, not null on get and delete operations.", - "type": "string", - "format": "uuid" + "description": "Case-sensitive unique hierarchy identifier. Can be null while creating hierarchy objects and then server generates the id, not null on get and delete operations.", + "type": "string" }, "name": { "description": "User-given unique name for the type. It is mutable and not null.", @@ -1864,8 +1859,7 @@ "description": "List of hierarchy IDs.", "type": "array", "items": { - "type": "string", - "format": "uuid" + "type": "string" } }, "names": { @@ -1951,8 +1945,7 @@ "defaultTypeId": { "description": "Default type ID of the model that new time series instances will automatically belong to.", "readOnly": true, - "type": "string", - "format": "uuid" + "type": "string" } } }, @@ -1997,8 +1990,7 @@ }, "defaultTypeId": { "description": "Default type id of the model that new instances will automatically belong to.", - "type": "string", - "format": "uuid" + "type": "string" } } }, @@ -2217,16 +2209,14 @@ "typeId": { "description": "Represents the type that time series instance which matched the search request belongs to. Never null.", "readOnly": true, - "type": "string", - "format": "uuid" + "type": "string" }, "hierarchyIds": { "description": "List of time series hierarchy IDs that time series instance which matched the search request belongs to. Cannot be used to lookup hierarchies. May be null.", "readOnly": true, "type": "array", "items": { - "type": "string", - "format": "uuid" + "type": "string" } }, "highlights": { @@ -2262,8 +2252,7 @@ "readOnly": true, "type": "array", "items": { - "type": "string", - "format": "uuid" + "type": "string" } }, "hierarchyNames": { @@ -2476,17 +2465,17 @@ "name": "api-version", "in": "query", "required": true, - "default": "2018-11-01-preview", + "default": "2020-07-31", "type": "string", - "description": "Version of the API to be used with the client request. Currently supported version is \"2018-11-01-preview\"." + "description": "Version of the API to be used with the client request. Currently supported version is \"2020-07-31\"." }, - "StoreType" : { - "name" : "storeType", - "in" : "query", + "StoreType": { + "name": "storeType", + "in": "query", "required": false, "type": "string", "x-ms-parameter-location": "method", - "description":"For the environments with warm store enabled, the query can be executed either on the 'WarmStore' or 'ColdStore'. This parameter in the query defines which store the query should be executed on. If not defined, the query will be executed on the cold store." + "description": "For the environments with warm store enabled, the query can be executed either on the 'WarmStore' or 'ColdStore'. This parameter in the query defines which store the query should be executed on. If not defined, the query will be executed on the cold store." }, "EnvironmentFqdn": { "name": "environmentFqdn", @@ -2525,4 +2514,4 @@ "description": "Optional client session ID. Service records this value. Allows the service to trace a group of related operations across services, and allows the customer to contact support regarding a particular group of requests." } } -} \ No newline at end of file +} diff --git a/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/readme.md b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/readme.md new file mode 100644 index 0000000..3e50cc9 --- /dev/null +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/azure-rest-api-specs/specification/timeseriesinsights/data-plane/readme.md @@ -0,0 +1,97 @@ + +# Azure Time Series Insights + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for Azure Time Series Insights Gen2 Data Plane API. + +--- + +## Getting Started + +To build the SDK for Azure Time Series Insights Gen2 Data Plane API, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run: + +> `autorest` + +To see additional help and options, run: + +> `autorest --help` +--- + +## Configuration + +### Basic Information + +These are the global settings for Azure Time Series Insights Gen2 Data Plane API. + +``` yaml +openapi-type: data-plane +add-credentials: true +license-header: MICROSOFT_MIT +tag: package-2020-07-31 +``` + +### Tag: package-2020-07-31 + +These settings apply only when `--tag=package-2020-07-31` is specified on the command line. + +``` yaml $(tag) == 'package-2020-07-31' +input-file: +- Microsoft.TimeSeriesInsights/stable/2020-07-31/timeseriesinsights.json +``` + +## Suppression + +``` yaml +directive: + - suppress: R2001 + reason: Adding flattening does not improve the code - array of properties is not supported by flattening. See https://github.com/Azure/oav/issues/416 +``` + +``` yaml +directive: + - suppress: R3017 + reason: GUIDs are required to enforce referential constraints and reduce number of updates. +``` + +--- +# Code Generation + +## C# + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +``` yaml $(csharp) +csharp: + sync-methods: none + azure-arm: false + license-header: MICROSOFT_MIT_NO_VERSION + namespace: Microsoft.Azure.TimeSeriesInsights + output-folder: $(csharp-sdks-folder)/TimeSeriesInsights/DataPlane.TimeSeriesInsights/Generated +``` + +## Multi-API/Profile support for AutoRest v3 generators + +AutoRest V3 generators require the use of `--tag=all-api-versions` to select api files. + +This block is updated by an automatic script. Edits may be lost! + +``` yaml $(tag) == 'all-api-versions' /* autogenerated */ +# include the azure profile definitions from the standard location +require: $(this-folder)/../../../profiles/readme.md + +# all the input files across all versions +input-file: + - $(this-folder)/Microsoft.TimeSeriesInsights/stable/2020-07-31/timeseriesinsights.json + +``` + +If there are files that should not be in the `all-api-versions` set, +uncomment the `exclude-file` section below and add the file paths. + +``` yaml $(tag) == 'all-api-versions' +#exclude-file: +# - $(this-folder)/Microsoft.Example/stable/2010-01-01/somefile.json +``` + diff --git a/csharp-tsi-preview-sample/DataPlaneClient/packages.config b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/packages.config similarity index 98% rename from csharp-tsi-preview-sample/DataPlaneClient/packages.config rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/packages.config index 1540d6e..889b7b1 100644 --- a/csharp-tsi-preview-sample/DataPlaneClient/packages.config +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/packages.config @@ -1,7 +1,7 @@ - - - - - - + + + + + + \ No newline at end of file diff --git a/csharp-tsi-preview-sample/DataPlaneClientSampleApp/DataPlaneClientSampleApp.csproj b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClientSampleApp/DataPlaneClientSampleApp.csproj similarity index 97% rename from csharp-tsi-preview-sample/DataPlaneClientSampleApp/DataPlaneClientSampleApp.csproj rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClientSampleApp/DataPlaneClientSampleApp.csproj index 77a86ab..15944f0 100644 --- a/csharp-tsi-preview-sample/DataPlaneClientSampleApp/DataPlaneClientSampleApp.csproj +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClientSampleApp/DataPlaneClientSampleApp.csproj @@ -1,100 +1,100 @@ - - - - - Debug - AnyCPU - {F24742E1-1A2E-4047-82F3-B6F37A04E231} - Exe - Properties - DataPlaneClientSampleApp - DataPlaneClientSampleApp - v4.5.2 - 512 - true - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\Hyak.Common.1.2.2\lib\net452\Hyak.Common.dll - True - - - ..\packages\Microsoft.Azure.Common.2.2.1\lib\net452\Microsoft.Azure.Common.dll - True - - - ..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.4.5.1\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll - True - - - ..\packages\Microsoft.Rest.ClientRuntime.2.3.20\lib\net452\Microsoft.Rest.ClientRuntime.dll - True - - - ..\packages\Microsoft.Rest.ClientRuntime.Azure.3.3.19\lib\net452\Microsoft.Rest.ClientRuntime.Azure.dll - True - - - ..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll - True - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {13f49a0b-68eb-4afe-bbf9-575e352ffe2f} - DataPlaneClient - - - - + + + + + Debug + AnyCPU + {F24742E1-1A2E-4047-82F3-B6F37A04E231} + Exe + Properties + DataPlaneClientSampleApp + DataPlaneClientSampleApp + v4.7.2 + 512 + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\packages\Hyak.Common.1.2.2\lib\net452\Hyak.Common.dll + True + + + ..\packages\Microsoft.Azure.Common.2.2.1\lib\net452\Microsoft.Azure.Common.dll + True + + + ..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.4.5.1\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll + True + + + ..\packages\Microsoft.Rest.ClientRuntime.2.3.20\lib\net452\Microsoft.Rest.ClientRuntime.dll + True + + + ..\packages\Microsoft.Rest.ClientRuntime.Azure.3.3.19\lib\net452\Microsoft.Rest.ClientRuntime.Azure.dll + True + + + ..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll + True + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {13f49a0b-68eb-4afe-bbf9-575e352ffe2f} + DataPlaneClient + + + + \ No newline at end of file diff --git a/csharp-tsi-preview-sample/DataPlaneClientSampleApp/Program.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClientSampleApp/Program.cs similarity index 81% rename from csharp-tsi-preview-sample/DataPlaneClientSampleApp/Program.cs rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClientSampleApp/Program.cs index adfb707..e4c6d8e 100644 --- a/csharp-tsi-preview-sample/DataPlaneClientSampleApp/Program.cs +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClientSampleApp/Program.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Net; using System.Threading.Tasks; using Microsoft.Azure; using Microsoft.Azure.TimeSeriesInsights; @@ -15,7 +14,7 @@ namespace DataPlaneSampleApp { public sealed class Program { - private const string ResourceUri = "https://api.timeseries.azure.com/"; + private const string ResourceUri = "120d688d-1518-4cf7-bd38-182f158850b6"; private const string PowerShellAadClientId = "1950a258-227b-4e31-a9cf-717495945fc2"; private const string AzureActiveDirectoryLoginUrl = "https://login.windows.net"; private const string MicrosoftTenantId = "72f988bf-86f1-41af-91ab-2d7cd011db47"; @@ -25,7 +24,7 @@ public sealed class Program private const string EnvironmentFqdn = "10000000-0000-0000-0000-100000000109.env.timeseries.azure.com"; // Select a timeSeriesId from the environment. - private static readonly object[] TimeSeriesId = new object[] { "2da181d7-8346-4cf2-bd94-a17742237429" }; + private static readonly object[] TimeSeriesId = { "2da181d7-8346-4cf2-bd94-a17742237429" }; // Select a search span for the query. private static readonly DateTimeRange SearchSpan = new DateTimeRange(new DateTime(2017, 12, 31).ToUniversalTime(), new DateTime(2018, 01, 01).ToUniversalTime()); @@ -35,8 +34,6 @@ public sealed class Program static void Main(string[] args) { - System.Net.ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12; - _client = GetTimeSeriesInsightsClientAsync().Result; while (true) @@ -100,7 +97,7 @@ private static async Task RunOperationsLoopAsync() [12] = new Operation("Search", RunSearchBatchAsync), }; - private static async Task RunSearchBatchAsync() + private static async Task RunSearchBatchAsync() { SearchInstancesRequest searchRequest = new SearchInstancesRequest( "GearboxSensor", @@ -129,10 +126,10 @@ private static async Task RunHierarchiesBatchAsync() private static async Task RunGetHierarchiesAsync() { - string continuationToken = null; + string continuationToken; do { - GetHierarchiesPage hierarchies = await _client.TimeSeriesHierarchies.GetAsync(continuationToken: continuationToken); + GetHierarchiesPage hierarchies = await _client.TimeSeriesHierarchies.ListAsync(); PrintResponse(hierarchies.Hierarchies); continuationToken = hierarchies.ContinuationToken; @@ -161,17 +158,17 @@ private static async Task RunTypesBatchAsync() { TypesBatchResponse types = await _client.TimeSeriesTypes.ExecuteBatchAsync( new TypesBatchRequest( - get: new TypesRequestBatchGetOrDelete(typeIds: new List() { Guid.Parse("1BE09AF9-F089-4D6B-9F0B-48018B5F7393") }))); + get: new TypesRequestBatchGetOrDelete(typeIds: new List() { "1be09af9-f089-4d6b-9f0b-48018b5f7393" }))); PrintResponse(types.Get.First().TimeSeriesType); } private static async Task RunGetTypesAsync() { - string continuationToken = null; + string continuationToken; do { - GetTypesPage types = await _client.TimeSeriesTypes.GetAsync(continuationToken: continuationToken); + GetTypesPage types = await _client.TimeSeriesTypes.ListAsync(); PrintResponse(types.Types); continuationToken = types.ContinuationToken; @@ -222,7 +219,7 @@ private static async Task RunInstancesBatchAsync() private static async Task RunGetInstancesAsync() { - string continuationToken = null; + string continuationToken; // Limit the total instances received. int limit = 1000; @@ -230,7 +227,7 @@ private static async Task RunGetInstancesAsync() TimeSeriesInstance firstInstance = null; do { - GetInstancesPage instancesPage = await _client.TimeSeriesInstances.GetAsync(continuationToken: continuationToken); + GetInstancesPage instancesPage = await _client.TimeSeriesInstances.ListAsync(); if (instancesPage.Instances != null) { @@ -276,7 +273,7 @@ private static async Task GetEventSchemaAsync() private static async Task RunAggregateSeriesAsync() { - string continuationToken = null; + string continuationToken; do { QueryResultPage queryResponse = await _client.Query.ExecuteAsync( @@ -286,7 +283,7 @@ private static async Task RunAggregateSeriesAsync() searchSpan: SearchSpan, filter: null, interval: TimeSpan.FromMinutes(5), - projectedVariables: new[] { "Min_Numeric", "Max_Numeric", "Sum_Numeric", "Avg_Numeric", "First_Numeric", "Last_Numeric", "Count_Aggregate" }, + projectedVariables: new[] { "Min_Numeric", "Max_Numeric", "Sum_Numeric", "Avg_Numeric", "First_Numeric", "Last_Numeric", "SampleInterpolated_Numeric_Step_NoBoundary", "SampleInterpolated_Numeric_Step", "SampleInterpolated_Numeric_Linear_NoBoundary", "SampleInterpolated_Numeric_Linear", "Categorical_NonInterpolated", "Categorical_Interpolated", "Count_Aggregate" }, inlineVariables: new Dictionary() { ["Min_Numeric"] = new NumericVariable( @@ -307,10 +304,46 @@ private static async Task RunAggregateSeriesAsync() ["Last_Numeric"] = new NumericVariable( value: new Tsx("$event.data"), aggregation: new Tsx("last($value)")), + ["SampleInterpolated_Numeric_Step_NoBoundary"] = new NumericVariable( + value: new Tsx("$event.data"), + aggregation: new Tsx("left($value)"), + interpolation: new Interpolation(kind: "Step")), + ["SampleInterpolated_Numeric_Step"] = new NumericVariable( + value: new Tsx("$event.data"), + aggregation: new Tsx("left($value)"), + interpolation: new Interpolation(kind: "Step", boundary: new InterpolationBoundary(TimeSpan.FromMinutes(1)))), + ["SampleInterpolated_Numeric_Linear_NoBoundary"] = new NumericVariable( + value: new Tsx("$event.data"), + aggregation: new Tsx("left($value)"), + interpolation: new Interpolation(kind: "Linear")), + ["SampleInterpolated_Numeric_Linear"] = new NumericVariable( + value: new Tsx("$event.data"), + aggregation: new Tsx("left($value)"), + interpolation: new Interpolation(kind: "Linear", boundary: new InterpolationBoundary(TimeSpan.FromMinutes(1)))), + ["Categorical_NonInterpolated"] = new CategoricalVariable( + value: new Tsx("tolong($event.data)"), + categories: new List() + { + new TimeSeriesAggregateCategory(label: "Good", values: new List(){39}), + new TimeSeriesAggregateCategory(label: "Bad", values: new List(){40}), + new TimeSeriesAggregateCategory(label: "OK", values: new List(){41}), + new TimeSeriesAggregateCategory(label: "Reject", values: new List(){42}) + }, + defaultCategory: new TimeSeriesDefaultCategory("Others")), + ["Categorical_Interpolated"] = new CategoricalVariable( + value: new Tsx("tolong($event.data)"), + categories: new List() + { + new TimeSeriesAggregateCategory(label: "Good", values: new List(){39}), + new TimeSeriesAggregateCategory(label: "Bad", values: new List(){40}), + new TimeSeriesAggregateCategory(label: "OK", values: new List(){41}), + new TimeSeriesAggregateCategory(label: "Reject", values: new List(){42}) + }, + defaultCategory: new TimeSeriesDefaultCategory("Others"), + interpolation: new Interpolation(kind: "Step", boundary: new InterpolationBoundary(TimeSpan.FromMinutes(1)))), ["Count_Aggregate"] = new AggregateVariable( aggregation: new Tsx("count()")) - })), - continuationToken: continuationToken); + }))); PrintResponse(queryResponse); @@ -321,7 +354,7 @@ private static async Task RunAggregateSeriesAsync() private static async Task RunGetSeriesAsync() { - string continuationToken = null; + string continuationToken; do { QueryResultPage queryResponse = await _client.Query.ExecuteAsync( @@ -336,8 +369,7 @@ private static async Task RunGetSeriesAsync() ["Value"] = new NumericVariable( value: new Tsx("$event.data"), aggregation: new Tsx("avg($value)")) - })), - continuationToken: continuationToken); + }))); PrintResponse(queryResponse); @@ -348,7 +380,7 @@ private static async Task RunGetSeriesAsync() private static async Task RunGetEventsAsync() { - string continuationToken = null; + string continuationToken; do { QueryResultPage queryResponse = await _client.Query.ExecuteAsync( @@ -356,8 +388,7 @@ private static async Task RunGetEventsAsync() getEvents: new GetEvents( timeSeriesId: TimeSeriesId, searchSpan: SearchSpan, - filter: null)), - continuationToken: continuationToken); + filter: null))); PrintResponse(queryResponse); @@ -368,7 +399,7 @@ private static async Task RunGetEventsAsync() private static async Task RunGetEventsWithProjectedPropertiesAsync() { - string continuationToken = null; + string continuationToken; do { QueryResultPage queryResponse = await _client.Query.ExecuteAsync( @@ -377,8 +408,7 @@ private static async Task RunGetEventsWithProjectedPropertiesAsync() timeSeriesId: TimeSeriesId, searchSpan: SearchSpan, filter: null, - projectedProperties: new List() { new EventProperty("data", PropertyTypes.Double) })), - continuationToken: continuationToken); + projectedProperties: new List() { new EventProperty("data", PropertyTypes.Double) }))); PrintResponse(queryResponse); @@ -469,4 +499,4 @@ private static void PrintResponse(EventSchema eventSchema) Console.WriteLine(); } } -} +} \ No newline at end of file diff --git a/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClientSampleApp/Properties/AssemblyInfo.cs b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClientSampleApp/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..c4670e1 --- /dev/null +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClientSampleApp/Properties/AssemblyInfo.cs @@ -0,0 +1,6 @@ +using System.Runtime.InteropServices; + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] diff --git a/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClientSampleApp/app.config b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClientSampleApp/app.config new file mode 100644 index 0000000..2a2d449 --- /dev/null +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClientSampleApp/app.config @@ -0,0 +1,6 @@ + + + + + + diff --git a/csharp-tsi-preview-sample/DataPlaneClientSampleApp/packages.config b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClientSampleApp/packages.config similarity index 98% rename from csharp-tsi-preview-sample/DataPlaneClientSampleApp/packages.config rename to gen2-sample/csharp-tsi-gen2-sample/DataPlaneClientSampleApp/packages.config index 5031b5e..3a6345a 100644 --- a/csharp-tsi-preview-sample/DataPlaneClientSampleApp/packages.config +++ b/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClientSampleApp/packages.config @@ -1,12 +1,12 @@ - - - - - - - - - - - + + + + + + + + + + + \ No newline at end of file diff --git a/gen2-sample/csharp-tsi-gen2-sample/Readme.md b/gen2-sample/csharp-tsi-gen2-sample/Readme.md new file mode 100644 index 0000000..42657c5 --- /dev/null +++ b/gen2-sample/csharp-tsi-gen2-sample/Readme.md @@ -0,0 +1,19 @@ +# Azure Time Series Insights Gen2 - Data Plane Client Sample App + +This C# example demonstrates how to query data from the [Gen2 Data Access APIs](https://docs.microsoft.com/rest/api/time-series-insights/preview) in Azure Time Series Insights Gen2 environments as described in [Query data from the Azure Time Series Insights Gen2 environment using C#](https://docs.microsoft.com/azure/time-series-insights/time-series-insights-update-query-data-csharp). + +## Prerequisites + +1. [Visual Studio 2019](https://visualstudio.microsoft.com/vs/) - Version 16.4.2+ is recommended (Visual Studio 2015+). +1. Open the `TSIGen2DataPlaneclient.sln` solution and set `DataPlaneClientSampleApp` as the default project +1. Run the [GenerateCode.bat](https://github.com/Azure-Samples/Azure-Time-Series-Insights/blob/master/gen2-sample/csharp-tsi-gen2-sample/DataPlaneClient/GenerateCode.bat) as specified in the [Readme.md](https://github.com/Azure-Samples/Azure-Time-Series-Insights/blob/master/Gen2-Sample/csharp-tsi-gen2-sample/DataPlaneClient/Readme.md) to generate the Time Series Insights Gen2 client dependencies. +1. Compile the example to an executable `.exe` file. +1. Run the `.exe` file by double-clicking on it. + +## See also + +* The [Azure Time Series Insights API reference](https://docs.microsoft.com/rest/api/time-series-insights/preview) documentation for all Gen2 REST APIs. + +* Follow the [Authentication and authorization](https://docs.microsoft.com/azure/time-series-insights/time-series-insights-authentication-and-authorization#summary-and-best-practices) documentation to register your application in Azure Active Directory. + +* The [TSI JS client SDK](https://github.com/microsoft/tsiclient/blob/master/docs/API.md). diff --git a/csharp-tsi-preview-sample/TSIPreviewDataPlaneClient.sln b/gen2-sample/csharp-tsi-gen2-sample/TSIGen2DataPlaneClient.sln similarity index 98% rename from csharp-tsi-preview-sample/TSIPreviewDataPlaneClient.sln rename to gen2-sample/csharp-tsi-gen2-sample/TSIGen2DataPlaneClient.sln index 40d4f79..4f4bf69 100644 --- a/csharp-tsi-preview-sample/TSIPreviewDataPlaneClient.sln +++ b/gen2-sample/csharp-tsi-gen2-sample/TSIGen2DataPlaneClient.sln @@ -1,31 +1,31 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.29613.14 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataPlaneClient", "DataPlaneClient\DataPlaneClient.csproj", "{FC0A4165-E69E-4D9A-9C3F-D8062010D697}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataPlaneClientSampleApp", "DataPlaneClientSampleApp\DataPlaneClientSampleApp.csproj", "{F24742E1-1A2E-4047-82F3-B6F37A04E231}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {FC0A4165-E69E-4D9A-9C3F-D8062010D697}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FC0A4165-E69E-4D9A-9C3F-D8062010D697}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FC0A4165-E69E-4D9A-9C3F-D8062010D697}.Release|Any CPU.ActiveCfg = Debug|Any CPU - {FC0A4165-E69E-4D9A-9C3F-D8062010D697}.Release|Any CPU.Build.0 = Debug|Any CPU - {F24742E1-1A2E-4047-82F3-B6F37A04E231}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F24742E1-1A2E-4047-82F3-B6F37A04E231}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F24742E1-1A2E-4047-82F3-B6F37A04E231}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F24742E1-1A2E-4047-82F3-B6F37A04E231}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {5D46F56F-8D76-44A9-BD8E-BAF35D66F635} - EndGlobalSection -EndGlobal + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.29613.14 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataPlaneClient", "DataPlaneClient\DataPlaneClient.csproj", "{FC0A4165-E69E-4D9A-9C3F-D8062010D697}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataPlaneClientSampleApp", "DataPlaneClientSampleApp\DataPlaneClientSampleApp.csproj", "{F24742E1-1A2E-4047-82F3-B6F37A04E231}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {FC0A4165-E69E-4D9A-9C3F-D8062010D697}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FC0A4165-E69E-4D9A-9C3F-D8062010D697}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FC0A4165-E69E-4D9A-9C3F-D8062010D697}.Release|Any CPU.ActiveCfg = Debug|Any CPU + {FC0A4165-E69E-4D9A-9C3F-D8062010D697}.Release|Any CPU.Build.0 = Debug|Any CPU + {F24742E1-1A2E-4047-82F3-B6F37A04E231}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F24742E1-1A2E-4047-82F3-B6F37A04E231}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F24742E1-1A2E-4047-82F3-B6F37A04E231}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F24742E1-1A2E-4047-82F3-B6F37A04E231}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {5D46F56F-8D76-44A9-BD8E-BAF35D66F635} + EndGlobalSection +EndGlobal